wtkd

page.php

Jun 2nd, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.23 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!--Body Portion Starts -->
  4.     <div id="bodyportion">
  5.         <div class="body">
  6.             <div>&nbsp;</div>
  7.            
  8.             <?php if (have_posts()) : $count = 0; ?>
  9.             <?php while (have_posts()) : the_post(); $count++; ?>
  10.            
  11.                 <?php $page_title = get_post_meta($post->ID, 'page_title', true); ?>
  12.                 <?php $page_subtitle = get_post_meta($post->ID, 'page_subtitle', true); ?>
  13.  
  14.                 <?php include( TEMPLATEPATH . '/modules/featured.php' ); ?>
  15.            
  16.                 <!--Body Content Starts -->
  17.                 <div class="contentarea">
  18.                     <?php
  19.                         query_posts('post_type=post');
  20.  
  21.                         if(have_posts()){
  22.  
  23.                         while(have_posts()): the_post();
  24.  
  25.                                     the_title(); // exibe titulo
  26.  
  27.                         endwhile;
  28.  
  29. } ?>
  30. <h1><a href="<?php the_permalink(); ?>" title="<?php esc_attr(
  31. the_title() ); ?>"><?php the_title(); ?></a></h1>
  32.  
  33.                     <div class="leftportion">
  34.                         <div class="about">
  35.                                  
  36.                                 <?php the_content(); ?>
  37.                                
  38.                             <?php endwhile; else: ?>    
  39.                            
  40.                 <?php $page_title = 'Sorry, no posts matched your criteria.' ?>
  41.                 <?php $page_subtitle = '' ?>
  42.  
  43.                 <?php include( TEMPLATEPATH . '/modules/featured.php' ); ?>
  44.            
  45.                            
  46.                 <!--Body Content Starts -->
  47.                 <div class="contentarea">
  48.                
  49.                     <div class="leftportion">
  50.                         <div class="about">
  51.                                
  52.                                
  53.                                  <p><?php _e('Sorry, no posts matched your criteria.', 'roxigo') ?></p>
  54.                                  
  55.                             <?php endif; ?>  
  56.                        
  57.                         </div>                                         
  58.                     </div>
  59.    
  60.                     <?php get_sidebar(); ?>
  61.                    
  62.                 </div>
  63.                 <!--Body Content Ends -->
  64.                        
  65.         </div> 
  66.     </div>
  67. <!--Body Portion Ends -->
  68.  
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment