1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Include admin link for admins.

This commit is contained in:
Cameron 2013-07-24 05:03:58 -07:00
parent a73140a10f
commit 756f81061b

View File

@ -85,7 +85,14 @@ class theme_shortcodes extends e_shortcode
<ul class="dropdown-menu">
<li><a href="'.e_HTTP.'usersettings.php"><i class="icon-cog"></i> Settings</a></li>
<li><a class="dropdown-toggle no-block" role="button" href="'.e_HTTP.'user.php?id.'.USERID.'"><i class="icon-user"></i> Profile</a></li>
<li class="divider"></li>
<li class="divider"></li>';
if(ADMIN) //TODO Find Icon.
{
$text .= '<li><a href="'.e_ADMIN_ABS.'"><i class="icon-off"></i> Admin Area</a></li>';
}
$text .= '
<li><a href="'.e_HTTP.'index.php?logout"><i class="icon-off"></i> Logout</a></li>
</ul>
</li>