Changeset 21213


Ignore:
Timestamp:
03/05/13 17:14:52 (7 years ago)
Author:
mistic100
Message:

fix language load, fix fatal error, (probably) fix jQuery issues

Location:
extensions/Back2Front
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/main.inc.php

    r21212 r21213  
    1616define('B2F_TABLE', $prefixeTable . 'image_verso'); 
    1717 
    18 load_language('plugin.lang', B2F_PATH); 
    1918include_once(B2F_PATH . 'Back2Front.php'); 
     19 
     20add_event_handler('init', 'Back2Front_init'); 
     21 
     22function Back2Front_init() 
     23{ 
     24  load_language('plugin.lang', B2F_PATH); 
     25} 
    2026 
    2127if (script_basename() == 'picture') 
  • extensions/Back2Front/template/picture_content.tpl

    r21212 r21213  
    11{combine_css path=$B2F_PATH|@cat:"template/style.css"} 
    22 
    3 {if !$verso.selected_derivative->is_cached() && $current.selected_derivative->is_cached} 
     3{if !$verso.selected_derivative->is_cached() && $current.selected_derivative->is_cached()} 
    44{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
    55{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
     
    2929{/if} 
    3030 
    31       $("img#theVersoImage").hide(); 
    32        
    3331    {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); 
    3635      }); 
    3736    {else} 
    38       $("img#theMainImage").hide(); 
    39       $("img#theVersoImage").show(); 
     37      jQuery("img#theMainImage").hide(); 
     38      jQuery("img#theVersoImage").show(); 
    4039    {/if} 
    4140     
    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}'); 
    4443 
    4544{if $b2f_switch_mode == "click"} 
     
    4948{/if}  
    5049     
    51       $("img#theMainImage").hide(); 
    52      
    5350    {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); 
    5654      }); 
    5755    {else} 
    58       $("img#theVersoImage").hide(); 
    59       $("img#theMainImage").show(); 
     56      jQuery("img#theVersoImage").hide(); 
     57      jQuery("img#theMainImage").show(); 
    6058    {/if} 
    6159     
    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}'); 
    6462 
    6563{if $b2f_switch_mode == "click"} 
  • extensions/Back2Front/template/style.css

    r21212 r21213  
    1010a.reverse img { 
    1111  vertical-align:top; 
     12  border:none !important; 
    1213} 
    1314 
Note: See TracChangeset for help on using the changeset viewer.