<?php 
include_once("include/main.inc.php");

$gallery_res = mysqli_query($dbconn, "select * from gallery_tbl");

$page_metatitle=" Photo Gallery - Steel Overseas";
$page_metakey=" Photo Gallery - Steel Overseas";
$page_metadesc="Photo Gallery - Steel Overseas";
$actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee=explode('/',$actual_link);
$afterChunk = $ee[3];
$eem=explode('?',$afterChunk);

$finalUrl = $eem[1];


if($finalUrl){
     $url=site_url."/".photo-gallery.".htm"; 
   echo "<script>
           window.location = '".$url."';
         </script>";
 }
?>

<!DOCTYPE html>
<html lang="en">
    <head>	
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">	
        <title><?= $page_metatitle; ?></title>
    <meta name="keywords" content="<?= $page_metakey; ?>" >
    <meta name="description" content="<?= $page_metadesc; ?>" >
        <?php include "app_top.php"; ?>
    </head>
                <body>	
                    <?php include "app_header.php"; ?>		
                    <section class="heading_banner" style="background-image: url(<?=theme_url;?>/images/gallery-banner.jpg)">		
                    <div class="container">	
                    <div class="row">					
                    <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">						
                    <h1 class="cat_title">Photo Gallery</h1>								
                </div>				
            </div>			
        </div>		
    </section>		
    <div class="inner_breadcrumb hidden_xs">			
        <div class="container">				
            <div class="row">				
                	<div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">						
                        <ul class="breadcrumb">						
                            	<li><a href="<?=site_url;?>" title="Home">Home</a></li>						
                                	<li class="active">Photo Gallery</li>						
                                </ul>					
                            </div>			
                        	</div>			
                        </div>		
                    </div>		
                <section class="gallery_page">			
                    <div class="container">				
                        <h2 class="title_2">Photo Gallery</h2>			
                        	<div class="clearfix"></div>				
                            <div class="row">	
                            <?php while ($gallery_sql = mysqli_fetch_array($gallery_res)) { ?>
				
                                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-12">						
                                    <div class="gallery_item">							
                                        <a class="hover_effect h_yellow" data-fancybox="photo-gallery" href="<?=site_url;?>/uploaded-files/gallery/<?php echo $gallery_sql['gallery_image'];?>" title="<?php echo $gallery_sql['gallery_title'];?>"> 
                                            <img src="<?= getImage($gallery_sql['gallery_image'], 800, 800, $gallery_sql['gallery_title'], "/uploaded-files/gallery/"); ?>" alt="<?php echo $gallery_sql['gallery_title'];?>" title="<?php echo $gallery_sql['gallery_title'];?>"> 
                                        </a>							
                
                                        <div class="gallery_item_info">								
                                            <h3 class="title_h3"><?php echo $gallery_sql['gallery_title'];?></h3>
                                         </div>						
                                        </div>					
                                    </div>	
                                    <?php } ?> 
				
 
</div>		
 </div>	
</section>		
<?php include "app_footer.php"; ?>		
 <?php include "app_bottom.php"; ?>
 </body>
                </html>