<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('header.html'); ?>
		<div class="main-body">
			<div class="flex">
				<div class="flex-1">
					<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
					<a href="/index.php?m=article&a=show&id=<?php echo $this->_var['c']['id']; ?>" class="sglist-item flex">
						<?php if ($this->_var['c']['imgurl']): ?>
					 
							<img class="w150 mgr-10" src="<?php echo images_site($this->_var['c']['imgurl']); ?>.middle.jpg" />
					 
						<?php endif; ?>
						<div class="flex-1">
							<div class="sglist-title"><?php echo $this->_var['c']['title']; ?></div>
							<div class="sglist-desc"><?php echo $this->_var['c']['description']; ?></div>
							<div class="sglist-ft">
								<div class="sglist-ft-love"><?php echo $this->_var['c']['love_num']; ?></div>
								<div class="sglist-ft-cm"><?php echo $this->_var['c']['comment_num']; ?></div>
								<div class="sglist-ft-view"><?php echo $this->_var['c']['view_num']; ?></div>
							</div> 
						</div>
						
					</a>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					<?php echo $this->_var['pagelist']; ?>
				</div>
				<?php echo $this->fetch('article/sidebar.html'); ?>
			</div>
			
		</div>
		<?php echo $this->fetch('footer.html'); ?>
		
	</body>
</html>
