Dotclear

source: themes/berlin/_public.php @ 4028:7dfcbdf8334b

Revision 4028:7dfcbdf8334b, 835 bytes checked in by franck <carnet.franck.paul@…>, 6 years ago (diff)

Welcoming suggestion from llune, thank's ;-)

Line 
1<?php
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
12namespace themes\berlin;
13
14if (!defined('DC_RC_PATH')) {return;}
15
16\l10n::set(dirname(__FILE__) . '/locales/' . $_lang . '/main');
17//__('Show menu').__('Hide menu').__('Navigation');
18
19$core->addBehavior('publicHeadContent', [__NAMESPACE__ . '\behaviorBerlinTheme', 'publicHeadContent']);
20
21class behaviorBerlinTheme
22{
23    public static function publicHeadContent()
24    {
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' => __('Main menu')
31        ]);
32    }
33}
Note: See TracBrowser for help on using the repository browser.

Sites map