File "html_c1123475be38f7c467aa5f519af1b41e.php"

Full Path: /home/spiraleeea/www/spirale/tmp/cache/skel/html_c1123475be38f7c467aa5f519af1b41e.php
File size: 3.76 KB
MIME-type: text/x-php
Charset: utf-8

<?php

/*
 * Squelette : squelettes/inclure/nav.html
 * Date :      Sat, 06 Dec 2025 01:05:25 GMT
 * Compile :   Wed, 26 Aug 2026 18:14:43 GMT
 * Boucles :   _nav
 */ 

function BOUCLE_navhtml_c1123475be38f7c467aa5f519af1b41e(&$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), 
			array('NOT', 
			array('=', 'rubriques.id_rubrique', "206")));
		$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_c1123475be38f7c467aa5f519af1b41e','_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' .
(($t1 = strval(retablir_echappements_modeles((calcul_exposer($Pile[$SP]['id_rubrique'], 'id_rubrique', $Pile[0], 0, 'id_rubrique', '') ? 'on' : ''))))!=='' ?
		(' ' . $t1) :
		'') .
(($t1 = strval(retablir_echappements_modeles((((($Numrows['_nav']['compteur_boucle'] ?? 0) == '1')) ?' ' :''))))!=='' ?
		(' ' . $t1 . 'first') :
		'') .
(($t1 = strval(retablir_echappements_modeles((((($Numrows['_nav']['compteur_boucle'] ?? 0) == (($Numrows['_nav']['total'] ?? 0)))) ?' ' :''))))!=='' ?
		(' ' . $t1 . 'last') :
		'') .
'"><a href="' .
retablir_echappements_modeles(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true)))) .
'">' .
retablir_echappements_modeles(interdire_scripts(titres_typographies_supprimer_liens(trim(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $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.257 ms
//

function html_c1123475be38f7c467aa5f519af1b41e($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_c1123475be38f7c467aa5f519af1b41e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
<nav class="nav clearfix' .
		(($t3 = strval(retablir_echappements_modeles((((($Numrows['_nav']['total'] ?? 0) == '1')) ?' ' :''))))!=='' ?
				(' ' . $t3 . 'none') :
				'') .
		'" id="nav" role="navigation">
	<ul>
		') . $t1 . '
	</ul>
</nav>
') :
		'');

	return analyse_resultat_skel('html_c1123475be38f7c467aa5f519af1b41e', $Cache, $page, 'squelettes/inclure/nav.html');
}