Changeset 10106 for extensions/floPure/Pure_default/themeconf.inc.php
- Timestamp:
- Apr 6, 2011, 2:15:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/floPure/Pure_default/themeconf.inc.php
r5907 r10106 1 1 <?php 2 /* 3 Theme Name: Pure_default 4 Version: auto 5 Description: 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=384 7 Author: flop25 8 Author URI: http://www.planete-flop.fr 9 */ 2 10 $themeconf = array( 3 11 'name' => 'Pure_default', … … 8 16 'activable' => false, 9 17 ); 18 /** index.tpl **/ 19 add_event_handler('loc_end_index', 'Pure_default_index'); 20 add_event_handler('loc_end_index', 'Pure_default_index_stuff'); 21 function Pure_default_index() 22 { 23 global $template; 24 $template->set_prefilter('index', 'Pure_default_prefilter_index'); 25 //$template->set_prefilter('stuffs', 'Pure_default_prefilter_index_stuff'); 26 //return $tpl_thumbnails_var; 27 } 28 function Pure_default_index_stuff() 29 { 30 global $template; 31 //$template->set_prefilter('index', 'Pure_default_prefilter_index'); 32 $template->set_prefilter('stuffs', 'Pure_default_prefilter_index_stuff'); 33 //return $tpl_thumbnails_var; 34 } 35 function Pure_default_prefilter_index($content, &$smarty) 36 { 37 $search = '#<div id="content" class="content">#'; 38 $replacement = '<div id="content" class="content"> 39 <table id="table_content" border="0" cellspacing="0" cellpadding="0"> 40 <tr> 41 <td id="section_up_left"> </td> 42 <td id="section_up"> </td> 43 <td id="section_up_right"> </td> 44 </tr> 45 <tr> 46 <td id="section_left"> </td> 47 <td id="section_in"> 48 '; 49 $content = preg_replace($search, $replacement, $content); 50 51 $search = '#\{if \!empty\(\$PLUGIN_INDEX_CONTENT_END\)\}\{\$PLUGIN_INDEX_CONTENT_END\}\{/if\}#'; 52 $replacement = '{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if} 53 </td> 54 <td id="section_right"> </td> 55 </tr> 56 <tr> 57 <td id="section_bottom_left"> </td> 58 <td id="section_bottom" > </td> 59 <td id="section_bottom_right" > </td> 60 </tr> 61 </table> 62 '; 63 return preg_replace($search, $replacement, $content); 64 } 65 function Pure_default_prefilter_index_stuff($content, &$smarty) 66 { 67 68 $search = '#<div class="content stuffs_block">#'; 69 $replacement = '<div class="content stuffs_block"> 70 <table id="table_content" border="0" cellspacing="0" cellpadding="0"> 71 <tr> 72 <td id="section_up_left"> </td> 73 <td id="section_up"> </td> 74 <td id="section_up_right"> </td> 75 </tr> 76 <tr> 77 <td id="section_left"> </td> 78 <td id="section_in"> 79 '; 80 $content = preg_replace($search, $replacement, $content); 81 82 $search = '#\{if \$block\.end_line\} 83 </div> 84 \{\/if\} 85 \{/foreach\} 86 </div>#'; 87 $replacement = '{if $block.end_line} 88 </div> 89 {/if} 90 {/foreach} 91 </td> 92 <td id="section_right"> </td> 93 </tr> 94 <tr> 95 <td id="section_bottom_left"> </td> 96 <td id="section_bottom" > </td> 97 <td id="section_bottom_right" > </td> 98 </tr> 99 </table> 100 </div>'; 101 return preg_replace($search, $replacement, $content); 102 103 //echo($content); 104 //return 'blabmabhmijokpiuyftdfghijkougyffguio'; 105 } 10 106 11 107 ?>
Note: See TracChangeset
for help on using the changeset viewer.