Advertisement
Guest User

post single

a guest
Dec 10th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <div id="fb-root"></div>
  2. <script>(function(d, s, id) {
  3. var js, fjs = d.getElementsByTagName(s)[0];
  4. if (d.getElementById(id)) return;
  5. js = d.createElement(s); js.id = id;
  6. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1534250690198807";
  7. fjs.parentNode.insertBefore(js, fjs);
  8. }(document, 'script', 'facebook-jssdk'));</script>
  9. <!-- Поместите этот вызов функции отображения в соответствующее место. -->
  10. <script type="text/javascript">
  11. window.___gcfg = {lang: 'ru'};
  12.  
  13. (function() {
  14. var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  15. po.src = 'https://apis.google.com/js/plusone.js';
  16. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  17. })();
  18. </script>
  19. <?php global $theme; ?>
  20.  
  21. <div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>">
  22.  
  23. <h1 class="title"><?php the_title(); ?></h1>
  24.  
  25. <div class="postmeta-primary">
  26.  
  27. <span class="meta_date"><?php echo get_the_date(); ?></span>
  28. &nbsp; <span class="meta_categories"><?php the_category(', '); ?></span>
  29.  
  30. <?php if(comments_open( get_the_ID() )) {
  31. ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
  32. }
  33.  
  34. if(is_user_logged_in()) {
  35. ?> &nbsp; <span class="meta_edit"><?php edit_post_link(); ?></span><?php
  36. } ?>
  37. </div>
  38.  
  39. <div class="entry clearfix">
  40. <!— google_ad_section_start —>
  41. <?php
  42. the_content('');
  43. wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
  44. ?>
  45. <!— google_ad_section_end —>
  46. </div>
  47.  
  48. <?php if(get_the_tags()) {
  49. ?><div class="postmeta-secondary"><span class="meta_tags"><?php the_tags('', ', ', ''); ?></span></div><?php
  50. }
  51. ?>
  52.  
  53. <script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
  54. <script src="//yastatic.net/share2/share.js"></script>
  55. <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus,twitter,linkedin" data-counter=""></div>
  56. </div><!-- Post ID <?php the_ID(); ?> -->
  57.  
  58. <?php
  59. if(comments_open( get_the_ID() )) {
  60. comments_template('', true);
  61. }
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement