Changeset 23023 for extensions/automatic_size
- Timestamp:
- Jun 3, 2013, 4:08:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/automatic_size/main.inc.php
r23022 r23023 116 116 ) 117 117 ); 118 119 $template->set_filename('asize_picture_js', realpath(ASIZE_PATH.'picture_js.tpl')); 120 $template->parse('asize_picture_js'); 121 118 122 return $template->parse( 'default_content', true); 119 123 } … … 121 125 function asize_picture_prefilter($content, &$smarty) 122 126 { 123 // step 1124 127 $pattern = '#\{foreach from=\$current\.unique_derivatives#'; 125 128 $replacement = ' … … 129 132 $content = preg_replace($pattern, $replacement, $content); 130 133 131 // step 2132 $pattern = '#PLUGIN_PICTURE_BEFORE\}\{/if\}#';133 $replacement = 'PLUGIN_PICTURE_BEFORE}{/if}'."\n".file_get_contents(ASIZE_PATH.'picture_js.tpl');134 135 $content = preg_replace($pattern, $replacement, $content);136 137 134 return $content; 138 135 }
Note: See TracChangeset
for help on using the changeset viewer.