File "html_81153e2e611f507a51d6d72c2c93c769.php"
Full path: /home/argothem/www/cache/skel/html_81153e2e611f507a51d6d72c2c93c769.php
File size: 14.74 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : squelettes/inc-rss-item.html
* Date : Tue, 28 Jun 2022 09:29:44 GMT
* Compile : Sat, 24 Feb 2024 12:42:58 GMT
* Boucles : _mots_rss, _rubrique_mf, _mots_mf, _documents, _un_article
*/
function BOUCLE_mots_rsshtml_81153e2e611f507a51d6d72c2c93c769(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'mots';
$command['id'] = '_mots_rss';
$command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("mots.titre");
$command['orderby'] = array();
$command['join'] = array('L1' => array('mots','id_mot'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint(21) 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('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_mots_rss',14,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
(($t1 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))))!=='' ?
('<dc:subject>' . $t1 . '</dc:subject>') :
''));
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_mots_rss @ squelettes/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_rubrique_mfhtml_81153e2e611f507a51d6d72c2c93c769(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_rubrique_mf';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.titre",
"rubriques.id_rubrique",
"rubriques.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('=', 'rubriques.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'], '','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('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_rubrique_mf',23,$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 .= (
'-
' .
(($t1 = strval(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))))))))!=='' ?
(( '<a href="' .
url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true)))) .
'" rel="directory">') . $t1 . '</a>') :
'') .
'
');
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_rubrique_mf @ squelettes/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_mots_mfhtml_81153e2e611f507a51d6d72c2c93c769(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'mots';
$command['id'] = '_mots_mf';
$command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("mots.titre",
"mots.id_mot");
$command['orderby'] = array();
$command['join'] = array('L1' => array('mots','id_mot'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint(21) 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('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_mots_mf',26,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t1 = (
'
' .
(($t1 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))))!=='' ?
(( '<a href="' .
url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_mot'], 'mot', '', '', true)))) .
'" rel="tag">') . $t1 . '</a>') :
''));
$t0 .= ((strlen($t1) && strlen($t0)) ? ', ' : '') . $t1;
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_mots_mf @ squelettes/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_documentshtml_81153e2e611f507a51d6d72c2c93c769(&$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 = 'documents'])) { $doublons[$d] = ''; }
if (!isset($command['table'])) {
$command['table'] = 'documents';
$command['id'] = '_documents';
$command['from'] = array('documents' => 'spip_documents','L1' => 'spip_documents_liens','L2' => 'spip_types_documents');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("documents.id_document",
"documents.taille",
"L2.mime_type");
$command['orderby'] = array();
$command['join'] = array('L1' => array('documents','id_document'), 'L2' => array('documents','extension'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('documents.statut','publie,prop,prepa','publie',''),
array('IN', 'documents.mode', '(\'image\',\'document\')'),
array('(documents.taille > 0 OR documents.distant=\'oui\')'),
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'L1.objet', sql_quote('article')),
array('NOT',
array('=', 'documents.media', "'image'")),
array(sql_in('documents.id_document', $doublons[$doublons_index[]= ('documents')], 'NOT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_documents',50,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_document']; // doublons
$t0 .= (
(($t1 = strval(unique(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true)))))))!=='' ?
('
<enclosure url="' . $t1 . ( '"' .
(($t2 = strval(interdire_scripts($Pile[$SP]['taille'])))!=='' ?
(' length="' . $t2 . '"') :
'') .
(($t2 = strval(interdire_scripts($Pile[$SP]['mime_type'])))!=='' ?
(' type="' . $t2 . '"') :
'') .
' />')) :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_documents @ squelettes/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_un_articlehtml_81153e2e611f507a51d6d72c2c93c769(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_un_article';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.id_article",
"articles.id_rubrique",
"articles.lang",
"articles.titre",
"articles.date",
"articles.descriptif",
"articles.texte",
"articles.chapo",
"articles.url_site",
"articles.nom_site",
"articles.ps");
$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(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_un_article',1,$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 .= (
'
<item' .
(($t1 = strval(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])))!=='' ?
(' xml:lang="' . $t1 . '"') :
'') .
'>
<title>' .
interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))) .
'</title>
<link>' .
url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true)))) .
'</link>
' .
(($t1 = strval(texte_backend(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true)))))))!=='' ?
('<guid isPermaLink="true">' . $t1 . '</guid>') :
'') .
'
' .
(($t1 = strval(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date'])))))!=='' ?
('<dc:date>' . $t1 . '</dc:date>') :
'') .
'
<dc:format>text/html</dc:format>
' .
(($t1 = strval(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])))!=='' ?
('<dc:language>' . $t1 . '</dc:language>') :
'') .
'
' .
(($t1 = strval(texte_backend(supprimer_tags(recuperer_fond('modeles/lesauteurs', array('objet'=>'article','id_objet' => $Pile[$SP]['id_article'],'id_article' => $Pile[$SP]['id_article']), array('trim'=>true, 'compil'=>array('squelettes/inc-rss-item.html','html_81153e2e611f507a51d6d72c2c93c769','_un_article',7,$GLOBALS['spip_lang'])), '')))))!=='' ?
('<dc:creator>' . $t1 . '</dc:creator>') :
'') .
'
' .
BOUCLE_mots_rsshtml_81153e2e611f507a51d6d72c2c93c769($Cache, $Pile, $doublons, $Numrows, $SP) .
'
<description>' .
interdire_scripts(texte_backend(generer_objet_introduction((int)$Pile[$SP]['id_article'], 'articles', array('descriptif' => $Pile[$SP]['descriptif'],'texte' => $Pile[$SP]['texte'],'chapo' => $Pile[$SP]['chapo'],), '500', null, null, $connect))) .
'
' .
BOUCLE_rubrique_mfhtml_81153e2e611f507a51d6d72c2c93c769($Cache, $Pile, $doublons, $Numrows, $SP) .
(($t1 = BOUCLE_mots_mfhtml_81153e2e611f507a51d6d72c2c93c769($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
/ ' . $t1) :
'') .
'
</description>
' .
(($t1 = strval(interdire_scripts((((include_spip('inc/config')?lire_config('syndication_integrale',null,false):'') == 'oui') ? ' ':''))))!=='' ?
('
' . $t1 . ( '<content:encoded>' .
(($t2 = strval(texte_backend(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_article', 'ON', $Pile[$SP]['id_article'], ''), 'right', ''),'150','150')))))!=='' ?
($t2 . '
') :
'') .
(($t2 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['chapo'], $connect, $Pile[0]))))))!=='' ?
('<div class=\'rss_chapo\'>' . $t2 . '</div>
') :
'') .
(($t2 = strval(interdire_scripts(texte_backend(filtrer('image_graver', filtrer('image_reduire',traiter_doublons_documents($doublons, propre($Pile[$SP]['texte'], $connect, $Pile[0])),'500','0'))))))!=='' ?
('<div class=\'rss_texte\'>' . $t2 . '</div>
') :
'') .
(($t2 = strval(calculer_url($Pile[$SP]['url_site'],'','url', $connect)))!=='' ?
(( '<div class="hyperlien">' .
html2unicode(_T('public|spip|ecrire:voir_en_ligne')) .
' : <a href="') . $t2 . ( '" class="spip_out">' .
interdire_scripts(texte_backend(((($a = traiter_doublons_documents($doublons, typo(supprimer_numero(calculer_url($Pile[$SP]['url_site'],$Pile[$SP]['nom_site'], 'titre', $connect, false)), "TYPO", $connect, $Pile[0]))) OR (is_string($a) AND strlen($a))) ? $a : couper(calculer_url($Pile[$SP]['url_site'],'','url', $connect),'80')))) .
'</a></div>
')) :
'') .
(($t2 = strval(interdire_scripts(texte_backend(calculer_notes()))))!=='' ?
('<hr />
<div class=\'rss_notes\'>' . $t2 . '</div>
') :
'') .
(($t2 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['ps'], $connect, $Pile[0]))))))!=='' ?
('<div class=\'rss_ps\'>' . $t2 . '</div>') :
'') .
'
</content:encoded>
')) :
'') .
'
' .
BOUCLE_documentshtml_81153e2e611f507a51d6d72c2c93c769($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</item>
');
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_un_article @ squelettes/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette squelettes/inc-rss-item.html
// Temps de compilation total: 3.059 ms
//
function html_81153e2e611f507a51d6d72c2c93c769($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_un_articlehtml_81153e2e611f507a51d6d72c2c93c769($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_81153e2e611f507a51d6d72c2c93c769', $Cache, $page, 'squelettes/inc-rss-item.html');
}