}
if (is_home()) {
include "sections/blog-home.php";
+ }
+ if (is_category() ) {
+ include "sections/blog-category.php";
}
if (is_archive()) {
include "sections/blog-archive.php";
- }
+ }
if (is_single()) {
include "sections/blog-single.php";
}
-<div id="header-crowdriff">
- <?php
- if (function_exists('the_field')) {
- $term = get_queried_object();
- if ($term) {
- echo get_field('post_crowdriff', get_queried_object());
- }
- }
- ?>
-</div>
+<?php if ( function_exists('the_field') && get_field('frontpage_crowdriff', get_option( 'page_on_front' ) ) ) { ?>
+ <div id="header-crowdriff">
+ <?php the_field('frontpage_crowdriff', get_option( 'page_on_front' ) ); ?>
+ </div>
+<?php } ?>
<main class="blog-archive">
<div class="row">
<?php get_template_part('parts/blog-content-area'); ?>
<?php get_template_part('parts/blog-sidebar-r'); ?>
</div>
-</main>
\ No newline at end of file
+</main>
--- /dev/null
+
+<div id="header-crowdriff">
+ <?php
+ if (function_exists('the_field')) {
+ $term = get_queried_object();
+ if ($term) {
+ echo get_field('post_crowdriff', get_queried_object());
+ }
+ }
+ ?>
+</div>
+<main class="blog-category">
+ <div class="row">
+ <?php get_template_part('parts/blog-content-area'); ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
+ </div>
+</main>
- <main class="blog-home">
- <?php if (function_exists('the_field') && get_field('interior_header_crowdriff_script',get_option( 'page-for-posts' ))) { ?>
- <div id="header-crowdriff">
- <?php echo the_field('interior_header_crowdriff_script',get_option( 'page-for-posts' )); ?>
- </div>
- <?php } else { ?>
- <!-- <div id="header-featured"> -->
- <?php //echo glm_get_header(); ?>
- <!-- </div> -->
- <?php } ?>
- <div class="row">
- <?php get_template_part('parts/blog-content-area'); ?>
- <?php get_template_part('parts/blog-sidebar-r'); ?>
- </div>
- </main>
\ No newline at end of file
+<main class="blog-home">
+ <?php if ( function_exists('the_field') && get_field('frontpage_crowdriff', get_option( 'page_on_front' ) ) ) { ?>
+ <div id="header-crowdriff">
+ <?php the_field('frontpage_crowdriff', get_option( 'page_on_front' ) ); ?>
+ </div>
+ <?php } ?>
+ <div class="row">
+ <?php get_template_part('parts/blog-content-area'); ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
+ </div>
+</main>
\ No newline at end of file
<?php the_field('frontpage_crowdriff'); ?>
</div>
<?php } else { ?>
- no crowdriff
+
<?php } ?>
<!-- <?php //get_template_part('parts/blog-feed-front'); ?>
<div id="lens">