 <?php

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

<?php /*  @var $model Page */ ?>
<?php $this->pageTitle = $model->title; ?>

<section class="<?php echo $model->slug; ?>">
    <div class="<?php echo $model->slug; ?>-section1"> 
        <div class="container white-container">
            <div class="row">
				<div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12">
					<div class="page-follower">
                        <span class="head-title">
						<?php //echo($lang=='en'?'Home':'الرئيسية'); echo ' > '; echo ($lang=='en'?$model->en_title:$model->title) ?>
						</span>
                    </div>
				</div>
			</div>
			<?php if($model->image!=null){?>
			<div class="row">
				<div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12">
					<img class="img-responsive page-image" src="<?php echo Yii::app()->request->baseUrl."/uploads/Page/".$model->image;?> " alt="<?php echo ($lang=='en'?$model->en_title:$model->title);?>">
				</div>
			</div>
			<?php }?>
			<div class="row">
            <div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12 baraka-text-style">  
            <?php 
                 //  echo ShortCodeManager::parse($model->content); 
			if($lang=='ar'){
			echo ShortCodeManager::parse($model->content); 
                
			}else if($lang == 'en'){
				echo ShortCodeManager::parse($model->en_content);
			}
//             if (in_array($model->slug, array('menu')))
//        {
//            $this->renderPartial('menu2');
//        }
        ?>
			<?php 
		if($model->attachment_url!=null){?>
			<div class="row">
				<div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12 zero-horizontal-margin">
				
				<?php //echo ($lang=='ar'?'للمزيد من المعلومات ':'for more information') ?>
				<a  href="<?php echo Yii::app()->request->baseUrl."/uploads/Page/files/".$model->attachment_url;?>" class="red-underline-text">
				<?php echo($lang=='ar'?'اضغط هنا':'Click here');?>
					<?php //echo $model->attachment_title?>
					</a>
				</div>
			</div>
			<?php }?>
		</div>
	
		</div>
		
    </div>
    </div>
		</section>
        

