<? $page_data_l=mysql_fetch_assoc(mysql_query("Select * from l_pages where link='".addslashes($_GET['link'])."'"))?>
<?
	$_SESSION['language']=$page_data_l['language'];
	$language=$page_data_l['language'];
?>
<? $page_data=mysql_fetch_assoc(mysql_query("Select * from pages where id='".addslashes($page_data_l['page'])."'"))?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta  charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<? $settings=mysql_fetch_assoc(mysql_query("Select * from settings where id=1"))?>
	<base href="<?=stripslashes($settings['base'])?>" /> 
	<title><?=stripslashes($page_data_l['meta_title'])?></title>
	<meta name="keywords" content="<?=stripslashes($page_data_l['meta_keywords'])?>"/>
	<meta name="description" content="<?=stripslashes($page_data_l['meta_description'])?>"/>

<!-- Favicons -->
<link rel="shortcut icon" href="favicon.png">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png">

<!-- Styles -->
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" media="screen">
</head>
<body>
  


    <? include 'inc_header.php'?>

  <!-- Layout -->

  <div class="layout">
    
    <!-- Home -->
    
    <main class="main main-inner bg-about" data-stellar-background-ratio="0.6"  style="background: url(<?=stripslashes($page_data['cover_image'])?>) 50% 0 no-repeat">
      <div class="container">
        <header class="main-header">
          <h1><?=stripslashes($page_data_l['title'])?></h1>
        </header>
      </div>

      <!-- Lines -->

      <div class="page-lines">
        <div class="container">
          <div class="col-line col-xs-4">
            <div class="line"></div>
          </div>
          <div class="col-line col-xs-4">
            <div class="line"></div>
          </div>
          <div class="col-line col-xs-4">
            <div class="line"></div>
            <div class="line"></div>
          </div>
        </div>
      </div>
    </main>

    <div class="content">   
    
      <!-- About  -->

      <section id="about" class="about">
        <div class="container">
          <div class="entry">
            <h3 class="entry-title"><?=stripslashes($page_data_l['short_content'])?></h3>
            <?=stripslashes($page_data_l['content'])?>
          </div>
        </div>
      </section>

      <!-- Services -->
	<? $q=mysql_query("Select * from page_tabs where page='".$page_data['id']."'");?>
		<? if (mysql_num_rows($q)>0){?>
	
      <section id="services" class="services section">
        <div class="container">
          
          <div class="section-content">
            <div class="row-services row-base row">
				<? while ($d=mysql_fetch_assoc($q)){?>
				<? $l=mysql_fetch_assoc(mysql_query("Select * from l_page_tabs where page_tab='".addslashes($d['id'])."'"))?>
				  <div class="col-base col-service col-sm-6 col-md-4 wow fadeInUp">
					<div class="service-item">
					  <img alt="" class="img-responsive" src="400/300/100/<?=stripslashes($d['image'])?>">
					  <h4><?=stripslashes($l['title'])?></h4>
					  <?=stripslashes($l['content'])?>
					</div>
				  </div>
				<? }?>
              
            </div>
          </div>
        </div>
      </section>

      <!-- Objects -->
		<? }?>
      
		<? $q=mysql_query("Select * from page_gallery where page='".$page_data['id']."'");?>
		<? if (mysql_num_rows($q)>0){?>
      <!-- Contacts -->
		<section class="projects section">
        
        <div class="section-content">
          <div class="projects-carousel js-projects-carousel js-projects-gallery">
			<? while ($d=mysql_fetch_assoc($q)){?>
			<div class="project project-light">
              <a href="photo/480/880/100/<?=stripslashes($d['file'])?>" title="project 1">
                <figure>
                  <img alt="" src="photo/480/880/100/<?=stripslashes($d['file'])?>">
                  <figcaption>
                    
                    <div class="project-zoom"></div>
                  </figcaption>
                </figure>
              </a>
            </div>
			<? }?>
			  
			  
            
            
          </div>
        </div>
      </section>
      <? }?>

      <!-- Footer -->

      <? include 'inc_footer.php'?>

      <!-- Lines -->

      
    </div>
  </div>

<!-- SCRIPTS -->

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/smoothscroll.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.magnific-popup.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/interface.js"></script> 
</body>
</html>