Ignore:
Timestamp:
04/02/11 12:55:56 (9 years ago)
Author:
patdenice
Message:

Compatible with piwigo 2.2.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rightClick/template/rightClick_protect.tpl

    r6515 r9982  
    1 {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 
    2 {html_head} 
     1{footer_script require="jquery"} 
    32<!-- Protected images by the "rightClick" plugin (version {$RIGHTCK.Version}): {$RIGHTCK.Dir}/template/rightClick_protect.tpl --> 
    4 <script type="text/javascript"> 
    5 jQuery(document).ready(function($) {ldelim} 
    6 {foreach item=selector from=$RIGHTCK.Selectors name=select} 
    7         $('{$selector}').each( function() {ldelim} 
    8                 $(this)[0].oncontextmenu = function() {ldelim} 
     3jQuery(document).ready(function() {ldelim} 
     4        jQuery('{','|@implode:$RIGHTCK.Selectors}').each( function() {ldelim} 
     5                jQuery(this)[0].oncontextmenu = function() {ldelim} 
    96                        return false; 
    107                } 
    118        });      
    12 {/foreach} 
    139}); 
    14 </script>   
    15 {/html_head} 
     10{/footer_script} 
Note: See TracChangeset for help on using the changeset viewer.