Your IP : 216.73.216.1


Current Path : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/
Upload File :
Current File : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/index.php

<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package pally
 */

get_header();
?>


<div class="column col-12">
	<main aria-label="Hauptinhalt" id="primary" class="site-main"><!-- -1 remove from natural page order, but still focusable with js-->
	
		<?php if (function_exists('pally_nav_breadcrumb')) pally_nav_breadcrumb(); ?>
		<?php
		if ( have_posts() ) :

			if ( is_home() ) :
			?>
			<h1 class="page-title screen-reader-text"><?php echo get_bloginfo( 'name' );?></h1>
			<?php
			endif;



			/* Start the Loop */
			while ( have_posts() ) :
				the_post();
				/*
				 * Include the Post-Type-specific template for the content.
				 * If you want to override this in a child theme, then include a file
				 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
				 */

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

			endwhile;

			?>
			<div class="column col-12">
				<?php
					the_posts_navigation([
						'prev_text'          => esc_html__( 'Older posts', 'pally' ),
						'next_text'          => esc_html__( 'Newer posts', 'pally' ),
						'screen_reader_text' => esc_html__( 'Posts', 'pally' ),
						'aria_label'  => "esc_html__( 'Posts', 'pally' )",
					]);
				?>
		</div>
		<?php

		else :

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

		endif;
		?>

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

</div>

<?php
get_sidebar();
get_footer();