<?php defined('AIN') or exit('NO DICE!'); ?>
<?php /* Cached: April 15, 2026, 6:30 pm */ ?>
<!-- Tab posts start -->
<div class="tab-posts tab-posts"> 
	<div class="b-title"><h2>ƏN ÇOX OXUNANLAR</h2></div>
	<div class="tab-posts-top">
		<ul>
			<li class="t-tab active" data-tab="tab5">Bu gün</li>
			<li class="t-tab" data-tab="tab6">Bu həftə</li>
			<li class="t-tab" data-tab="tab7">Bu ay</li>
		</ul>
	</div>
	<div class="tab-posts-list">
<?php $this->assign('getNews', AIN::getService('articles')->article_hits(5,120));  ?>
		<div class="tab-post" id="tab5">
<?php if (count((array)$this->_aVars['getNews'])):  foreach ((array) $this->_aVars['getNews'] as $this->_aVars['Ikey'] => $this->_aVars['aRows']): ?>
			<div class="tab-post-item">
				<a href="<?php echo $this->_aVars['aRows']['link']; ?>">
					<div class="tab-post-info">
						<div class="post-extra">
							<div class="post-view"><?php echo $this->_aVars['aRows']['hits']; ?></div>
						</div>
						<h2 class="tab-post-title"><?php echo $this->_aVars['aRows']['title']; ?></h2>
					</div>
				</a>
			</div>
<?php endforeach; endif; ?>
		</div>
<?php $this->assign('getNews', AIN::getService('articles')->article_hits(5,120));  ?>
		<div class="tab-post" id="tab6">
<?php if (count((array)$this->_aVars['getNews'])):  foreach ((array) $this->_aVars['getNews'] as $this->_aVars['Ikey'] => $this->_aVars['aRows']): ?>
			<div class="tab-post-item">
				<a href="<?php echo $this->_aVars['aRows']['link']; ?>">
					<div class="tab-post-info">
						<div class="post-extra">
							<div class="post-view"><?php echo $this->_aVars['aRows']['hits']; ?></div>
						</div>
						<h2 class="tab-post-title"><?php echo $this->_aVars['aRows']['title']; ?></h2>
					</div>
				</a>
			</div>
<?php endforeach; endif; ?>
		</div>
<?php $this->assign('getNews', AIN::getService('articles')->article_hits(5,120));  ?>
		<div class="tab-post" id="tab7">
<?php if (count((array)$this->_aVars['getNews'])):  foreach ((array) $this->_aVars['getNews'] as $this->_aVars['Ikey'] => $this->_aVars['aRows']): ?>
			<div class="tab-post-item">
				<a href="<?php echo $this->_aVars['aRows']['link']; ?>">
					<div class="tab-post-info">
						<div class="post-extra">
							<div class="post-view"><?php echo $this->_aVars['aRows']['hits']; ?></div>
						</div>
						<h2 class="tab-post-title"><?php echo $this->_aVars['aRows']['title']; ?></h2>
					</div>
				</a>
			</div>
<?php endforeach; endif; ?>
		</div>
	</div>
</div>
<!-- Tab posts end -->
<!-- Last posts start -->
<div class="last-posts">
	<div class="b-title"><h2>SON XƏBƏRLƏR</h2></div>
<?php $this->assign('getNews', AIN::getService('articles')->article_band(20));  ?>
	<div class="last-posts-list">
<?php if (count((array)$this->_aVars['getNews'])):  foreach ((array) $this->_aVars['getNews'] as $this->_aVars['Ikey'] => $this->_aVars['aRows']): ?>
		<div class="last-post-item">
			<a href="<?php echo $this->_aVars['aRows']['link']; ?>">
				<h2 class="last-post-title"><?php echo $this->_aVars['aRows']['title']; ?></h2>
				<div class="post-extra">
					<div class="post-category"><?=current($this->_aVars['aRows']['category'])['title']?></div>
					<div class="post-date"><?=AIN::getTime('d.m.Y / H:i', $this->_aVars['aRows']['time_stamp'])?></div>
				</div>
			</a>
		</div>
<?php endforeach; endif; ?>
	</div>
	<div class="last-post-more">
		<a href="<?php echo AIN::getLib('url')->makeUrl('all'); ?>">BÜTÜN XƏBƏRLƏR</a>
	</div>
</div>
<!-- Last posts end -->
