Dotclear

source: themes/customCSS/_public.php @ 3531:f2de7e462b78

Revision 3531:f2de7e462b78, 761 bytes checked in by franck <carnet.franck.paul@…>, 8 years ago (diff)

Using theme\<theme_name> namespace for _public.php and _prepend.php, in order to simplify theme copy and hack

Line 
1<?php
2namespace themes\customcss;
3
4# -- BEGIN LICENSE BLOCK ---------------------------------------
5#
6# This file is part of Dotclear 2.
7#
8# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
9# Licensed under the GPL version 2.0 license.
10# See LICENSE file or
11# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12#
13# -- END LICENSE BLOCK -----------------------------------------
14if (!defined('DC_RC_PATH')) { return; }
15
16$core->addBehavior('publicHeadContent',array(__NAMESPACE__.'\tplCustomTheme','publicHeadContent'));
17
18class tplCustomTheme
19{
20     public static function publicHeadContent($core)
21     {
22          echo
23          '<style type="text/css">'."\n".
24          '@import url('.$core->blog->settings->system->public_url.'/custom_style.css);'."\n".
25          "</style>\n";
26     }
27}
Note: See TracBrowser for help on using the repository browser.

Sites map