Dotclear

source: themes/berlin/_public.php @ 3874:ab8368569446

Revision 3874:ab8368569446, 788 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

short notation for array (array() → [])

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 \dcUtils::jsVars([
26            'dotclear_berlin_show_menu'  => __('Show menu'),
27            'dotclear_berlin_hide_menu'  => __('Hide menu'),
28            'dotclear_berlin_navigation' => __('Navigation')
29        ]);
30    }
31}
Note: See TracBrowser for help on using the repository browser.

Sites map