Skip to content

Commit

Permalink
use file-based navigation in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
d1rk committed Jul 16, 2014
1 parent 9b70cad commit 8f2ba27
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions views/elements/radium/sidebar.html.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<aside class="sidebar">
<?php
$nav = $this->Navigation->group('sidebar');
if (empty($nav)) {
$nav = $this->Navigation->render(array(
array('name' => 'Contents', 'icon' => 'file-text'),
array('name' => 'Configurations', 'icon' => 'cogs'),
));
}
echo $nav;
?>
<?= $this->Navigation->group('sidebar'); ?>
</aside>

0 comments on commit 8f2ba27

Please sign in to comment.