Changeset 2541:10f7fb5a782a for inc/core
- Timestamp:
- 11/13/13 14:22:39 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.themes.php
r2492 r2541 22 22 */ 23 23 class dcThemes extends dcModules 24 { 24 { 25 25 protected static $type = 'theme'; 26 26 … … 28 28 This method registers a theme in modules list. You should use this to 29 29 register a new theme. 30 30 31 31 <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 33 33 the standard behavior, by using 'default'. 34 34 35 35 <var>$priority</var> is an integer. Modules are sorted by priority and name. 36 36 Lowest priority comes first. This property is currently ignored when dealing 37 37 with themes. 38 38 39 39 @param name <b>string</b> Module name 40 40 @param desc <b>string</b> Module description 41 41 @param author <b>string</b> Module author name 42 42 @param version <b>string</b> Module version 43 @param properties <b>array</b> extra properties 43 @param properties <b>array</b> extra properties 44 44 (currently available keys : parent, priority, standalone_config, type) 45 45 */ … … 59 59 # Themes specifics properties 60 60 $properties = array_merge( 61 array('parent' => null ),61 array('parent' => null, 'tplset' => 'legacy'), 62 62 $properties, 63 63 array('permissions' => 'admin') // force themes perms … … 65 65 66 66 parent::registerModule($name, $desc, $author, $version, $properties); 67 } 68 67 } 68 69 69 /** 70 70 Loads namespace <var>$ns</var> specific file for module with ID 71 71 <var>$id</var> 72 72 Note : actually, only 'public' namespace is supported with themes. 73 73 74 74 @param id <b>string</b> Module ID 75 75 @param ns <b>string</b> Namespace name
Note: See TracChangeset
for help on using the changeset viewer.