[44] | 1 | <?php
|
---|
| 2 | /* Fusion/digitalnature */
|
---|
| 3 | get_header();
|
---|
| 4 | ?>
|
---|
| 5 | <!-- mid content -->
|
---|
| 6 | <div id="mid-content">
|
---|
| 7 | <?php if (have_posts()) : ?>
|
---|
| 8 | <?php while (have_posts()) : the_post(); ?>
|
---|
| 9 | <!-- post -->
|
---|
| 10 | <?php if (function_exists("post_class")) { ?>
|
---|
| 11 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
---|
| 12 | <?php } else { ?>
|
---|
| 13 | <div class="post" id="post-<?php the_ID(); ?>">
|
---|
| 14 | <?php } ?>
|
---|
| 15 | <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','fusion'); echo ' '; the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
|
---|
| 16 |
|
---|
| 17 | <!-- story header -->
|
---|
| 18 | <div class="postheader">
|
---|
| 19 | <div class="postinfo">
|
---|
| 20 | <p><?php printf(__('Posted by %s in %s on %s','fusion'),'<a href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","fusion"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>',get_the_category_list(', '), get_the_time(__('F jS, Y','fusion'))); ?> <span class="editlink"><?php edit_post_link(''); ?></span></p>
|
---|
| 21 | </div>
|
---|
| 22 | </div>
|
---|
| 23 | <!-- /story header -->
|
---|
| 24 |
|
---|
| 25 | <div class="postbody entry clearfix">
|
---|
| 26 | <?php the_content(__('Read the rest of this entry »', 'fusion')); ?>
|
---|
| 27 | </div>
|
---|
| 28 | <?php
|
---|
| 29 | $posttags = get_the_tags();
|
---|
| 30 | if ($posttags) { ?>
|
---|
| 31 | <p class="tags"><?php the_tags(''); ?></p>
|
---|
| 32 | <?php } ?>
|
---|
| 33 | <p class="postcontrols">
|
---|
| 34 | <?php
|
---|
| 35 | global $id, $comment;
|
---|
| 36 | $number = get_comments_number( $id );
|
---|
| 37 | ?>
|
---|
| 38 | <a class="<?php if($number<1) { echo 'no '; }?>comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments','fusion'), __('1 Comment','fusion'), __('% Comments','fusion')); ?></a>
|
---|
| 39 | </p>
|
---|
| 40 | <div class="clear"></div>
|
---|
| 41 | </div>
|
---|
| 42 | <!-- /post -->
|
---|
| 43 | <?php endwhile; ?>
|
---|
| 44 | <div class="navigation" id="pagenavi">
|
---|
| 45 | <?php if(function_exists('wp_pagenavi')) : ?>
|
---|
| 46 | <?php wp_pagenavi() ?>
|
---|
| 47 | <?php else : ?>
|
---|
| 48 | <div class="alignleft"><?php next_posts_link(__('« Older Entries','fusion')) ?></div>
|
---|
| 49 | <div class="alignright"><?php previous_posts_link(__('Newer Entries »','fusion')) ?></div>
|
---|
| 50 | <div class="clear"></div>
|
---|
| 51 | <?php endif; ?>
|
---|
| 52 | </div>
|
---|
| 53 | <?php else : ?>
|
---|
| 54 | <h2><?php _e("Not Found","fusion"); ?></h2>
|
---|
| 55 | <p class="error"><?php _e("Sorry, but you are looking for something that isn't here.","fusion"); ?></p>
|
---|
| 56 | <?php get_search_form(); ?>
|
---|
| 57 | <?php endif; ?>
|
---|
| 58 | </div>
|
---|
| 59 | <!-- mid content -->
|
---|
| 60 | </div>
|
---|
| 61 | <!-- /mid -->
|
---|
| 62 |
|
---|
| 63 | <?php get_sidebar(); ?>
|
---|
| 64 |
|
---|
| 65 | <?php get_footer(); ?>
|
---|