| Current Path : /home/etiennec/www/tmp/cache/skel/ |
| Current File : /home/etiennec/www/tmp/cache/skel/html_b21d9418985ff695ee2ab8050b6ad8a3.php |
<?php
/*
* Squelette : plugins/auto/zpip/inclure/article-resume.html
* Date : Sun, 27 Sep 2015 12:46:14 GMT
* Compile : Sun, 11 Oct 2015 08:11:33 GMT
* Boucles : _nb_commentaires, _articles
*/
function BOUCLE_nb_commentaireshtml_b21d9418985ff695ee2ab8050b6ad8a3(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'forum';
$command['id'] = '_nb_commentaires';
$command['from'] = array('forum' => 'spip_forum');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("count(*)");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('forum.statut','publie,prop','publie',''),
array('=', 'forum.id_objet', sql_quote($Pile[$SP]['id_article'],'','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'forum.objet', sql_quote('article')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/inclure/article-resume.html','html_b21d9418985ff695ee2ab8050b6ad8a3','_nb_commentaires',15,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_nb_commentaires']['total'] = @intval($iter->count());
$SP++;
// RESULTATS
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_nb_commentaires @ plugins/auto/zpip/inclure/article-resume.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_articleshtml_b21d9418985ff695ee2ab8050b6ad8a3(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (@$Pile[0]['statut']))))
$in[]= $a;
else $in = array_merge($in, $a);
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_articles';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.id_article",
"articles.id_rubrique",
"articles.titre",
"articles.chapo",
"articles.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'articles.id_article', sql_quote(@$Pile[0]['id_article'],'','bigint(21) NOT NULL AUTO_INCREMENT')), (!(is_array(@$Pile[0]['statut'])?count(@$Pile[0]['statut']):strlen(@$Pile[0]['statut'])) ? '' : ((is_array(@$Pile[0]['statut'])) ? sql_in('articles.statut',sql_quote($in)) :
array('=', 'articles.statut', sql_quote(@$Pile[0]['statut'],'','varchar(10) NOT NULL DEFAULT \'0\'')))));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/inclure/article-resume.html','html_b21d9418985ff695ee2ab8050b6ad8a3','_articles',8,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
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, $Pile[0])) .
'</a></h3>
' .
(($t1 = strval(interdire_scripts(propre($Pile[$SP]['chapo'], $connect, $Pile[0]))))!=='' ?
(( '<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_b21d9418985ff695ee2ab8050b6ad8a3($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();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_articles @ plugins/auto/zpip/inclure/article-resume.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette plugins/auto/zpip/inclure/article-resume.html
// Temps de compilation total: 72.916 ms
//
function html_b21d9418985ff695ee2ab8050b6ad8a3($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_b21d9418985ff695ee2ab8050b6ad8a3($Cache, $Pile, $doublons, $Numrows, $SP));
return analyse_resultat_skel('html_b21d9418985ff695ee2ab8050b6ad8a3', $Cache, $page, 'plugins/auto/zpip/inclure/article-resume.html');
}
?>