Changeset 657:7da5e965bbc5 for themes/ductile/_config.php
- Timestamp:
- 07/26/11 14:37:56 (14 years ago)
- Branch:
- themes
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
themes/ductile/_config.php
r656 r657 17 17 $img_path = dirname(__FILE__).'/img/'; 18 18 19 $tpl_path = dirname(__FILE__).'/tpl/'; 20 19 21 $standalone_config = (boolean) $core->themes->moduleInfo($core->blog->settings->system->theme,'standalone_config'); 20 22 … … 24 26 __('Full') => 'full' 25 27 ); 28 // Get all _entry-*.html in tpl folder of theme 29 $list_types_templates = files::scandir($tpl_path); 30 if (is_array($list_types_templates)) { 31 foreach ($list_types_templates as $v) { 32 if (preg_match('/^_entry\-(.*)\.html$/',$v,$m)) { 33 if (isset($m[1])) { 34 if (!in_array($m[1],$list_types)) { 35 // template not already in full list 36 $list_types[__($m[1])] = $m[1]; 37 } 38 } 39 } 40 } 41 } 42 43 26 44 27 45 $contexts = array(
Note: See TracChangeset
for help on using the changeset viewer.