| Current Path : /var/www/html/ekursusv2/frontend/runtime/frontendpage/ |
| Current File : /var/www/html/ekursusv2/frontend/runtime/frontendpage/158_1743087428071913300-content-419.php |
<?php
/*** CONTENT_ID-419***/
$query = new \yii\db\Query();
$query->from('content_downloads')
->where(['=','download_status','active'])
->andwhere(['=','download_category',6])
->andwhere(['=','download_main',1])
->andwhere(['IN','download_display_location',['public','both']])
->orderby(['download_id'=>SORT_DESC]);
$model = $query->all();
if(!empty($model)){
echo '<div class="container pt-80 pb-50">
<div class="row">';
foreach($model as $row){
$img = '/assets/img/book-no-image.png';
if(!empty($row['download_img']))
$img = '/'.$row['download_img'];
echo '<div class="col-sm-3 mb-30">
<a href="/'.$row['download_file'].'" target="_blank">
<img src="'.$img.'" style="width:100%;margin-bottom:30px;box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;border:1px solid whitesmoke;">
<h5 style="text-align:center;font-family:poppins;line-height:1.5;">'.$row['download_title'].'</h5>
</a>
</div>';
}
echo '</div></div>';
}
?>