Advertisement
Guest User

Untitled

a guest
Nov 14th, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. <?php
  2. /**
  3. * Single content
  4. * @package Pure_and_Simple
  5. * @since 1.0.0
  6. */
  7. ?>
  8.  
  9. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10. <header class="entry-header">
  11. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  12.  
  13. <div class="entry-meta">
  14. <?php puresimple_posted_on(); ?>
  15. </div><!-- .entry-meta -->
  16. </header><!-- .entry-header -->
  17.  
  18. <div class="entry-content">
  19.  
  20.  
  21.  
  22. <?php if( get_theme_mod( 'hide_featured' ) == '') { ?>
  23. <?php // do not show featured image if post is paged
  24. $paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : false;
  25. if ( $paged === false ):
  26.  
  27.  
  28.  
  29. endif; ?>
  30. <?php } ?>
  31.  
  32.  
  33. <?php the_content(); ?>
  34. <?php puresimple_multi_pages(); ?>
  35. </div><!-- .entry-content -->
  36.  
  37. <footer class="entry-footer single-footer">
  38. <h2 class="article-info"><?php _e( 'Article Information', 'pure-simple' ); ?></h2>
  39.  
  40. <?php
  41. if (get_the_modified_time() != get_the_time()) :
  42. _e( 'Last Modified on ', 'pure-simple' ); the_modified_date() ; echo '<br>';
  43. endif;
  44.  
  45. /* translators: used between list items, there is a space after the comma */
  46. $category_list = get_the_category_list( __( ', ', 'pure-simple' ) );
  47.  
  48. /* translators: used between list items, there is a space after the comma */
  49. $tag_list = get_the_tag_list( '', __( ', ', 'pure-simple' ) );
  50.  
  51. $parent_title = get_the_title( $post->post_parent );
  52.  
  53. if ( ! puresimple_categorized_blog() ) {
  54.  
  55. // This blog only has 1 category so we just need to worry about tags in the meta text
  56. if ( '' != $tag_list ) {
  57. $meta_text = __( 'This entry was tagged with %2$s <br />this article <a href="%3$s" rel="bookmark">', 'pure-simple') . $parent_title . '</a><br />';
  58. } else {
  59. $meta_text = __( 'this article <a href="%3$s" rel="bookmark">', 'pure-simple' ) . $parent_title . '</a><br />';
  60. }
  61.  
  62. } else {
  63.  
  64. // But this blog has loads of categories so we should probably display them here
  65. if ( '' != $tag_list ) {
  66. $meta_text = __( 'This entry was posted in %1$s <br />Tagged with %2$s <br />Bookmark this article <a href="%3$s" rel="bookmark">', 'pure-simple' ) . $parent_title . '</a><br />';
  67. } else {
  68. $meta_text = __( 'This entry was posted in %1$s <br />Bookmark this article <a href="%3$s" rel="bookmark">', 'pure-simple' ) . $parent_title . '</a><br />';
  69. }
  70.  
  71. } // end check for categories on this blog
  72.  
  73. printf(
  74. $meta_text,
  75.  
  76. get_permalink()
  77. );
  78. ?>
  79.  
  80. <?php if( get_theme_mod( 'hide_edit' ) == '') { ?>
  81. <?php edit_post_link( __( 'Edit This Post', 'pure-simple' ), '<span class="edit-link">', '</span>' ); ?>
  82. <?php } ?>
  83.  
  84. </footer><!-- .entry-footer -->
  85.  
  86. </article><!-- #post-## -->
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement