Changeset 21023 for extensions
- Timestamp:
- Feb 25, 2013, 6:23:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/floOS/OS_default/themeconf.inc.php
r14974 r21023 118 118 $page['errors'][]='Theme not compatible'; 119 119 } 120 global $pattern; 121 foreach ($pattern['OS_default'] as $array_pattern) 122 { 123 $name_pref=create_function("$content,&$smarty"," 124 global $pattern; 125 $r=\$pattern['".$array_pattern[2]."']['R']; 126 $ps=\$pattern['".$array_pattern[2]."']['S']; 127 foreach($r as $i => $pr) 128 { 129 $content = str_replace($ps[$i], $pr, $content); 130 } 131 return $content; 132 "); 133 $name_funct=create_function(""," 134 global $template; 135 $template->set_prefilter(".$array_pattern[1].", ".$name_pref."); 136 "); 137 add_event_handler($array_pattern[0], $name_funct); 120 138 121 122 /* *********************************** index.tpl ************************************/139 } 140 /* 123 141 add_event_handler('loc_end_index', 'OS_default_index'); 124 142 function OS_default_index() … … 139 157 } 140 158 141 /************************************ picture.tpl ************************************/142 159 add_event_handler('loc_begin_picture', 'OS_default_picture'); 143 160 function OS_default_picture() … … 158 175 } 159 176 160 ?> 177 ?> */
Note: See TracChangeset
for help on using the changeset viewer.