Your IP : 216.73.216.59


Current Path : /home/quelfutuu/www/lchg/tmp/cache/skel/
Upload File :
Current File : /home/quelfutuu/www/lchg/tmp/cache/skel/html_13ebecfb30cd6487db3a80adf99b7400.php

<?php

/*
 * Squelette : plugins/auto/menus/v3.1.0/inclure/menu.html
 * Date :      Fri, 05 Jul 2024 16:57:10 GMT
 * Compile :   Tue, 01 Sep 2026 20:39:18 GMT
 * Boucles :   _sous_menu, _entrees, _menu
 */ 

function BOUCLE_sous_menuhtml_13ebecfb30cd6487db3a80adf99b7400(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($si_init)) { $command['si'] = array(); $si_init = true; }
	$command['si'][] = retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'entree', null));

	if (!isset($command['table'])) {
		$command['table'] = 'menus';
		$command['id'] = '_sous_menu';
		$command['from'] = array('menus' => 'spip_menus');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("menus.id_menu",
		"menus.identifiant");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('=', 'menus.id_menus_entree', sql_quote($Pile[$SP]['id_menus_entree'], '','bigint NOT NULL DEFAULT \'0\'')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('plugins/auto/menus/v3.1.0/inclure/menu.html','html_13ebecfb30cd6487db3a80adf99b7400','_sous_menu',6,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
				' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/menu') . ', array_merge('.var_export($Pile[0],1).',array(\'id_menu\' => ' . argumenter_squelette($Pile[$SP]['id_menu']) . ',
	\'identifiant\' => ' . argumenter_squelette($Pile[$SP]['identifiant']) . ',
	\'depth\' => ' . argumenter_squelette(retablir_echappements_modeles(interdire_scripts(plus(entites_html(sinon(table_valeur($Pile[0]??[], (string)'depth', null), '0'),true),'1')))) . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins/auto/menus/v3.1.0/inclure/menu.html\',\'html_13ebecfb30cd6487db3a80adf99b7400\',\'\',7,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_sous_menu @ plugins/auto/menus/v3.1.0/inclure/menu.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


function BOUCLE_entreeshtml_13ebecfb30cd6487db3a80adf99b7400(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'menus_entrees';
		$command['id'] = '_entrees';
		$command['from'] = array('menus_entrees' => 'spip_menus_entrees');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("menus_entrees.id_menus_entree",
		"menus_entrees.rang",
		"menus_entrees.type_entree",
		"menus_entrees.parametres");
		$command['orderby'] = array('menus_entrees.rang');
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('=', 'menus_entrees.id_menu', sql_quote($Pile[$SP]['id_menu'], '','bigint NOT NULL DEFAULT \'0\'')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('plugins/auto/menus/v3.1.0/inclure/menu.html','html_13ebecfb30cd6487db3a80adf99b7400','_entrees',4,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'entree'] = '')) .
(($t1 = strval(retablir_echappements_modeles(((!$Pile[$SP]['id_menus_entree']) ? _T('zbug_champ_hors_motif', array('champ'=>'AFFICHER_ENTREE', 'motif'=>'MENUS_ENTREES')) : recuperer_fond(
		'menus/'.$Pile[$SP]['type_entree'],
		array_merge(is_array($params = unserialize($Pile[$SP]['parametres']))?$params:array(), array('appel_menu'=>true, 'env'=>$Pile[0]))
	)))))!=='' ?
		($t1 . retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'entree'] = ' '))) :
		'') .
BOUCLE_sous_menuhtml_13ebecfb30cd6487db3a80adf99b7400($Cache, $Pile, $doublons, $Numrows, $SP) .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
		($t1 . '
			On ferme le li si le type d\'entrée accepte des sous-menus
			et si on a bien quelque chose dans le li (cas des menus sur Balise SESSION)
		') :
		'') .
(($t1 = strval(retablir_echappements_modeles((((table_valeur($Pile["vars"]??[], (string)'entree', null)) AND ((interdire_scripts(((menus_type_refuser_sous_menu($Pile[$SP]['type_entree'])) ?'' :' '))))) ?' ' :''))))!=='' ?
		($t1 . '
		</li>') :
		'') .
'
		');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_entrees @ plugins/auto/menus/v3.1.0/inclure/menu.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


function BOUCLE_menuhtml_13ebecfb30cd6487db3a80adf99b7400(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (($Pile[0]['id_menu'] ?? null)))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	$in1 = array();
	if (!(is_array($a = (($Pile[0]['identifiant'] ?? null)))))
		$in1[]= $a;
	else $in1 = array_merge($in1, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'menus';
		$command['id'] = '_menu';
		$command['from'] = array('menus' => 'spip_menus');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("menus.id_menu",
		"menus.css");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array((!is_whereable(($Pile[0]['id_menu'] ?? null)) ? '' : ((is_array(($Pile[0]['id_menu'] ?? null))) ? sql_in('menus.id_menu', $in) : 
			array('=', 'menus.id_menu', sql_quote(($Pile[0]['id_menu'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')))), (!is_whereable(($Pile[0]['identifiant'] ?? null)) ? '' : ((is_array(($Pile[0]['identifiant'] ?? null))) ? sql_in('menus.identifiant', $in1) : 
			array('=', 'menus.identifiant', sql_quote(($Pile[0]['identifiant'] ?? null), '','varchar(255) NOT NULL DEFAULT \'\'')))));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('plugins/auto/menus/v3.1.0/inclure/menu.html','html_13ebecfb30cd6487db3a80adf99b7400','_menu',1,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
	' .
(($t1 = BOUCLE_entreeshtml_13ebecfb30cd6487db3a80adf99b7400($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
	<ul class="menu-liste menu-items' .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'class', null),true)))))!=='' ?
				(' ' . $t3) :
				'') .
		(($t3 = strval(retablir_echappements_modeles(((defined('_MENUS_EXTRA_CLASS')) ?' ' :''))))!=='' ?
				($t3 . retablir_echappements_modeles(constant('_MENUS_EXTRA_CLASS'))) :
				'') .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts($Pile[$SP]['css']))))!=='' ?
				(' ' . $t3) :
				'') .
		'"' .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'depth', null), '0'),true)))))!=='' ?
				(' data-depth="' . $t3 . '"') :
				'') .
		'>
		') . $t1 . '
	</ul>
	') :
		'') .
'
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_menu @ plugins/auto/menus/v3.1.0/inclure/menu.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette plugins/auto/menus/v3.1.0/inclure/menu.html
// Temps de compilation total: 0.977 ms
//

function html_13ebecfb30cd6487db3a80adf99b7400($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_menuhtml_13ebecfb30cd6487db3a80adf99b7400($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
retablir_echappements_modeles('<' . '?php header("X-Spip-Filtre: '.'trim' . '"); ?'.'>'));

	return analyse_resultat_skel('html_13ebecfb30cd6487db3a80adf99b7400', $Cache, $page, 'plugins/auto/menus/v3.1.0/inclure/menu.html');
}