Advertisement
Guest User

template

a guest
May 28th, 2014
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.22 KB | None | 0 0
  1. <?php
  2. /*
  3. Template name: Homepage
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8.     <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  9.  
  10.         <div class="eightcol text_content">
  11.        
  12.         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  13.        
  14.  
  15.         <h1><?php the_title(); ?></h1>
  16.        
  17.         <div class="big"><?php meta('intro_tekst'); ?></div>
  18.        
  19.             <div class="sevencol">
  20.  
  21.         <div id="uitgelicht">
  22.  
  23. <?php
  24.  
  25.       // The Query
  26.       $the_query = new WP_Query( 'post_type=post&category_name=uitgelicht' );
  27.      
  28.       // The Loop
  29.       while ( $the_query->have_posts() ) : $the_query->the_post();
  30. ?>
  31.            
  32.       <h2><?php meta('uitgelicht_titel'); ?></h2>
  33.       <?php meta('uitgelicht_tekst'); ?>
  34.      
  35. <?php
  36.       endwhile;
  37.      
  38.       // Reset Post Data
  39.       wp_reset_postdata();
  40.      
  41. ?>         
  42.  
  43.         </div> <!-- end uitgelicht //-->
  44.            
  45.                 <?php the_content(); ?>
  46.            
  47.             </div> <!-- end fourcol //-->
  48.            
  49.         <?php endwhile; else: ?>
  50.         <p>Deze pagina bevat momenteel (nog) geen inhoud.</p>
  51.         <?php endif; ?>
  52.        
  53.          
  54.           <div class="fivecol news_homepage last add_bottom">
  55.          
  56.             <div class="news_homepage_core roundedhallo">
  57.            
  58.               <h2>Actueel</h2>
  59.                            
  60.         <?php
  61.                 // The Query
  62.                 $the_query = new WP_Query( 'category=1&posts_per_page=3' );
  63.                
  64.                 // The Loop
  65.                 while ( $the_query->have_posts() ) : $the_query->the_post();
  66.                 ?>
  67.  
  68.                
  69.                   <div class="news_item">
  70.                     <h3><?php the_title(); ?></h3>
  71.                     <p class="news_date"><?php the_time('d-m-Y'); ?></p>
  72.                     <?php the_excerpt(); ?>
  73.                   </div>                
  74.                
  75.                 <?php
  76.                 endwhile;                
  77.                 // Reset Post Data
  78.                 wp_reset_postdata();
  79.                 ?>
  80.                              
  81.             </div> <!-- end news_homepage_core //-->    
  82.            
  83.           </div> <!-- end fivecol //-->      
  84.          
  85.           <div class="twelvecol">
  86.          
  87.             <h1>Meest bekeken</h1>  
  88.    
  89.             <p class="frontpageheatmap">
  90.            
  91.                 <?php                      
  92.                 // The Query
  93.                 $the_query = new WP_Query( 'post_type=tagcloud&posts_per_page=999' );
  94.                
  95.                 // The Loop
  96.                 while ( $the_query->have_posts() ) : $the_query->the_post();
  97.                 ?>
  98.                                  
  99.                 <a style="font-size: <?php meta('font_size'); ?>px;" rel="tag" title="<?php the_title(); ?>" href="<?php meta('tag_link'); ?>"><?php the_title(); ?></a>
  100.  
  101.                 <?php
  102.                 endwhile;                
  103.                 // Reset Post Data
  104.                 wp_reset_postdata();                
  105.                 ?>            
  106.  
  107.             </p>      
  108.           </div> <!-- end eightcol //-->
  109.          
  110.         </div> <!-- end eightcol //-->
  111.  
  112.  
  113.     <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  114.  
  115. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement