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() → [])

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

Sites map