Dotclear

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

Revision 3531:f2de7e462b78, 909 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\berlin;
3
4# -- BEGIN LICENSE BLOCK ---------------------------------------
5# This file is part of Berlin, a theme for Dotclear
6#
7# Copyright (c) Association Dotclear
8# Licensed under the GPL version 2.0 license.
9# See LICENSE file or
10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11#
12# -- END LICENSE BLOCK -----------------------------------------
13if (!defined('DC_RC_PATH')) { return; }
14
15\l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/main');
16//__('Show menu').__('Hide menu').__('Navigation');
17
18$core->addBehavior('publicHeadContent',array(__NAMESPACE__.'\behaviorBerlinTheme','publicHeadContent'));
19
20class behaviorBerlinTheme
21{
22     public static function publicHeadContent()
23     {
24          echo \dcUtils::jsVars(array(
25               'dotclear_berlin_show_menu' => __('Show menu'),
26               'dotclear_berlin_hide_menu' => __('Hide menu'),
27               'dotclear_berlin_navigation' => __('Navigation')
28               ));
29     }
30}
Note: See TracBrowser for help on using the repository browser.

Sites map