1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 11:20:25 +02:00

Merge pull request #2649 from arunshekher/bootsrtap_usernave_pm_listitem_fix

Conditional check for PM plugin install status prior to 'li' generation for PM_NAV (bootstrap3 theme)
This commit is contained in:
Cameron
2017-05-25 14:17:06 -07:00
committed by GitHub

View File

@@ -195,8 +195,14 @@ class theme_shortcodes extends e_shortcode
$text = '
<ul class="nav navbar-nav navbar-right'.$direction.'">
<li class="dropdown">{PM_NAV}</li>
<ul class="nav navbar-nav navbar-right'.$direction.'">';
if( e107::isInstalled('pm') )
{
$text .= '<li class="dropdown">{PM_NAV}</li>';
}
$text .= '
<li class="dropdown dropdown-avatar"><a href="#" class="dropdown-toggle" data-toggle="dropdown">{SETIMAGE: w=30} {USER_AVATAR: shape=circle} '. $userNameLabel.' <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>