function boucle_ARTICLE($id_boucle, &$boucles) { $boucle = &$boucles[$id_boucle]; $id_table = $boucle->id_table; $boucle->select[] = "CONCAT(year(date), '-', quarter(date)) AS trimestre"; $boucle->from[$id_table] = "spip_article"; $mstatut = $id_table .'.statut'; // Restreindre aux elements publies if (!$boucle->modificateur['criteres']['statut']) { if (!$GLOBALS['var_preview']) { $boucle->where[]= array("'='", "'$mstatut'", "'\"publie\"'"); if ($GLOBALS['meta']["post_dates"] == 'non') $boucle->where[]= array("'<'", "'$id_table" . ".date'", "'NOW()'"); } else $boucle->where[]= array("'IN'", "'$mstatut'", "'(\"publie\",\"prop\")'"); } return calculer_boucle($id_boucle, $boucles); }