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 »</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;
|
---|
40 | if (have_posts()) : the_post();
|
---|
41 | $arc_year = get_the_time('Y');
|
---|
42 | $arc_month = get_the_time('m');
|
---|
43 | $arc_day = get_the_time('d');
|
---|
44 | ?>
|
---|
45 | <!-- begin post -->
|
---|
46 | <div class="single">
|
---|
47 | <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
---|
48 | <?php the_content(); ?>
|
---|
49 |
|
---|
50 | <div class="details">
|
---|
51 | <p class="l">Categories: <?php the_category(', ') ?></p>
|
---|
52 | <?php the_tags( '<p class="r">Tags: ', ', ', '</p>'); ?>
|
---|
53 | <div class="break"></div>
|
---|
54 | </div>
|
---|
55 | </div>
|
---|
56 | <!-- end post -->
|
---|
57 | <div id="comments"><?php comments_template(); ?></div>
|
---|
58 | <?php else : ?>
|
---|
59 | <div class="notfound">
|
---|
60 | <h2>Not Found</h2>
|
---|
61 | <p>Sorry, but you are looking for something that is not here.</p>
|
---|
62 | </div>
|
---|
63 | <?php endif; ?>
|
---|
64 | </div>
|
---|
65 | <!-- END content -->
|
---|
66 |
|
---|
67 | <?php get_sidebar(); get_footer(); ?>
|
---|