2012/2/27 7:11:50
|
---|
![]() |
Re: frontend theme with ACP menu?I had it working on the old mrtheme site.
I created a php block and included the cache file. Which is just a big array - a little php formed it into a nice menu, then used css to position it and style it. I don't have that code anymore - but it should be relatively straight forward to recreate it. Would be a nice default ICMS block. |
2012/2/28 13:31:54
|
---|
![]() |
Re: frontend theme with ACP menu?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!
?>
|