echo L('ADMIN_SETTING_CLEARCACHE');
    ?>
">
						<i class="fa fa-trash-o"></i>
					</a><?php 
}
?>
				</div>
				<ul class="nav simplewind-nav pull-right">
					<li class="light-blue">
						<a data-toggle="dropdown" href="#" class="dropdown-toggle">
    						<?php 
if ($admin['avatar']) {
    ?>
<img class="nav-user-photo" width="30" height="30" src="<?php 
    echo sp_get_user_avatar_url($admin['avatar']);
    ?>
" alt="<?php 
    echo $admin["user_login"];
    ?>
">
							<?php 
} else {
    ?>
								<img class="nav-user-photo" width="30" height="30" src="/www/admin/themes/simplebootx/Public/assets/images/logo-18.png" alt="<?php 
    echo $admin["user_login"];
    ?>
"><?php 
}
?>
							<span class="user-info">
		
		<ul class="nav pull-right" id="main-menu-left">
			<li class="dropdown">
			<?php 
if (sp_is_user_login()) {
    ?>
<a class="dropdown-toggle user" data-toggle="dropdown" href="#">
	            <?php 
    if (empty($user['avatar'])) {
        ?>
<img src="/tpl/wctf//Public/images/headicon.png" class="headicon"/>
	            <?php 
    } else {
        ?>
	            <img src="<?php 
        echo sp_get_user_avatar_url($user['avatar']);
        ?>
" class="headicon"/><?php 
    }
    ?>
	            <?php 
    echo $user["user_nicename"];
    ?>
<b class="caret"></b></a>
	            <ul class="dropdown-menu pull-right">
	               <li><a href="<?php 
    echo u('user/center/index');
    ?>
"><i class="fa fa-user"></i> &nbsp;个人中心</a></li>
	               <li class="divider"></li>
	               <li><a href="<?php 
Esempio n. 3
0
 /**
  * 生成评论的静态页面(字符串)
  */
 public function createCommentTmpl($list)
 {
     $str = '';
     foreach ($list as $item) {
         $str = "<div class='work_list' data-id='{$item['uid']}'>\n\t\t\t\t\t       <div class='work_l'>\n\t    \t\t\t\t\t\t<div class='work_l_ico_x'>";
         if (empty($item['user']['avatar'])) {
             $str .= "<img src='" . C("TMPL_PARSE_STRING.__STATICS__") . "images/tpl/comment/user_default.png' alt=''/>";
         } else {
             $str .= "<img src='" . sp_get_user_avatar_url($item['user']['avatar']) . "' alt=''/>";
         }
         $str .= "</div></div>\n\t\t\t\t\t       <div class='work_r'>\n\t\t\t\t\t           <div class='work_r_up_x'>\n\t\t\t\t\t               <ul>\n\t\t\t\t\t                   <li style='margin:0'>" . $item['user']['user_nicename'] . "</li>\n\t\t\t\t\t                   <li>" . date('Y-m-d', $item['createtime']) . "</li>\n\t\t\t\t\t               </ul>\n\t\t\t\t\t           </div>\n\t\t\t\t\t           <div class='work_r_down_x'>\n\t\t\t\t\t              <p>{$item['content']}</p>\n\t\t\t\t\t           </div>\n\t\t\t\t\t          <div class='clear'></div>\n\t\t\t\t\t       </div>\n\t\t\t\t\t   </div>\n\t    \t\t\t\t";
     }
     return $str;
 }