File "html_29a05526ca5aabe2ebb7a77e8b484654.php"

Full path: /home/argothem/www/SpipFactory-fichiers_de_travail/sauvegarde-depannage-1.9a3.2/1.9/CACHE/skel/html_29a05526ca5aabe2ebb7a77e8b484654.php
File size: 3.99 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/*
 * Squelette : dist/modeles/article_traductions.html
 * Date :      Wed, 13 Sep 2006 15:34:36 GMT
 * Compile :   Sun, 08 Mar 2020 16:59:46 GMT (0.00s)
 * Boucles :   _traductions, _article
 */ 
//
// <BOUCLE articles>
//
function BOUCLE_traductionshtml_29a05526ca5aabe2ebb7a77e8b484654(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("articles.lang",
		"articles.id_article",
		"articles.titre"), # SELECT
		array('articles' => 'spip_articles'), # FROM
		
			array(
			array('AND', 
			array('>', 'articles.id_trad', 0), 
			array('OR', 
			array('=', 'articles.id_trad', spip_abstract_quote($Pile[$SP]['id_trad'])), 
			array('=', 'articles.id_article', spip_abstract_quote($Pile[$SP]['id_article'])))), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array('articles.lang'), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_traductions', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
	<li lang="' .
htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) .
'" xml:lang="' .
htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) .
'" dir="' .
lang_dir(($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']),'ltr','rtl') .
'"' .
((strval($t1 = (calcul_exposer($Pile[$SP]['id_article'], 'id_article', $Pile[0]) ? 'on' : ''))!='') ?
		(' class="' . $t1 . '"') :
		('')) .
'>
		&#91;' .
(calcul_exposer($Pile[$SP]['id_article'], 'id_article', $Pile[0]) ? '<span>' : ('<a href="' .
	htmlspecialchars(vider_url(generer_url_article($Pile[$SP]['id_article']))) .
	'" rel="alternate" hreflang="' .
	htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) .
	'"' .
	((strval($t2 = interdire_scripts(texte_backend(typo($Pile[$SP]['titre']))))!='') ?
			(' title="' . $t2 . '"') :
			('')) .
	'>')) .
traduire_nom_langue(htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])) .
(calcul_exposer($Pile[$SP]['id_article'], 'id_article', $Pile[0]) ? '</span>' : '</a>') .
'&#93;
	</li>
	');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE articles>
//
function BOUCLE_articlehtml_29a05526ca5aabe2ebb7a77e8b484654(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("articles.id_trad",
		"articles.id_article",
		"articles.lang"), # SELECT
		array('articles' => 'spip_articles'), # FROM
		
			array(
			array('=', 'articles.id_article', spip_abstract_quote($Pile[$SP]['id_article'])), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_article', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
' .
((strval($t1 = BOUCLE_traductionshtml_29a05526ca5aabe2ebb7a77e8b484654($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
		(('
<div class="traductions">
<p>' .
		_T('public/spip/ecrire:trad_article_traduction') .
		'</p>
<ul>
	') . $t1 . '
</ul>
</div>
') :
		('')) .
'
');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}



//
// Fonction principale du squelette dist/modeles/article_traductions.html
//
function html_29a05526ca5aabe2ebb7a77e8b484654($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
	$page = BOUCLE_articlehtml_29a05526ca5aabe2ebb7a77e8b484654($Cache, $Pile, $doublons, $Numrows, $SP);

	return analyse_resultat_skel('html_29a05526ca5aabe2ebb7a77e8b484654', $Cache, $page);
}

?>