File "html_79d6593326529438066e04aa22b993cd.php"
Full Path: /home/spiraleeea/www/spirale/tmp/cache/skel/html_79d6593326529438066e04aa22b993cd.php
File size: 6.24 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : plugins-dist/medias/modeles/document_legende.html
* Date : Tue, 01 Sep 2026 12:25:32 GMT
* Compile : Tue, 01 Sep 2026 13:13:15 GMT
* Boucles : _legendaire
*/
function BOUCLE_legendairehtml_79d6593326529438066e04aa22b993cd(&$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'][] = retablir_echappements_modeles(((filtre_find(table_valeur($Pile["vars"]??[], (string)'masquer', null),'legende')) ?'' :' '));
if (!isset($command['table'])) {
$command['table'] = 'documents';
$command['id'] = '_legendaire';
$command['from'] = array('documents' => 'spip_documents');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("documents.titre",
"documents.descriptif",
"documents.credits",
"documents.id_document");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('(documents.taille > 0 OR documents.distant=\'oui\')'),
array('=', 'documents.id_document', sql_quote(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'id', null), (interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_document', null),true)))),true))), '', '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-dist/medias/modeles/document_legende.html','html_79d6593326529438066e04aa22b993cd','_legendaire',4,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((((($a = ((($a = trim(sinon(table_valeur($Pile[0]??[], (string)'titre', null), (interdire_scripts(titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0]))))))))) OR (is_string($a) AND strlen($a))) ? $a : (interdire_scripts(trim(sinon(table_valeur($Pile[0]??[], (string)'descriptif', null), (interdire_scripts(propre($Pile[$SP]['descriptif'], $connect, $Pile[0]))))))))) OR (is_string($a) AND strlen($a))) ? $a : (interdire_scripts(trim(sinon(table_valeur($Pile[0]??[], (string)'credits', null), (interdire_scripts(typo($Pile[$SP]['credits'], "TYPO", $connect, $Pile[0]))))))))) ?' ' :'')))))!=='' ?
($t1 . ( '
<figcaption class=\'spip_doc_legende\'>
' .
(($t2 = strval(retablir_echappements_modeles(((filtre_find(table_valeur($Pile["vars"]??[], (string)'masquer', null),'titre')) ?'' :' '))))!=='' ?
($t2 . (($t3 = strval(retablir_echappements_modeles(interdire_scripts(ptobr(filtre_propre_dist($Pile,sinon(table_valeur($Pile[0]??[], (string)'titre', null), (interdire_scripts(supprimer_numero($Pile[$SP]['titre']))))))))))!=='' ?
(( '<div class=\'spip_doc_titre ' .
(($t4 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'titre', null),true)) ?'' :' ')))))!=='' ?
($t4 . retablir_echappements_modeles(classe_boucle_crayon('documents','titre',$Pile[$SP]['id_document']).' ')) :
'') .
'\'><strong>') . $t3 . '</strong></div>') :
'')) :
'') .
'
' .
(($t2 = strval(retablir_echappements_modeles(((filtre_find(table_valeur($Pile["vars"]??[], (string)'masquer', null),'descriptif')) ?'' :' '))))!=='' ?
($t2 . (($t3 = strval(retablir_echappements_modeles(interdire_scripts(PtoBR(filtre_propre_dist($Pile,sinon(table_valeur($Pile[0]??[], (string)'descriptif', null), (interdire_scripts($Pile[$SP]['descriptif'])))))))))!=='' ?
(( '<div class=\'spip_doc_descriptif ' .
(($t4 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'descriptif', null),true)) ?'' :' ')))))!=='' ?
($t4 . retablir_echappements_modeles(classe_boucle_crayon('documents','descriptif',$Pile[$SP]['id_document']).' ')) :
'') .
'\'>') . $t3 . ( retablir_echappements_modeles(interdire_scripts(PtoBR(calculer_notes()))) .
'</div>')) :
'')) :
'') .
'
' .
(($t2 = strval(retablir_echappements_modeles(((filtre_find(table_valeur($Pile["vars"]??[], (string)'masquer', null),'credits')) ?'' :' '))))!=='' ?
($t2 . (($t3 = strval(retablir_echappements_modeles(interdire_scripts(PtoBR(filtre_propre_dist($Pile,sinon(table_valeur($Pile[0]??[], (string)'credits', null), (interdire_scripts($Pile[$SP]['credits'])))))))))!=='' ?
(( '<div class=\'spip_doc_credits ' .
(($t4 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'credits', null),true)) ?'' :' ')))))!=='' ?
($t4 . retablir_echappements_modeles(classe_boucle_crayon('documents','credits',$Pile[$SP]['id_document']).' ')) :
'') .
'\'>') . $t3 . '</div>') :
'')) :
'') .
'
</figcaption>
')) :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_legendaire @ plugins-dist/medias/modeles/document_legende.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette plugins-dist/medias/modeles/document_legende.html
// Temps de compilation total: 0.496 ms
//
function html_79d6593326529438066e04aa22b993cd($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 = (
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Legende pour les documents
') :
'') .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'masquer'] = (array_map('trim',(interdire_scripts(filtre_explode_dist(entites_html(table_valeur($Pile[0]??[], (string)'masquer', null),true),','))))))) .
BOUCLE_legendairehtml_79d6593326529438066e04aa22b993cd($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_79d6593326529438066e04aa22b993cd', $Cache, $page, 'plugins-dist/medias/modeles/document_legende.html');
}