Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ?>
- <?php get_header(); ?>
- <section id="primary">
- <div id="content" role="main">
- <?php if (have_posts()) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <?php if ( wt_get_option( 'wt_show_page_meta' ) == 1 ){ ?>
- <div class="entry-meta">
- <span class="date"><?php the_time('F j, Y'); ?> </span>
- <?php if ( wt_get_option( 'wt_show_page_comments' ) == 1 ){ ?>
- <span class="comments"><?php comments_popup_link( __('no comments', 'wellthemes'), __( '1 comment', 'wellthemes'), __('% comments', 'wellthemes')); ?></span>
- <?php } ?>
- </div><!-- /entry-meta -->
- <?php } ?>
- </header><!-- /entry-header -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'wellthemes' ) . '</span>', 'after' => '</div>' ) ); ?>
- </div><!-- /entry-content -->
- <footer class="entry-footer">
- <div class="entry-tags">
- <?php the_tags('' , ''); ?>
- </div>
- <?php if ( wt_get_option( 'wt_show_page_author_info' ) == 1 ) { ?>
- <div class="entry-author">
- <div class="author-avatar">
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), 68 ); ?>
- </div><!-- /author-avatar -->
- <div class="author-description">
- <h4><?php printf( __( 'About %s', 'wellthemes' ), get_the_author() ); ?></h4>
- <?php the_author_meta( 'description' ); ?>
- <div id="author-link">
- <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
- <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'wellthemes' ), get_the_author() ); ?>
- </a>
- </div><!-- /author-link -->
- </div><!-- /author-description -->
- </div><!-- /author-info -->
- <?php } //endif; ?>
- <?php //add social buttons
- if ( wt_get_option( 'wt_show_page_social' ) == 1 ) { ?>
- <div class="entry-social">
- <span class="fb">
- <div id="fb-root"></div>
- <script>
- (function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));
- </script>
- <div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
- </span>
- <span class="twitter">
- <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
- <a href="http://twitter.com/share" class="twitter-share-button"
- data-url="<?php the_permalink(); ?>"
- data-text="<?php the_title(); ?>"
- data-count="horizontal">Tweet
- </a>
- </span>
- <span class="gplus">
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
- <div class="g-plusone" data-size="medium"></div>
- </span>
- <span class="pinterest">
- <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>
- </span>
- <span class="linkedin">
- <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
- <script type="IN/Share" data-counter="right"></script>
- </span>
- </div><!-- /entry-social -->
- <?php } ?>
- </footer><!-- /entry-footer -->
- <?php if ( wt_get_option( 'wt_show_page_comments' ) == 1 ) { ?>
- <?php comments_template( '', true ); ?>
- <?php } ?>
- </article><!-- /post-<?php the_ID(); ?> -->
- <?php endwhile; // end of the loop. ?>
- <?php endif ?>
- </div><!-- /content -->
- </section><!-- /primary -->
- <?php get_sidebar('left'); ?>
- <?php get_sidebar('right'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement