File "html_9bd8b59db9edebe16cbc67b95f70f11b.php"
Full path: /home/argothem/www/cache/skel/html_9bd8b59db9edebe16cbc67b95f70f11b.php
File size: 4.43 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : plugins-dist/medias/modeles/document_legende.html
* Date : Fri, 07 Jul 2023 11:03:28 GMT
* Compile : Sat, 24 Feb 2024 12:47:48 GMT
* Boucles : _legendaire
*/
function BOUCLE_legendairehtml_9bd8b59db9edebe16cbc67b95f70f11b(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
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");
$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(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(21) 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_9bd8b59db9edebe16cbc67b95f70f11b','_legendaire',3,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
(($t1 = strval(interdire_scripts(((((($a = ((($a = trim(sinon(table_valeur($Pile[0]??[], (string)'titre', null), interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $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(interdire_scripts(ptobr(propre(sinon(table_valeur($Pile[0]??[], (string)'titre', null), interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))))))!=='' ?
(( '<div class=\'spip_doc_titre ' .
interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'titre', null),true)) ?'' :' ')) .
'\'><strong>') . $t2 . '</strong></div>') :
'') .
'
' .
(($t2 = strval(interdire_scripts(PtoBR(propre(sinon(table_valeur($Pile[0]??[], (string)'descriptif', null), interdire_scripts(propre($Pile[$SP]['descriptif'], $connect, $Pile[0]))))))))!=='' ?
(( '<div class=\'spip_doc_descriptif ' .
interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'descriptif', null),true)) ?'' :' ')) .
'\'>') . $t2 . ( interdire_scripts(PtoBR(calculer_notes())) .
'</div>')) :
'') .
'
' .
(($t2 = strval(interdire_scripts(PtoBR(propre(sinon(table_valeur($Pile[0]??[], (string)'credits', null), interdire_scripts(typo($Pile[$SP]['credits'], "TYPO", $connect, $Pile[0]))))))))!=='' ?
(( '<div class=\'spip_doc_credits ' .
interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'credits', null),true)) ?'' :' ')) .
'\'>') . $t2 . '</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: 3.375 ms
//
function html_9bd8b59db9edebe16cbc67b95f70f11b($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 = BOUCLE_legendairehtml_9bd8b59db9edebe16cbc67b95f70f11b($Cache, $Pile, $doublons, $Numrows, $SP);
return analyse_resultat_skel('html_9bd8b59db9edebe16cbc67b95f70f11b', $Cache, $page, 'plugins-dist/medias/modeles/document_legende.html');
}