Your IP : 216.73.216.249


Current Path : /home/etiennec/www/tmp/cache/skel/
Upload File :
Current File : /home/etiennec/www/tmp/cache/skel/html_0da691cd3472f9e7748492be203404e9.php

<?php

/*
 * Squelette : plugins/auto/menus_1/inclure/menu.html
 * Date :      Fri, 13 Jun 2014 08:00:26 GMT
 * Compile :   Sun, 06 Sep 2026 23:49:43 GMT
 * Boucles :   _sous_menu, _entrees, _menu
 */ 

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	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()+microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('plugins/auto/menus_1/inclure/menu.html','html_0da691cd3472f9e7748492be203404e9','_sous_menu',8,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
				' .
recuperer_fond( 'inclure/menu' , array_merge($Pile[0],array('id_menu' => $Pile[$SP]['id_menu'] ,
	'identifiant' => $Pile[$SP]['identifiant'] )), array('compil'=>array('plugins/auto/menus_1/inclure/menu.html','html_0da691cd3472f9e7748492be203404e9','_sous_menu',9,$GLOBALS['spip_lang'])), ''));
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_sous_menu @ plugins/auto/menus_1/inclure/menu.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


function BOUCLE_entreeshtml_0da691cd3472f9e7748492be203404e9(&$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()+microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('plugins/auto/menus_1/inclure/menu.html','html_0da691cd3472f9e7748492be203404e9','_entrees',4,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
vide($Pile['vars'][$_zzz=(string)'entree'] = '') .
(($t1 = strval(interdire_scripts((!$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(unserialize($Pile[$SP]['parametres']), array('appel_menu'=>true, 'env'=>$Pile[0]))
	))))!=='' ?
		($t1 . vide($Pile['vars'][$_zzz=(string)'entree'] = ' ')) :
		'') .
BOUCLE_sous_menuhtml_0da691cd3472f9e7748492be203404e9($Cache, $Pile, $doublons, $Numrows, $SP) .
'
		' .
(((table_valeur($Pile["vars"], (string)'entree', null)) AND (interdire_scripts(((menus_type_refuser_sous_menu($Pile[$SP]['type_entree'])) ?'' :' '))))  ?
		(' ' . '
			</li>
		') :
		'') .
'
		');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_entrees @ plugins/auto/menus_1/inclure/menu.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (@$Pile[0]['id_menu']))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	$in1 = array();
	if (!(is_array($a = (@$Pile[0]['identifiant']))))
		$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_array(@$Pile[0]['id_menu'])?count(@$Pile[0]['id_menu']):strlen(@$Pile[0]['id_menu'])) ? '' : ((is_array(@$Pile[0]['id_menu'])) ? sql_in('menus.id_menu',sql_quote($in)) : 
			array('=', 'menus.id_menu', sql_quote(@$Pile[0]['id_menu'],'','bigint NOT NULL AUTO_INCREMENT')))), (!(is_array(@$Pile[0]['identifiant'])?count(@$Pile[0]['identifiant']):strlen(@$Pile[0]['identifiant'])) ? '' : ((is_array(@$Pile[0]['identifiant'])) ? sql_in('menus.identifiant',sql_quote($in1)) : 
			array('=', 'menus.identifiant', sql_quote(@$Pile[0]['identifiant'],'','varchar(255) NOT NULL DEFAULT \'\'')))));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('plugins/auto/menus_1/inclure/menu.html','html_0da691cd3472f9e7748492be203404e9','_menu',2,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

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

//
// Fonction principale du squelette plugins/auto/menus_1/inclure/menu.html
// Temps de compilation total: 4.096 ms
//

function html_0da691cd3472f9e7748492be203404e9($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_0da691cd3472f9e7748492be203404e9($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');

	return analyse_resultat_skel('html_0da691cd3472f9e7748492be203404e9', $Cache, $page, 'plugins/auto/menus_1/inclure/menu.html');
}
?>