|
Syntax for: PHP_CSL_6 . Menu |
<?
if(isset($_GET['cat_select'])) {
$show_sub = $_GET['cat_select'];
}
$all_cats = cats_get();
foreach($all_cats as $cat) {
if(strlen($cat) >1) {
echo '<a href=index.php?cat_select='.$cat.'><img src='.$snippet_theme.'/img/cats.gif alt= border=0> '.$cat.'</a></br>';
echo '<img src='.$snippet_theme.'/img/line.gif width=180 height=1></br>';
if (isset($show_sub) && $show_sub == $cat) {
// show sub menu
$ob = new SNIPS;
$ob->snips_list_set($cat);
$array = $ob->snips_list_get();
if(is_array($array)) {
foreach($array as $ar) {
echo ' <img src='.$snippet_theme.'/img/link.gif alt= > ';
echo '<a class=thin href=index.php?cat_select='.$cat.'&show='.$ar.'>'.$ar.'</a><br>';
echo '<img src='.$snippet_theme.'/img/line2.gif height=1><br>';
}
}
}
}
}
?>
|
Description for: PHP_CSL_6 . Menu |
Available Snippets (Menu) Code.
|
|
|