source: trunk/www.guidonia.net/wp/wp-content/themes/blueleanmagazine/index.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.5 KB
Line 
1<?php get_header(); ?>
2
3 <!-- BEGIN content -->
4 <div id="content"><div class="head"><div class="foot">
5
6 <?php
7 $tmp_query = $wp_query;
8 query_posts('cat=' . get_cat_ID(dp_settings('featured')));
9 if (have_posts()) :
10 $first = true;
11 while (have_posts()) : the_post();
12 ob_start();
13 ?>
14 <li<?php if ($first) echo ' class="first"'; ?>><a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'full', 'alt="' . $post->post_title . '"'); ?></a></li>
15 <?php
16 $photos .= ob_get_clean();
17 ob_start();
18 ?>
19 <li<?php if ($first) echo ' class="first"'; ?>>
20 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
21 <p><?php echo dp_clean($post->post_content, 300); ?></p>
22 <a href="<?php the_permalink(); ?>" class="readmore">Read Full Story</a>
23 </li>
24 <?php
25 $text .= ob_get_clean();
26 $first = false;
27 endwhile;
28 endif;
29 ?>
30
31 <!-- begin featured -->
32 <div class="featured">
33 <h2 class="title">Featured Posts</h2>
34 <div class="thumb"><div class="b">
35 <ul class="photo">
36 <?php echo $photos; ?>
37 </ul>
38 <ul class="text">
39 <?php echo $text; ?>
40 </ul>
41 </div></div>
42 </div>
43 <!-- end featured -->
44
45 <?php
46 $wp_query = $tmp_query;
47 if (have_posts()) :
48 while (have_posts()) : the_post();
49 $arc_year = get_the_time('Y');
50 $arc_month = get_the_time('m');
51 $arc_day = get_the_time('d');
52 ?>
53
54 <!-- begin post -->
55 <div class="post">
56 <div class="l">
57 <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
58 </div>
59 <div class="r">
60 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
61 <p><?php echo dp_clean($post->post_content, 300); ?></p>
62 <p class="details"><a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>"><?php the_time('m.j.Y') ?></a> | <?php the_category(', ') ?> | <?php the_author_posts_link(); ?></p>
63 <p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
64 </div>
65 </div>
66 <!-- end post -->
67
68 <?php endwhile; else : ?>
69 <div class="notfound">
70 <h2>Not Found</h2>
71 <p>Sorry, but you are looking for something that is not here.</p>
72 </div>
73 <?php endif; ?>
74
75 <?php include("bottom.php"); ?>
76
77 <!-- begin post navigation -->
78 <div class="postnav">
79 <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
80 </div>
81 <!-- end post navigation -->
82
83 <div class="break"></div>
84
85 </div></div></div>
86 <!-- END content -->
87
88<?php get_sidebar(); get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.