| Revision 3874:ab8368569446,
699 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
|
short notation for array (array() → [])
|
| 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', ['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.