<?php echo $this->render('module/header.phtml'); ?>

<div class="conBox">
<div class="container widthDiv">
	<div class="row categoryStrap">
			<?php 
				if( $this->idCategory > 0 ){
					$Lib_Category = new Lib_Category();
					$dataCategoryParent = $Lib_Category->parentListO($this->idCategory,3);
					echo "<a href='".@$this->url(array('controller' => 'shop', 'action' => 'index'), 'default', true)."'><i class='fa fa-home'></i></a> >> ";
					foreach($dataCategoryParent as $k => $v):
						echo "<a href='".@$this->url(array('controller' => 'shop', 'action' => 'index', 'id' => $v['category_id']), 'default', true)."'>".@Lib_Lang::consta(category_name_.$v['category_id']).'</a> >> ';
					endforeach;
				}
			?>
	</div>
	<div class="row">
		<div class="col-xs-12 categoryBox">
		
		
	<?php foreach ($this->dataTable as $key => $val): ?>
	<a href="<?php echo @$this->url(array('controller' => 'shop', 'action' => 'index', 'id' => $val['category_id']), 'default', true); ?>" class="categoryLink">
		<div class="col-xs-3">
			<div class="boxCategory">
				<div class="row text-center categoryPhoto" <?php if( $val['category_image'] ){ ?>style="background-image: url('<?php echo $this->escape($this->baseUrl); ?>/public/uploads/category/<?php echo$val['category_image']; ?>.jpeg');"<?php } ?>></div>
				<div class="row text-center" style="padding-left:20px;padding-right:20px;">
				<?php echo @Lib_Lang::consta(category_name_.$val['category_id']); ?>
				</div>
			</div>
		</div>
	</a>
	<?php endforeach; ?>
		
		
		</div>
	</div>
</div>
</div>

<?php echo $this->render('module/footer.phtml'); ?>

