47,6 → 47,7 |
'(url="[^"]*")|'. |
'(titre="[^"]*")|'. |
'(nb="?\d+"?)|'. |
'(nbmax="?\d+"?)|'. |
'(nouvellefenetre="?(?:0|1)"?)|'. |
'(formatdate="[^"]*")|'. |
'(formatdatepro="[^"]*")|'. |
111,6 → 112,9 |
if (!isset($options['nb'])) { |
$options['nb'] = SYND_NOMBRE; |
} |
if (!isset($options['nbmax'])) { |
$options['nbmax'] = SYND_NOMBRE_MAX; |
} |
if (!isset($options['nouvellefenetre'])) { |
$options['nouvellefenetre'] = SYND_OUVRIR_LIEN_RSS_NOUVELLE_FENETRE; |
} |
259,8 → 263,10 |
} |
} |
// Trie des pages par date |
//var_dump($GLOBALS['_SYNDICATION_']['pages']); |
krsort($GLOBALS['_SYNDICATION_']['pages']); |
|
$GLOBALS['_SYNDICATION_']['sites'] = array_slice($GLOBALS['_SYNDICATION_']['sites'],0,$options['nbmax'],true) ; |
$GLOBALS['_SYNDICATION_']['pages'] = array_slice($GLOBALS['_SYNDICATION_']['pages'],0,$options['nbmax'],true) ; |
|
//+----------------------------------------------------------------------------------------------------------------+ |
// Extrait les variables et les ajoutes a l'espace de noms local |