Advertisement
nobbyrn

buddypress.php

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