File "html_82142fdf9fe6216a7daec718e1a87ab4.php"
Full path: /home/argothem/www/cache/skel/html_82142fdf9fe6216a7daec718e1a87ab4.php
File size: 3.61 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : plugins/auto/socialtags/v4.0.1/socialtags.js.html
* Date : Thu, 08 Feb 2024 11:29:44 GMT
* Compile : Sat, 24 Feb 2024 12:37:17 GMT
* Boucles :
*/
//
// Fonction principale du squelette plugins/auto/socialtags/v4.0.1/socialtags.js.html
// Temps de compilation total: 0.186 ms
//
function html_82142fdf9fe6216a7daec718e1a87ab4($Cache, $Pile, $doublons = array(), $Numrows = array(), $SP = 0) {
if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"]))
$doublons = nettoyer_env_doublons($Pile[0]["doublons"]);
$connect = '';
$page = (
'<'.'?php header(' . _q('Content-Type: text/javascript') . '); ?'.'>' .
vide($Pile['vars'][$_zzz=(string)'popup'] = 'onclick="if (this.href.lastIndexOf("javascript:") != 0 ) { window.open(this.href, "_blank", "screenX=50,left=50,screenY=50,top=50, width=550, height=450,toolbar=no, location=no,resizable=yes, scrollbars=yes");return false; }"') .
'
// socialtags.js
// \'ajouter un bookmark\' ne marche que sous IE
// les tuyaux trouves pour FF
// window.sidebar.addPanel(t,u,\'\');
// cf https://bugzilla.mozilla.org/show_bug.cgi?id=214530
// ou Opera sont creves
;var socialtags_addfavorite = function(u,t){
if(document.all)window.external.AddFavorite(u,t);
};
(function($) {
var socialtags_init = function() {
var selector = $(\'' .
interdire_scripts(((($a = (include_spip('inc/config')?lire_config('socialtags/jsselector',null,false):'')) OR (is_string($a) AND strlen($a))) ? $a : '#contenu')) .
'\');
if (!selector.length) return;
var socialtags = ' .
interdire_scripts(socialtags_json((include_spip('inc/config')?lire_config('socialtags/tags',null,false):''))) .
';
var title = $(\'head > title\').text() || \'\';
var description = ($(\'meta[name=description]\').attr(\'content\') || \'\').substr(0,250);
var cano = $(\'link[rel=canonical]\')[0];
var url = cano ? cano.href : document.location.href.split("%23")[0].split("#")[0];
var ul = $(\'<ul><\\/ul>\');
var esc = function(x){return encodeURIComponent(x).replace(/\\s/g,\' \');};
var ref = document.referrer.match(/^.*\\/\\/([^\\/]+)\\//);
if (ref && ref[1].match(/\\.facebook\\./))
Cookies.set(\'social_facebook\', 1, { path: \'/\', expires: 30 }); // 30 jours
$.each(socialtags, function(){ if (this.u) {
if (this.a == \'bookmark\' && !document.all) return;
' .
interdire_scripts(((include_spip('inc/config')?lire_config('socialtags/ifreferer',null,false):'') ? '
if (Cookies.get(\'social_\'+this.a)!=1) return;':'')) .
'
$(\'<a rel="nofollow"' .
(($t1 = strval(interdire_scripts((((include_spip('inc/config')?lire_config('socialtags/wopen','non',false):'') == 'oui') ? table_valeur($Pile["vars"]??[], (string)'popup', null):''))))!=='' ?
(' ' . $t1) :
'') .
'><img class="socialtags-hovers" src="\'+ this.i +\'" width="\'+ this.w +\'" height="\'+ this.h +\'" alt="\'+this.a+\'"\\/><\\/a>\')
.attr(\'href\',
this.u
.replace(/%u/g, esc(url))
.replace(/%t/g, esc(title))
.replace(/%d/g, esc(description))
.replace(/%u_site/g, esc(this.u_site))
)
.attr(\'title\', this.n).wrap(\'<li class="\'+this.a+\'"><\\/li>\')
.parent().appendTo(ul);
}});
selector.' .
interdire_scripts((include_spip('inc/config')?lire_config('socialtags/afterorappend','after',false):'')) .
'(ul.wrap(\'<div class="socialtags"><\\/div>\').parent());
' .
interdire_scripts((include_spip('inc/config')?lire_config('socialtags/badgejs',null,false):'')) .
'};
$(function(){
$(socialtags_init);
});
})(jQuery);
');
return analyse_resultat_skel('html_82142fdf9fe6216a7daec718e1a87ab4', $Cache, $page, 'plugins/auto/socialtags/v4.0.1/socialtags.js.html');
}