| Server IP : 104.21.21.239 / Your IP : 216.73.216.68 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnew/wp-content/themes/smartadapt/ |
Upload File : |
<?php
/**
* The Template for displaying all single posts.
*/
get_header();
$category = get_the_category();
?>
<div id="content" class="<?php echo get_class_of_component('content', smartadapt_option( 'smartadapt_layout' )) ?>" role="main">
<?php while (have_posts()) : the_post(); ?>
<?php
if (get_post_format()) {
get_template_part('content', get_post_format());
} else {
get_template_part('content', 'single');
}
?>
<?php smartadapt_single_nav(); ?>
<?php smartadapt_get_related_post($category[0]->cat_ID, get_the_ID(), 8, 4); ?>
<?php comments_template('', true); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
<?php
if(check_position_of_component('menu', 'right', smartadapt_option( 'smartadapt_layout' ))){
get_template_part('section', 'menu');
}//if menu is one the right side
?>
</div><!-- #main -->
</div><!-- #page -->
<?php
//add sidebar on the right side
if(check_position_of_component('sidebar', 'right', smartadapt_option( 'smartadapt_layout' )))
get_sidebar();
?>
</div><!-- #wrapper -->
<?php get_footer(); ?>