<?php

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

?>
<section class="directors">
    <section class="directors-section1">
        <div class="container">
            <div class="row">
                <div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12">
                  
                </div>
            </div>
            <div class="row">
                <div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12">
                <div class="row">
                <?php

                $persons=Person::model()->findAllByAttributes(array('type'=>'3'));
        
                foreach($persons as $person){
                  //  print_r(Yii::app()->request->baseUrl."/uploads/Person/thumb/".$person->image);
                   
                ?>

                    <div class="img-col-2 col-xs-6">
                    <?php //echo Yii::app()->request->baseUrl."/uploads/Person/".$persons->image?>
                   <?php //$pth=Yii::app()->request->baseUrl."/uploads/Person/"?>
                   <div class="img-container-block">
                   <?php
                   echo '<img class="img-responsive personal-img center-block" src="'.Yii::app()->request->baseUrl."/uploads/Person/".$person->image.'" alt="'.$person->name_ar.'">';
                        ?>
                        </div>
                        <div class="full-name text-center"><?php echo ($lang=='en'?$person->name_en:$person->name_ar) ?></div>
                        <div class="position-name text-center"><?php echo ($lang=='en'?$person->job_title_en:$person->job_title_ar)?></div>
                    </div>
                <?php }?> 

                  
                    
                    
                </div>
                </div>
            </div>
        </div>
    </section>
</section>
