Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
Vlkn
/
tmp
/
cache
/
skel
:
html_dddb4d8dd92fe985c044a65fee7b6554.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* * Squelette : squelettes/inc-rss-item.html * Date : Sat, 06 Dec 2025 01:05:25 GMT * Compile : Wed, 26 Aug 2026 18:14:41 GMT * Boucles : _mots_rss, _rubrique_mf, _mots_mf, _documents, _un_article */ function BOUCLE_mots_rsshtml_dddb4d8dd92fe985c044a65fee7b6554(&$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 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_dddb4d8dd92fe985c044a65fee7b6554','_mots_rss',14,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . (($t1 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $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_dddb4d8dd92fe985c044a65fee7b6554(&$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 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_dddb4d8dd92fe985c044a65fee7b6554','_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(retablir_echappements_modeles(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0])))))))))))!=='' ? (( '<a href="' . retablir_echappements_modeles(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_dddb4d8dd92fe985c044a65fee7b6554(&$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 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_dddb4d8dd92fe985c044a65fee7b6554','_mots_mf',26,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t1 = ( ' ' . (($t1 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0]))))))))))!=='' ? (( '<a href="' . retablir_echappements_modeles(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_dddb4d8dd92fe985c044a65fee7b6554(&$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'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("documents.id_document", "documents.taille", "documents.extension"); $command['orderby'] = array(); $command['join'] = array('L1' => array('documents','id_document')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('documents.statut','publie,prop,prepa','publie',''), quete_condition_postdates('documents.date_publication',''), 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 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_dddb4d8dd92fe985c044a65fee7b6554','_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(retablir_echappements_modeles(unique(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))))))))!=='' ? (' <enclosure url="' . $t1 . ( '"' . (($t2 = strval(retablir_echappements_modeles(interdire_scripts($Pile[$SP]['taille']))))!=='' ? (' length="' . $t2 . '"') : '') . (($t2 = strval(retablir_echappements_modeles(interdire_scripts(medias_mime_type_document($Pile[$SP]['id_document'], $Pile[$SP]['extension'])))))!=='' ? (' 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_dddb4d8dd92fe985c044a65fee7b6554(&$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',''), quete_condition_postdates('articles.date',''), 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('squelettes/inc-rss-item.html','html_dddb4d8dd92fe985c044a65fee7b6554','_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(retablir_echappements_modeles(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))))!=='' ? (' xml:lang="' . $t1 . '"') : '') . '> <title>' . retablir_echappements_modeles(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0]))))))))) . '</title> <link>' . retablir_echappements_modeles(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true))))) . '</link> ' . (($t1 = strval(retablir_echappements_modeles(texte_backend(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true))))))))!=='' ? ('<guid isPermaLink="true">' . $t1 . '</guid>') : '') . ' ' . (($t1 = strval(retablir_echappements_modeles(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date']))))))!=='' ? ('<dc:date>' . $t1 . '</dc:date>') : '') . ' <dc:format>text/html</dc:format> ' . (($t1 = strval(retablir_echappements_modeles(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))))!=='' ? ('<dc:language>' . $t1 . '</dc:language>') : '') . ' ' . (($t1 = strval(retablir_echappements_modeles(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_dddb4d8dd92fe985c044a65fee7b6554','_un_article',7,$GLOBALS['spip_lang'])), ''))))))!=='' ? ('<dc:creator>' . $t1 . '</dc:creator>') : '') . ' ' . (($t1 = strval(retablir_echappements_modeles('')))!=='' ? ($t1 . ' Le bloc qui suit diffuse les mots-cles a la mode RSS ') : '') . BOUCLE_mots_rsshtml_dddb4d8dd92fe985c044a65fee7b6554($Cache, $Pile, $doublons, $Numrows, $SP) . ' <description>' . retablir_echappements_modeles(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)))) . ' ' . (($t1 = strval(retablir_echappements_modeles('')))!=='' ? ($t1 . ' Le bloc qui suit diffuse la rubrique et les mots-cles sous forme de "microformats" ') : '') . BOUCLE_rubrique_mfhtml_dddb4d8dd92fe985c044a65fee7b6554($Cache, $Pile, $doublons, $Numrows, $SP) . (($t1 = BOUCLE_mots_mfhtml_dddb4d8dd92fe985c044a65fee7b6554($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (' / ' . $t1) : '') . ' </description> ' . (($t1 = strval(retablir_echappements_modeles('')))!=='' ? ($t1 . ' Le bloc qui suit diffuse aussi le texte integral de l\'article, ce qui permet une syndication plus riche (mais plus "lourde"). Fonction desactivable depuis les reglages du site. ') : '') . (($t1 = strval(retablir_echappements_modeles(interdire_scripts((((include_spip('inc/config')?lire_config('syndication_integrale',null,false):'') == 'oui') ? ' ':'')))))!=='' ? (' ' . $t1 . ( '<content:encoded>' . (($t2 = strval(retablir_echappements_modeles(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(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['chapo'], $connect, $Pile[0])))))))!=='' ? ('<div class=\'rss_chapo\'>' . $t2 . '</div> ') : '') . (($t2 = strval(retablir_echappements_modeles(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(retablir_echappements_modeles(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">' . retablir_echappements_modeles(interdire_scripts(texte_backend(((($a = traiter_doublons_documents($doublons, titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero(supprimer_numero(calculer_url($Pile[$SP]['url_site'],$Pile[$SP]['nom_site'], 'titre', $connect, false))), $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(retablir_echappements_modeles(interdire_scripts(texte_backend(calculer_notes())))))!=='' ? ('<hr /> <div class=\'rss_notes\'>' . $t2 . '</div> ') : '') . (($t2 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['ps'], $connect, $Pile[0])))))))!=='' ? ('<div class=\'rss_ps\'>' . $t2 . '</div>') : '') . ' </content:encoded> ')) : '') . ' ' . (($t1 = strval(retablir_echappements_modeles('')))!=='' ? ($t1 . ' Le bloc qui suit diffuse l\'adresse des documents associes aux articles ; ajouter par ex. {extension=mp3} pour limiter a un certain type de document. ') : '') . ' ' . BOUCLE_documentshtml_dddb4d8dd92fe985c044a65fee7b6554($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: 13.946 ms // function html_dddb4d8dd92fe985c044a65fee7b6554($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_dddb4d8dd92fe985c044a65fee7b6554($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); return analyse_resultat_skel('html_dddb4d8dd92fe985c044a65fee7b6554', $Cache, $page, 'squelettes/inc-rss-item.html'); }