Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();
- $term = get_queried_object();
- $color_scheme = get_field('category_color_scheme', $term);
- if (!$color_scheme) { $color_scheme = 'green'; } ?>
- <main id="archive-main">
- <?php
- /**
- * This is a BAREBONES template for a module.
- * Generally, any processing of the Flexible Content row's fields would happen at the top
- * while the template code follows.
- */
- $_devOptions = get_sub_field( 'developer_fields' );
- $title = get_sub_field('title');
- $background_image = get_field('search_hero_background', 'option');
- $image = get_field('search_hero_top_image', 'option');
- ?>
- <section class="aucoyote-module primary-hero color-rose" <?php if ($background_image) { echo ' style="background: url('.$background_image.') no-repeat #000;"'; } ?>>
- <div class="left-lines"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 304 671" fill="none"><path stroke="#fff" stroke-dasharray="5 5" stroke-miterlimit="10" d="M-118 423.702s13.976.104 19.926-7.197c5.95-7.3 16.309-13.9 31.433-18.795 15.124-4.896 35.307.261 42.4-11.371 7.092-11.631-1.286-20.706 8.671-23.637 9.957-2.931 24.92 10.199 24.92 10.199l22.677 14.188 44.152-1.677s14.747-3.897 20.027 22.514c-16.974 46.228 33.682 49.055 50.66 42.504 16.978-6.551 51.143-3.595 51.143-3.595l13.114 17.072"/><path stroke="#fff" stroke-dasharray="5 5" stroke-miterlimit="10" d="M33 380.64s0-57.632 7-87.129c7-29.497 27.58-39.315 48.376-34.948 20.796 4.366 23.984 37.483 46 33.637 31.5-5.502 33.738-25.534 43.546-25.222 9.808.311 32.454 25.222 32.454 25.222l-11 46.23s8.377 30.026 25.5 62.17c17.124 32.145-20.5 88.944-20.5 88.944"/><path stroke="#fff" stroke-dasharray="5 5" stroke-miterlimit="10" d="m-6 16.139 51.935 30.858s12.026 32.008-9.745 58.942c-21.77 26.934 26.187 50.26 26.187 50.26L101 159.084l25 25.867S147 204.404 152 226.722c5 22.317-28 59.529-28 59.529M-110.999 565.023l58.871 17.865s35.13-11.273 44.926-43.473c9.796-32.199 50.004-19.843 59.688-12.498 9.684 7.344 26.433 25.72 26.433 25.72s23.064 2.235 37.861 1.774c20.631-.643 48.246 23.799 52.233-7.37C173 515.871 183 527.67 201.946 493.365"/></svg></div>
- <div class="container-fluid container-md"><!-- Bootstrap containers should be wrapped in a full-width wrapping element. Do not nest containers.-->
- <div class="row with-image">
- <div class="col-md-6 offset-md-1">
- <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
- <?php the_archive_description( '<div class="description">', '</div>' ); ?>
- </div>
- <div class="col-md-5" style="background: url(<?php echo $image; ?>)"></div>
- </div>
- </div>
- </section>
- <section class="aucoyote-module news-listing color-rose">
- <div class="container">
- <div class="row blog-list">
- <?php if ( have_posts() ) { ?>
- <?php echo do_shortcode('[ajax_load_more archive="true" post_type="post" posts_per_page="8" paging="true" paging_show_at_most="7" paging_scroll="true:100" paging_controls="false" theme_repeater="news-listing.php"]'); ?>
- <div class="alm-listing "></div>
- <?php } else { ?>
- <article id="post-not-found" class="col">
- <header class="article-header">
- <h1><?php _e( 'Oops, Post Not Found!', 'coyotetheme' ); ?></h1>
- </header>
- <section class="entry-content">
- <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'coyotetheme' ); ?></p>
- </section>
- <footer class="article-footer">
- <p><?php _e( 'This is the error message in the archive.php template.', 'coyotetheme' ); ?></p>
- </footer>
- </article>
- <?php } ?>
- </div>
- </div>
- </section>
- </main>
- <?php //get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement