mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Add conditional check to see if PM plugin is installed before generating the list item markup for PM_NAV in BOOTSTRAP_USERNAV of bootstrap3 theme.
This commit is contained in:
parent
38d2c41bc4
commit
82678939ee
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user