<?php  $this->load->view('top'); 
$gal= $this->db->query("SELECT * from wps_gallery")->result_array(); 
?>
<div class="clearfix"></div>
 
<section class="banner_category" style="background-image: url('<?php echo theme_url();?>images/listing/listing-banner2.jpg');">
		<div class="container">
			<h1 class="banner_title">Clientele</h1>
		</div>
	</section>
<div class="page_breadcrumbs">
		<div class="container">
			<ul>
            <li><a href="<?php echo site_url();?>" title="Home">Home</a></li>
            <li>Clientele</li>
			</ul>
		</div>
	</div>


           <section class="wps_home_about about_page">
            <div class="container">              
                <div class="row">    
                    <?php 
                       foreach ($client as $key => $val) { ?>
                 <div class="col-lg-2 col-md-2 col-sm-3 col-xs-6">
                    <div class="client_image">
                      <div class="client_logo">
                        <img src="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '180', '80', 'R'); ?>" alt="<?php echo $val['gallery_name'];?>" title="<?php echo $val['gallery_name'];?>">
                      </div>
                    </div>
                  </div>
                   <?php } ?>
                                             
                  </div>
                             
                    
                 
             
                    
                </div>



        </section>

<!-- <section class="photo_gallery">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="listing_right_1">
<h1 class="text-center">Photo Gallery</h1>

<div class="photo">
    <ul class="nav nav-tabs photo_navigation">
        <?php $i=1;
        foreach($gallery_category as $galCat){ ?>
        <li class="<?= ($i=='1')?'active':'';?>"><a href="#<?php echo $galCat['friendly_url'];?>" data-toggle="tab"><?php echo $galCat['name'];?></a></li>
      <?php $i++;}?>  
    </ul>

    <div class="panel-body">
        <div class="tab-content">
     <?php $i=1;
        foreach($gallery_category as $galCat){ ?>
            <div class="tab-pane fade in <?= ($i=='1')?'active':'';?>" id="<?php echo $galCat['friendly_url'];?>">
                <div class="photo_row">
                    <ul class="grid effect-2" id="grid">
                        <?php $sub_cat = $this->db->query("SELECT * from wps_gallery_category where parent_id='$galCat[category_id]'")->result_array();
                        if(count($sub_cat)>0){
                            foreach ($sub_cat as $key => $subval) {
                                echo '<h3 class="heading_three">'.$subval['name'].'</h3><hr class="line_1"/>';
                                ?>
                                <div class="row">
                                    <?php  $gal_image= $this->db->query("SELECT * from wps_gallery where gallery_parent_id='$subval[category_id]'")->result_array();
                            foreach ($gal_image as $val) { ?>
                        <li>
                            <div class="f-box2">
                                <div class="gallery_item">
                                    <a class="hover_effect h_yellow" data-fancybox="photo-gallery" href="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '', '', 'R'); ?>" tabindex="-1" title="<?php echo $val['gallery_name']; ?>">
                                        <img src="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '363', '272', 'R'); ?>" alt="<?php echo $val['gallery_name']; ?>" title="<?php echo $val['gallery_name']; ?>">
                                    </a>
                                </div>
                            </div>
                        </li>
                        <?php } ?>
                        </div>
                       <?php }
                        }else{
                            $gal_image= $this->db->query("SELECT * from wps_gallery where gallery_parent_id='$galCat[category_id]'")->result_array();
                            foreach ($gal_image as $val) { ?>
                        <li>
                            <div class="f-box2">
                                <div class="gallery_item">
                                    <a class="hover_effect h_yellow" data-fancybox="photo-gallery" href="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '', '', 'R'); ?>" tabindex="-1" title="<?php echo $val['gallery_name']; ?>">
                                        <img src="<?php echo get_image_with_name($val['gallery_name'], 'gallery', $val['gallery_image'], '363', '272', 'R'); ?>" alt="<?php echo $val['gallery_name']; ?>" title="<?php echo $val['gallery_name']; ?>">
                                    </a>
                                </div>
                            </div>
                        </li>
                        <?php } ?>
                       <?php } ?>
                        
                    </ul>
                </div>
            </div>
            
           <?php $i++;}?>    
        </div>
    </div>
</div>
            
				
</div>
</div>
</div>

</div>
</section> -->


<?php $this->load->view('bottom'); ?>
