File "html_4bf73dc4255f7ff7f41cf221c12bd273.php"
Full path: /home/argothem/www/cache/skel/html_4bf73dc4255f7ff7f41cf221c12bd273.php
File size: 4.34 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : squelettes/inclure/nav.html
* Date : Sun, 10 Sep 2023 16:00:18 GMT
* Compile : Mon, 26 Feb 2024 11:27:43 GMT
* Boucles : _nav
*/
function BOUCLE_navhtml_4bf73dc4255f7ff7f41cf221c12bd273(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_nav';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("0+rubriques.titre AS num",
"CASE ( 0+rubriques.titre ) WHEN 0 THEN 1 ELSE 0 END AS sinum",
"rubriques.titre",
"rubriques.id_rubrique",
"rubriques.lang");
$command['orderby'] = array('sinum, num', 'rubriques.titre');
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('=', 'rubriques.id_parent', 0));
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('squelettes/inclure/nav.html','html_4bf73dc4255f7ff7f41cf221c12bd273','_nav',4,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
// COMPTEUR
$Numrows['_nav']['compteur_boucle'] = 0;
$Numrows['_nav']['command'] = $command;
$Numrows['_nav']['total'] = @intval($iter->count());
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$Numrows['_nav']['compteur_boucle']++;
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
<li class="nav-item' .
(calcul_exposer($Pile[$SP]['id_rubrique'], 'id_rubrique', $Pile[0], 0, 'id_rubrique', '') ?
(' ' . 'on') :
'') .
(((($Numrows['_nav']['compteur_boucle'] ?? 0) == '1')) ?
(' ' . ' ' . 'first') :
'') .
(((($Numrows['_nav']['compteur_boucle'] ?? 0) == ($Numrows['_nav']['total'] ?? 0))) ?
(' ' . ' ' . 'last') :
'') .
'"><a href="' .
vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))) .
'</a></li>
');
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_nav @ squelettes/inclure/nav.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette squelettes/inclure/nav.html
// Temps de compilation total: 0.546 ms
//
function html_4bf73dc4255f7ff7f41cf221c12bd273($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 = BOUCLE_navhtml_4bf73dc4255f7ff7f41cf221c12bd273($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<nav class="nav clearfix' .
(((($Numrows['_nav']['total'] ?? 0) == '1')) ?
(' ' . ' ' . 'none') :
'') .
'" id="nav" role="navigation">
<ul>
<font size="1">') . $t1 . '</font>
</ul>
</nav>
') :
'') .
' <center>
<font color="#E40A03"><u>TRADUIRE CETTE PAGE:</u></font>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: \'fr\',
layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT,
target: \'google_translate_element\'
}, \'google_translate_element\');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<div id="google_translate_element"></div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9254779937919142"
crossorigin="anonymous"></script>
<!-- projet-bba_sidebar-right-1_AdSense1_970x250_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:970px;height:250px"
data-ad-client="ca-pub-9254779937919142"
data-ad-slot="1281581751"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></center>
');
return analyse_resultat_skel('html_4bf73dc4255f7ff7f41cf221c12bd273', $Cache, $page, 'squelettes/inclure/nav.html');
}