-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
27 lines (26 loc) · 1019 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php get_header(); ?>
<main data-off-canvas-content <?php main_class(); main_style();?>>
<?php wp_nav_menu(array(
'theme_location' => 'main',
'container' => false,
'items_wrap' => '<div id="%1$s" class="%2$s" annotate-menu=".top-menu">%3$s</div>',
'depth' => 0,
'walker' => new WB_Slider_Menu()
)); ?>
<?php
$articlesClass = [];
if ((!is_front_page() && !is_home()) || (is_front_page() && !is_home())) $articlesClass[] = 'articles-no-intro';
$articlesClass[] = 'articles';
$articlesClass = implode(' ', array_unique($articlesClass));
?>
<div class="<?php echo $articlesClass; ?>" bind-node="app.articleNodes">
<?php if ((is_front_page() && is_home()) || (!is_front_page() && is_home())) { ?>
<?php get_template_part('title'); ?>
<?php echo get_the_excerpt(get_option( 'page_for_posts' )); ?>
<?php } ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part('article'); ?>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>
</main>