Example #1
0
<?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();
Example #2
0
					</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'>
						<?php 
echo $this->content_for('context');
?>