HEX
Server: LiteSpeed
System: Linux dune179.sitesanctuary.org 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 07:08:17 EDT 2024 x86_64
User: h278792 (1076)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h278792/www/wp-content/themes/ecademy/single.php
<?php
/**
 * The single template file
 * @package eCademy
 */
get_header();

if (class_exists('YITH_Woocompare_Frontend'))
{
echo 'your code';
}
$title = get_the_title();

if( isset( $ecademy_opt['enable_lazyloader'] ) ):
	$is_lazyloader = $ecademy_opt['enable_lazyloader'];
else:
	$is_lazyloader = true;
endif;

// Blog sidebar
if( isset( $ecademy_opt['ecademy_blog_sidebar'] ) ) {
    if( $ecademy_opt['ecademy_blog_sidebar'] == 'ecademy_without_sidebar_center' ):
        $sidebar = 'col-lg-8 col-md-12 offset-lg-2';
    elseif( $ecademy_opt['ecademy_blog_sidebar'] == 'ecademy_without_sidebar' ):
        $sidebar = 'col-lg-12 col-md-12';
    else:
        if( is_active_sidebar( 'sidebar-1' ) ):
            $sidebar = 'col-lg-8 col-md-12';
        else:
            $sidebar = 'col-lg-8 col-md-12 offset-lg-2';
        endif;
    endif;
	$ecademy_sidebar_hide = $ecademy_opt['ecademy_blog_sidebar'];

} else {
    if( is_active_sidebar( 'sidebar-1' ) ):
        $sidebar = 'col-lg-8 col-md-12';
        $ecademy_sidebar_hide = 'ecademy_with_sidebar';
    else:
        $sidebar = 'col-lg-8 col-md-12 offset-lg-2';
        $ecademy_sidebar_hide = 'ecademy_without_sidebar';
	endif;
}

// Blog Options
if( isset($ecademy_opt['blog_title']) ) {
    $hide_author_info       = $ecademy_opt['hide_author_info'];
} else {
    $hide_author_info       = true;
}

$author_cover_image = !empty($ecademy_opt['author_cover_image']['url']) ? $ecademy_opt['author_cover_image']['url'] : '';
$ecademy_blog_layout = !empty($ecademy_opt['ecademy_blog_layout']) ? $ecademy_opt['ecademy_blog_layout'] : 'container';
if ( !empty($_GET['ecademy_blog_layout']) ) {
    $ecademy_blog_layout = $_GET['ecademy_blog_layout'];
}
$hide_post_meta = !empty($ecademy_opt['hide_post_meta']) ? $ecademy_opt['hide_post_meta'] : '';

?>
	<!-- Start Blog Area -->
	<div class="blog-details-area ptb-100">
        <div class="<?php echo esc_attr( $ecademy_blog_layout ); ?>">
			<div class="row">
				<?php
				while ( have_posts() ) :
				the_post(); ?>
					<div class="<?php echo esc_attr( $sidebar ); ?>">
						<div class="blog-details">

							<?php if(has_post_thumbnail()) { ?>
								<div class="article-image">
									<?php if( $is_lazyloader == true ): ?>
										<img sm-src="<?php the_post_thumbnail_url('full') ?>" alt="<?php the_title_attribute(); ?>">
									<?php else: ?>
										<img src="<?php the_post_thumbnail_url('full') ?>" alt="<?php the_title_attribute(); ?>">
                            		<?php endif; ?>
								</div>
							<?php } ?>

							<div class="blog-details-content">
								<?php if( $hide_post_meta != '1' ){ ?>
									<div class="entry-meta">
										<ul>
											<li>
												<i class="bx bx-comment"></i>
												<?php comments_number(); ?>
											</li>
											<li>
												<i class="bx bx-group"></i>
												<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ) ) ?>"> <?php the_author() ?></a>
											</li>
											<li>
												<i class="bx bx-calendar"></i>
												<?php the_date(); ?>
											</li>
										</ul>
									</div>
								<?php } ?>

								<?php the_content();

								wp_link_pages( array(
									'before' => '<div class="page-links">' . esc_html__( 'صفحات:', 'ecademy' ),
									'after'  => '</div>',
								) );
								?>

								<?php if( $hide_author_info != true ): ?>
									<div class="article-author">
										<div class="author-profile-header" <?php if($author_cover_image){ ?>style="background-image:url(<?php echo esc_url($author_cover_image); ?>)"<?php } ?>></div>
										<div class="author-profile">
											<div class="author-profile-title">
												<?php
													$user = get_the_author_meta('ID');
													$user_image = get_avatar_url($user, ['size' => '100']);
												?>
												<?php if( $is_lazyloader == true ): ?>
													<img sm-src="<?php echo esc_url( $user_image ); ?>" class="shadow-sm rounded-circle" alt="<?php echo esc_attr(get_the_author()); ?>">
												<?php else: ?>
													<img src="<?php echo esc_url( $user_image ); ?>" class="shadow-sm rounded-circle" alt="<?php echo esc_attr(get_the_author()); ?>">
												<?php endif; ?>

												<div class="author-profile-title-details d-flex justify-content-between">
													<div class="author-profile-details">
														<h4><?php echo esc_html(get_the_author()); ?></h4>
														<span class="d-block"></span>
													</div>
												</div>
											</div>
											<p><?php echo esc_html(get_the_author_meta( 'description' )); ?></p>
										</div>
									</div>
								<?php endif; ?>
							</div>
						</div>

						<?php
							// 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;
						?>
					</div>
				<?php endwhile; // End of the loop. ?>

				<?php if( $ecademy_sidebar_hide == 'ecademy_with_sidebar' ): ?>
					<?php get_sidebar(); ?>
				<?php endif; ?>

			</div>
		</div>
	</div>
	<!-- End Blog Area -->

<?php
get_footer();