1 Star 1 Fork 0

四少爷/SimpleHomeForEmlog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
t.php 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
四少爷 提交于 2016-12-21 00:15 . 删除微博秀功能
<?php
/**
* 微语部分
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
?>
<div class="container">
<div class="article-list" id="article-list">
<section class="comments">
<h1>神奇的微语</h1>
<div class="content">
<div id="comments">
<ol class="commentlist">
<?php
foreach($tws as $val):
$author = $user_cache[$val['author']]['name'];
$avatar = empty($user_cache[$val['author']]['avatar']) ?
BLOG_URL . 'admin/views/images/avatar.jpg' :
BLOG_URL . $user_cache[$val['author']]['avatar'];
$tid = (int)$val['id'];
$img = empty($val['img']) ? "" : '<a title="查看图片" href="'.BLOG_URL.str_replace('thum-', '', $val['img']).'" target="_blank">
<img style="border: 1px solid #EFEFEF;" src="'.BLOG_URL.$val['img'].'"/></a>';
?>
<li id="li-comment-11" class="comment even thread-even depth-11 ">
<div id="comment-11 " class="comment-body">
<div class="comment-author">
<img alt="" src="<?php echo $avatar; ?>" class="avatar avatar-32 photo" width="32" height="32">
</div>
<div class="comment-head">
<span class="name">
<?php echo $author; ?>
</span>
<p>
<?php echo $val['t'].'<br/>
'.$img;?>
</p>
<div class="post-reply">
</div>
<div class="date">
<?php echo $val['date'];?>
</div>
</div>
<a>
<time datetime="<?php echo $val['date'];?>">
</time>
</a>
</div>
</li>
<?php endforeach;?>
</ol>
</div>
</div>
</section>
<div class="pagenavi">
<?php echo $page_url;?>
</div>
</div>
<?php include View::getView('side');?>
<?php include View::getView('footer');?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/jermey/SimpleHomeForEmlog.git
[email protected]:jermey/SimpleHomeForEmlog.git
jermey
SimpleHomeForEmlog
SimpleHomeForEmlog
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385