2016-01-23 13:09:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// First retrieve the pageList
|
|
|
|
$pageList = $vars['pageList'];
|
|
|
|
|
|
|
|
// The cycle through all and print the sidebar links
|
2016-05-07 17:22:09 +00:00
|
|
|
foreach ($pageList->getPages() as $page) {
|
|
|
|
echo "<li name='sidebar:".$page->getIdentifier().'/'.$page->getPagePath()."'><a href='".$vars['adminURL'].$page->getIdentifier().'/'.$page->getPagePath()."'>
|
|
|
|
<i class='".($page->getIcon() == '' ? '' : 'fa '.$page->getIcon())."'></i> <span>".$page->getName().'</span></a></li>';
|
|
|
|
}
|