<?php echo start_sidebar_menu(); ?> <?php echo sidebar_menu_item('table', 'Overview', ':core/system', $action_name == 'index'); ?> <?php echo sidebar_menu_item('database', 'Database', ':core/system/database', $action_name == 'database'); echo end_sidebar_menu();
<?php echo start_sidebar_menu(array('title' => 'Editables')); ?> <? foreach (\zing\cms\admin\editables\Registry::instance() as $type => $editable) { ?> <?php echo sidebar_menu_item($editable['icon'], $editable['title'], admin_editable_url($type), $controller_name == $type); ?> <? } ?> <?php echo end_sidebar_menu();
?> </a></li> <? } ?> </ul> </div> <? if ($show_sidebar) { ?> <div id='sidebar'> <? if (false) { ?> <? $section = $admin_structure->section_for($section_path); ?> <? if (!empty($section['children'])) { ?> <? start_sidebar_menu(array('title' => $section['title'])) ?> <? foreach ($section['children'] as $child) { ?> <?php echo sidebar_menu_item($child['icon'], $child['title'], admin_url($child['url']), false); ?> <? } ?> <? end_sidebar_menu() ?> <? } ?> <? } ?> <?php echo $this->content_for('sidebar'); ?> </div> <? } ?> <div id='main'> <div id='context-bar'>