Advertisement
Guest User

Untitled

a guest
Mar 8th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.07 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="content-body">
  3. <?php if (is_home()) {
  4.     $about_page = 6;
  5.     $page_data = get_page($about_page);
  6.     $content = apply_filters('the_content', $page_data->post_content);
  7.     echo $content;
  8. }
  9. ?>
  10. <?php if (function_exists('wp_snap')) { echo wp_snap(); } ?>
  11. <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
  12. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13. <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'; ?> id="post-<?php the_ID(); ?>">
  14. <?php lightword_show_sidebox(); ?>
  15. <h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  16. <?php lightword_simple_date(); ?>
  17. <?php if ($lw_post_author == "Main page" || $lw_post_author == "Both") : ?>
  18. <div class="about_author">
  19. <h4><?php _e('Posted by','lightword'); ?> <a href="<?php the_author_meta('url'); ?>"><?php the_author(); ?></a></h4>
  20. </div>
  21. <?php endif; ?>
  22. <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { the_post_thumbnail(array( 200,200 ), array( 'class' => 'alignleft' )); } ?>
  23. <?php the_content(''); ?>
  24. <?php if(function_exists('wp_print')) { print_link(); } ?>
  25. <?php wp_link_pages('before=<div class="nav_link">'.__('PAGES','lightword').': &after=</div>&next_or_number=number&pagelink=<span class="page_number">%</span>'); ?>
  26.  
  27. <div class="cat_tags clear">
  28. <span class="category"><?php if($lw_disable_tags == "true" || !get_the_tags()) { _e('Filed under:','lightword'); echo " "; the_category(', ');} else if (get_the_tags() && $lw_disable_tags == "false") { _e('Tagged as:','lightword'); echo " "; the_tags(''); } ?></span>
  29. <span class="continue"><?php $pos = strpos($post->post_content, '<!--more-->'); if($pos==''){ ?><a class="nr_comm_spot" href="<?php the_permalink(); ?>#comments"><?php if(lightword_fb_get_comment_type_count('comment')==1) _e('1 Comment','lightword'); elseif('open' != $post->comment_status) _e('Comments Off','lightword'); elseif(lightword_fb_get_comment_type_count('comment') == 0) _e('No Comments','lightword'); else echo lightword_fb_get_comment_type_count('comment')." ".__('Comments','lightword'); ?></a><?php }else{ ?><a title="<?php _e('Read more about','lightword'); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>#more-<?php echo $id; ?>"><?php _e('Continue reading','lightword'); ?></a><?php } ?></span><div class="clear"></div>
  30. </div>
  31. <div class="cat_tags_close"></div>
  32. </div>
  33.  
  34. <?php comments_template(); ?>
  35.  
  36. <?php endwhile; else: ?>
  37.  
  38. <h2><?php _e('Not Found','lightword'); ?></h2>
  39. <p><?php  _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>
  40.  
  41. <?php endif; ?>
  42.  
  43.  
  44. <?php
  45. if ( !function_exists('wp_pagenavi') ) {
  46. ?>
  47. <div class="newer_older">
  48. <span class="newer">&nbsp;<?php previous_posts_link(__('&laquo; Newer Entries','lightword')) ?></span>
  49. <span class="older">&nbsp;<?php next_posts_link(__('Older Entries &raquo;','lightword')) ?></span>
  50. </div>
  51. <?php
  52. }else{
  53. wp_pagenavi();
  54. }
  55. ?>
  56.  
  57. </div>
  58. <?php get_sidebar(); ?>
  59. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement