Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/aides/tmp/cache/skel/ |
<?php /* * Squelette : plugins/auto/escal/inclusions/inc-article.html * Date : Thu, 10 Oct 2024 10:23:09 GMT * Compile : Thu, 10 Oct 2024 10:47:02 GMT * Boucles : _date, _test, _auteurs_art, _traductions, _2colonnes, _prochainementselection, _seul, _futur, _plusieurs, _mot_art, _article, _mot, _affiche, _autres2, _select, _contexte */ function BOUCLE_datehtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_date'; $command['from'] = array('articles' => 'spip_articles','L1' => 'spip_mots_liens','L2' => 'spip_mots'); $command['type'] = array(); $command['groupby'] = array("articles.id_article"); $command['select'] = array("1"); $command['orderby'] = array(); $command['join'] = array('L1' => array('articles','id_objet','id_article','L1.objet='.sql_quote('article')), 'L2' => array('L1','id_mot')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), array('=', 'articles.id_article', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL AUTO_INCREMENT')), 'JOIN-L1' => array('=', 'L1.objet', sql_quote('article')), array('=', 'L2.titre', "'article-sans-date'")); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_date',33,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $Numrows['_date']['command'] = $command; $Numrows['_date']['total'] = @intval($iter->count()); $SP++; // RESULTATS $t0 = str_repeat(' ', $Numrows['_date']['total']); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_date @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_testhtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($si_init)) { $command['si'] = array(); $si_init = true; } $command['si'][] = interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/auteurart',null,false):'') == 'non')) ?'' :' ')); if (!isset($command['table'])) { $command['table'] = 'auteurs'; $command['id'] = '_test'; $command['from'] = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("count(*)"); $command['orderby'] = array(); $command['join'] = array('L1' => array('auteurs','id_auteur')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('auteurs.statut','!5poubelle','!5poubelle',''), array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_test',41,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $Numrows['_test']['command'] = $command; $Numrows['_test']['total'] = @intval($iter->count()); $SP++; // RESULTATS $t0 = str_repeat(' ', $Numrows['_test']['total']); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_test @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_auteurs_arthtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'auteurs'; $command['id'] = '_auteurs_art'; $command['from'] = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("auteurs.nom", "auteurs.id_auteur", "auteurs.lang"); $command['orderby'] = array('auteurs.nom'); $command['join'] = array('L1' => array('auteurs','id_auteur')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('auteurs.statut','!5poubelle','!5poubelle',''), array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_auteurs_art',44,$GLOBALS['spip_lang']) ); if (!$iter->err()) { lang_select($GLOBALS['spip_lang']); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { lang_select_public($Pile[$SP]['lang'], 'oui'); $t1 = ( ' <a class="auteur" href="' . interdire_scripts(parametre_url(parametre_url(generer_url_public('auteur', ''),'id_auteur',$Pile[$SP]['id_auteur']),'lang',interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'lang', null),true)))) . '" title="' . _T('escal:page_auteur') . '">' . interdire_scripts(safehtml(supprimer_numero(typo($Pile[$SP]['nom'], "TYPO", $connect, $Pile[0])))) . '</a>'); $t0 .= ((strlen($t1) && strlen($t0)) ? ', ' : '') . $t1; lang_select(); } lang_select(); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_auteurs_art @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_traductionshtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_traductions'; $command['from'] = array('articles' => 'spip_articles'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("articles.lang", "articles.id_article", "articles.titre"); $command['orderby'] = array('articles.lang'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), array('OR', array('AND', array('=', 'articles.id_trad', 0), array('=', 'articles.id_article', sql_quote($Pile[$SP]['id_article'], '', ''))), array('AND', array('>', 'articles.id_trad', 0), array('=', 'articles.id_trad', sql_quote($Pile[$SP]['id_trad'], '', '')))), array('!=', 'articles.id_article', sql_quote($Pile[$SP]['id_article'], '', ''))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_traductions',131,$GLOBALS['spip_lang']) ); if (!$iter->err()) { lang_select($GLOBALS['spip_lang']); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']); $t1 = ( ' <li><a href="' . parametre_url(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true))),'lang',spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])) . '">' . traduire_nom_langue(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])) . '</a></li> '); $t0 .= ((strlen($t1) && strlen($t0)) ? '/' : '') . $t1; lang_select(); } lang_select(); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_traductions @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_2colonneshtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_2colonnes'; $command['from'] = array('articles' => 'spip_articles','L1' => 'spip_mots_liens','L2' => 'spip_mots'); $command['type'] = array(); $command['groupby'] = array("articles.id_article"); $command['select'] = array("articles.texte", "articles.lang", "articles.titre"); $command['orderby'] = array(); $command['join'] = array('L1' => array('articles','id_objet','id_article','L1.objet='.sql_quote('article')), 'L2' => array('L1','id_mot')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), array('=', 'articles.id_article', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL AUTO_INCREMENT')), 'JOIN-L1' => array('=', 'L1.objet', sql_quote('article')), array('=', 'L2.titre', "'texte2colonnes'")); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_2colonnes',154,$GLOBALS['spip_lang']) ); if (!$iter->err()) { lang_select($GLOBALS['spip_lang']); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']); $t0 .= ( ' <div class="container-colonnes"> <div id="colonne1" > ' . (($t1 = strval(interdire_scripts(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(filtrer('image_graver', filtrer('image_reduire',propre(decouper_en_XD_parties($Pile[$SP]['texte'],'2','1')),interdire_scripts((include_spip('inc/config')?lire_config('escal/config/largeurimage','400',false):'')),'0')),'<aide>','<div class="aide">'),'</aide>','</div>'),'<important>','<div class="important">'),'</important>','</div>'),'<avertissement>','<div class="avertissement">'),'</avertissement>','</div>'),'<info>','<div class="info-escal">'),'</info>','</div>'),'<centrer>','<div style="text-align:center">'),'</centrer>','</div>'),'\\[\\|','<div style="text-align:center">'),'\\|\\]','</div>'))))!=='' ? (( '<div class=""> ') . $t1 . ' </div>') : '') . ' </div> <div id="colonne2"> ' . (($t1 = strval(interdire_scripts(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(filtrer('image_graver', filtrer('image_reduire',propre(decouper_en_XD_parties($Pile[$SP]['texte'],'2','2')),interdire_scripts((include_spip('inc/config')?lire_config('escal/config/largeurimage','400',false):'')),'0')),'<aide>','<div class="aide">'),'</aide>','</div>'),'<important>','<div class="important">'),'</important>','</div>'),'<avertissement>','<div class="avertissement">'),'</avertissement>','</div>'),'<info>','<div class="info-escal">'),'</info>','</div>'),'<centrer>','<div style="text-align:center">'),'</centrer>','</div>'),'\\[\\|','<div style="text-align:center">'),'\\|\\]','</div>'))))!=='' ? (( '<div class=""> ') . $t1 . ' </div>') : '') . ' </div> </div> '); lang_select(); } lang_select(); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_2colonnes @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_prochainementselectionhtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_prochainementselection'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.date_debut", "evenements.id_evenement_source", "evenements.id_evenement"); $command['orderby'] = array('evenements.date_debut'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array('=', 'evenements.id_article', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL DEFAULT \'0\'')), array('OR', array('AND', array('=', 'horaire', sql_quote('oui')), array('>=', 'evenements.date_fin', sql_quote(date('Y-m-d H:i:00')))), array('AND', array('!=', 'horaire', sql_quote('oui')), array('>=', 'evenements.date_fin', sql_quote(date('Y-m-d 00:00:00', strtotime(date('Y-m-d H:i:00')))))))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_prochainementselection',226,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . (($Pile[$SP]['id_evenement_source'] == '0') ? vide($Pile['vars'][$_zzz=(string)'tableauprochainement'] = filtre_push(table_valeur($Pile["vars"]??[], (string)'tableauprochainement', null),$Pile[$SP]['id_evenement'])):vide($Pile['vars'][$_zzz=(string)'tableauprochainement'] = filtre_push(table_valeur($Pile["vars"]??[], (string)'tableauprochainement', null),$Pile[$SP]['id_evenement_source']))) . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_prochainementselection @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_seulhtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $doublons_index = array(); // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'])) { $doublons[$d] = ''; } if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_seul'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.date_debut", "evenements.id_evenement"); $command['orderby'] = array('evenements.date_debut'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array('=', 'evenements.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '', 'bigint NOT NULL')), array('OR', array('AND', array('=', 'horaire', sql_quote('oui')), array('>=', 'evenements.date_fin', sql_quote(date('Y-m-d H:i:00')))), array('AND', array('!=', 'horaire', sql_quote('oui')), array('>=', 'evenements.date_fin', sql_quote(date('Y-m-d 00:00:00', strtotime(date('Y-m-d H:i:00'))))))), array(sql_in('evenements.id_evenement', $doublons[$doublons_index[]= ('evenements')], 'NOT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_seul',244,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_evenement']; // doublons $t0 .= ' '; } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_seul @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_futurhtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $doublons_index = array(); // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'])) { $doublons[$d] = ''; } if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_futur'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.id_evenement"); $command['orderby'] = array(); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array('=', 'evenements.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '','bigint NOT NULL')), array('<=', 'TIMESTAMPDIFF(HOUR,evenements.date_debut,\'' . date('Y-m-d H:i:00') . '\')/24', "0"), array(sql_in('evenements.id_evenement', $doublons[$doublons_index[]= ('evenements')], 'NOT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_futur',247,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_evenement']; // doublons $t0 .= ' '; } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_futur @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_plusieurshtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_plusieurs'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.id_evenement", "evenements.date_debut"); $command['orderby'] = array('evenements.date_debut'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array('=', 'evenements.id_evenement_source', sql_quote($Pile[$SP]['id_evenement'], '', 'bigint NOT NULL'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_plusieurs',246,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . BOUCLE_futurhtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_plusieurs @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_mot_arthtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'mots'; $command['id'] = '_mot_art'; $command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("mots.descriptif"); $command['orderby'] = array(); $command['join'] = array('L1' => array('mots','id_mot')); $command['limit'] = '0,1'; $command['having'] = array(); } $command['where'] = array( array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article')), array('=', 'mots.type', "'Agenda_couleur'")); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_mot_art',253,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . vide($Pile['vars'][$_zzz=(string)'couleur'] = interdire_scripts(propre($Pile[$SP]['descriptif'], $connect, $Pile[0])))); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_mot_art @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_articlehtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_article'; $command['from'] = array('articles' => 'spip_articles'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("articles.id_article", "articles.lang", "articles.titre"); $command['orderby'] = array(); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), array('=', 'articles.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '','bigint DEFAULT NULL'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_article',252,$GLOBALS['spip_lang']) ); if (!$iter->err()) { lang_select($GLOBALS['spip_lang']); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']); $t0 .= ( ' ' . BOUCLE_mot_arthtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); lang_select(); } lang_select(); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_article @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_mothtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'mots'; $command['id'] = '_mot'; $command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("mots.descriptif"); $command['orderby'] = array(); $command['join'] = array('L1' => array('mots','id_mot')); $command['limit'] = '0,1'; $command['having'] = array(); } $command['where'] = array( array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_evenement'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('evenement')), array('=', 'mots.type', "'Agenda_couleur'")); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_mot',257,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . vide($Pile['vars'][$_zzz=(string)'couleur'] = interdire_scripts(propre($Pile[$SP]['descriptif'], $connect, $Pile[0])))); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_mot @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_affichehtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $doublons_index = array(); // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'])) { $doublons[$d] = ''; } // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'.'affiche'])) { $doublons[$d] = ''; } if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_affiche'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.date_debut", "evenements.timezone_affiche", "evenements.titre", "evenements.lieu", "evenements.adresse", "evenements.date_fin", "evenements.horaire", "evenements.id_evenement"); $command['orderby'] = array('evenements.date_debut'); $command['join'] = array(); $command['limit'] = '0,1'; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array(sql_in('evenements.id_evenement', $doublons[('evenements')], '')), array(sql_in('evenements.id_evenement', $doublons[$doublons_index[]= ('evenements'.'affiche')], 'NOT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_affiche',264,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_evenement']; // doublons $t0 .= ( ' <div class="evenement-date" style="background-color:' . PtoBR(table_valeur($Pile["vars"]??[], (string)'couleur', null)) . ';"> <span class="evenement-jour">' . interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']),'d')) . '</span> <br> <span class="evenement-mois">' . interdire_scripts(nom_mois(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . '</span> <br> <span class="evenement-annee">' . interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']),'Y')) . '</span> <br> </div> <div class="evenement-donnees"> <div class="donnee-titre"> ' . interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))) . ' </div> ' . (($t1 = strval(interdire_scripts(expanser_liens(typo($Pile[$SP]['lieu'], "TYPO", $connect, $Pile[0])))))!=='' ? ('<div class="donnee-lieu"> ' . $t1 . ( '<br> ' . interdire_scripts(PtoBR(propre($Pile[$SP]['adresse'], $connect, $Pile[0]))) . ' </div>')) : '') . ' ' . (($t1 = strval(interdire_scripts((((affdate_jourcourt(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])) == interdire_scripts(affdate_jourcourt(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))))) ?'' :' '))))!=='' ? ($t1 . ( ' <div class="donnee-heure"> du ' . interdire_scripts(nom_jour(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . ' <strong>' . interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . '</strong> ' . interdire_scripts((($Pile[$SP]['horaire'] == 'oui') ? ( 'à partir de ' . interdire_scripts(heures(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . 'H' . interdire_scripts(minutes(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])))):'')) . ' <br>au ' . interdire_scripts(nom_jour(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))) . ' <strong>' . interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))) . '</strong> ' . interdire_scripts((($Pile[$SP]['horaire'] == 'oui') ? ( 'jusqu\'à ' . interdire_scripts(heures(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))) . 'H' . interdire_scripts(minutes(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche'])))):'')) . ' </div> ')) : '') . ' ' . (($t1 = strval(interdire_scripts((((affdate_jourcourt(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])) == interdire_scripts(affdate_jourcourt(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))))) ?' ' :''))))!=='' ? ($t1 . ( ' <div class="donnee-heure"> ' . (($t2 = strval(interdire_scripts((((heures(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])) == interdire_scripts(heures(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))))) ?'' :' '))))!=='' ? ($t2 . ( ' ' . interdire_scripts(heures(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . 'H' . interdire_scripts(minutes(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . ' - ' . interdire_scripts(heures(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))) . 'H' . interdire_scripts(minutes(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche']))) . ' ')) : '') . ' </div> ')) : '') . ' </div> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_affiche @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_autres2html_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $doublons_index = array(); // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'])) { $doublons[$d] = ''; } // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'evenements'.'affiche'])) { $doublons[$d] = ''; } if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_autres2'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.date_debut", "evenements.timezone_affiche", "evenements.id_evenement"); $command['orderby'] = array('evenements.date_debut'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), array(sql_in('evenements.id_evenement', $doublons[('evenements')], '')), array('=', 'evenements.id_evenement_source', sql_quote($Pile[$SP]['id_evenement'], '', 'bigint NOT NULL')), array('<=', 'TIMESTAMPDIFF(HOUR,evenements.date_debut,\'' . date('Y-m-d H:i:00') . '\')/24', "1"), array('>=', 'TIMESTAMPDIFF(HOUR,evenements.date_debut,\'' . date('Y-m-d H:i:00') . '\')/24', "-365"), array(sql_in('evenements.id_evenement', $doublons[$doublons_index[]= ('evenements'.'affiche')], 'NOT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_autres2',308,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_evenement']; // doublons $t0 .= ( ' <br> + ' . interdire_scripts(affdate_jourcourt(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']))) . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_autres2 @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_selecthtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); if (!(is_array($a = (table_valeur($Pile["vars"]??[], (string)'tableauprochainement', null))))) $in[]= $a; else $in = array_merge($in, $a); if (!isset($command['table'])) { $command['table'] = 'evenements'; $command['id'] = '_select'; $command['from'] = array('evenements' => 'spip_evenements'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("evenements.id_evenement", "evenements.date_debut", "evenements.descriptif"); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(evenements.id_evenement,' . $zqv . ')'))); $command['where'] = array( quete_condition_statut('evenements.statut','!','publie',''), sql_in('evenements.id_evenement', $in)); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_select',242,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $Numrows['_select']['command'] = $command; $Numrows['_select']['total'] = @intval($iter->count()); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . BOUCLE_seulhtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . BOUCLE_plusieurshtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . vide($Pile['vars'][$_zzz=(string)'couleur'] = interdire_scripts((include_spip('inc/config')?lire_config('escal/config/couleureventscalendrier','#336699',false):''))) . BOUCLE_articlehtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . BOUCLE_mothtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . (($t1 = BOUCLE_affichehtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' <div class="choix-article" style="width:40%;"> <a href="' . interdire_scripts((((include_spip('inc/config')?lire_config('gerer_trad',null,false):'') == 'oui') ? parametre_url(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_evenement'], 'evenement', '', '', true))),'lang',interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'lang', null),true))):vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_evenement'], 'evenement', '', '', true))))) . '" title="' . interdire_scripts(textebrut(propre($Pile[$SP]['descriptif'], $connect, $Pile[0]))) . '"> ') . $t1 . ( ' <div class="evenement-donnees"> ' . BOUCLE_autres2html_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' </div> </a> </div><!--choix-article--> ')) : '') . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_select @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_contextehtml_10fa21bf55180d2d739a4ab9a37d67a4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_contexte'; $command['from'] = array('articles' => 'spip_articles'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("articles.id_article", "articles.id_trad", "articles.id_rubrique", "articles.surtitre", "articles.titre", "articles.soustitre", "articles.descriptif", "articles.date", "articles.date_modif", "articles.lang", "articles.visites", "articles.popularite", "articles.chapo", "articles.texte", "articles.ps", "articles.url_site", "articles.nom_site", "articles.accepter_forum"); $command['orderby'] = array(); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), array('=', 'articles.id_article', sql_quote(($Pile[0]['id_article'] ?? null), '','bigint NOT NULL AUTO_INCREMENT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_contexte',6,$GLOBALS['spip_lang']) ); if (!$iter->err()) { lang_select($GLOBALS['spip_lang']); $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']); $t0 .= ( ' <article> <aside class="cadre-chemin"> <!-- affichage du chemin de l\'article si aucune rubrique ou sous-rubrique du chemin n\'a le mot-clé "invisible" --> <a href="' . interdire_scripts((((include_spip('inc/config')?lire_config('gerer_trad',null,false):'') == 'oui') ? parametre_url(spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')),'lang',interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'lang', null),true))):spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')))) . '" class="ariane-accueil" title="' . _T('public|spip|ecrire:accueil_site') . '">' . _T('public|spip|ecrire:accueil_site') . '</a> ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/arianeniveaudeux',null,false):'') == 'oui')) ?'' :' '))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-hierarchie_art') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',7,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/arianeniveaudeux',null,false):'') == 'oui')) ?' ' :''))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-hierarchie_art_2eniveau') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',8,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' </aside> <div id="cadre-titre-article"> <!-- affichage mots-clés associés --> ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/motsclesarticles',null,false):'') == 'oui')) ?' ' :''))))!=='' ? ($t1 . ( ' ' . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-mots_cles') . ', array(\'id_article\' => ' . argumenter_squelette($Pile[$SP]['id_article']) . ', \'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',14,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'> ')) : '') . ' <!-- affichage du logo de l\'article ou de sa rubrique avec lien vers cette rubrique --> <div class="logorub"> ' . filtrer('image_graver',filtrer('image_reduire',quete_html_logo(quete_logo('id_article', 'ON', $Pile[$SP]['id_article'], $Pile[$SP]['id_rubrique']), '', ''),'0',interdire_scripts((include_spip('inc/config')?lire_config('escal/config/taillelogoart','150',false):'')))) . ' </div> <!-- affichage du titre de l\'article, de son descriptif, de sa date de publication et de son auteur--> ' . (($t1 = strval(interdire_scripts(typo($Pile[$SP]['surtitre'], "TYPO", $connect, $Pile[0]))))!=='' ? (( '<div id="surtitre-article" class="">') . $t1 . '</div>') : '') . ' ' . (($t1 = strval(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))!=='' ? (( '<div id="titre-article" class="">') . $t1 . '</div>') : '') . ' ' . (($t1 = strval(interdire_scripts(typo($Pile[$SP]['soustitre'], "TYPO", $connect, $Pile[0]))))!=='' ? (( '<div id="soustitre-article" class="">') . $t1 . '</div>') : '') . ' ' . (($t1 = strval(interdire_scripts(filtrer('image_graver',filtrer('image_reduire',propre($Pile[$SP]['descriptif'], $connect, $Pile[0]),interdire_scripts((include_spip('inc/config')?lire_config('escal/config/largeurimage','400',false):'')),'0')))))!=='' ? ('<div id="descriptif-article">' . $t1 . '</div>') : '') . ' <div id="auteur-article"> ' . (($t1 = BOUCLE_datehtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? $t1 : (( ' ' . (($t2 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/dateart',null,false):'') == 'non')) ?'' :' '))))!=='' ? ($t2 . ( ' <div class="date-article">' . (($t3 = strval(interdire_scripts(affdate(normaliser_date($Pile[$SP]['date'])))))!=='' ? (( _T('escal:article_mise_en_ligne') . ' <span class="majuscules">') . $t3 . '</span>') : '') . ' </div> <div class="date-modif-article">' . ((affdate(normaliser_date($Pile[$SP]['date_modif'])) !== interdire_scripts(affdate(normaliser_date($Pile[$SP]['date'])))) ? (($t4 = strval(affdate(normaliser_date($Pile[$SP]['date_modif']))))!=='' ? (( _T('escal:article_modifie') . ' ') . $t4) : ''):'') . '</div> ')) : '') . ' '))) . ' ' . (($t1 = BOUCLE_testhtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? ($t1 . ( ' <br>' . (!((spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) == 'ja')) ? (' ' . _T('public|spip|ecrire:par_auteur')) : '') . ' ' . BOUCLE_auteurs_arthtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . (((spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) == 'ja')) ? (' ' . _T('public|spip|ecrire:par_auteur')) : '') . ' ')) : '') . ' </div> ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/visites',null,false):'') == 'oui')) ?' ' :''))))!=='' ? ($t1 . ( ' <!-- affichage des visites et de la popularité --> <aside class="visites"> <span class="visites-nbr">' . _T('escal:visites') . ' : <strong>' . interdire_scripts($Pile[$SP]['visites']) . '</strong></span> ' . interdire_scripts((include_spip('inc/config')?lire_config('escal/config/visites-inter','- ',false):'')) . ' <div class="visites-popularite"> ' . _T('public|spip|ecrire:popularite') . ' : ' . (($t2 = strval((ceil(min(100, 100 * $Pile[$SP]['popularite'] / max(1 , 0 + ($GLOBALS['meta']['popularite_max'] ?? 0)))))))!=='' ? (( '<div class="graph"> <strong class="bar" style="width: ' . (ceil(min(100, 100 * $Pile[$SP]['popularite'] / max(1 , 0 + ($GLOBALS['meta']['popularite_max'] ?? 0))))) . '%;">') . $t2 . '%</strong> </div>') : '') . ' </div> </aside> ')) : '') . ' <div class="nettoyeur"></div> </div> <!-- fin cadre-titre-article --> <div id="cadre-article"> <aside> <div id="outils-article"> <!-- affichage du bouton pour imprimer l\'article --> <div class="imprime-article outil"> <a href="#" onclick="javascript:window.print()" title="' . _T('escal:article_imprimer') . '"> <img src="' . find_in_path((string)'images/imprimer.svg') . '" alt="logo imprimer" /> </a> </div> <!-- affichage de l\'icone pdf si plugin article_pdf activé --> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("ARTICLE_PDF", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <div class="article-pdf outil"> ' . ((($recurs=(isset($Pile[0]['recurs'])?$Pile[0]['recurs']:0))>=5)? '' : recuperer_fond('modeles/article_pdf', array('id_article' => $Pile[$SP]['id_article'] , 'lang' => $GLOBALS["spip_lang"] , 'id_article'=>$Pile[$SP]['id_article'], 'id'=>$Pile[$SP]['id_article'], 'recurs'=>(++$recurs)), array('compil'=>array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_contexte',45,$GLOBALS['spip_lang']), 'trim'=>true), '')) . '</div> ')) : '') . ' <!-- affichage de l\'icone pdf si plugin spipdf activé --> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("SPIPDF", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <div class="spipdf outil"> <a href="' . interdire_scripts(parametre_url(parametre_url(parametre_url(generer_url_public('spipdf', ''),'spipdf','spipdf_article'),'id_article',$Pile[$SP]['id_article']),'nom_fichier',( 'article_' . $Pile[$SP]['id_article']))) . '"> <img src="' . find_in_path((string)'images/icone_pdf.svg') . '" alt="article au format PDF" title="Télécharger l\'article au format PDF" /> </a> </div> ')) : '') . ' <!-- affichage de l\'icone de licence si plugin licence activé --> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("LICENCE", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' ' . (!((($Pile[0]['id_licence'] ?? null) == '0')) ? (' ' . ( ' <div class="licence outil"> ' . interdire_scripts(filtrer('image_graver',filtrer('image_reduire',($Pile[0]['licence'] ?? null),'0','32'))) . ' </div> ')) : '') . ' ')) : '') . ' <!-- affichage des icones socialtags si plugin Socialtags activé --> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("SOCIALTAGS", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ' <div id="socialtags-article" class="outil"></div> ') : '') . ' <!-- affichage du bouton signalement si plugin activé --> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("SIGNALEMENT", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <div class="signalement outil"> </div> ')) : '') . ' </div> <!-- affichage des images pour diminuer ou augmenter la taille des caractères --> <div id="diminuer"> <a href="javascript:changestyle(-1)" title="' . _T('escal:taille_diminuer') . '"> <img src="' . find_in_path((string)'images/fontsizedown.svg') . '" alt="' . _T('escal:taille_diminuer') . '" /> </a> </div> <div id="augmenter"> <a href="javascript:changestyle(1)" title="' . _T('escal:taille_augmenter') . '"> <img src="' . find_in_path((string)'images/fontsizeup.svg') . '" alt="' . _T('escal:taille_augmenter') . '" /> </a> </div> <!-- affichage des traductions de l\'article --> <div id="traductions-article"> ' . (($t1 = BOUCLE_traductionshtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' <ul> <hr />' . _T('escal:traductions_article') . ' ') . $t1 . ' <hr /> </ul> ') : '') . ' </div> <div class="nettoyeur"></div> </aside> <div id="texte-article" class="surlignable"> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("NOTATION", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <div class="notation"> <span style="float:left;padding-right:5px;">Noter cet article : </span> </div> ')) : '') . ' ' . (($t1 = strval(interdire_scripts(propre($Pile[$SP]['chapo'], $connect, $Pile[0]))))!=='' ? (( '<div id="chapo" class="">') . $t1 . '</div>') : '') . ' <!--Affichage du texte de l\'article --> ' . (($t1 = BOUCLE_2colonneshtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? ($t1 . ' ') : (( ' ' . (($t2 = strval(interdire_scripts(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(filtrer('image_graver', filtrer('image_reduire',propre($Pile[$SP]['texte'], $connect, $Pile[0]),interdire_scripts((include_spip('inc/config')?lire_config('escal/config/largeurimage','400',false):'')),'0')),'<aide>','<div class="aide">'),'</aide>','</div>'),'<important>','<div class="important">'),'</important>','</div>'),'<avertissement>','<div class="avertissement">'),'</avertissement>','</div>'),'<info>','<div class="info-escal">'),'</info>','</div>'),'<centrer>','<div style="text-align:center">'),'</centrer>','</div>'),'\\[\\|','<div style="text-align:center">'),'\\|\\]','</div>'))))!=='' ? (( '<div class=""> ') . $t2 . ' </div>') : '') . ' '))) . ' <div class="nettoyeur"></div> ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("GIS", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <!-- affichage carte gis du lieu --> ' . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-gis') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',87,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'> ')) : '') . ' <!-- affichage des événements --> ' . vide($Pile['vars'][$_zzz=(string)'tableauprochainement'] = array()) . BOUCLE_prochainementselectionhtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . (($t1 = BOUCLE_selecthtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' <aside class="events-associes"> <hr /> ' . (($t3 = strval(((($Numrows['_select']['total'] ?? 0) == '1') ? ( '<strong>' . _T('escal:evenement_associe') . '</strong>'):( '<strong>' . _T('escal:evenements_associes') . '</strong>'))))!=='' ? ($t3 . ' ') : '') . ' <div class="container-choix"> ') . $t1 . ' </div><!--container-choix--> <hr /> </aside> ') : '') . ' </div><!-- Fin texte-article --> <!--Affichage du post-sciptum --> ' . (($t1 = strval(interdire_scripts(filtrer('image_graver',filtrer('image_reduire',propre($Pile[$SP]['ps'], $connect, $Pile[0]),interdire_scripts((include_spip('inc/config')?lire_config('escal/config/largeurimage','400',false):'')),'0')))))!=='' ? (( '<aside id="ps" class=""><strong>P.S. : </strong>') . $t1 . '</aside>') : '') . ' <!--Affichage des notes de bas de page --> ' . (($t1 = strval(interdire_scripts(calculer_notes())))!=='' ? (( '<aside id="notes">' . (($t2 = strval(interdire_scripts(((filtre_info_plugin_dist("bigfoot", "est_actif")) ?'' :' '))))!=='' ? ($t2 . ( '<strong>' . _T('public|spip|ecrire:info_notes') . '</strong>')) : '') . ' <br>') . $t1 . '</aside>') : '') . ' <!-- Ajout du site web associé s\'il existe --> ' . (($t1 = strval(interdire_scripts(typo(supprimer_numero(calculer_url($Pile[$SP]['url_site'],$Pile[$SP]['nom_site'], 'titre', $connect, false)), "TYPO", $connect, $Pile[0]))))!=='' ? (( '<aside id="site" class=""><br> <div class="url_site" > ' . _T('public|spip|ecrire:sur_web') . ' : <a href="' . calculer_url($Pile[$SP]['url_site'],'','url', $connect) . '" class="spip_out" ' . (($t2 = strval(attribut_html(couper(calculer_url($Pile[$SP]['url_site'],'','url', $connect),'80'))))!=='' ? (' title="' . $t2 . '"') : '') . '> ') . $t1 . ' </a> </div> </aside>') : '') . ' ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("qrcode", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' <span class="qrcode"> ' . ((($recurs=(isset($Pile[0]['recurs'])?$Pile[0]['recurs']:0))>=5)? '' : recuperer_fond('modeles/qrcode_impression', array('lang' => $GLOBALS["spip_lang"] , 'id_article'=>$Pile[$SP]['id_article'], 'id'=>$Pile[$SP]['id_article'], 'recurs'=>(++$recurs)), array('compil'=>array('plugins/auto/escal/inclusions/inc-article.html','html_10fa21bf55180d2d739a4ab9a37d67a4','_contexte',104,$GLOBALS['spip_lang']), 'trim'=>true), '')) . ' </span> ')) : '') . ' ' . (($t1 = strval(interdire_scripts(((filtre_info_plugin_dist("RECOMMANDER", "est_actif")) ?' ' :''))))!=='' ? ($t1 . ( ' ' . interdire_scripts(($Pile[0]['recommander'] ?? null) . '{#TITRE,#URL_ARTICLE,#INTRODUCTION}'))) : '') . ' </div><!-- Fin cadre-article--> </article> <br> <!-- affichage des blocs annonce --> ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/annonceart',null,false):'') == 'bas')) ?' ' :''))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-annonce') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',109,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/annoncedefilart',null,false):'') == 'bas')) ?' ' :''))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-annonce_defilant') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',110,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/portfolio',null,false):'') == 'non')) ?'' :' '))))!=='' ? ($t1 . ( ' ' . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-portfolio') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',113,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'> ')) : '') . ' <div class="nettoyeur"></div> <!-- Affichage des messages du forum associé à l\'article --> ' . (($t1 = strval(interdire_scripts(((($Pile[$SP]['accepter_forum'] == 'non')) ?'' :' '))))!=='' ? ($t1 . ( ' ' . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-forum_article') . ', array_merge('.var_export($Pile[0],1).',array(\'id_article\' => ' . argumenter_squelette($Pile[$SP]['id_article']) . ', \'self\' => ' . argumenter_squelette(self()) . ', \'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',118,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'> ')) : '') . ' '); lang_select(); } lang_select(); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_contexte @ plugins/auto/escal/inclusions/inc-article.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette plugins/auto/escal/inclusions/inc-article.html // Temps de compilation total: 27.244 ms // function html_10fa21bf55180d2d739a4ab9a37d67a4($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 = ( '<!-- affichage des blocs annonce --> ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/annonceart',null,false):'') == 'haut')) ?' ' :''))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-annonce') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',2,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' ' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('escal/config/annoncedefilart',null,false):'') == 'haut')) ?' ' :''))))!=='' ? ($t1 . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclusions/inc-annonce_defilant') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/escal/inclusions/inc-article.html\',\'html_10fa21bf55180d2d739a4ab9a37d67a4\',\'\',3,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'>') : '') . ' ' . BOUCLE_contextehtml_10fa21bf55180d2d739a4ab9a37d67a4($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); return analyse_resultat_skel('html_10fa21bf55180d2d739a4ab9a37d67a4', $Cache, $page, 'plugins/auto/escal/inclusions/inc-article.html'); }