| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_5e33dcafe7ff14b13750925dcf6cd259.php |
<?php
/*
* Squelette : plugins/auto/zpip/extra/article.html
* Date : Tue, 29 Mar 2011 12:00:04 GMT
* Compile : Sat, 20 Dec 2014 21:50:20 GMT
* Boucles : _articles_rubrique, _mots, _extra_article
*/
/* BOUCLE articles */
function BOUCLE_articles_rubriquehtml_5e33dcafe7ff14b13750925dcf6cd259(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'articles';
static $id = '_articles_rubrique';
static $from = array('articles' => 'spip_articles');
static $type = array();
static $groupby = array();
static $select = array("articles.date",
"articles.id_article",
"articles.id_rubrique",
"articles.titre",
"articles.lang");
static $orderby = array('articles.date DESC');
$where =
array(
array('=', 'articles.statut', '\'publie\''),
array('<', 'articles.date', sql_quote(quete_date_postdates())),
array('=', 'articles.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'],'','int')));
static $join = array();
static $limit = '0,10';
static $having =
array();
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/zpip/extra/article.html','html_5e33dcafe7ff14b13750925dcf6cd259','_articles_rubrique',3,$GLOBALS['spip_lang']));
if ($result) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
<li class="item"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'"' .
(calcul_exposer($Pile[$SP]['id_article'], 'id_article', $Pile[0], $Pile[$SP]['id_rubrique'], 'id_article', '') ?
(' class="' . 'on' . '"') :
'') .
'>' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</a></li>
');
}
lang_select();
@sql_free($result);
}
return $t0;
}
/* BOUCLE mots */
function BOUCLE_motshtml_5e33dcafe7ff14b13750925dcf6cd259(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'mots';
static $id = '_mots';
static $from = array('mots' => 'spip_mots','L1' => 'spip_mots_articles');
static $type = array();
static $groupby = array();
static $select = array("mots.titre",
"mots.id_mot");
static $orderby = array('mots.titre');
$where =
array(
array('=', 'L1.id_article', sql_quote($Pile[$SP]['id_article'])));
static $join = array('L1' => array('mots','id_mot'));
static $limit = '';
static $having =
array();
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/zpip/extra/article.html','html_5e33dcafe7ff14b13750925dcf6cd259','_mots',15,$GLOBALS['spip_lang']));
if ($result) {
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
$t0 .= (
'
<li class="item"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_mot'], 'mot', '', '', true))) .
'" rel="tag">' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</a></li>
');
}
@sql_free($result);
}
return $t0;
}
/* BOUCLE articles */
function BOUCLE_extra_articlehtml_5e33dcafe7ff14b13750925dcf6cd259(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'articles';
static $id = '_extra_article';
static $from = array('articles' => 'spip_articles');
static $type = array();
static $groupby = array();
static $select = array("articles.id_rubrique",
"articles.id_article",
"articles.lang",
"articles.titre");
static $orderby = array();
$where =
array(
array('=', 'articles.statut', '\'publie\''),
array('<', 'articles.date', sql_quote(quete_date_postdates())),
array('=', 'articles.id_article', sql_quote($Pile[0]['id_article'],'','int')));
static $join = array();
static $limit = '';
static $having =
array();
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/zpip/extra/article.html','html_5e33dcafe7ff14b13750925dcf6cd259','_extra_article',1,$GLOBALS['spip_lang']));
if ($result) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
' .
(($t1 = BOUCLE_articles_rubriquehtml_5e33dcafe7ff14b13750925dcf6cd259($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="liste articles">
<h2 class="h2"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
_T('public/spip/ecrire:meme_rubrique') .
'</a></h2>
<ul class="liste-items">
') . $t1 . '
</ul>
</div>
') :
'') .
'
' .
(($t1 = BOUCLE_motshtml_5e33dcafe7ff14b13750925dcf6cd259($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="liste mots">
<h2 class="h2">' .
_T('public/spip/ecrire:mots_clefs') .
'</h2>
<ul class="liste-items">
') . $t1 . '
</ul>
</div>
') :
'') .
'
');
}
lang_select();
@sql_free($result);
}
return $t0;
}
//
// Fonction principale du squelette plugins/auto/zpip/extra/article.html
// Temps de compilation total: 6.936 ms
//
function html_5e33dcafe7ff14b13750925dcf6cd259($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_extra_articlehtml_5e33dcafe7ff14b13750925dcf6cd259($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_5e33dcafe7ff14b13750925dcf6cd259', $Cache, $page, 'plugins/auto/zpip/extra/article.html');
}
?>