<?php /** * Template part for displaying a post or page. * * @package kadence */ namespace Kadence; ?> <?php if ( kadence()->show_feature_above() ) { get_template_part( 'template-parts/content/entry_thumbnail', get_post_type() ); } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'entry content-bg single-entry' . ( kadence()->option( 'post_footer_area_boxed' ) ? ' post-footer-area-boxed' : '' ) ); ?>> <div class="entry-content-wrap"> <?php do_action( 'kadence_single_before_inner_content' ); if ( kadence()->show_in_content_title() ) { get_template_part( 'template-parts/content/entry_header', get_post_type() ); } if ( kadence()->show_feature_below() ) { get_template_part( 'template-parts/content/entry_thumbnail', get_post_type() ); } get_template_part( 'template-parts/content/entry_content', get_post_type() ); if ( 'post' === get_post_type() && kadence()->option( 'post_tags' ) ) { get_template_part( 'template-parts/content/entry_footer', get_post_type() ); } do_action( 'kadence_single_after_inner_content' ); ?> </div> </article><!-- #post-<?php the_ID(); ?> --> <?php /** * Hook for anything after single content */ do_action( 'kadence_single_after_content' ); if ( is_singular( get_post_type() ) ) { if ( 'post' === get_post_type() && kadence()->option( 'post_author_box' ) ) { get_template_part( 'template-parts/content/entry_author', get_post_type() ); } // Show post navigation only when the post type is 'post' or has an archive. if ( ( 'post' === get_post_type() || get_post_type_object( get_post_type() )->has_archive ) && kadence()->show_post_navigation() ) { if ( kadence()->option( 'post_footer_area_boxed' ) ) { echo '<div class="post-navigation-wrap content-bg entry-content-wrap entry">'; } the_post_navigation( apply_filters( 'kadence_post_navigation_args', array( 'prev_text' => '<div class="post-navigation-sub"><small>' . kadence()->get_icon( 'arrow-left-alt' ) . esc_html__( 'Previous', 'kadence' ) . '</small></div>%title', 'next_text' => '<div class="post-navigation-sub"><small>' . esc_html__( 'Next', 'kadence' ) . kadence()->get_icon( 'arrow-right-alt' ) . '</small></div>%title', ) ) ); if ( kadence()->option( 'post_footer_area_boxed' ) ) { echo '</div>'; } } if ( 'post' === get_post_type() && kadence()->option( 'post_related' ) ) { get_template_part( 'template-parts/content/entry_related', get_post_type() ); } // Show comments only when the post type supports it and when comments are open or at least one comment exists. if ( kadence()->show_comments() ) { comments_template(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.php | File | 1.33 KB | 0644 |
|
archive_header.php | File | 1002 B | 0644 |
|
archive_hero.php | File | 1.13 KB | 0644 |
|
comments-list.php | File | 1.03 KB | 0644 |
|
entry-attachment.php | File | 4.13 KB | 0644 |
|
entry.php | File | 603 B | 0644 |
|
entry_actions.php | File | 1.02 KB | 0644 |
|
entry_author.php | File | 2.44 KB | 0644 |
|
entry_content.php | File | 825 B | 0644 |
|
entry_footer.php | File | 335 B | 0644 |
|
entry_header.php | File | 1.15 KB | 0644 |
|
entry_hero.php | File | 1.46 KB | 0644 |
|
entry_loop_footer.php | File | 261 B | 0644 |
|
entry_loop_header.php | File | 397 B | 0644 |
|
entry_loop_meta.php | File | 12.29 KB | 0644 |
|
entry_loop_taxonomies.php | File | 1.61 KB | 0644 |
|
entry_loop_thumbnail.php | File | 1.94 KB | 0644 |
|
entry_loop_title.php | File | 673 B | 0644 |
|
entry_meta.php | File | 11.23 KB | 0644 |
|
entry_related.php | File | 2.95 KB | 0644 |
|
entry_summary.php | File | 1007 B | 0644 |
|
entry_tags.php | File | 712 B | 0644 |
|
entry_taxonomies.php | File | 1.56 KB | 0644 |
|
entry_thumbnail.php | File | 2.43 KB | 0644 |
|
entry_title.php | File | 254 B | 0644 |
|
error-404.php | File | 655 B | 0644 |
|
error-500.php | File | 789 B | 0644 |
|
error-offline.php | File | 575 B | 0644 |
|
error.php | File | 1.05 KB | 0644 |
|
page_header.php | File | 1.26 KB | 0644 |
|
pagination.php | File | 697 B | 0644 |
|
single-entry.php | File | 2.58 KB | 0644 |
|
single.php | File | 1 KB | 0644 |
|