Dotclear


Ignore:
Timestamp:
11/05/18 16:40:40 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/berlin/_public.php

    r3874 r3915  
    2323    public static function publicHeadContent() 
    2424    { 
    25         echo \dcUtils::jsVars([ 
    26             'dotclear_berlin_show_menu'  => __('Show menu'), 
    27             'dotclear_berlin_hide_menu'  => __('Hide menu'), 
    28             'dotclear_berlin_navigation' => __('Navigation') 
     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') 
    2931        ]); 
    3032    } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map