<?php 
require_once 'admin-neuro/lib/Config.php';
?>
<!DOCTYPE html>
<html lang="en">
 <base href="<?php echo ROOT_PATH;?>/" />
    	    <?php
// $iid=$_GET['id'];
// $id = str_replace('-',' ',$iid);

// $se=executeQuery("select * from speakers where url_title='$id'");
// $res=getAssoc($se);
    ?>
    
<head>
    
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><?php echo getRecord('id','metakeywords','2','metatitle');?></title>
<meta name="keywords" content="<?php echo getRecord('id','metakeywords','2','keywords');?>"/>
<meta name="description" content="<?php echo getRecord('id','metakeywords','2','description');?>"/>
<link rel="shortcut icon" href="<?php echo getRecord('id','settings','1','image1');?>" type="image/x-icon">

    <!-- Stylesheets & Fonts -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,800,700,600|Montserrat:400,500,600,700|Raleway:100,300,600,700,800" rel="stylesheet" type="text/css" />
    <link href="css/plugins.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/btn-styles.css" rel="stylesheet">
    <link href="css/responsive.css" rel="stylesheet"> 
    
        <!-- Template color -->
    <link href="css/color-variations/green.css" rel="stylesheet" type="text/css" media="screen">
    
    

    <!-- CSS real-estate STYLE -->
    <link rel="stylesheet" type="text/css" href="css/event-styles.css" media="screen" />
    
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"> 
    
    
    </head>

<body class="no-page-loader">


    <!-- Wrapper -->
    <div id="wrapper">
    
	
		<!-- Header -->
        <?php include("links/menu.php");?>
		<!-- end: Header -->
		
		
        <?php
                //	$id=$_GET['id'];
                	 $iid=$_GET['id'];
                     $id = str_replace('-',' ',$iid);
					$cis=executeQuery("select * from gallery_cat where url_title='$id' ");
				$cigs=getAssoc($cis);
					?>


        <section id="page-title" class="" data-parallax-image="images/inner-banner.jpg">
            <div class="container">
                <div class="page-title">
                    <h1>Gallery </h1>
                </div>
                <div class="breadcrumb">
                    <ul>
                        <li><a href="index.php">Home</a> </li>
                        <li><a href="gallery.php">Gallery </a></li>
                        <li class="active"><?php echo $cigs['title'];?></li>
                    </ul>
                </div>
            </div>
        </section>

        
        <!-- gallery -->
        <div class="">
            <div class="container p-t-30 p-b-30 background-white">
            
                <div class="grid-layout grid-3-columns" data-item="grid-item" data-margin="30" data-lightbox="gallery">

                    	<?php
                //	$id=$_GET['id'];
                	 $iid=$_GET['id'];
                     $id = str_replace('-',' ',$iid);
					$ci=executeQuery("select * from gallery where pid='$id' ORDER BY sorting ASC ");
					while($cig=getAssoc($ci)){
					?>
                    <div class="grid-item ">
                        
                        <a  data-lightbox="gallery-item" href="<?php echo $cig['image'];?>">    
                            <img src="<?php echo $cig['image'];?>" alt="<?php echo $cig['title'];?>">
                            <h6 class="mt-3"><?php echo $cig['title'];?></h6>
                        </a>
                    </div>
                    <?php } ?>

                </div>

             

                
            </div>
            
				
            </div>
        </div>
        <!-- end: gallery -->
        
        
        
    
            
            
            
           <!-- FOOTER -->
            <?php include("links/footer.php");?> 
            
    		<!-- end: FOOTER -->
        
  </div>    
    <!-- end: Wrapper -->

    <!--Plugins-->
<script src="js/jquery.js"></script>
<script src="js/plugins.js"></script>

<!--Template functions-->
<script src="js/functions.js"></script> 




</body>

</html>
