Revision 1436:c6aa788720c9,
835 bytes
checked in by Denis Jean-Christian <contact@…>, 12 years ago
(diff) |
Write blowUp CSS into a public file on update, like images, fixes #736
|
Rev | Line | |
---|
[0] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
[1179] | 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
---|
[0] | 7 | # Licensed under the GPL version 2.0 license. |
---|
| 8 | # See LICENSE file or |
---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 10 | # |
---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
| 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 | { |
---|
[1436] | 25 | $url = blowupConfig::publicCssUrlHelper(); |
---|
| 26 | if ($url) { |
---|
| 27 | echo '<link rel="stylesheet" href="'.$url.'" type="text/css" />'; |
---|
[0] | 28 | } |
---|
| 29 | } |
---|
| 30 | } |
---|
[295] | 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.