Dotclear


Ignore:
Timestamp:
03/08/18 17:58:39 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Code formatting (PSR-2)

Location:
themes/berlin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themes/berlin/_define.php

    r3531 r3730  
    99# 
    1010# -- END LICENSE BLOCK ----------------------------------------- 
    11 if (!defined('DC_RC_PATH')) { return; } 
     11if (!defined('DC_RC_PATH')) {return;} 
    1212 
    1313$this->registerModule( 
    14      /* Name */                    "Berlin", 
    15      /* Description*/         "Dotclear 2.7+ default theme", 
    16      /* Author */             "Dotclear Team", 
    17      /* Version */            '1.2', 
    18      /* Properties */         array( 
    19                                         'type' => 'theme', 
    20                                         'tplset' => 'dotty' 
    21                                    ) 
     14    "Berlin",                      // Name 
     15    "Dotclear 2.7+ default theme", // Description 
     16    "Dotclear Team",               // Author 
     17    '1.2',                         // Version 
     18    array(                         // Properties 
     19        'type'  => 'theme', 
     20        'tplset' => 'dotty' 
     21    ) 
    2222); 
  • themes/berlin/_public.php

    r3531 r3730  
    1111# 
    1212# -- END LICENSE BLOCK ----------------------------------------- 
    13 if (!defined('DC_RC_PATH')) { return; } 
     13if (!defined('DC_RC_PATH')) {return;} 
    1414 
    15 \l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/main'); 
     15\l10n::set(dirname(__FILE__) . '/locales/' . $_lang . '/main'); 
    1616//__('Show menu').__('Hide menu').__('Navigation'); 
    1717 
    18 $core->addBehavior('publicHeadContent',array(__NAMESPACE__.'\behaviorBerlinTheme','publicHeadContent')); 
     18$core->addBehavior('publicHeadContent', array(__NAMESPACE__ . '\behaviorBerlinTheme', 'publicHeadContent')); 
    1919 
    2020class behaviorBerlinTheme 
    2121{ 
    22      public static function publicHeadContent() 
    23      { 
    24           echo \dcUtils::jsVars(array( 
    25                'dotclear_berlin_show_menu' => __('Show menu'), 
    26                'dotclear_berlin_hide_menu' => __('Hide menu'), 
    27                'dotclear_berlin_navigation' => __('Navigation') 
    28                )); 
    29      } 
     22    public static function publicHeadContent() 
     23    { 
     24        echo \dcUtils::jsVars(array( 
     25            'dotclear_berlin_show_menu' => __('Show menu'), 
     26            'dotclear_berlin_hide_menu' => __('Hide menu'), 
     27            'dotclear_berlin_navigation' => __('Navigation') 
     28        )); 
     29    } 
    3030} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map