File: /home/sinanpasha/ru.sinanpasha.org/wp-content/themes/pulse/single.php
<?php get_header(); ?>
<?php $template = get_post_meta($post->ID, 'wpzoom_post_template', true);
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
<div id="main"<?php
if ($template == 'side-left') {echo " class=\"side-left\"";}
if ($template == 'full') {echo " class=\"full-width\"";}
?>>
<?php while (have_posts()) : the_post(); ?>
<div class="post_header">
<h1 class="title">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpzoom' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<div class="header_meta">
<?php edit_post_link( __('Edit', 'wpzoom'), '<span>', '</span>'); ?>
<?php if (option::get('post_category') == 'on') { ?><span><?php the_category(','); ?></span><?php } ?>
<?php if (option::get('post_date') == 'on') { ?><span><?php the_time("$dateformat $timeformat"); ?></span><?php } ?>
</div>
<div class="clear"></div>
</div>
<div class="post">
<div class="entry">
<?php the_content(); ?>
<div class="clear"></div>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'wpzoom' ) . '</span>', 'after' => '</div>' ) ); ?>
<div class="clear"></div>
</div><!-- .entry -->
<?php if (option::get('post_share') == 'on') { ?>
<div class="share_box">
<h3 class="title"><?php _e('Share', 'wpzoom'); ?></h3>
<div class="share_btn"><a href="http://twitter.com/share" data-url="<?php the_permalink() ?>" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<div class="share_btn"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=button_count&show_faces=false&width=1000&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe></div>
<div class="share_btn"><g:plusone size="medium"></g:plusone></div>
<div class="clear"></div>
</div>
<?php } ?>
<?php if (option::get('post_related') == 'on') { ?>
<div class="related_posts">
<h3 class="title"><?php _e('Related Posts', 'wpzoom');?></h3>
<div class="block_content">
<ul>
<?php wp_related_posts(5); ?>
</ul>
</div>
</div>
<?php } ?>
<div class="clear"></div>
<?php if (option::get('post_comments') == 'on') { ?>
<div id="comments">
<?php comments_template(); ?>
</div>
<?php } ?>
<?php endwhile; ?>
</div><!-- .post -->
<?php if ($template != 'full') {
get_sidebar();
} ?>
<div class="clear"></div>
<div class="prevnext">
<?php
$previous_post = get_previous_post();
$next_post = get_next_post();
?>
<?php if ($previous_post != NULL) { ?>
<div class="previous">
<span>← <?php _e('previous', 'wpzoom'); ?></span>
<a href="<?php echo get_permalink($previous_post->ID); ?>" title="<?php echo $previous_post->post_title; ?>"><?php echo $previous_post->post_title; ?></a>
</div>
<?php } ?>
<?php if ($next_post != NULL) { ?>
<div class="next">
<span><?php _e('next', 'wpzoom'); ?> →</span>
<a href="<?php echo get_permalink($next_post->ID); ?>" title="<?php echo $next_post->post_title; ?>"><?php echo $next_post->post_title; ?></a>
</div>
<?php } ?>
<div class="clear"></div>
</div><!-- /.nextprev -->
<div class="clear"></div>
</div>
<?php get_footer(); ?>