Advertisement
cyberdev

Untitled

Aug 23rd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <?php
  2. /**
  3. * The default template for displaying single post content (with sidebar).
  4. * This is a template part. It must be used within The Loop.
  5. *
  6. * @package Bunchy_Theme
  7. */
  8.  
  9. $bunchy_entry_data = bunchy_get_template_part_data();
  10. $bunchy_elements = $bunchy_entry_data['elements'];
  11. ?>
  12.  
  13. <article id="post-<?php the_ID(); ?>" <?php post_class( 'entry-tpl-index entry-tpl-index-stickies' ); ?>>
  14. <div class="entry-box">
  15.  
  16. <header class="entry-header">
  17. <?php the_title( sprintf( '<h2 class="g1-alpha g1-alpha-1st entry-title" itemprop="headline"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  18. </header>
  19.  
  20. <?php if ( bunchy_can_use_plugin( 'snax/snax.php' ) ) : ?>
  21. <?php get_template_part( 'template-parts/snax-bar-post' ); ?>
  22. <?php endif; ?>
  23.  
  24. <?php bunchy_render_entry_flags(); ?>
  25.  
  26. <?php
  27. if ( $bunchy_elements['featured_media'] ) :
  28. bunchy_render_entry_featured_media( array(
  29. 'size' => 'bunchy-index',
  30. ) );
  31. endif;
  32. ?>
  33. <?php
  34. bunchy_render_entry_stats( array(
  35. 'share_count' => $bunchy_elements['shares'],
  36. 'view_count' => $bunchy_elements['views'],
  37. 'comment_count' => $bunchy_elements['comments_link'],
  38. ) );
  39. ?>
  40.  
  41. <?php if ( $bunchy_elements['author'] && $bunchy_elements['avatar'] ) : ?>
  42. <p class="entry-meta entry-meta-with-avatar">
  43. <?php else : ?>
  44. <p class="entry-meta">
  45. <?php endif; ?>
  46.  
  47. <?php if ( $bunchy_elements['author'] || $bunchy_elements['date'] || $bunchy_elements['categories'] ) : ?>
  48.  
  49. <?php
  50. if ( $bunchy_elements['author'] ) :
  51. bunchy_render_entry_author( array(
  52. 'avatar' => $bunchy_elements['avatar'],
  53. 'avatar_size' => 30,
  54. ) );
  55. endif;
  56. ?>
  57.  
  58. <?php
  59. if ( $bunchy_elements['date'] ) :
  60. bunchy_render_entry_date();
  61. endif;
  62. ?>
  63.  
  64. <?php
  65. if ( $bunchy_elements['categories'] ) :
  66. bunchy_render_entry_categories();
  67. endif;
  68. ?>
  69. <?php endif; ?>
  70. </p>
  71.  
  72. <div class="entry-body">
  73. <?php if ( $bunchy_elements['summary'] ) : ?>
  74. <div class="entry-summary g1-typography-xl">
  75. <?php the_excerpt(); ?>
  76. </div>
  77. <?php endif; ?>
  78.  
  79.  
  80. </div>
  81. </div>
  82.  
  83. <div class="entry-actions snax">
  84. <?php if ( bunchy_can_use_plugin( 'snax/snax.php' ) ) : ?>
  85. <?php snax_render_voting_box(); ?>
  86. <?php endif; ?>
  87. </div>
  88. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement