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/index.php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */

get_header(); ?>

<section>
  <div class="section_box1">
    <div class="container">
      <div class="contenu_box_1">
        <div class="title_nous_sommes wow fadeInDown" data-wow-duration='1s'><?php echo get_cat_name('16'); ?></div>
        <!--title_expert-->
        <div class="owl-demo2 wow fadeIn" data-wow-duration='4s'>
         <?php
		query_posts( 'cat=16&orderby=date&order=desc'); 
		while ( have_posts() ) : the_post();
		?>
          <div class="item1">  <img src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>" >
            <div class="contenu_recherche">
              <div class="titre_recherche"> <?php the_title(); ?> </div>
              <!--contenu_recherche-->
              <div class="desc_recherche">
                  <p><?php $s = substr(strip_tags($post->post_content), 0, 100);   echo $result = substr($s, 0, strrpos($s, ' '));?> ...</p>
              </div>
              <!--contenu_recherche-->
              <div class="voir_recherche"><a href="<?php the_permalink(); ?>"><?php echo voir_plus2; ?> </a> </div>
              <!--contenu_recherche-->
            </div>
            <!--contenu_recherche-->
          </div>
        <?php endwhile;  wp_reset_query(); ?>  
          
        </div>
      </div>
      <!--contenu_box_1-->
    </div>
    <!--container-->
  </div>
  <!--bloc_nous_sommes-->
  <div class="categories_index">
    <div class=" ">
      <div class="categorie_001">
       <?php 
					$n_1=0;
				    $args_1 = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 3,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories_1 = get_categories( $args_1 ); 
                    foreach ($categories_1 as $value_1) {
					  $n_1++;
					  if($n_1==1){?>
					 
       <a href="<?php echo get_category_link($value_1->cat_ID);?>?cat=<?php echo '3';?>">  <img src="<?php echo z_taxonomy_image_url(3) ?>" />
        <div class="contenu_decouvrir">
          <div class="cont_dec">
            <div class="titre_decouvrir"><?php echo get_cat_name('3'); ?><br>
              <span class="titre_decouvrir2"><?php echo More_details; ?> </span> </div>
          </div>
          <!--cont_dec-->
        </div>
        <!--contenu_decouvrir-->
        </a> <?php }}?></div>
        
      <div class="categorie_001">
        <div class="cat001"> 
        <?php 
					$n_2=0;
				    $args_2 = array(					  
						'type' => 'post',
						'child_of' => 0,
						'parent' => 4,
						'orderby' => 'order',
						'hide_empty'=> 0 ,
                     
                     ); 
                     $categories_2 = get_categories( $args_2 ); 
                    foreach ($categories_2 as $value_2) {
					  $n_2++;
					  if($n_2==1){?>
        <a href="<?php echo get_category_link($value_2->cat_ID);?>?cat=<?php echo '4';?>"> <img src="<?php echo z_taxonomy_image_url(4) ?>" />
          <div class="contenu_decouvrir001">
            <div class="cont_dec001">
              <div class="titre_decouvrir001"><?php echo get_cat_name('4'); ?> <br>
                <span class="titre_decouvrir2"><?php echo More_details; ?> </span> </div>
            </div>
            <!--cont_dec-->
          </div>
          <!--contenu_decouvrir-->
          </a> <?php }}?></div>
        <div class="cat001">  <a href="<?php echo get_category_link('7');?>?cat=<?php echo '0';?>">  <img src="<?php echo z_taxonomy_image_url(7) ?>" />
          <div class="contenu_decouvrir001">
            <div class="cont_dec001">
              <div class="titre_decouvrir001"><?php echo get_cat_name('7'); ?> <br>
                <span class="titre_decouvrir2"><?php echo More_details; ?> </span> </div>
            </div>
            <!--cont_dec-->
          </div>
          <!--contenu_decouvrir-->
          </a> </div>
      </div>
      <div class="categorie_001">  <a href="<?php echo get_category_link('6');?>?cat=<?php echo '0';?>">  <img src="<?php echo z_taxonomy_image_url(6) ?>" />
        <div class="contenu_decouvrir">
          <div class="cont_dec">
            <div class="titre_decouvrir"><?php echo get_cat_name('6'); ?> <br>
              <span class="titre_decouvrir2"><?php echo More_details; ?></span> </div>
          </div>
          <!--cont_dec-->
        </div>
        <!--contenu_decouvrir-->
        </a> </div>
      <div class="clear"></div>
    </div>
  </div>
  <!--categories_index-->
  <div class="container">
   <?php 
			query_posts( 'page_id=72');
			if ( have_posts() ) : the_post();
		?> 
    <div class="contenu_box_1">
      <div class="title_nous_sommes wow fadeInDown" data-wow-duration='1s'><?php the_title(); ?></div>
      <!--title_expert-->
      <div class="nous_sommes001 wow fadeIn" data-wow-duration='3s'> 
      <div class="bloc_ref_index">
      <?php 
					 $p=0;
					 $idgalerie = get_post_meta(get_the_ID(),'category1',true); 	
					 $req77=mysql_query("select * from dr_ngg_pictures,dr_ngg_gallery where dr_ngg_pictures.galleryid = dr_ngg_gallery.gid AND galleryid = '$idgalerie' order by sortorder asc");
					 $path = "http://www.rubikdesign.tn/";
					if($idgalerie!=""){
					while($image=mysql_fetch_object($req77)){
					$p++;
					?>
                    <div class="bloc_ref01">
                    	<img src="<?php echo $path.$image->path."/".$image->filename;?>" />
                    </div> <!--bloc_ref01-->
                    
                    <?php }} ?>
                    <div class="clear"></div>
                    </div>
      </div>
      <!--content_expert-->
    </div>
    <!--contenu_box_1-->
    <?php endif; wp_reset_query(); ?>
  </div>
  <!--container-->
</section>
<?php get_footer();