 <?php

 Yii::app()->setLanguage(isset(Yii::app()->session['lang']) ? Yii::app()->session['lang'] : 'ar'); 
 $lang=Yii::app()->getLanguage();
 
?>

<div class=" col-sm-6 col-xs-12 card">
                <img src="<?php echo ($data->image!=null?(Yii::app()->request->baseUrl."/uploads/Article/".$data->image):(Yii::app()->request->baseUrl."/images/image_not_found.png"));?>" class="slider-img full-width" alt="<?php echo 'slider-img'.$data->id;?>">
                <div class="layer head-line">
                <div>
               <?php echo ($lang=='en'?$data->en_title:$data->title);?>
                <a href="<?php echo Yii::app()->request->baseUrl.'/article/view/slug/'.$data->slug ?>"> 
                <button class="center-block btn read-more-btn">
                <?php //echo Yii::t('articleCategory','readMore');?>
                <?php echo ($lang=='en'?'Read more':'اقرأ المزيد'); ?>
                
                    </button> </a></div>
                </div>
                </div>

