%s') @param string item Chaine de substitution pour un élément ('
  • %s
  • ') */ function linkList($category='

    %s

    ',$block='',$item='
  • %s
  • ') { global $con, $blog; if (($rs_link = $con->select( ' SELECT label, href, title, lang, rel FROM ' . $blog->t_link . ' ORDER BY position')) !== false) { $res = ''; while (!$rs_link->EOF()) { $label = $rs_link->f('label'); $href = $rs_link->f('href'); $title = $rs_link->f('title'); $lang = $rs_link->f('lang'); $rel = $rs_link->f('rel'); if (! $label && ! $href) { if ('' != $res) { printf($block,$res); } printf($category, $title); $res = ''; } else { $link = ''. htmlspecialchars($label). ''; $res .= sprintf($item,$link); } $rs_link->moveNext(); } if ('' != $res) { printf($block,$res); } } } } ?>