Changeset 21213
- Timestamp:
- Mar 5, 2013, 5:14:52 PM (11 years ago)
- Location:
- extensions/Back2Front
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/main.inc.php
r21212 r21213 16 16 define('B2F_TABLE', $prefixeTable . 'image_verso'); 17 17 18 load_language('plugin.lang', B2F_PATH);19 18 include_once(B2F_PATH . 'Back2Front.php'); 19 20 add_event_handler('init', 'Back2Front_init'); 21 22 function Back2Front_init() 23 { 24 load_language('plugin.lang', B2F_PATH); 25 } 20 26 21 27 if (script_basename() == 'picture') -
extensions/Back2Front/template/picture_content.tpl
r21212 r21213 1 1 {combine_css path=$B2F_PATH|@cat:"template/style.css"} 2 2 3 {if !$verso.selected_derivative->is_cached() && $current.selected_derivative->is_cached }3 {if !$verso.selected_derivative->is_cached() && $current.selected_derivative->is_cached()} 4 4 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 5 5 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} … … 29 29 {/if} 30 30 31 $("img#theVersoImage").hide();32 33 31 {if $b2f_transition == "fade"} 34 $("img#theMainImage").fadeOut(400, function() {ldelim} 35 $("img#theVersoImage").fadeIn(400); 32 jQuery("img#theVersoImage").hide(); 33 jQuery("img#theMainImage").fadeOut(400, function() {ldelim} 34 jQuery("img#theVersoImage").fadeIn(400); 36 35 }); 37 36 {else} 38 $("img#theMainImage").hide();39 $("img#theVersoImage").show();37 jQuery("img#theMainImage").hide(); 38 jQuery("img#theVersoImage").show(); 40 39 {/if} 41 40 42 $(this).data("what", "back");43 $(this).html('<img src="{$ROOT_URL}{$B2F_PATH}template/rotate_2.png"/> {$b2f_see_front}');41 jQuery(this).data("what", "back"); 42 jQuery(this).html('<img src="{$ROOT_URL}{$B2F_PATH}template/rotate_2.png"/> {$b2f_see_front}'); 44 43 45 44 {if $b2f_switch_mode == "click"} … … 49 48 {/if} 50 49 51 $("img#theMainImage").hide();52 53 50 {if $b2f_transition == "fade"} 54 $("img#theVersoImage").fadeOut(400, function() {ldelim} 55 $("img#theMainImage").fadeIn(400); 51 jQuery("img#theMainImage").hide(); 52 jQuery("img#theVersoImage").fadeOut(400, function() {ldelim} 53 jQuery("img#theMainImage").fadeIn(400); 56 54 }); 57 55 {else} 58 $("img#theVersoImage").hide();59 $("img#theMainImage").show();56 jQuery("img#theVersoImage").hide(); 57 jQuery("img#theMainImage").show(); 60 58 {/if} 61 59 62 $(this).data("what", "front");63 $(this).html('<img src="{$ROOT_URL}{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back}');60 jQuery(this).data("what", "front"); 61 jQuery(this).html('<img src="{$ROOT_URL}{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back}'); 64 62 65 63 {if $b2f_switch_mode == "click"} -
extensions/Back2Front/template/style.css
r21212 r21213 10 10 a.reverse img { 11 11 vertical-align:top; 12 border:none !important; 12 13 } 13 14
Note: See TracChangeset
for help on using the changeset viewer.