Advertisement
Ortund

Untitled

Nov 8th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3.  
  4.         <!-- begin featured-posts -->  
  5.         <div class="break"></div>
  6.         <!-- begin featured -->
  7. <?php
  8.     if (is_page('Welcome to Financial Passport')) {
  9.         $tmp_query = $wp_query;
  10.         query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
  11.        
  12.         echo '<div id="featured">';
  13.         if (have_posts()) :
  14.             while (have_posts()) : the_post();
  15.                 echo '<div class="content">'.
  16.                     '<a href="'.the_permalink().'">'.dp_attachment_image($post->ID, 'alt="' . $post->post_title . '"').'</a>'.
  17.                     '<div class="title"><h1><a href="'.the_permalink().'">'.the_title().'</a></h1></div>'.
  18.                     '<p>[<a class="readmore" href="'.the_permalink().'">'.the_title().'</a>]</p>'.
  19.                     '<div class="break"></div>'.
  20.                     '</div>';
  21.         endwhile; // end while
  22.         endif; // end if
  23.     }; // end if
  24. ?>
  25.         <!-- end featured -->
  26.  
  27. <!-- begin content -->
  28. <div id="content">
  29.  
  30.     <?php
  31.         $wp_query = $tmp_query;
  32.                
  33.         if (have_posts()) : the_post(); ?>
  34.        
  35.     <!-- begin post -->
  36.     <div class="single">
  37.     <h2><?php the_title(); ?></h2>
  38.     <div class="break"></div>
  39.     <?php the_content(); ?>
  40.     </div>
  41.     <!-- end post -->
  42.    
  43.        
  44.     <?php else : ?>
  45.     <div class="notfound">
  46.     <h2>Not Found</h2>
  47.     <p>Sorry, but you are looking for something that is not here.</p>
  48.     </div>
  49.     <?php endif; ?>
  50.    
  51. </div>
  52. <!-- end content -->
  53.  
  54. <?php get_sidebar(); get_footer(); ?>
  55.  
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement