Changeset 21023


Ignore:
Timestamp:
02/25/13 18:23:11 (6 years ago)
Author:
flop25
Message:

for saving purpose; non working attemp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/themeconf.inc.php

    r14974 r21023  
    118118  $page['errors'][]='Theme not compatible'; 
    119119} 
     120global $pattern; 
     121foreach ($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); 
    120138 
    121  
    122 /************************************ index.tpl ************************************/ 
     139} 
     140/* 
    123141add_event_handler('loc_end_index', 'OS_default_index'); 
    124142function OS_default_index() 
     
    139157} 
    140158 
    141 /************************************ picture.tpl ************************************/ 
    142159add_event_handler('loc_begin_picture', 'OS_default_picture'); 
    143160function OS_default_picture() 
     
    158175} 
    159176 
    160 ?> 
     177?> */ 
Note: See TracChangeset for help on using the changeset viewer.