Advertisement
Guest User

Untitled

a guest
Feb 11th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header() ?>
  2.  
  3. <div id="content" class="span8">
  4. <div class="padder">
  5.  
  6. <?php do_action( 'bp_before_blog_single_post' ) ?>
  7.  
  8. <div class="page" id="blog-single">
  9.  
  10. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  11.  
  12. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.  
  14. <?php
  15. global $cc_post_options;
  16. $cc_post_options=cc_get_post_meta();
  17. $single_class = false;
  18. if(isset($cc_post_options) && $cc_post_options['cc_post_template_on'] == 1){
  19.  
  20. switch ($cc_post_options['cc_post_template_type'])
  21. {
  22. case 'img-left-content-right':
  23. $single_class = 'single-img-left-content-right';
  24. break;
  25. case 'img-right-content-left':
  26. $single_class = 'single-img-right-content-left';
  27. break;
  28. case 'img-over-content':
  29. $single_class = 'single-img-over-content';
  30. break;
  31. case 'img-under-content':
  32. $single_class = 'single-img-under-content';
  33. break;
  34. default:
  35. $single_class = false;
  36. break;
  37. }
  38. }
  39. ?>
  40. <?php if($cc_post_options['cc_post_template_avatar'] != '1') { ?>
  41. <div class="author-box visible-desktop">
  42. <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
  43. <?php if(defined('BP_VERSION')){ ?>
  44. <p><?php printf( __( 'by %s', 'cc' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
  45. <?php } ?>
  46. </div>
  47. <?php } ?>
  48.  
  49. <div class="post-content span11" style="<?php if($cc_post_options['cc_post_template_avatar'] == '1') { echo 'margin-left:0;'; } ?>">
  50. <?php if ($single_class != false){ ?>
  51. <div class="<?php echo $single_class ?>">
  52. <?php } ?>
  53.  
  54. <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'cc' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  55. <?php if($cc_post_options['cc_post_template_date'] != '1') {?>
  56. <p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'cc' ) ?> <?php the_category(', '); echo 'By '.the_author(); ?></em></p>
  57. <?php } ?>
  58.  
  59. <div class="entry">
  60. <?php if ($single_class == 'single-img-left-content-right' || $single_class == 'single-img-right-content-left' || $single_class == 'single-img-over-content'){ ?>
  61. <?php the_post_thumbnail()?>
  62. <?php } ?>
  63. <?php the_content( __( 'Read the rest of this entry &rarr;', 'cc' ) ); ?>
  64. <?php if ($single_class == 'single-img-under-content'){ ?>
  65. <?php the_post_thumbnail()?>
  66. <?php } ?>
  67. <div class="clear"></div>
  68. <?php wp_link_pages(array('before' => __( '<p class="cc_pagecount"><strong>Pages:</strong> ', 'cc' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
  69. </div>
  70.  
  71. <div class="clear"></div>
  72.  
  73. <?php if($cc_post_options['cc_post_template_tags'] != '1') {?>
  74. <?php $tags = get_the_tags(); if($tags) { ?>
  75. <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'cc' ), ', ', '<br />'); ?></span></p>
  76. <?php } ?>
  77. <?php } ?>
  78.  
  79. <?php if($cc_post_options['cc_post_template_comments_info'] != '1') {?>
  80. <p class="postmetadata"><span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'cc' ), __( '1 Comment &#187;', 'cc' ), __( '% Comments &#187;', 'cc' ) ); ?></span></p>
  81. <?php } ?>
  82.  
  83. <?php if ($single_class != false){ ?>
  84. </div>
  85. <?php } ?>
  86.  
  87. <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'cc' ) . '</span> %title' ); ?></div>
  88. <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'cc' ) . '</span>' ); ?></div>
  89. </div>
  90. </div>
  91.  
  92. <?php edit_post_link( __( 'Edit this entry.', 'cc' ), '<p class="edit-post-link">', '</p>'); ?>
  93.  
  94. <?php comments_template(); ?>
  95.  
  96. <?php endwhile; else: ?>
  97. <p><?php _e( 'Sorry, no posts matched your criteria.', 'cc' ) ?></p>
  98. <?php endif; ?>
  99. </div>
  100.  
  101. <?php do_action( 'bp_after_blog_single_post' ) ?>
  102.  
  103. </div><!-- .padder -->
  104. </div><!-- #content -->
  105.  
  106. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement