Esempio n. 1
0
 public function multi_gallery($category_id = null)
 {
     try {
         $this->load->library('Image_CRUD');
         $image_crud = new Image_CRUD();
         $image_crud->set_primary_key_field('id');
         $image_crud->set_url_field('gallery_link');
         //            $image_crud->set_title_field('gallery_header');
         $image_crud->set_table('gallery')->set_ordering_field('gallery_priority')->set_image_path(Constant::getUploadGalleryPath());
         //            if($category_id != null){
         $image_crud->set_relation_field('group_gallery_id');
         //            }
         $output = $image_crud->render();
         //		$this->_example_output($output);
         $this->output($output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
Esempio n. 2
0
                        <hr/>
                        <img class="img-responsive" src="<?php 
        echo base_url(Constant::getUploadGalleryPath("/" . $group_gallery["gallery_link"]));
        ?>
" alt="">
                    </a>
                </div>
                <?php 
    }
}
?>

        <?php 
if (isset($gallerys)) {
    foreach ($gallerys as $gallery) {
        $pathImg = base_url(Constant::getUploadGalleryPath("/" . $gallery["gallery_link"]));
        ?>

                <div class="col-lg-4 col-md-4 col-xs-6 disabled">
                    <!--                    <a class="thumbnail-group-gallery" href="#">
                                            <img class="img-responsive" src="<?php 
        echo $pathImg;
        ?>
" alt="">
                                        </a>-->

                    <a class="thumbnail-group-gallery group1" href="<?php 
        echo $pathImg;
        ?>
" >
                        <img class="img-responsive" src="<?php