Advertisement
sourc7

Sparkling [Edit] "Content-single.php"

May 6th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package sparkling
  4. */
  5. ?>
  6.  
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <?php the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' )); ?>
  9. <div class="post-inner-content">
  10. <header class="entry-header page-header">
  11.  
  12. <h1 class="entry-title "><?php the_title(); ?></h1>
  13.  
  14. <div class="entry-meta">
  15. <?php sparkling_posted_on(); ?>
  16.  
  17. <?php
  18. /* translators: used between list items, there is a space after the comma */
  19. $categories_list = get_the_category_list( __( ', ', 'sparkling' ) );
  20. if ( $categories_list && sparkling_categorized_blog() ) :
  21. ?>
  22. <span class="cat-links"><i class="fa fa-folder-open-o"></i>
  23. <?php printf( __( ' %1$s', 'sparkling' ), $categories_list ); ?>
  24. </span>
  25. <?php endif; // End if categories ?>
  26. <?php edit_post_link( __( 'Edit', 'sparkling' ), '<i class="fa fa-pencil-square-o"></i><span class="edit-link">', '</span>' ); ?>
  27.  
  28. </div><!-- .entry-meta -->
  29. </header><!-- .entry-header -->
  30.  
  31. <div class="entry-content">
  32. <?php the_content(); ?>
  33. <?php
  34. wp_link_pages( array(
  35. 'before' => '<div class="page-links">'.__( 'Pages:', 'sparkling' ),
  36. 'after' => '</div>',
  37. 'link_before' => '<span>',
  38. 'link_after' => '</span>',
  39. 'pagelink' => '%',
  40. 'echo' => 1
  41. ) );
  42. ?>
  43. </div><!-- .entry-content -->
  44.  
  45. <footer class="entry-meta">
  46.  
  47. <?php if(has_tag()) : ?>
  48. <!-- tags -->
  49. <div class="tagcloud">
  50.  
  51. <?php
  52. $tags = get_the_tags(get_the_ID());
  53. foreach($tags as $tag){
  54. echo '<a href="'.get_tag_link($tag->term_id).'">'.$tag->name.'</a> ';
  55. } ?>
  56.  
  57. </div>
  58. <!-- end tags -->
  59. <?php endif; ?>
  60.  
  61. </footer><!-- .entry-meta -->
  62. </div>
  63. <div class="post-inner-content secondary-content-box">
  64. <!-- author bio -->
  65. <div class="author-bio content-box-inner">
  66.  
  67. <!-- avatar -->
  68. <div class="avatar">
  69. <?php echo get_avatar(get_the_author_meta('ID') , '60'); ?>
  70. </div>
  71. <!-- end avatar -->
  72.  
  73. <!-- user bio -->
  74. <div class="author-bio-content">
  75.  
  76. <h4 class="author-name"><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php echo get_the_author_meta('display_name'); ?></a></h4>
  77. <p class="author-description">
  78. <?php echo get_the_author_meta('description'); ?>
  79. </p>
  80.  
  81. </div>
  82. <!-- end author bio -->
  83.  
  84. </div>
  85. <!-- end author bio -->
  86. </div>
  87.  
  88. </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement