Changeset 10295


Ignore:
Timestamp:
Apr 11, 2011, 2:32:01 PM (10 years ago)
Author:
flop25
Message:

change of strategy for pwg stuffs : no prefilter, tpl files

Location:
extensions/floPure/Pure_default
Files:
1 added
1 edited

Legend:

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

    r10112 r10295  
    4949        }
    5050}
    51 /** index.tpl **/
     51/************************************ index.tpl ************************************/
    5252add_event_handler('loc_end_index', 'Pure_default_index');
    53 add_event_handler('loc_end_index', 'Pure_default_index_stuff');
    5453function Pure_default_index()
    5554{
    5655    global $template;
    5756    $template->set_prefilter('index', 'Pure_default_prefilter_index');
    58     //$template->set_prefilter('stuffs', 'Pure_default_prefilter_index_stuff');
    59                 //return $tpl_thumbnails_var;
    60 }
    61 function Pure_default_index_stuff()
    62 {
    63     global $template;
    64     //$template->set_prefilter('index', 'Pure_default_prefilter_index');
    65     $template->set_prefilter('stuffs', 'Pure_default_prefilter_index_stuff');
    66                 //return $tpl_thumbnails_var;
    6757}
    6858function Pure_default_prefilter_index($content, &$smarty)
     
    9585';
    9686  return preg_replace($search, $replacement, $content);
    97 }
    98 function Pure_default_prefilter_index_stuff($content, &$smarty)
    99 {
    100  
    101         $search = '#<div class="content stuffs_block">#'; 
    102   $replacement = '<div class="content stuffs_block">
    103   <table id="table_content" border="0" cellspacing="0" cellpadding="0">
    104     <tr>
    105       <td id="section_up_left">&nbsp;</td>
    106       <td id="section_up">&nbsp;</td>
    107       <td id="section_up_right">&nbsp;</td>
    108     </tr>
    109     <tr>
    110       <td id="section_left">&nbsp;</td>
    111       <td id="section_in">
    112 ';
    113   $content = preg_replace($search, $replacement, $content);
    114        
    115   $search = '#\{if \$block\.end_line\}
    116   </div>
    117   \{\/if\}
    118 \{/foreach\}
    119 </div>#'; 
    120   $replacement = '{if $block.end_line}
    121   </div>
    122   {/if}
    123 {/foreach}
    124       </td>
    125           <td id="section_right">&nbsp;</td>
    126     </tr>
    127     <tr>
    128       <td id="section_bottom_left">&nbsp;</td>
    129       <td id="section_bottom" >&nbsp;</td>
    130       <td id="section_bottom_right" >&nbsp;</td>
    131     </tr>
    132   </table>
    133 </div>';
    134   return preg_replace($search, $replacement, $content);
    135        
    136         //echo($content);
    137         //return 'blabmabhmijokpiuyftdfghijkougyffguio';
    13887}
    13988
Note: See TracChangeset for help on using the changeset viewer.