Dotclear


Ignore:
Timestamp:
07/26/11 14:37:56 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
themes
Message:

Gestion des modèles supplémentaires de liste de billets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_config.php

    r656 r657  
    1717$img_path = dirname(__FILE__).'/img/'; 
    1818 
     19$tpl_path = dirname(__FILE__).'/tpl/'; 
     20 
    1921$standalone_config = (boolean) $core->themes->moduleInfo($core->blog->settings->system->theme,'standalone_config'); 
    2022 
     
    2426     __('Full') => 'full' 
    2527); 
     28// Get all _entry-*.html in tpl folder of theme 
     29$list_types_templates = files::scandir($tpl_path); 
     30if (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 
    2644 
    2745$contexts = array( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map