HEX
Server: Apache/2.2.22 (Debian)
System: Linux ns382018.ip-46-105-97.eu 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64
User: web279 (5281)
PHP: 5.4.45-0+deb7u8
Disabled: NONE
Upload Files
File: /var/www/clients/client0/web279/web/MTDrubik/themes/twentyseventeen/header.php
<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */

?>
<!DOCTYPE html>
<html lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-127060754-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-127060754-1');
</script>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	

	?>
</title>
<meta name="distribution" content="global" />
<meta name="identifier-url" content="http://www.rubikdesign.tn/" />
<meta name="geography" content="Tunisie" />
<meta http-equiv="Expires" content="never" />
<meta name="revisit-after" content="7 days" />
<meta name="author" content="MTD GROUP" />
<meta name="Resource-type" content="Document" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1 , maximum-scale=1.0, user-scalable=no" />
<meta name="description" lang="fr" content="Rubik Desing"/>
<!-- favicon --->
<link rel="icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" />
<!-- favicon --->
<?php wp_head(); ?>
<?php include('connect.php'); ?>
<?php
$_SESSION['lang'] = qtranxf_getLanguage();
include('traduction.php');
?>

<!--style icone-->
<link href="<?php bloginfo('template_url'); ?>/css/font-awesome.css" rel="stylesheet" type="text/css">
<!--style icone-->
<!-- jquery --->
<!-- jquery --->
<!--style carousel-->
<link href="<?php bloginfo('template_url'); ?>/css/owl.carousel.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/css/owl.theme.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/css/owl.transitions.css" rel="stylesheet">
<!--style carousel-->
<!--style bootstrap-->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/bootstrap.css">
<!--style bootstrap-->
<!--animate-->
<script src='<?php bloginfo('template_url'); ?>/js/device.min.js'></script>
<link href="<?php bloginfo('template_url'); ?>/css/animate.css" rel="stylesheet">
<!--animate-->
<!--tabs-->
<link href="<?php bloginfo('template_url'); ?>/css/zozo.tabs.min.css" rel="stylesheet" />
<!--tabs-->
 <!-- Add fancyBox main CSS files -->
        <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.fancybox.css?v=2.1.5" media="screen" />
        <!-- Add Thumbnail helper fancyBox -->
        <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.fancybox-thumbs.css?v=1.0.7" />
<!--Mon style-->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/style.css">
<!--Mon style-->
</head>
<body>
<header>
  <div class="part_header">
    <div class="pre_header">
      <div class="contenu_head">
        <div class="col-lg-2 col-md-1 col-sm-2 col-xs-10 paddnull"> <a href="<?php echo get_home_url(); ?>">
          <div class="logo_geo wow fadeIn" data-wow-duration='5s'> <img src="<?php bloginfo('template_url'); ?>/images/logo.jpg"> </div>
          <!--logo_geo-->
          </a> </div>
        <!--col-md-3 col-sm-2 col-xs-12-->
        <div class="col-lg-9 col-md-10 col-sm-9">
          <div class="bloc-menu">
            <div class="main-menu wow fadeIn" data-wow-duration='4s'>
              <div id="stuck_container" class="stuck_container">
                <nav class="navbar navbar-default navbar-static-top">
                  <div class="">
                    <ul class="nav navbar-nav sf-menu" data-type="navbar">
                      <li class="<?php if(is_page(5)) echo 'active' ; ?>"> <a href="<?php echo get_permalink( '5' ); ?>"><?php echo get_the_title('5'); ?></a> </li>
                       <li class="<?php if(is_category(2)){echo 'active' ; }?>"> <a href="<?php echo get_category_link('2');?>"><?php echo get_cat_name('2'); ?></a> </li>
                      <li> <a href="#"><?php echo get_cat_name('3'); ?></a>
                       <ul class="dropdown-menu">
                       
                       <?php 
					$n=0;
				    $args = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 3,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories = get_categories( $args ); 
                    foreach ($categories as $value) {
					  $n++;
					  }?>
                              
                      <?php
					  $i=0;
				$args02 = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 3,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories02 = get_categories( $args02 ); 
                    foreach ($categories02 as $value02) {
					$i++;
				?>
                           <li <?php if(($i)==$n){ echo 'class="last"';}?>><a href="<?php echo get_category_link($value02->cat_ID);?>?cat=<?php echo '3';?>"><?php echo $value02->name; ?></a></li>
                           
                           <?php } ?>
                            
                          </ul>
                      
                       </li>
                      <li> <a href="#"><?php echo get_cat_name('4'); ?></a>
                      
                      <ul class="dropdown-menu">
                       <?php 
					$n003=0;
				    $args003 = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 4,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories003 = get_categories( $args003 ); 
                    foreach ($categories003 as $value003) {
					  $n003++;
					  }?>
                      <?php
					  $i003=0;
				$args01 = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 4,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories01 = get_categories( $args01 ); 
                    foreach ($categories01 as $value01) {
					$i003++;
				?>
                           <li  <?php if(($i003)==$n003){ echo 'class="last"';}?>><a href="<?php echo get_category_link($value01->cat_ID);?>?cat=<?php echo '4';?>"><?php echo $value01->name; ?></a></li>
                           <?php } ?>
                            
                          </ul>
                       </li>
                      <li class="<?php if(is_category(6)){echo 'active' ; }?>"> <a href="<?php echo get_category_link('6');?>?cat=<?php echo '0';?>"><?php echo get_cat_name('6'); ?></a> </li>
                      <li class="<?php if(is_category(7)){echo 'active' ; }?>"> <a href="<?php echo get_category_link('7');?>?cat=<?php echo '0';?>"><?php echo get_cat_name('7'); ?></a> </li>
                      <li class="<?php if(is_page(8)) echo 'active' ; ?>"> <a href="<?php echo get_permalink( '8' ); ?>"><?php echo get_the_title('8'); ?></a> </li>
                    </ul>
                  </div>
                </nav>
                <!--navbar navbar-default navbar-static-top-->
              </div>
              <!--stuck_container-->
              <a href="<?php echo get_home_url(); ?>">
              <div class="logo-small-header"> <img src="<?php bloginfo('template_url'); ?>/images/logo.jpg"> </div>
              <div class="langue_site"> <?php if(qtranxf_getLanguage()=='fr') {?>
           <img src="<?php bloginfo('template_url'); ?>/images/gb.png">
           <?php }else if(qtranxf_getLanguage()=='en'){ ?>
            <img src="<?php bloginfo('template_url'); ?>/images/fr.png">
        <?php } ?></div>
              </a>
              <!--logo-small-header-->
            </div>
            <!--menu_principale-->
          </div>
          <!--bloc-menu-->
        </div>
        <!--col-md-3 col-sm-2 col-xs-12-->
        
        <div class="col-lg-1 col-md-1 col-sm-1 col-xs-2 "> <?php echo qtranxf_generateLanguageSelectCode('image'); ?></div> <!--col-md-3 col-sm-2 col-xs-12-->
        <div class="clear"></div>
        <!--clear-->
      </div>
      <!--contenu_head-->
    </div>
    <!--pre_header-->
    <?php if(is_home()){?>
	<div class="animation_index ">
      <div class="owl-carousel slider-index">
       
         <?php
			$requete1=mysql_query("select * from dr_ngg_pictures,dr_ngg_gallery where dr_ngg_pictures.galleryid = dr_ngg_gallery.gid AND galleryid = '1' ");	
			while ($image1 = mysql_fetch_object($requete1)){  ?>
             <div class="item"> <img src="<?php echo "http://www.rubikdesign.tn/".$image1->path."/".$image1->filename;?>"> </div>        
        
  <?php } ?>

      </div>
      <div class="clear"></div>
      <!--clear-->
    </div>
    <!--animation_index-->
    <?php }else{?>
    <div class="animation_index slide_frame">
      <div class="owl-carousel slider-index">
       
         <?php
			$requete2=mysql_query("select * from dr_ngg_pictures,dr_ngg_gallery where dr_ngg_pictures.galleryid = dr_ngg_gallery.gid AND galleryid = '2' ");	
			while ($image2 = mysql_fetch_object($requete2)){  ?>
             <div class="item"> <img src="<?php echo "http://www.rubikdesign.tn/".$image2->path."/".$image2->filename;?>"> </div>        
        
  <?php } ?>

      </div>
      <div class="clear"></div>
      <!--clear-->
    </div>
    <!--animation_index-->
	<?php }?>
    
  </div>
  <!--part_header-->
</header>