* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ include_once(override('../tag/' . SQL . '.inc.php')); /** * DisplayListNews() * Affichage de la liste des news publique * * @param $statut * @param $filter * @param $id_filter * @param $debut * @return void echo content */ if(!function_exists('getNewsByTag')) { function getNewsByTag($tag_id, $limit, $title = false, $display_empty = false) { $data = $GLOBALS['sql_object']->DBSelect(SQL_getNewsByTag($tag_id)); if($title === false) { $title = mb_ucfirst(_t('tag', 'in_news')). ' : '; } else { $title = mb_ucfirst($title); } $content = '

'.$title.'

' . PHP_EOL; if ($data != 0) { $cnt = 0; $content .= ''.PHP_EOL; } else { if($display_empty == false) return ''; $content .= '

' . _t('divers','nodata') . '

'; } return $content; } } ?>