<?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
 <article class="thumb-info thumb-info-side-image thumb-info-no-zoom bg-transparent border-radius-0 pb-2 mb-2">
	<div class="row">
	  <div class="col">
	    <?php if($model->image != '') {?>
		   <?= Html::a("<img src='".Yii::$app->urlManagerBackend->baseUrl.'/images/post/big/'.$model->image."' class='img-fluid border-radius-0'>",['/post/view/', 'slug' => $model->slug])  ?>
		<?php } else { ?>
		  <?= Html::a("<img src='".Yii::$app->urlManagerFrontend->baseUrl.'/images/photo-not-availabe.jpg'."' class='img-fluid border-radius-0'>",['/post/view/', 'slug' => $model->slug])  ?>
		<?php } ?>
	  </div>
	</div>
	<div class="row">
	  <div class="col">
		<div class="thumb-info-caption-text sidebar">
			<aside class="aside">
			  <h3 class="aside-title" style="border-radius: 3px; margin-top:-10px;">
			   <?=Html::a($model->title, ['/post/view', 'slug' => $model->slug], ['class' => 'text-decoration-none text-color-light'])?>
			  </h3>
			</aside>
		</div>
	  </div>
	</div>
    
    
    <div class="row" style="margin:10px 0px;">
	  <div class="col-lg-12">
		<div class="thumb-info-caption-text sidebar">
			
			  <?php if($index % 3 == 0) {?>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3311269295796373"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="-h8-11+3w-8c+9p"
     data-ad-client="ca-pub-3311269295796373"
     data-ad-slot="9659114311"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
<?php  } ?>
			
		</div>
	  </div>
	</div>
</article>



