Advertisement
Guest User

Untitled

a guest
May 3rd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. ?>
  4. <?php get_header(); ?>
  5. <section id="primary">
  6. <div id="content" role="main">
  7.  
  8. <?php if (have_posts()) : ?>
  9. <?php while ( have_posts() ) : the_post(); ?>
  10.  
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12.  
  13. <header class="entry-header">
  14. <h1 class="entry-title"><?php the_title(); ?></h1>
  15. <?php if ( wt_get_option( 'wt_show_page_meta' ) == 1 ){ ?>
  16. <div class="entry-meta">
  17. <span class="date"><?php the_time('F j, Y'); ?> </span>
  18. <?php if ( wt_get_option( 'wt_show_page_comments' ) == 1 ){ ?>
  19. <span class="comments"><?php comments_popup_link( __('no comments', 'wellthemes'), __( '1 comment', 'wellthemes'), __('% comments', 'wellthemes')); ?></span>
  20. <?php } ?>
  21. </div><!-- /entry-meta -->
  22. <?php } ?>
  23. </header><!-- /entry-header -->
  24.  
  25. <div class="entry-content">
  26. <?php the_content(); ?>
  27. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'wellthemes' ) . '</span>', 'after' => '</div>' ) ); ?>
  28. </div><!-- /entry-content -->
  29.  
  30. <footer class="entry-footer">
  31.  
  32. <div class="entry-tags">
  33. <?php the_tags('' , ''); ?>
  34. </div>
  35.  
  36. <?php if ( wt_get_option( 'wt_show_page_author_info' ) == 1 ) { ?>
  37. <div class="entry-author">
  38. <div class="author-avatar">
  39. <?php echo get_avatar( get_the_author_meta( 'user_email' ), 68 ); ?>
  40. </div><!-- /author-avatar -->
  41. <div class="author-description">
  42. <h4><?php printf( __( 'About %s', 'wellthemes' ), get_the_author() ); ?></h4>
  43. <?php the_author_meta( 'description' ); ?>
  44. <div id="author-link">
  45. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  46. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'wellthemes' ), get_the_author() ); ?>
  47. </a>
  48. </div><!-- /author-link -->
  49. </div><!-- /author-description -->
  50. </div><!-- /author-info -->
  51.  
  52. <?php } //endif; ?>
  53.  
  54. <?php //add social buttons
  55. if ( wt_get_option( 'wt_show_page_social' ) == 1 ) { ?>
  56.  
  57. <div class="entry-social">
  58.  
  59. <span class="fb">
  60. <div id="fb-root"></div>
  61. <script>
  62. (function(d, s, id) {
  63. var js, fjs = d.getElementsByTagName(s)[0];
  64. if (d.getElementById(id)) return;
  65. js = d.createElement(s); js.id = id;
  66. js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  67. fjs.parentNode.insertBefore(js, fjs);
  68. }(document, 'script', 'facebook-jssdk'));
  69. </script>
  70. <div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
  71. </span>
  72.  
  73. <span class="twitter">
  74. <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
  75. <a href="http://twitter.com/share" class="twitter-share-button"
  76. data-url="<?php the_permalink(); ?>"
  77. data-text="<?php the_title(); ?>"
  78. data-count="horizontal">Tweet
  79. </a>
  80. </span>
  81.  
  82. <span class="gplus">
  83. <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  84. <div class="g-plusone" data-size="medium"></div>
  85. </span>
  86.  
  87. <span class="pinterest">
  88. <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' ); echo $thumb['0']; ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="horizontal">Pin It</a><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
  89. </span>
  90.  
  91. <span class="linkedin">
  92. <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
  93. <script type="IN/Share" data-counter="right"></script>
  94. </span>
  95.  
  96. </div><!-- /entry-social -->
  97.  
  98. <?php } ?>
  99.  
  100. </footer><!-- /entry-footer -->
  101. <?php if ( wt_get_option( 'wt_show_page_comments' ) == 1 ) { ?>
  102. <?php comments_template( '', true ); ?>
  103. <?php } ?>
  104. </article><!-- /post-<?php the_ID(); ?> -->
  105.  
  106. <?php endwhile; // end of the loop. ?>
  107. <?php endif ?>
  108.  
  109. </div><!-- /content -->
  110. </section><!-- /primary -->
  111. <?php get_sidebar('left'); ?>
  112. <?php get_sidebar('right'); ?>
  113. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement