echo $value; ?> </a> </li> <?php } ?> <?php if (isset($this->params['user']) && !empty($this->params['user'])) { ?> <?php $user = $this->params['user']; ?> <li class="user_avatar"><a href="" ><img src="<?php echo fix_user_avatar($user['avatar']); ?> "></a></li> <?php } else { ?> <li><a class="<?php if (explode('/', '/user/login.html')[2] == explode('/', $_SERVER['REQUEST_URI'])[2]) { echo 'active'; } ?> " href="/user/login.html">登录</a></li> <li><a class="<?php if (explode('/', '/user/register.html')[2] == explode('/', $_SERVER['REQUEST_URI'])[2]) { echo 'active'; }
<?php echo $article['content']; ?> <p style="text-align:right;"><a href="#article_comment">写留言</a><p/> </div> <!-- comment list --> <div id="comment-list" style="padding:0px 10px;margin-top:20px;"> <?php foreach ($comments as $comment) { ?> <div style="position:relative;margin-bottom:10px;min-height:80px;"> <img class="weui_media_appmsg_thumb" style="width:15%;height:15%;" src="<?php echo fix_user_avatar($comment['avatar']); ?> " alt=""> <h2 style="font-size:14px;text-align:center;position:absolute;"><?php echo $comment['nickname']; ?> </h2> <p style="float:right;width:80%;height:80%;font-size:14px;padding-bottom:20px;"> <?php echo $comment['comment']; ?> </p> <br> <span style="position:absolute;right:0px;bottom:0px;font-size:12px;"><?php echo $comment['create_time']; ?>
<div class="weui_cell_bd weui_cell_primary"> <input class="weui_input" type="text" disabled id="register_time" value="<?php echo $user->register_time; ?> "> </div> </div> <div class="weui_cell"> <div class="weui_cell_bd weui_cell_primary"> <div class="weui_cell_hd weui_uploader_hd weui_cell"> <label class="weui_label">头像</label> </div> <div class="weui_cell_bd weui_cell_primary weui_uploader_bd"> <ul class="weui_uploader_files"> <li class="weui_uploader_file user_avatar" style="background-image:url('<?php echo fix_user_avatar($user->avatar); ?> ');"></li> </ul> <div class="weui_uploader_input_wrp" id="file"> <input class="weui_uploader_input" type="button" accept="image/jpg,image/jpeg,image/png,image/gif" multiple=""> </div> </div> </div> </div> </div> <br> <?php if ($user->email == 0) { ?> <a href="javascript:;" class="weui_btn weui_btn_primary" id="bind_email">绑 定 邮 箱</a>