Dotclear

source: themes/berlin/_public.php @ 3915:a57821ba9ef1

Revision 3915:a57821ba9ef1, 836 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Switching from inline JS variables to JSON script. A step ahead…

RevLine 
[3427]1<?php
[3731]2/**
3 * @brief Berlin, a theme for Dotclear 2
4 *
5 * @package Dotclear
6 * @subpackage Themes
7 *
8 * @copyright Olivier Meunier & Association Dotclear
9 * @copyright GPL-2.0-only
10 */
11
[3531]12namespace themes\berlin;
13
[3730]14if (!defined('DC_RC_PATH')) {return;}
[3427]15
[3730]16\l10n::set(dirname(__FILE__) . '/locales/' . $_lang . '/main');
[3427]17//__('Show menu').__('Hide menu').__('Navigation');
18
[3874]19$core->addBehavior('publicHeadContent', [__NAMESPACE__ . '\behaviorBerlinTheme', 'publicHeadContent']);
[3427]20
21class behaviorBerlinTheme
22{
[3730]23    public static function publicHeadContent()
24    {
[3915]25        echo
26        \dcUtils::jsLoad($GLOBALS['core']->blog->getPF('util.js')) .
27        \dcUtils::jsJson('dotclear_berlin', [
28            'show_menu'  => __('Show menu'),
29            'hide_menu'  => __('Hide menu'),
30            'navigation' => __('Navigation')
[3874]31        ]);
[3730]32    }
[3427]33}
Note: See TracBrowser for help on using the repository browser.

Sites map