This commit is contained in:
Roman Pyrih
2025-08-29 11:05:59 +02:00
parent 468136d4d1
commit 8a6b114721
11 changed files with 452 additions and 75 deletions

View File

@@ -1,20 +1,11 @@
<?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 BRPP_prawo_podatki
*/
get_header();
if ( is_home() && get_option('page_for_posts') == 27 ) {
get_template_part('blog');
return;
}
?>
<?php get_header(); ?>
<main id="primary" class="site-main">
<div class="container">
<?php
@@ -51,7 +42,6 @@ get_header();
?>
</div>
</main><!-- #main -->
<?php
get_sidebar();
get_footer();