| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/tim/wp-content/themes/zita/ |
Upload File : |
<?php
/**
* The template for displaying all single posts
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
* @package Zita
* @since 1.0.0
*/
get_header();
$page_post_meta_set = get_post_meta( $post->ID, 'zita_sidebar_dyn', true );
$page_content_post_meta_set = get_post_meta( $post->ID, 'zita_content_dyn', true );?>
<div id="content" class="site-content blog-single <?php echo esc_attr(zita_page_content_layout($page_content_post_meta_set,'')); ?>">
<div id="container" class="site-container <?php echo esc_attr(zita_sidebar_layout($page_post_meta_set,''));?>">
<div id="primary" class="main content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-post', get_post_type() );
if(get_theme_mod('zita_single_share_icon',true)):
if(zita_pro_activation_class()!==''):
zita_post_share();
endif;
endif;
if(get_theme_mod('zita_single_authr_bio')):
// Author bio.
if ( 'post' === get_post_type() ) :
get_template_part( 'template-parts/author-bio' );
endif;
endif;
the_post_navigation();
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
if(get_theme_mod('zita_single_related_post')):
zita_get_related_sigle_post_by_optn();
endif;?>
</main>
</div>
<?php if(zita_sidebar_layout($page_post_meta_set,'')!=='no-sidebar'): get_sidebar(); endif; ?>
</div>
</div>
<?php get_footer();