| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_222c5b6ae26906612e2158dea34ced30.php |
<?php
/*
* Squelette : plugins/auto/zpip/inclure/article-resume.html
* Date : Sat, 23 Apr 2011 08:04:39 GMT
* Compile : Sat, 20 Dec 2014 21:09:57 GMT
* Boucles : _nb_commentaires, _articles
*/
/* BOUCLE forums */
function BOUCLE_nb_commentaireshtml_222c5b6ae26906612e2158dea34ced30(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'forum';
static $id = '_nb_commentaires';
static $from = array('forum' => 'spip_forum');
static $type = array();
static $groupby = array();
$select = array("count(*)");
static $orderby = array();
$where =
array(
array('=', 'forum.statut', '\'publie\''),
array('=', 'forum.id_article', sql_quote($Pile[$SP]['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/inclure/article-resume.html','html_222c5b6ae26906612e2158dea34ced30','_nb_commentaires',15,$GLOBALS['spip_lang']));
if ($result) {
$Numrows['_nb_commentaires']['total'] = @intval(array_shift(sql_fetch($result)));
$SP++;
// RESULTATS
@sql_free($result);
}
return $t0;
}
/* BOUCLE articles */
function BOUCLE_articleshtml_222c5b6ae26906612e2158dea34ced30(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
$in = array();
if (!(is_array($a = ($Pile[0]['statut']))))
$in[]= $a;
else $in = array_merge($in, $a);
static $table = 'articles';
static $id = '_articles';
static $from = array('articles' => 'spip_articles');
static $type = array();
static $groupby = array();
static $select = array("articles.id_article",
"articles.id_rubrique",
"articles.titre",
"articles.chapo",
"articles.lang");
static $orderby = array();
$where =
array(
array('=', 'articles.id_article', sql_quote($Pile[0]['id_article'],'','int')), (!$Pile[0]['statut'] ? '' : ((is_array($Pile[0]['statut'])) ? sql_in('articles.statut',sql_quote($in)) :
array('=', 'articles.statut', sql_quote($Pile[0]['statut'])))));
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/inclure/article-resume.html','html_222c5b6ae26906612e2158dea34ced30','_articles',8,$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 hentry">
<h3 class="h3 entry-title"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'" rel="bookmark"><!-- ' .
filtrer('image_graver',filtrer('image_reduire',
((!is_array($l = quete_logo('id_article', 'ON', $Pile[$SP]['id_article'],$Pile[$SP]['id_rubrique'], 0))) ? '':
("<img class=\"spip_logos\" alt=\"\" src=\"$l[0]\"" . $l[2] . ($l[1] ? " onmouseover=\"this.src='$l[1]'\" onmouseout=\"this.src='$l[0]'\"" : "") . ' />')),'50','50')) .
' -->' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</a></h3>
' .
(($t1 = strval(interdire_scripts(propre(nettoyer_chapo($Pile[$SP]['chapo']), $connect))))!=='' ?
(( '<div class="introduction entry-content">') . $t1 . '</div>') :
'') .
'
<div class="meta-publi">
<a class="lire-la-suite" href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'">' .
_T('zpip:lire_la_suite') .
'</a>
' .
BOUCLE_nb_commentaireshtml_222c5b6ae26906612e2158dea34ced30($Cache, $Pile, $doublons, $Numrows, $SP)
. ( ' ' .
(($Numrows['_nb_commentaires']['total']) ?
(' ' . ( '
<span class="sep">|</span>
<a' .
(($t3 = strval(ancre_url(vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))),'forum')))!=='' ?
(' href="' . $t3 . '"') :
'') .
' class="nb_commentaires">' .
$Numrows['_nb_commentaires']['total'] .
' ' .
(($Numrows['_nb_commentaires']['total'] == '1') ? _T('zpip:commentaire'):_T('zpip:commentaires')) .
'</a>
')) :
'') .
'
') .
'
</div>
</li>
');
}
lang_select();
@sql_free($result);
}
return $t0;
}
//
// Fonction principale du squelette plugins/auto/zpip/inclure/article-resume.html
// Temps de compilation total: 18.130 ms
//
function html_222c5b6ae26906612e2158dea34ced30($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_articleshtml_222c5b6ae26906612e2158dea34ced30($Cache, $Pile, $doublons, $Numrows, $SP));
return analyse_resultat_skel('html_222c5b6ae26906612e2158dea34ced30', $Cache, $page, 'plugins/auto/zpip/inclure/article-resume.html');
}
?>