<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<style>
		.video{
			width: 100%;
		}
	</style>
	<body>
		<div class="header-back-fixed goBack" style="z-index: 999;"></div>
	 
		<div class="main-body pd-10 bg-fff mgb-10">
			<div class="d-userbox">
				<image gourl="/module.php?m=sblog_home&userid=<?php echo $this->_var['author']['userid']; ?>" class="d-userbox-head" src="<?php echo $this->_var['author']['user_head']; ?>.100x100.jpg"></image>
				<div class="flex-1">
					<div gourl="/module.php?m=sblog_home&userid=<?php echo $this->_var['author']['userid']; ?>" class="d-userbox-nick"><?php echo $this->_var['author']['nickname']; ?></div>
					<div class="mgb-5 d-userbox-follows flex-ai-center">
						<text class="mgr-5">粉丝</text>
						<text class="cl-num mgr-5 "><?php echo $this->_var['author']['followed_num']; ?></text>
						<text class="mgr-5">关注</text>
						<text class="cl-num"><?php echo $this->_var['author']['follow_num']; ?></text>
						
						
					</div>
					
					 
				</div>
				<style>
					.btn-follow,.btn-pm{
						border: 1px solid #007AFF;
						border-radius: 10px;
						padding: 3px 8px;
						color: #666;
						font-size: 12px;
						text-align: center;
					}
					.btn-follow{
						border: 1px solid #666;
						margin-bottom: 3px;
						cursor: pointer;
					}
					.btn-follow-active{
						color: #f30;
						border: 1px solid #f30;
					}
				</style>
				<div class="">
					<div class="btn-follow js-follow-toggle" data-userid="<?php echo $this->_var['author']['userid']; ?>"><?php if ($this->_var['author']['isFollow']): ?>已<?php else: ?>+<?php endif; ?>关注</div>
					 
				</div>
				
			</div>
			
			
			<?php if ($this->_var['data']['mp4url']): ?>
			<div>
				<video autoplay="autoplay" controls="controls" class="video" src="<?php echo $this->_var['data']['mp4url']; ?>"></video>
			</div>
			<?php endif; ?>
			<div class="d-content block"><?php echo $this->_var['data']['parsecontent']; ?></div>
			<div class="flex-center mgb-10">
				<?php $_from = $this->_var['imgslist']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
				<img src="<?php echo $this->_var['c']; ?>" class="wmax mgb-5" />
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</div>
			<div class="flex mgb-5 ">
				<?php if ($this->_var['fromsite']): ?>
				<div class="f12 cl3">发在<?php echo $this->_var['fromsite']['sitename']; ?></div>
				<?php endif; ?>
				<div class="flex-1"></div>
				<div class="f12 cl3"><?php echo $this->_var['data']['timeago']; ?> </div>
			</div>
			<div class="flex flex-center mgb-10">
				<div class="btn-love js-love-toggle <?php if ($this->_var['islove']): ?>btn-love-active<?php endif; ?> mgr-10" tablename="mod_sblog_blog" objectid="<?php echo $this->_var['data']['id']; ?>">
					喜欢
				</div>

				
			</div>
			
		</div>
		<?php echo $this->fetch('inc/comment.html'); ?>
		<a href="/module.php?m=sblog_blog&a=add" class="fixedAdd">发布</a>
		<?php echo $this->fetch('footer.html'); ?>

		<script src="<?php echo $this->_var['skins']; ?>inc/comment.js"></script>
		<?php wx_jssdk();?>
		<script type="text/javascript">
			wxshare_title="<?php echo $this->_var['data']['title']; ?>";
			<?php if ($this->_var['data']['imgurl']): ?> 
			 wxshare_imgUrl="<?php echo images_site($this->_var['data']['imgurl']); ?>.100x100.jpg";
			 <?php endif; ?>
		</script>
	</body>
</html>
