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 | |
---|
12 | if (!defined('DC_RC_PATH')) {return;} |
---|
13 | |
---|
14 | if ($core->blog->settings->system->theme != 'default') { |
---|
15 | return; |
---|
16 | } |
---|
17 | |
---|
18 | require dirname(__FILE__) . '/lib/class.blowup.config.php'; |
---|
19 | $core->addBehavior('publicHeadContent', array('tplBlowupTheme', 'publicHeadContent')); |
---|
20 | |
---|
21 | class 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.