Changeset 13921


Ignore:
Timestamp:
Apr 5, 2012, 6:41:15 PM (8 years ago)
Author:
flop25
Message:

bug correction :
-undefined tittle for non-default themes

Location:
extensions/imgpreview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/imgpreview/css_js.tpl

    r12045 r13921  
    1111    onShow: function(link){
    1212      {/literal}{if $imgpreview.title=="true"}{literal}
    13       jQuery('<span>' + jQuery(link).children().attr("title") + '</span>').appendTo(this);
     13      jQuery('<span>' + jQuery(link).attr("data-tittle") + '</span>').appendTo(this);
    1414     
    1515      {/literal}{/if}{if $imgpreview.opacity=="true"}{literal}
  • extensions/imgpreview/main.inc.php

    r13912 r13921  
    5252  if ( defined('PHPWG_VERSION') and strpos(PHPWG_VERSION, "2.4")!==false )
    5353  {
    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}"';
    5555  }
    5656  else {
    57     $replacement = 'href="{$thumbnail.URL}" imgsrc="{$thumbnail.FILE_PATH}"';
     57    $replacement = 'href="{$thumbnail.URL}" imgsrc="{$thumbnail.FILE_PATH}" data-tittle="{$thumbnail.NAME}"';
    5858  }
    5959  $content= str_replace($search, $replacement, $content);
Note: See TracChangeset for help on using the changeset viewer.