Revision 3427:75253b0af38a,
891 bytes
checked in by franck <carnet.franck.paul@…>, 9 years ago
(diff) |
Cope with l10n for Berlin buttons (hamburgers), enclose simplemenu links label in span
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
3 | # This file is part of Berlin, a theme for Dotclear |
---|
4 | # |
---|
5 | # Copyright (c) Association Dotclear |
---|
6 | # Licensed under the GPL version 2.0 license. |
---|
7 | # See LICENSE file or |
---|
8 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
9 | # |
---|
10 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
11 | if (!defined('DC_RC_PATH')) { return; } |
---|
12 | |
---|
13 | l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/main'); |
---|
14 | //__('Show menu').__('Hide menu').__('Navigation'); |
---|
15 | |
---|
16 | $core->addBehavior('publicHeadContent',array('behaviorBerlinTheme','publicHeadContent')); |
---|
17 | |
---|
18 | class behaviorBerlinTheme |
---|
19 | { |
---|
20 | public static function publicHeadContent() |
---|
21 | { |
---|
22 | // global $core,$_ctx; |
---|
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.