Ignore:
Timestamp:
Jul 11, 2012, 10:06:24 PM (12 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.4

rel!"nofollow" on gallery links to "recently viewed photos" to avoid generating a huge amount of visits by robots.

Location:
extensions/whois_online
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/config.tpl

    r9167 r16631  
    171171<link rel="stylesheet" type="text/css" href="{$Whois_path|@cat:'online.css'}">
    172172{/html_head}
    173 {*known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"*}
    174 {*known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"*}
    175 {*known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"*}
    176 {* known_script id="jquery.tablesorter" src=$Whois_path|@cat:"jquery/tablesorter/jquery.tablesorter.min.js" *}
  • extensions/whois_online/default.tpl

    r6201 r16631  
    44
    55        {if $Whois.Current_10mins > 0}
    6         <br />{if $Whois.Seen_url>''}<a href="{$Whois.Seen_url}" title="{'Your recently viewed pictures'|@translate}">{/if}
     6        <br />{if $Whois.Seen_url>''}<a href="{$Whois.Seen_url}" title="{'Your recently viewed pictures'|@translate}" rel="nofollow">{/if}
    77        {'Most recent 10 minutes hits:'|@translate}
    88        {if $Whois.Seen_url>''}</a>{/if}
     
    1111
    1212        <br />
    13         {if $Whois.Review_url>''}<a href="{$Whois.Review_url}" title="{'Some of recently viewed pictures by other users'|@translate}">{/if}
     13        {if $Whois.Review_url>''}<a href="{$Whois.Review_url}" title="{'Some of recently viewed pictures by other users'|@translate}" rel="nofollow">{/if}
    1414        {'Current hour hits:'|@translate}
    1515        {if $Whois.Review_url>''}</a>{/if}
  • extensions/whois_online/report.tpl

    r9145 r16631  
    1 {*known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"plugins/whois_online/jquery/cluetip/jquery.cluetip.min.js" *}
     1{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
     2
    23<table class="table2" id="detailedStats">
    34<thead>
     
    9394<p><a class="external" href="{'http:geoiptool'|@translate}" title="{':geoiptool:title'|@translate}">geoiptool.com</a>{
    9495 ': provides IP geolocalization on request (link on flag). Useful for unknown countries.'|@translate}</p>
    95 {literal}
    96 <script type="text/javascript">// <![CDATA[
    97 jQuery(document).ready(function(){
    98   jQuery("#detailedStats").tablesorter( {sortList: [[5,1]]} );}
    99 );
    100 jQuery().ready(function(){
     96
     97{footer_script require='jquery.cluetip'}{literal}
     98jQuery(document).ready(function() {
     99  jQuery("#detailedStats").tablesorter({
     100    sortList: [[5,1]]
     101  });
     102
    101103  jQuery('.cluetip').cluetip({
    102104    width: 300,
     
    105107  });
    106108});
    107 // ]]>
    108 </script>
    109 {/literal}
     109{/literal}{/footer_script}
     110
    110111{if (isset($Case) and $Case > '')}
    111112<style type="text/css">
Note: See TracChangeset for help on using the changeset viewer.