<section id="profile" class="content_wrapper innerPage">
             <div class="containerwidth">
               <div class="blogarticleList">
               <?php if(!empty($mediaDetails)){ 
                      foreach ($mediaDetails as $value) { ?>
                      <a href="javascript:void(0)" class="article">
                       <h3><?php echo $value['title']; ?></h3>
                        <div class="imgcontainer">
                          <img src="<?php if(file_exists(FCPATH.'assets/userfiles/'.$value['path'].'/440/'.$value['filename'].'.'.$value['extension'])){ echo base_url().'assets/userfiles/'.$value['path'].'/440/'.$value['filename'].'.'.$value['extension']; } else { echo base_url().'assets/images/interview-1.jpg'; }?>" alt="" srcset="<?php echo base_url().'assets/userfiles/'.$value['path'].'/220/'.$value['filename'].'.'.$value['extension'];  ?> 1x, <?php echo base_url().'assets/userfiles/'.$value['path'].'/440/'.$value['filename'].'.'.$value['extension'];  ?> 2x, <?php echo base_url().'assets/userfiles/'.$value['path'].'/660/'.$value['filename'].'.'.$value['extension'];  ?> 3x">
                        </div>
                        <div class="blogcontent">
                          <p><?php echo substr(strip_tags(html_entity_decode($value['content'])),0,500); ?></p>
                       </div>
                      </a>
                <?php } } ?>
               </div>
             </div>
</section>
        