Re: frontend theme with ACP menu? |
Subject: Re: frontend theme with ACP menu? by Will on 2012/2/28 13:31:54 Here ya go - css and js are on you to integrate.
<?php // Do not include php tags in block!
global $icmsConfig;
$file = file_get_contents(ICMS_CACHE_PATH . "/adminmenu_" . $icmsConfig ['language'] . ".php");
$admin_menu = eval('return ' . $file . ';');
echo '<div id="adminMenu" class="clearfix"><ul>';
foreach($admin_menu as $parent) {
echo '<li><a href="' . $parent['link'] . '" title="' . $parent['text'] . '">' . $parent['text'] . '</a>';
if($parent['menu']) {
echo '<div class="secondary"><ul>';
foreach($parent['menu'] as $secondary) {
echo '<li><a href="' . $secondary['link'] . '" title="' . $secondary['title'] . '">' . $secondary['title'] . '</a>';
if($secondary['subs']) {
echo '<div class="tertiary"><ul>';
foreach($secondary['subs'] as $tertiary) {
echo '<li><a href="' . $tertiary['link'] . '" title="' . $tertiary['title'] . '">' . $tertiary['title'] . '</a></li>';
}
echo '</ul></div>';
}
echo '</li>';
}
echo '</ul></div>';
}
echo '</li>';
}
echo '</ul></div>';
// Do not include php tags in block!
?>
|