Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package GeneratePress
  6. */
  7.  
  8. if ( ! defined( 'ABSPATH' ) ) {
  9. exit; // Exit if accessed directly.
  10. }
  11.  
  12. get_header(); ?>
  13.  
  14. <div id="primary" <?php generate_do_element_classes( 'content' ); ?>>
  15. <main id="main" <?php generate_do_element_classes( 'main' ); ?>>
  16. <?php
  17. /**
  18. * generate_before_main_content hook.
  19. *
  20. * @since 0.1
  21. */
  22. do_action( 'generate_before_main_content' );
  23.  
  24. while ( have_posts() ) : the_post();
  25.  
  26. ?>
  27. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php generate_do_microdata( 'article' ); ?>>
  28. <div class="inside-article">
  29. <?php
  30. /**
  31. * generate_before_content hook.
  32. *
  33. * @since 0.1
  34. *
  35. * @hooked generate_featured_page_header_inside_single - 10
  36. */
  37. do_action( 'generate_before_content' );
  38. ?>
  39.  
  40. <header class="entry-header">
  41. <?php
  42. /**
  43. * generate_before_entry_title hook.
  44. *
  45. * @since 0.1
  46. */
  47. do_action( 'generate_before_entry_title' );
  48.  
  49. if ( generate_show_title() ) {
  50. the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' );
  51. }
  52.  
  53. /**
  54. * generate_after_entry_title hook.
  55. *
  56. * @since 0.1
  57. *
  58. * @hooked generate_post_meta - 10
  59. */
  60. do_action( 'generate_after_entry_title' );
  61. ?>
  62. </header><!-- .entry-header -->
  63.  
  64. <?php
  65. /**
  66. * generate_after_entry_header hook.
  67. *
  68. * @since 0.1
  69. *
  70. * @hooked generate_post_image - 10
  71. */
  72. do_action( 'generate_after_entry_header' );
  73. ?>
  74.  
  75. <div class="entry-content" itemprop="text">
  76. <?php
  77. the_content();
  78.  
  79. wp_link_pages( array(
  80. 'before' => '<div class="page-links">' . __( 'Pages:', 'generatepress' ),
  81. 'after' => '</div>',
  82. ) );
  83. ?>
  84. </div><!-- .entry-content -->
  85.  
  86. <?php
  87. /**
  88. * generate_after_entry_content hook.
  89. *
  90. * @since 0.1
  91. *
  92. * @hooked generate_footer_meta - 10
  93. */
  94. do_action( 'generate_after_entry_content' );
  95.  
  96. /**
  97. * generate_after_content hook.
  98. *
  99. * @since 0.1
  100. */
  101. do_action( 'generate_after_content' );
  102. ?>
  103. </div><!-- .inside-article -->
  104. </article><!-- #post-## -->
  105. <?php
  106.  
  107. // If comments are open or we have at least one comment, load up the comment template.
  108. if ( comments_open() || '0' != get_comments_number() ) :
  109. /**
  110. * generate_before_comments_container hook.
  111. *
  112. * @since 2.1
  113. */
  114. do_action( 'generate_before_comments_container' );
  115. ?>
  116.  
  117. <div class="comments-area">
  118. <?php comments_template(); ?>
  119. </div>
  120.  
  121. <?php
  122. endif;
  123.  
  124. endwhile;
  125.  
  126. /**
  127. * generate_after_main_content hook.
  128. *
  129. * @since 0.1
  130. */
  131. do_action( 'generate_after_main_content' );
  132. ?>
  133. </main><!-- #main -->
  134. </div><!-- #primary -->
  135.  
  136. <?php
  137. /**
  138. * generate_after_primary_content_area hook.
  139. *
  140. * @since 2.0
  141. */
  142. do_action( 'generate_after_primary_content_area' );
  143.  
  144. generate_construct_sidebars();
  145.  
  146. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement