Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- begin featured-posts -->
- <div class="break"></div>
- <!-- begin featured -->
- <?php
- if (is_page('Welcome to Financial Passport')) {
- $tmp_query = $wp_query;
- query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
- echo '<div id="featured">';
- if (have_posts()) :
- while (have_posts()) : the_post();
- echo '<div class="content">'.
- '<a href="'.the_permalink().'">'.dp_attachment_image($post->ID, 'alt="' . $post->post_title . '"').'</a>'.
- '<div class="title"><h1><a href="'.the_permalink().'">'.the_title().'</a></h1></div>'.
- '<p>[<a class="readmore" href="'.the_permalink().'">'.the_title().'</a>]</p>'.
- '<div class="break"></div>'.
- '</div>';
- endwhile; // end while
- endif; // end if
- }; // end if
- ?>
- <!-- end featured -->
- <!-- begin content -->
- <div id="content">
- <?php
- $wp_query = $tmp_query;
- if (have_posts()) : the_post(); ?>
- <!-- begin post -->
- <div class="single">
- <h2><?php the_title(); ?></h2>
- <div class="break"></div>
- <?php the_content(); ?>
- </div>
- <!-- end post -->
- <?php else : ?>
- <div class="notfound">
- <h2>Not Found</h2>
- <p>Sorry, but you are looking for something that is not here.</p>
- </div>
- <?php endif; ?>
- </div>
- <!-- end content -->
- <?php get_sidebar(); get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement