<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<link href="/plugin/swiper/css/swiper.min.css" rel="stylesheet" />
	<body>
		<?php echo $this->fetch('header.html'); ?>
		<div class="main-body mgb-10">
			<div class="flex">
				<div class="flex-1">
					<div class="flex mgb-10 flex-ai-center">
											<div>当前位置：</div>
											<a href="/">首页</a>
											
											<div>&gt;</div>
											<div> 文章详情</div>
										</div>
					<div class="row-box mgb-5">
						<div class="d-title"><?php echo $this->_var['data']['title']; ?></div>
						
						<div class="d-tool bg-white">
							<?php echo $this->_var['data']['author']; ?>  <?php echo $this->cutstr($this->_var['data']['createtime'],11,''); ?>
						</div>
					</div>
					<?php if (! empty ( $this->_var['imgsdata'] )): ?>
					<div class="row-box mgb-5">
						<div class="swiper-container" id="indexFlash">
							<div class="swiper-wrapper" >
								<?php $_from = $this->_var['imgsdata']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
								<div class="swiper-slide">
									<img class="wmax" src="<?php echo $this->_var['c']['trueimgurl']; ?>" />
								</div>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
							</div>
							 
							<div class="swiper-pagination flex flex-jc-center"></div>
						 
						</div>
					</div>
					<?php endif; ?>
					<div class="row-box mgb-5">
						<div class="d-content"> <?php echo $this->_var['data']['content']; ?> </div>
					</div>
					
					
					<?php echo $this->fetch('inc/comment.html'); ?>
					
				</div>
				<div class="page-side mgl-10">
					 <?php echo $this->fetch('side.html'); ?>
				</div>
			</div>
			
		<?php echo $this->fetch('footer.html'); ?>
		<?php echo $this->fetch('foot-all.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>
		<script>
			setTimeout(function(){
				$.get("/index.php?m=article&a=addclick&id=<?php echo $this->_var['data']['id']; ?>&ajax=1")
			},3000);
			
		</script>
		<script src="/plugin/swiper/js/swiper.min.js"></script>
		<script>
			$(function(){
				if($("#indexFlash .swiper-slide").length>0){
					var flash = new Swiper("#indexFlash", {
						 slidesPerView: 3,
						      spaceBetween: 30,
						pagination: {
							el: '.swiper-pagination',
						}
					});
				}else{
					$("#indexFlash").hide();
				}
				
			})
			
		</script>
	</body>
	
</html>