1
|
1 |
<?php get_header(); ?> |
|
2 |
|
|
3 |
<?php get_sidebar(); ?> |
|
4 |
|
|
5 |
<div id="main"> |
|
6 |
|
|
7 |
<div class="topstory"> |
|
8 |
|
|
9 |
<?php $the_query = new WP_Query('showposts=1'); |
|
10 |
|
|
11 |
if ($the_query->have_posts()) : |
|
12 |
|
|
13 |
while ($the_query->have_posts()) : $the_query->the_post(); |
|
14 |
|
|
15 |
$do_not_duplicate = $post->ID; |
|
16 |
|
|
17 |
?> |
|
18 |
|
|
19 |
<?php if(get_post_meta($post->ID, "newsworthy_image_value", $single = true) != "") { ?><img src="<?php echo get_post_meta($post->ID, "newsworthy_image_value", $single = true); ?>" alt="<?php the_title_attribute(); ?>" /><?php } ?> |
|
20 |
|
|
21 |
<h1><?php the_title(); ?></h1> |
|
22 |
|
|
23 |
<?php the_excerpt(); ?> |
|
24 |
|
|
25 |
<div class="postmeta"><a href="<?php the_permalink(); ?>" class="readmore">Read more...</a><a href="<?php comments_link(); ?>" class="comments">Comments (<?php comments_number('0', '1', '%'); ?>)</a><span class="category">Filed under: <?php the_category(', ') ?></span></div> |
|
26 |
|
|
27 |
<?php endwhile; endif; ?> |
|
28 |
|
|
29 |
</div> |
|
30 |
|
|
31 |
<div class="middle"> |
|
32 |
|
|
33 |
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Home Middle") ) : ?> |
|
34 |
|
|
35 |
<div class="box"> |
|
36 |
|
|
37 |
<h1>Middle</h1> |
|
38 |
|
|
39 |
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus pretium pede eget neque.</p> |
|
40 |
|
|
41 |
</div> |
|
42 |
|
|
43 |
<img class="banner" src="<?php bloginfo('template_url'); ?>/images/banner.jpg" alt="125x125 Banner" /> |
|
44 |
|
|
45 |
<?php endif; ?> |
|
46 |
|
|
47 |
</div> |
|
48 |
|
|
49 |
<div id="left"> |
|
50 |
|
|
51 |
<?php $the_query = new WP_Query('showposts=6&offset=1'); |
|
52 |
|
|
53 |
$style_classes = array('first','second','third'); |
|
54 |
|
|
55 |
$style_index = 0; |
|
56 |
|
|
57 |
if ($the_query->have_posts()) : |
|
58 |
|
|
59 |
while ($the_query->have_posts()) : $the_query->the_post(); |
|
60 |
|