Changeset 10112


Ignore:
Timestamp:
04/06/11 17:27:09 (9 years ago)
Author:
flop25
Message:

about page prefiltred

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/floPure/Pure_default/themeconf.inc.php

    r10109 r10112  
    4444                $template->set_prefilter('about', 'Pure_default_prefilter_about'); 
    4545        } 
     46        if (isset($page['body_id']) and $page['body_id'] == 'thePopuphelpPage') 
     47        { 
     48                $template->set_prefilter('popuphelp', 'Pure_default_prefilter_popuphelp'); 
     49        } 
    4650} 
    4751/** index.tpl **/ 
     
    213217                return preg_replace($search, $replacement, $content); 
    214218} 
     219/**************************** popuphelp.tpl *****************************************************************/ 
     220function Pure_default_prefilter_popuphelp($content, &$smarty) 
     221{ 
     222                $search = '#</h2>[\s]*</div>#';   
     223                $replacement = '</h2> 
     224  </div> 
     225<div id="autre_content">'; 
     226                $content = preg_replace($search, $replacement, $content); 
     227                $search = '#</div>[\s]*<!-- content -->#';   
     228                $replacement = '</div> 
     229                </div> <!-- content -->'; 
     230                return preg_replace($search, $replacement, $content); 
     231} 
     232 
    215233?> 
Note: See TracChangeset for help on using the changeset viewer.