Re: Menu question
Thanks, but i want to automatically generate menu that i write in example...
Re: Menu question
It will still look like a link.
Re: Menu question
Do you need to create inactive links?
you have to modify the plugin menu and add a checkbox for inactive or something so
Re: Menu question
if ($anchor_active == '') {
echo ''.''.$item['name'].''.' ';
} else {
echo ''.$item['name'].' ';
}
0) {
foreach ($items as $item) {
$item['link'] = Html::toText($item['link']);
$item['name'] = Html::toText($item['name']);
$pos = strpos($item['link'], 'http://');
if ($pos === false) {
$link = Option::get('siteurl').$item['link'];
} else {
$link = $item['link'];
}
if (isset($uri[1])) {
$child_link = explode("/",$item['link']);
if (isset($child_link[1])) {
if (in_array($child_link[1], $uri)) {
$anchor_active = ' class="current" ';
$li_active = ' class="active"';
}
}
}
if (isset($uri[0]) && $uri[0] !== '') {
if (in_array($item['link'], $uri)) {
$anchor_active = ' class="current" ';
$li_active = ' class="active"';
}
} else {
if ($defpage == trim($item['link'])) {
$anchor_active = ' class="current" ';
$li_active = ' class="active"';
}
}
if (trim($item['target']) !== '') {
$target = ' target="'.$item['target'].'" ';
}
if ($anchor_active == '') {
echo ''.''.$item['name'].''.' ';
} else {
echo ''.$item['name'].' ';
}
$anchor_active = '';
$li_active = '';
$target = '';
}
}
Re: Menu question
Thank you very very much