Files
wordpress-theme-aksrt/front-page.php
T

47 lines
1.0 KiB
PHP

<?php
/**
* Homepage entry template.
*
* Front page requests are always delegated to the fixed homepage skeleton so
* the site reads as a primary Zibll-style operation hub instead of a page body.
*
* @package AKSRT
*/
if (function_exists('aksrt_render_fixed_homepage') && aksrt_render_fixed_homepage()) {
return;
}
get_header();
?>
<main id="main-content" class="site-main content-shell" tabindex="-1">
<?php $has_sidebar = is_active_sidebar('sidebar-blog'); ?>
<div class="content-layout<?php echo $has_sidebar ? '' : ' content-layout--no-sidebar'; ?>">
<div class="content-layout__primary">
<?php
while ( have_posts() ) :
the_post();
?>
<article <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
?>
</div>
<?php if ($has_sidebar) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</main>
<?php
get_footer();