View difference between Paste ID: B9QKAiNJ and acATZ9Eb
SHOW: | | - or go back to the newest paste.
1
<?php get_header(); ?>
2-
	if (is_page('Welcome to F00 Site')) {
2+
3
4
		<!-- begin featured-posts -->	
5
		<div class="break"></div>
6-
		echo <div id='"featured">';
6+
		<!-- begin featured -->
7-
		if (have_posts()) {
7+
8-
			while (have_posts()) {
8+
	if (is_page('Welcome to Financial Passport')) {
9-
				the_post();
9+
10
		query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
11
		
12-
					'<div class="title"><h1><a href="'.the_permalink().'">'the_title().'</a></h1></div>'.
12+
		echo '<div id="featured">';
13
		if (have_posts()) :
14
			while (have_posts()) : the_post();
15
				echo '<div class="content">'.
16-
			}; // end while
16+
17-
		}; // end if
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-
?>
19+
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