source: trunk/www.guidonia.net/wp/wp-content/themes/alpha/search.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.1 KB
Line 
1<?php get_header(); ?>
2
3<!-- BEGIN home -->
4<div id="home">
5<!-- BEGIN featured -->
6<div id="featured">
7 <h2>Featured News</h2>
8 <?php
9 $temp_query = $wp_query;
10 query_posts(array('post__in'=>array(dp_settings('featured'))));
11 if (have_posts()) : the_post();
12 ?>
13 <div class="content">
14 <?php dp_attachment_image(0, 'thumbnail', 'alt="' . $post->post_title . '"'); ?>
15 <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
16 <p class="date"><?php the_time('l, F j, Y') ?></p>
17 <?php ob_start(); the_content(''); echo str_replace("\n", '<br/><br/>', (dp_clean(ob_get_clean(), 700))); ?>
18 </div>
19 <div class="details">
20 <a href="#" class="readmore">Read More &raquo;</a>
21 <p class="r">Filed Under: <a href="#">Technology</a> <span class="comments"><a href="#">3 Comments</a></span></p>
22 </div>
23 <?php endif; ?>
24</div>
25<!-- END featured -->
26<!-- BEGIN popular -->
27<div id="popular">
28 <h2>Popular Articles</h2>
29 <ul>
30 <?php dp_popular_posts(7); ?>
31 </ul>
32</div><div class="break"></div>
33<!-- END popular -->
34</div>
35<!-- END home -->
36<!-- BEGIN content -->
37<div id="content">
38<?php
39$wp_query = $temp_query;
40if (have_posts()) :
41while (have_posts()) : the_post();
42$arc_year = get_the_time('Y');
43$arc_month = get_the_time('m');
44$arc_day = get_the_time('d');
45?>
46<!-- begin post -->
47<div class="post">
48 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
49 <p class="date"><?php the_time('l, F j, Y') ?></p>
50 <?php dp_attachment_image(0, 'thumbnail', 'alt="'.$post->post_title.'"'); ?>
51 <?php the_excerpt(); ?>
52 <p class="details">
53 <span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
54 <a class="readmore" href="<?php the_permalink(); ?>">Read full story &raquo;</a>
55 </p>
56</div>
57<!-- end post -->
58<?php endwhile; ?>
59<p id="postnav">
60 <?php next_posts_link('&laquo; Older Entries'); ?> &nbsp;
61 <?php previous_posts_link('Newer Entries &raquo;'); ?>
62</p>
63<?php else : ?>
64<div class="notfound">
65 <h2>Not Found</h2>
66 <p>Sorry, but you are looking for something that is not here.</p>
67 </div>
68<?php endif; ?>
69</div>
70<!-- END content -->
71
72<?php get_sidebar(); get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.