Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage Templuto
- */
- get_header();
- ?>
- <div id="content" class="narrowcolumn" >
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <h2 class="post_title" ><?php the_title(); ?></h2>
- <div class="entry" >
- <?php
- $width = tpo_option('tpo_blog_cat_thumbnail_width');
- $height = tpo_option('tpo_blog_cat_thumbnail_height');
- if (!$width) $width = THUMB_WIDTH;
- if (!$height) $height = THUMB_HEIGHT;
- $postimage = get_post_meta($post->ID, '_post_image', true);
- if ($postimage) :
- $postimg = tpo_image_resize( $height, $width, $postimage); ?>
- <div class="feature_image" style="width:<?php echo $width; ?>px">
- <a class="load_blog_img" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
- <img src="<?php echo $postimg; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
- </a>
- </div>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php if ( TPO_BLOG_SHOW_TAGS ) : ?>
- <?php $post_tags = wp_get_post_tags($post->ID);
- if(!empty($post_tags)) { ?>
- <div class="tag" ><?php the_tags( __('Tags', THEME_SLUG) . ': ', ', ', '<br />'); ?></div>
- <?php } ?>
- <?php endif; ?>
- <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
- <span><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
- <g:plusone></g:plusone></span>
- <div class="entry_meta">
- <?php if ( TPO_BLOG_SHOW_DATE == true ) : ?>
- <span class="datetime" datetime="<?php echo get_the_time('F j, Y') ?>" ><?php echo get_the_time('F j, Y') ?></span>
- <?php endif; ?>
- <?php if ( TPO_BLOG_SHOW_AUTHOR == true ) : ?>
- <span class="author" ><?php echo get_the_author() ?></span> <?php endif; ?>
- <?php if ( TPO_BLOG_SHOW_CATEGORIES == true ) : ?>
- <?php if (count( get_the_category())) : ?>
- <span class="category" ><?php _e('Posted In',THEME_SLUG);?>
- <?php echo get_the_category_list( ', ' ) ; ?>
- </span>
- <?php if(function_exists('the_views')) { the_views(); } ?>
- </span>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( TPO_BLOG_SHOW_COMMENTCOUNT == true ) : ?>
- <span class="metacomment" ><?php comments_popup_link(__('No Comments', THEME_SLUG), __('1 Comment', THEME_SLUG), __('% Comments', THEME_SLUG)); ?></span>
- <?php endif; ?>
- </div>
- </div>
- </div> <!-- End Post -->
- <?php if ( TPO_BLOG_SHOW_AUTHORBIO == true ) : ?>
- <div class="author_info_main">
- <h3><?php _e('About The Author',THEME_SLUG);?></h3>
- <?php tpo_author_info(); ?>
- </div>
- <?php endif; ?>
- <?php comments_template(); ?>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.', THEME_SLUG ); ?></p>
- <?php endif; ?>
- </div> <!-- End content -->
- <?php get_sidebar(); ?>
- <div class="clearboth"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement