<?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."' alt='".$model->title."' class='float-left img-fluid' style='width:150px; margin-right: 10px; float: left; '>",['/post/view/', 'slug' => $model->slug])  ?>
		<?php } else { ?>
		  <?= Html::a("<img src='".Yii::$app->urlManagerFrontend->baseUrl.'/images/photo-not-availabe.jpg'."' alt='".$model->title."' class='float-left img-fluid' style='width:150px; margin-right: 10px; float: left; '>",['/post/view/', 'slug' => $model->slug])  ?>
		<?php } ?>
<?=Html::a('<h2 class="d-block pb-0 line-height-3 text-3 text-dark212 font-weight-bold mb-0 "> '.$model->title.'</h2>', ['/post/view', 'slug' => $model->slug])?>    
 <?=Html::a('<p style="font-weight:normal">'.$model->limitTextWords(strip_tags($model->content), 35, true, true).'</p>', ['/post/view', 'slug' => $model->slug])?>                   
	  </div>
	</div>
    
    <!--<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3311269295796373"
     crossorigin="anonymous"></script>-->
    <div class="row" style="margin:10px 0px;">
	  <div class="col-lg-12">
		<div class="thumb-info-caption-text sidebar">
			
			  <?php if($index % 4 == 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>



