Changeset 13921 for extensions/imgpreview/main.inc.php
- Timestamp:
- Apr 5, 2012, 6:41:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/imgpreview/main.inc.php
r13912 r13921 52 52 if ( defined('PHPWG_VERSION') and strpos(PHPWG_VERSION, "2.4")!==false ) 53 53 { 54 $replacement = 'href="{$thumbnail.URL}" {define_derivative name=\'derivative_imgprev\' width=$imgpreview.width height=$imgpreview.height crop=false}{assign var=d_imgprev value=$pwg->derivative($derivative_imgprev, $thumbnail.src_image)} imgsrc="{$d_imgprev->get_url()}" ';54 $replacement = 'href="{$thumbnail.URL}" {define_derivative name=\'derivative_imgprev\' width=$imgpreview.width height=$imgpreview.height crop=false}{assign var=d_imgprev value=$pwg->derivative($derivative_imgprev, $thumbnail.src_image)} imgsrc="{$d_imgprev->get_url()}" data-tittle="{$thumbnail.NAME}"'; 55 55 } 56 56 else { 57 $replacement = 'href="{$thumbnail.URL}" imgsrc="{$thumbnail.FILE_PATH}" ';57 $replacement = 'href="{$thumbnail.URL}" imgsrc="{$thumbnail.FILE_PATH}" data-tittle="{$thumbnail.NAME}"'; 58 58 } 59 59 $content= str_replace($search, $replacement, $content);
Note: See TracChangeset
for help on using the changeset viewer.