Dotclear

Changeset 2541:10f7fb5a782a for inc/core


Ignore:
Timestamp:
11/13/13 14:22:39 (12 years ago)
Author:
Dsls
Branch:
default
Message:

Introducing tplset. default templates now become "legacy" tplset. Closes #1216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.themes.php

    r2492 r2541  
    2222*/ 
    2323class dcThemes extends dcModules 
    24 {     
     24{ 
    2525     protected static $type = 'theme'; 
    2626 
     
    2828     This method registers a theme in modules list. You should use this to 
    2929     register a new theme. 
    30       
     30 
    3131     <var>$parent</var> is a optional value to indicate them inheritance. 
    32      If <var>$parent</var> is null / not set, we simply fall back to  
     32     If <var>$parent</var> is null / not set, we simply fall back to 
    3333     the standard behavior, by using 'default'. 
    34       
     34 
    3535     <var>$priority</var> is an integer. Modules are sorted by priority and name. 
    3636     Lowest priority comes first. This property is currently ignored when dealing 
    3737     with themes. 
    38       
     38 
    3939     @param    name           <b>string</b>       Module name 
    4040     @param    desc           <b>string</b>       Module description 
    4141     @param    author         <b>string</b>       Module author name 
    4242     @param    version        <b>string</b>       Module version 
    43      @param    properties     <b>array</b>        extra properties  
     43     @param    properties     <b>array</b>        extra properties 
    4444     (currently available keys : parent, priority, standalone_config, type) 
    4545     */ 
     
    5959          # Themes specifics properties 
    6060          $properties = array_merge( 
    61                array('parent' => null), 
     61               array('parent' => null, 'tplset' => 'legacy'), 
    6262               $properties, 
    6363               array('permissions' => 'admin') // force themes perms 
     
    6565 
    6666          parent::registerModule($name, $desc, $author, $version, $properties); 
    67      }     
    68       
     67     } 
     68 
    6969     /** 
    7070     Loads namespace <var>$ns</var> specific file for module with ID 
    7171     <var>$id</var> 
    7272     Note : actually, only 'public' namespace is supported with themes. 
    73       
     73 
    7474     @param    id        <b>string</b>       Module ID 
    7575     @param    ns        <b>string</b>       Namespace name 
Note: See TracChangeset for help on using the changeset viewer.

Sites map