Ignore:
Timestamp:
Jun 3, 2011, 6:09:08 PM (13 years ago)
Author:
mistic100
Message:

add some options, better intégration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/template/picture_content.tpl

    r10852 r11219  
    11{combine_css path=$B2F_PATH|@cat:"template/style.css"}
     2{combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"}
    23
    34{footer_script require="jquery"}
     
    1617        opacity:0
    1718      }, 400, function() {ldelim}
     19        jQuery(this).attr({ldelim}
     20          src: '{$VERSO_URL}',
     21          style: 'max-width:{$WIDTH_IMG}px;max-height:{$HEIGHT_IMG}px;',
     22        });
    1823        jQuery(this).animate({ldelim}
    19           width:'{$VERSO_WIDTH}px',
    20           height:'{$VERSO_HEIGHT}px'
    21         }, 200, function() {ldelim}
    22             jQuery(this).attr('src', '{$VERSO_URL}');
    23             jQuery(this).animate({ldelim}
    24               opacity:1
    25             }, 400);
    26         });
     24          opacity:1
     25        }, 400);
    2726      });
    2827    {else}
    2928      jQuery('img[alt="{$ALT_IMG}"]').attr({ldelim}
    3029        src: '{$VERSO_URL}',
    31         style: 'width:{$VERSO_WIDTH}px;height:{$VERSO_HEIGHT}px;',
     30        style: 'max-width:{$WIDTH_IMG}px;max-height:{$HEIGHT_IMG}px;',
    3231      });
    3332    {/if}
     
    4241   
    4342      /* B2F link content */
    44       jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {'See front'|@translate}');
     43      jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {$b2f_see_front}');
    4544      jQuery(this).attr('rel', 'back');
    4645    {/if}
     
    5251{/if}
    5352
     53      /* picture switch */
    5454    {if $b2f_transition == 'fade'}
    5555      jQuery('img[alt="{$ALT_IMG}"]').animate({ldelim}
    5656        opacity:0
    5757      }, 400, function() {ldelim}
     58        jQuery(this).attr({ldelim}
     59          src: '{$SRC_IMG}',
     60          style: 'width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;',
     61        });
    5862        jQuery(this).animate({ldelim}
    59           width:'{$WIDTH_IMG}px',
    60           height:'{$HEIGHT_IMG}px'
    61         }, 200, function() {ldelim}
    62             jQuery(this).attr('src', '{$SRC_IMG}');
    63             jQuery(this).animate({ldelim}
    64               opacity:1
    65             }, 400);
    66         });
     63          opacity:1
     64        }, 400);
    6765      });
    6866    {else}
     
    7472     
    7573    {if $b2f_switch_mode == 'click'}
     74      /* hd link */
    7675      {if isset($high.U_HIGH)}
    7776      jQuery('img[alt="{$ALT_IMG}"]').parent().attr({ldelim}
     
    8079      {/if}
    8180     
    82       jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}');
     81      /* B2F link content */
     82      jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back}');
    8383      jQuery(this).attr('rel', 'front');
    8484    {/if}
     
    9494{/footer_script}
    9595
    96 <img src="{$VERSO_URL}" style="display:none;"> {* <!-- force preload the verso --> *}
     96<img src="{$VERSO_URL}" style="display:none;"/> {* <!-- force preload the verso --> *}
    9797
    98 <a class="reverse" rel="front" name="verso-link" {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}>
    99   <img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}
     98{if $b2f_position != 'toolbar'}<div>{/if}
     99<a class="reverse" rel="front" {if $b2f_position == 'toolbar'}style="border:none !important;"{/if} {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}>
     100  <img src="{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back}
    100101</a>
    101 <br/>
     102{if $b2f_position != 'toolbar'}</div>{/if}
Note: See TracChangeset for help on using the changeset viewer.