    <div class="content-w"> 
        <?php include 'fancy.php';?>
        <div class="header-spacer"></div>
        <div class="content-box">
            <div class="conty">
                <div class="conta iner">
                    <h3><?php echo getEduAppGTLang('news');?></h3>
                    <div class="row">
                    <?php
                        $this->db->order_by('news_id', 'desc');
                        $news = $this->db->get('news')->result_array();
                        foreach($news as $wall):
                        $this->crud->setRead($wall['news_id']);
                    ?>
                        <div class="col col-xl-6 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="ui-block paddingtel">    
                                <article class="hentry post has-post-thumbnail thumb-full-width">
                                    <div class="post__author author vcard inline-items">
                                        <img src="<?php echo $this->crud->get_image_url('admin', $wall['admin_id']);?>">                
                                        <div class="author-date">
                                            <a class="h6 post__author-name fn" href="javascript:void(0);"><?php echo $this->crud->get_name('admin', $wall['admin_id']);?></a>
                                            <div class="post__date">
                                                <time class="published btcolor"><?php echo $this->db->get_where('news', array('news_id' => $wall['news_id']))->row()->date." ".$this->db->get_where('news', array('news_id' => $wall['news_id']))->row()->date2;?></time>
                                            </div>
                                        </div>                
                                    </div>
                                    <?php if($wall['type'] == 'video'):?>
                                    <hr>
                                    <p><?php echo $this->crud->check_text($wall['description']);?></p>
                                    <div class="post-thumb">
                                        <iframe src="<?php echo $wall['embed'];?>" height="360" width="100%" frameborder="0" allowfullscreen=""></iframe>
                                    </div>
                                    <?php else:?>
                                    <?php if (file_exists('public/uploads/news_images/'.$wall['news_code'].'.jpg')):?>
                                    <hr>
                                    <p><?php echo $this->crud->check_text($wall['description']);?></p>
                                    <div class="post-thumb">
                                        <img src="<?php echo base_url();?>public/uploads/news_images/<?php echo $wall['news_code'];?>.jpg">
                                    </div>
                                <?php else:?>
                                    <div class="wall-content">
                                        <p><?php echo $this->crud->check_text($wall['description']);?></p>
                                    </div>
                                    <br><br><br>
                                <?php endif;?>
                                <?php endif;?>
                                    <div class="control-block-button post-control-button">
                                        <a href="javascript:void(0);" class="btn btn-control controlsbt" data-toggle="tooltip" data-placement="top" data-original-title="<?php echo getEduAppGTLang('news');?>">
                                            <i class="picons-thin-icon-thin-0032_flag"></i>
                                        </a>
                                    </div>
                                </article>
                            </div>
                        </div>
            <?php endforeach;?>
                    </div>
                </div>
            </div>
        </div>
    </div>