Ignore:
Timestamp:
Aug 14, 2011, 7:07:14 PM (13 years ago)
Author:
flop25
Message:

new parameters in database and managed by the admin page
fr lang updated
need translations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/imgpreview/css_js.tpl

    r11086 r11948  
    11{combine_script id='jquery.imgpreview' load='header' require='jquery' path='plugins/imgpreview/js/imgpreview.js'}
    2 {combine_script id='imgpreview.init' load='footer' require='jquery.imgpreview' path='plugins/imgpreview/js/init.js'}
     2
     3{footer_script require='jquery.imgpreview'}
     4{if isset($imgpreview)}
     5{literal}
     6$('.thumbnails a, #thumbnails a').imgPreview({
     7    containerID: 'tooltip',
     8                srcAttr: 'imgsrc',
     9                considerBorders:'true',
     10    // When container is shown:
     11    onShow: function(link){
     12      {/literal}{if $imgpreview.title=="true"}{literal}
     13      $('<span>' + $(link).children().attr("title") + '</span>').appendTo(this);
     14     
     15      {/literal}{/if}{if $imgpreview.opacity=="true"}{literal}
     16      $(link).stop().animate({opacity:0.4});
     17      // Reset image:
     18      $('img', this).stop().css({opacity:0});
     19      {/literal}{/if}{literal}
     20    },
     21    onLoad: function(){
     22      {/literal}{if $imgpreview.opacity=="true"}{literal}
     23      $(this).animate({opacity:1}, 300);
     24      {/literal}{/if}{literal}
     25    },
     26    // When container hides:
     27    onHide: function(link){
     28      {/literal}{if $imgpreview.title=="true"}{literal}
     29      $('span', this).remove();
     30      {/literal}{/if}{if $imgpreview.opacity=="true"}{literal}
     31      $(link).stop().animate({opacity:1});
     32      {/literal}{/if}{literal}
     33    }
     34});
     35
     36{/literal}
     37{/if}
     38{/footer_script}
     39
    340{combine_css path="plugins/imgpreview/css/imgpreview.css"}
    441{if isset($imgpreview)}
Note: See TracChangeset for help on using the changeset viewer.