示例#1
0
} else {
    ?>
 	<div id="btl">  
     <!-- Panel top -->  
     <div class="pull-left"><jdoc:include type="modules" name="innertop" style="xhtml"/> </div>
     <div class="navbar pull-right">  
          <!-- menu -->
           <ul class="nav nav-tabs">
            <li role="presentation" class="dropdown">
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <span id="btl-panel-profile" class="btl-dropdown">
                    <?php 
    if (!class_exists('OSMembershipController')) {
        JLoader::register('OSMembershipHelper', JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_osmembership' . DIRECTORY_SEPARATOR . 'helper' . DIRECTORY_SEPARATOR . 'helper.php');
    }
    $avatar = OSMembershipHelper::getAvatar();
    if ($avatar) {
        ?>
                      <img class="profile-avatar-h" src="<?php 
        echo $avatar;
        ?>
">
                      <?php 
    }
    if ($user->name) {
        echo $user->name;
    } else {
        echo $user->username;
    }
    ?>
                  </span>