index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php get_header();$options = get_option('philna_options'); ?>
  2. <?php if ($options['notice'] && $options['notice_content'] && !is_bot() ) : ?>
  3. <div id="notice">
  4. <?php echo($options['notice_content']); ?>
  5. </div>
  6. <?php endif; ?>
  7. <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
  8. <div class="post">
  9. <?php the_title('<h2 class="post-title entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
  10. <div class="info">
  11. <?php edit_post_link(__('Edit', 'philna'), '<span class="editpost">', '</span>'); ?>
  12. <span class="comments-link"><?php comments_popup_link(__('No comments', 'philna'), __('1 comment', 'philna'), __('% comments', 'philna')); ?></span>
  13. <span class="published"><?php the_time(__('F jS, Y', 'philna')) ?></span>
  14. <span class="post-author"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>"><?php the_author();?></a></span>
  15. </div>
  16. <div class="entry-content">
  17. <?php the_content(__('Continue reading...','philna'));?>
  18. </div>
  19. <div class="entry-meta">
  20. <span class="cat-links"><?php the_category(', '); ?></span>
  21. <?php the_tags('<span class="tag-links">', ', ', '</span>');?>
  22. </div>
  23. </div>
  24. <?php endwhile; ?>
  25. <?php else: ?>
  26. <p class="no-data"><?php _e('Sorry, no posts matched your criteria.','philna'); ?></p>
  27. <?php endif; if(has_next_page()):?>
  28. <div id="pagenavi">
  29. <?php if(function_exists('wp_pagenavi')) : ?>
  30. <?php wp_pagenavi() ?>
  31. <?php else : ?>
  32. <span class="newer"><?php previous_posts_link(__('Newer Entries', 'philna')); ?></span>
  33. <span class="older"><?php next_posts_link(__('Older Entries', 'philna')); ?></span>
  34. <?php endif; ?>
  35. <div class="fixed"></div>
  36. </div>
  37. <?php endif; ?>
  38. <?php get_footer(); ?>