<?php 
/**
 * 微语部分
 */
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div class="single single-post postid- single-format-standard nav_fixed">
<section class="container"> <div class="content-wrap"> <div class="content"> <header class="article-header"> <h1 class="article-title">微语</h1> </header> 
<article class="article-content"> <ol class="teamnewslist">
    <?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><b><?php echo $val['date'];?></b><?php echo comment2emoji($val['t']).'<br/>'.$img;?></li> 

    <?php endforeach;?></ol> </article></div>    		<div class="pagination">
			<div class="pagenav">
				<?php echo $pageurl;?>
			</div>
		</div>
</div> 
<?php
 include View::getView('side');
 include View::getView('footer');
?></section>
</div>
