[44] | 1 | <?php get_header(); ?>
|
---|
| 2 | <!-- BEGIN content -->
|
---|
| 3 | <div id="content">
|
---|
| 4 |
|
---|
| 5 | <?php if (have_posts()) : the_post(); ?>
|
---|
| 6 | <!-- begin latest -->
|
---|
| 7 | <div class="latest">
|
---|
| 8 | <a href="<?php the_permalink(); ?>"><?php dp_attachment_image(0, 'thumbnail', 'alt="Latest News"'); ?></a>
|
---|
| 9 | <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
---|
| 10 | <div class="noimage"><?php the_content('Read More'); ?></div>
|
---|
| 11 | <div class="break"></div></div>
|
---|
| 12 | <!-- end latest -->
|
---|
| 13 | <?php endif; ?>
|
---|
| 14 |
|
---|
| 15 | <?php
|
---|
| 16 | if (have_posts()) : $side = 'r';
|
---|
| 17 | while (have_posts()) : the_post();
|
---|
| 18 | $arc_year = get_the_time('Y');
|
---|
| 19 | $arc_month = get_the_time('m');
|
---|
| 20 | $arc_day = get_the_time('d');
|
---|
| 21 | $side = ($side=='r') ? 'l' : 'r';
|
---|
| 22 | ?>
|
---|
| 23 | <div class="<?php echo $side; ?>">
|
---|
| 24 | <!-- begin post -->
|
---|
| 25 | <div class="post">
|
---|
| 26 | <h2><?php the_category(', '); ?></h2>
|
---|
| 27 | <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
|
---|
| 28 | <?php dp_attachment_image(0, 'thumbnail', 'alt="' . $post->post_title . '"'); ?>
|
---|
| 29 | <p><?php ob_start(); the_excerpt(); echo dp_clean(ob_get_clean(), 350); ?>...</p>
|
---|
| 30 | <div class="break"></div>
|
---|
| 31 | </div>
|
---|
| 32 | <!-- end post -->
|
---|
| 33 | </div>
|
---|
| 34 | <?php endwhile; ?>
|
---|
| 35 | <div class="break"></div>
|
---|
| 36 | <!-- begin post navigation -->
|
---|
| 37 | <div class="postnav">
|
---|
| 38 | <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
|
---|
| 39 | </div>
|
---|
| 40 | <!-- end post navigation -->
|
---|
| 41 | <?php else : ?>
|
---|
| 42 | <div class="notfound">
|
---|
| 43 | <h2>Not Found</h2>
|
---|
| 44 | <p>Sorry, but you are looking for something that is not here.</p>
|
---|
| 45 | </div>
|
---|
| 46 | <?php endif; ?>
|
---|
| 47 |
|
---|
| 48 | </div>
|
---|
| 49 | <!-- END content -->
|
---|
| 50 | <?php get_sidebar(); get_footer(); ?>
|
---|