Advertisement
maximus87

Untitled

Jul 20th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. <?php get_header();
  2. $term = get_queried_object();
  3. $color_scheme = get_field('category_color_scheme', $term);
  4. if (!$color_scheme) { $color_scheme = 'green'; } ?>
  5.  
  6. <main id="archive-main">
  7. <?php
  8. /**
  9. * This is a BAREBONES template for a module.
  10. * Generally, any processing of the Flexible Content row's fields would happen at the top
  11. * while the template code follows.
  12. */
  13.  
  14. $_devOptions = get_sub_field( 'developer_fields' );
  15. $title = get_sub_field('title');
  16. $background_image = get_field('search_hero_background', 'option');
  17. $image = get_field('search_hero_top_image', 'option');
  18. ?>
  19.  
  20. <section class="aucoyote-module primary-hero color-rose" <?php if ($background_image) { echo ' style="background: url('.$background_image.') no-repeat #000;"'; } ?>>
  21. <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>
  22. <div class="container-fluid container-md"><!-- Bootstrap containers should be wrapped in a full-width wrapping element. Do not nest containers.-->
  23. <div class="row with-image">
  24. <div class="col-md-6 offset-md-1">
  25. <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
  26. <?php the_archive_description( '<div class="description">', '</div>' ); ?>
  27. </div>
  28. <div class="col-md-5" style="background: url(<?php echo $image; ?>)"></div>
  29. </div>
  30. </div>
  31. </section>
  32. <section class="aucoyote-module news-listing color-rose">
  33. <div class="container">
  34.  
  35. <div class="row blog-list">
  36. <?php if ( have_posts() ) { ?>
  37.  
  38. <?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"]'); ?>
  39. <div class="alm-listing "></div>
  40.  
  41.  
  42. <?php } else { ?>
  43. <article id="post-not-found" class="col">
  44. <header class="article-header">
  45. <h1><?php _e( 'Oops, Post Not Found!', 'coyotetheme' ); ?></h1>
  46. </header>
  47. <section class="entry-content">
  48. <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'coyotetheme' ); ?></p>
  49. </section>
  50. <footer class="article-footer">
  51. <p><?php _e( 'This is the error message in the archive.php template.', 'coyotetheme' ); ?></p>
  52. </footer>
  53. </article>
  54. <?php } ?>
  55. </div>
  56. </div>
  57. </section>
  58. </main>
  59.  
  60. <?php //get_sidebar(); ?>
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement