HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /home/kashmira/public_html/razitahir.com/wp-content/themes/upress/template-parts/content-single.php
<?php
/**
 * Template part for displaying single posts.
 *
 * @package UrduPress
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php 
		if(get_theme_mod('enablesocialshare_setting', 'on') == 'on' && get_theme_mod('socialshare_setting') && get_theme_mod('socialshare_setting', '2') == '1') { ?>
			<div class="row ml-0 mr-0 mb-10 sharing-row">
				<?php get_template_part('template-parts/post', 'sharing'); ?>
			</div>
		<?php }
	?>
	<header class="entry-header">
		<?php 
			if (get_theme_mod('postfimage_setting', 'on') == 'on') {
                if(has_post_thumbnail()) {
                    the_post_thumbnail('post-head');
                }
                else {
                    echo '<img src="' . get_template_directory_uri( '/' ) . '/images/nothumb-360.jpg" alt="'.get_the_title().'" />';
                }
            }  
		?>
		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
	</header><!-- .entry-header -->
	<?php 
		if(get_theme_mod('enablesocialshare_setting', 'on') == 'on' && get_theme_mod('socialshare_setting', '2') == '2') { ?>
			<div class="row ml-0 mr-0 mt-10 mb-10 sharing-row">
				<?php get_template_part('template-parts/post', 'sharing'); ?>
			</div>
		<?php }
	?>
	<div class="entry-meta">
		<?php get_template_part('template-parts/post', 'meta_lg') ?>
	</div><!-- .entry-meta -->

	<div class="above-post-ad"><?php dynamic_sidebar('above-post-ad') ?></div>

	<div class="entry-content" id="post-conten-single">
		<?php the_content(); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'urdupress' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-content -->

	<?php 
		if(get_theme_mod('enablesocialshare_setting', 'on') == 'on' && get_theme_mod('socialshare_setting', '2') == '3') { ?>
			<div class="row ml-0 mr-0 mt-10 mb-10 sharing-row">
				<?php get_template_part('template-parts/post', 'sharing'); ?>
			</div>
		<?php }
	?>

	<div class="below-post-ad"><?php dynamic_sidebar('below-post-ad') ?></div>
</article><!-- #post-## -->