Changeset 16393 for extensions/flop_style/thumbnails/fancy_hover.tpl
- Timestamp:
- Jul 6, 2012, 4:32:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/flop_style/thumbnails/fancy_hover.tpl
r9826 r16393 1 1 {combine_css path="template-extension/flop_style/thumbnails/fancy_hover.css"} 2 2 {combine_script id='jquery' path='themes/default/js/jquery.min.js'} 3 {define_derivative name='derivative_fh' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true} 3 4 {html_head} 4 5 {literal} … … 9 10 $(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/ 10 11 .animate({ 11 marginTop: '- 110px', /* The next 4 lines will vertically align this image */12 marginLeft: '- 110px',13 top: ' 50%',14 left: ' 50%',15 width: ' 174px', /* Set new width */16 height: ' 174px', /* Set new height */17 padding: ' 20px'12 marginTop: '-{/literal}{$derivative_fh->max_width()*1.25}{literal}px', /* The next 4 lines will vertically align this image */ 13 marginLeft: '-{/literal}{$derivative_fh->max_height()*1.25}{literal}px', 14 top: '{/literal}{$derivative_fh->max_width()}{literal}px', 15 left: '{/literal}{$derivative_fh->max_height()}{literal}px', 16 width: '{/literal}{$derivative_fh->max_width()+70}{literal}px', /* Set new width */ 17 height: '{/literal}{$derivative_fh->max_height()+70}{literal}px', /* Set new height */ 18 padding: '15px' 18 19 }, 200); /* this value of "200" is the speed of how fast/slow this hover animates */ 19 20 … … 26 27 top: '0', 27 28 left: '0', 28 width: ' 100px', /* Set width back to default */29 height: ' 100px', /* Set height back to default */29 width: '{/literal}{$derivative_fh->max_width()}{literal}px', /* Set width back to default */ 30 height: '{/literal}{$derivative_fh->max_height()}{literal}px', /* Set height back to default */ 30 31 padding: '5px' 31 32 }, 400); … … 36 37 {/html_head} 37 38 39 {html_style}{literal} 40 ul.thumbnails li img { 41 height:{/literal}{$derivative_fh->max_height()}{literal}px; 42 width:{/literal}{$derivative_fh->max_width()}{literal}px; 43 } 44 ul.thumbnails li 45 { 46 width:{/literal}{$derivative_fh->max_width()+10}{literal}px; 47 height:{/literal}{$derivative_fh->max_height()+10}{literal}px; 48 } 49 {/literal}{/html_style} 38 50 {if !empty($thumbnails)} 39 51 {strip}{foreach from=$thumbnails item=thumbnail} 40 52 <li> 41 53 <a href="{$thumbnail.URL}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|truncate:11:" [...]"|@replace:'"':' '}{/if}"> 42 <img src="{$ thumbnail.TN_SRC}" class="thumb_jpolaroid" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" >54 <img src="{$pwg->derivative_url($derivative_fh, $thumbnail.src_image)}" class="thumb_jpolaroid" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" > 43 55 </a> 44 56 </li>
Note: See TracChangeset
for help on using the changeset viewer.