Hola Carlos, hi GetSimplers.
I'm so glad to see that NewsManager - my favorite plugin - is growing up day by day... so here's my humble contribution: A pull-down menu with all the categories, just like WordPress. Enjoy.
I'm so glad to see that NewsManager - my favorite plugin - is growing up day by day... so here's my humble contribution: A pull-down menu with all the categories, just like WordPress. Enjoy.
PHP Code:
function nm_select_tags() {
echo '<form action="" method="post">';
echo '<select name="nmTAG" onchange="window.location.href= this.form.nmTAG.options[this.form.nmTAG.selectedIndex].value">';
echo '<option value="">Make a choice...</option>';
$tags = array();
foreach (nm_get_tags() as $tag=>$posts)
if (substr($tag, 0, 1) != '_')
$tags[$tag] = count($posts);
foreach ($tags as $tag=>$count) {
$url = nm_get_url('tag') . $tag;
$spaces = array('-','.');
echo '<option value="'.$url.'">'.str_replace($spaces," ",$tag).'</option>';
}
echo '</select></form>';
}
My website made with GetSimple CMS is
Arte & Società
www.artesocieta.eu
An indipendent website about Italian Contemporary Visual Arts
Arte & Società
www.artesocieta.eu
An indipendent website about Italian Contemporary Visual Arts