Dotclear

source: plugins/blowupConfig/_public.php @ 3731:3770620079d4

Revision 3731:3770620079d4, 704 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Simplify licence block at the beginning of each file

Line 
1<?php
2/**
3 * @brief blowupConfig, a plugin for Dotclear 2
4 *
5 * @package Dotclear
6 * @subpackage Plugins
7 *
8 * @copyright Olivier Meunier & Association Dotclear
9 * @copyright GPL-2.0-only
10 */
11
12if (!defined('DC_RC_PATH')) {return;}
13
14if ($core->blog->settings->system->theme != 'default') {
15    return;
16}
17
18require dirname(__FILE__) . '/lib/class.blowup.config.php';
19$core->addBehavior('publicHeadContent', array('tplBlowupTheme', 'publicHeadContent'));
20
21class tplBlowUpTheme
22{
23    public static function publicHeadContent($core)
24    {
25        $url = blowupConfig::publicCssUrlHelper();
26        if ($url) {
27            echo '<link rel="stylesheet" href="' . $url . '" type="text/css" />';
28        }
29    }
30}
Note: See TracBrowser for help on using the repository browser.

Sites map