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
|
Rev | Line | |
---|
[3427] | 1 | <?php |
---|
[3531] | 2 | namespace themes\berlin; |
---|
| 3 | |
---|
[3427] | 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 ----------------------------------------- |
---|
| 13 | if (!defined('DC_RC_PATH')) { return; } |
---|
| 14 | |
---|
[3531] | 15 | \l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/main'); |
---|
[3427] | 16 | //__('Show menu').__('Hide menu').__('Navigation'); |
---|
| 17 | |
---|
[3531] | 18 | $core->addBehavior('publicHeadContent',array(__NAMESPACE__.'\behaviorBerlinTheme','publicHeadContent')); |
---|
[3427] | 19 | |
---|
| 20 | class behaviorBerlinTheme |
---|
| 21 | { |
---|
| 22 | public static function publicHeadContent() |
---|
| 23 | { |
---|
[3531] | 24 | echo \dcUtils::jsVars(array( |
---|
[3427] | 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.