Skip to content

Instantly share code, notes, and snippets.

@dimovdaniel
Created February 15, 2017 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimovdaniel/ec3bacb407d6bcf9943732cee5717bbf to your computer and use it in GitHub Desktop.
Save dimovdaniel/ec3bacb407d6bcf9943732cee5717bbf to your computer and use it in GitHub Desktop.
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3></h3>
<ul class="nav side-menu">
<?php
$index=0;
foreach ($conf['menu'] as $key => $value) {
if(isset($value['path'])){
echo '<li><a href="'.$value['link'].'?index='.$index.'&path='.$value['path'].'"><i class="fa fa-'.$value['icon'].'"></i> '.$value['name'].'</a></li>';
}else{
echo '<li><a href="'.$value['link'].'?index='.$index.'"><i class="fa fa-'.$value['icon'].'"></i> '.$value['name'].'</a></li>';
}
$index++;
}
?>
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment