index.php 668 Bytes
<?php
	get_header();
	global $post;
?>
	<!--Контент страницы-->
	<content class="content page_<?php echo $post->post_name; ?>">
		<?php
			while ( have_posts() ) :
				the_post();

				if ( !is_front_page() || has_post_format( 'aside' ) || get_post_type()=='page' )
					echo '<div class="container">'.
							'<div class="row">'.
								'<div class="col-12 py-4">'.
									'<h1 class="text-center text-md-start">'.get_the_title().'</h1>';
				the_content();
				if ( !is_front_page() || has_post_format( 'aside' ) || get_post_type()=='page' )
					echo 		'</div>'.
							'</div>'.
						'</div>';
			endwhile; 
		?>
	</content>
<?php
	get_footer();