<?php
get_header();
?>
<!-- begin col left -->
<div id="colLeft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- begin post -->
<div class="blogPost clearfix">
<div class="metaLeft">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('j') ?></div>
<div class="comments"><?php comments_popup_link('0', '1', '%'); ?></div>
</div>
<div class="postRight">
<div class="titBullet"></div>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<div class="metaRight">
<img src="<?php bloginfo('template_url'); ?>/images/ico_user.png" alt="Author" /> <?php the_author_link(); ?> <img src="<?php bloginfo('template_url'); ?>/images/ico_folder.png" alt="Category" /> <?php the_category(', ') ?> </div>
<?php the_content(); ?>
<!-- Social Sharing Icons -->
<div class="social clearfix">
<span>Понравилась заметка? <strong>Поделись!</strong></span>
<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru"
data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twit ter,odnoklassniki,moimir"
></div>
<!-- end Social Sharing Icons -->
</div>
</div>
<!-- Put this script tag to the <head> of your page -->
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?49"></script>
<script type="text/javascript">
VK.init({apiId: API_ID, onlyWidgets: true});
</script>
<!-- Put this div tag to the place, where the Comments block will be -->
<div id="vk_comments"></div>
<script type="text/javascript">
VK.Widgets.Comments("vk_comments", {limit: 10, width: "600", attach: "*"});
</script>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Не найдено.</p>
<?php endif; ?>
</div>
<!-- end col left -->
<!-- begin col right -->
<div id="colRight" class="clearfix">
<?php get_sidebar(); ?>
</div>
<!-- end col right -->
<?php get_footer(); ?>