| | 88 | /************************************ picture.tpl ************************************/ |
| | 89 | add_event_handler('loc_begin_picture', 'Pure_default_picture'); |
| | 90 | function Pure_default_picture() |
| | 91 | { |
| | 92 | global $template; |
| | 93 | $template->set_prefilter('picture', 'Pure_default_prefilter_picture'); |
| | 94 | } |
| | 95 | function Pure_default_prefilter_picture($content, &$smarty) |
| | 96 | { |
| | 97 | $search = '#<div id="content" class="pictureContent">#'; |
| | 98 | $replacement = '<div id="content" class="pictureContent"> |
| | 99 | <table id="table_content" border="0" cellspacing="0" cellpadding="0"> |
| | 100 | <tr> |
| | 101 | <td id="section_up_left"> </td> |
| | 102 | <td id="section_up"> </td> |
| | 103 | <td id="section_up_right"> </td> |
| | 104 | </tr> |
| | 105 | <tr> |
| | 106 | <td id="section_left"> </td> |
| | 107 | <td id="section_in"> |
| | 108 | '; |
| | 109 | $content = preg_replace($search, $replacement, $content); |
| | 110 | |
| | 111 | $search = '#\{if \!empty\(\$PLUGIN_PICTURE_AFTER\)\}\{\$PLUGIN_PICTURE_AFTER\}\{/if\}#'; |
| | 112 | $replacement = '{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
| | 113 | </td> |
| | 114 | <td id="section_right"> </td> |
| | 115 | </tr> |
| | 116 | <tr> |
| | 117 | <td id="section_bottom_left"> </td> |
| | 118 | <td id="section_bottom" > </td> |
| | 119 | <td id="section_bottom_right" > </td> |
| | 120 | </tr> |
| | 121 | </table> |
| | 122 | '; |
| | 123 | return preg_replace($search, $replacement, $content); |
| | 124 | } |