<?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
<!--<?php if($index % 3 == 0 && $index != 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-client="ca-pub-3311269295796373"
     data-ad-slot="5625620098"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
<?php  } ?>-->
<article class="thumb-info thumb-info-side-image thumb-info-no-zoom bg-transparent border-radius-0 pb-4 mb-2">
<div class="row pb-1">
  <div class="col-sm-4 pt-1">
     
     <?php if($model->image != '') {?>
        <?=Html::a('<img src="'.Yii::$app->urlManagerBackend->baseUrl.'/images/movie/'.$model->image.'" alt="'.$model->heading.'" class="img-fluid border-radius-0">', ['/movie/view', 'slug' => $model->slug])?>
      <?php } else { ?>
	     <?=Html::a('<img src="'.Yii::$app->urlManagerFrontend->baseUrl.'/images/photo-not-availabe.jpg" alt="'.$model->heading.'" class="img-fluid border-radius-0"> ', ['/movie/view', 'slug' => $model->slug])?>
	  <?php } ?>
     
 </div>
  <?=Html::a('<div class="col-sm-8 pl-sm-0"><div class="thumb-info-caption-text"><h4 class="d-block pb-2 line-height-2 text-3 text-dark font-weight-bold mb-0 pt-1"> '.$model->heading.' </h4><p>'.$model->limitTextWords(strip_tags($model->content), 90, true, true).'</p></div>', ['/movie/view', 'slug' => $model->slug], ['class' => 'text-decoration-none text-color-dark'])?>					
  </div>
</div>
</article>