<?php
    $current_url = current_url();      
    $meta_tags = $this->common_model->getMetaTitle($current_url);            
 ?>
<?php if($meta_tags['banner_image']!=''){?>
<section class="page-heading" style="background-image: url(<?=$this->config->item('uploads')?>banner_images/<?= $meta_tags['banner_image']?>);">
<?php } else{?>
    <section class="page-heading">
<?php }?>
    <div class="container">
        <h1><?php echo $page_heading ?> Gallery</h1>
        <ol class="breadcrumb">
            <li><a href="<?= site_url() ?>"><i class="fa fa-home"></i></a></li>
            <li class="active"><?php echo $page_heading ?> Gallery</li>
        </ol>
    </div>
</section>
<section class="menu">
    <div class="container">
        <h2 class="section-heading"></h2>
        <div class="row">
            <?php
            $i = 1;
            foreach ($gallery_data as $gallery) {
                ?>
                <div class="device_full col-xs-6 col-sm-4 col-md-3">
                    <div class="menubox">
                        <div class="menu_img">
                            <a href="<?= base_url() ?>assets/uploads/province_images/<?= $gallery['province_id'] ?>/<?= $gallery['image_name'] ?>" class='fancybox' data-fancybox-group='Tray Items'>
                                <img src="<?= $this->config->item('uploads') ?>province_images/<?= $gallery['province_id'] ?>/<?= $gallery['image_name'] ?>" alt="Menu" class="img-responsive"></a>                        
                        </div>                
                    </div>
                </div>    
                <?php if ($i % 4 == 0) { ?>
                    <div class='clearfix'></div>
                    <?php
                } $i++;
            }
            ?>
        </div>
    </div>
</section>