windhamdavid 3 years ago
parent
commit
04950d3c9d
17 changed files with 399 additions and 230 deletions
  1. 14 0
      404.php
  2. 87 84
      css/custom.css
  3. 6 4
      css/custom.scss
  4. 9 8
      footer.php
  5. 20 22
      front-page.php
  6. 24 4
      functions.php
  7. 58 0
      home.php
  8. 1 1
      inc/hp-cleaner.php
  9. 11 9
      inc/hp-templates.php
  10. 8 0
      js/init.js
  11. 12 5
      page-donate.php
  12. 6 1
      page-full.php
  13. 6 1
      page.php
  14. 7 5
      search.php
  15. 9 0
      searchform.php
  16. 3 3
      single.php
  17. 118 83
      style.css

+ 14 - 0
404.php

@@ -0,0 +1,14 @@
+<?php get_header();?>
+  <div class="container">
+    <div class="row py-5">
+      <div class="col-lg-6">
+        <h1>Error 404</h1>
+        <h2>Nothing Found</h2>
+        <h3>Search Again?</h3>
+        <div class="text-dark">
+        <?php get_search_form();?>
+        </div>
+      </div>
+    </div>
+  </div>
+<?php get_footer();?>

+ 87 - 84
css/custom.css

@@ -1,3 +1,6 @@
+.btn-outline-light:hover {
+  background: #919fa6; }
+
 a {
   color: var(--bs-success);
   text-decoration: none; }
@@ -38,8 +41,8 @@ a {
   --bs-info: #50A7AD;
   --bs-warning: #E0DC67;
   --bs-danger: #CC7C84;
-  --bs-light: #f8f9fa;
-  --bs-dark: #212529;
+  --bs-light: #dedede;
+  --bs-dark: #191D1F;
   --bs-font-sans-serif: "Lato", Helvetica, Arial, sans-serif;
   --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
   --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); }
@@ -1438,26 +1441,26 @@ progress {
   border-color: #ddcecf; }
 
 .table-light {
-  --bs-table-bg: #f8f9fa;
-  --bs-table-striped-bg: #ecedee;
+  --bs-table-bg: #dedede;
+  --bs-table-striped-bg: lightgray;
   --bs-table-striped-color: #000;
-  --bs-table-active-bg: #dfe0e1;
+  --bs-table-active-bg: #c8c8c8;
   --bs-table-active-color: #000;
-  --bs-table-hover-bg: #e5e6e7;
+  --bs-table-hover-bg: #cdcdcd;
   --bs-table-hover-color: #000;
   color: #000;
-  border-color: #dfe0e1; }
+  border-color: #c8c8c8; }
 
 .table-dark {
-  --bs-table-bg: #212529;
-  --bs-table-striped-bg: #2c3034;
+  --bs-table-bg: #191D1F;
+  --bs-table-striped-bg: #25282a;
   --bs-table-striped-color: #fff;
-  --bs-table-active-bg: #373b3e;
+  --bs-table-active-bg: #303435;
   --bs-table-active-color: #fff;
-  --bs-table-hover-bg: #323539;
+  --bs-table-hover-bg: #2a2e30;
   --bs-table-hover-color: #fff;
   color: #fff;
-  border-color: #373b3e; }
+  border-color: #303435; }
 
 .table-responsive {
   overflow-x: auto;
@@ -2283,59 +2286,59 @@ textarea.form-control-lg {
 
 .btn-light {
   color: #000;
-  background-color: #f8f9fa;
-  border-color: #f8f9fa; }
+  background-color: #dedede;
+  border-color: #dedede; }
   .btn-light:hover {
     color: #000;
-    background-color: #f9fafb;
-    border-color: #f9fafb; }
+    background-color: #e3e3e3;
+    border-color: #e1e1e1; }
   .btn-check:focus + .btn-light, .btn-light:focus {
     color: #000;
-    background-color: #f9fafb;
-    border-color: #f9fafb;
-    box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5); }
+    background-color: #e3e3e3;
+    border-color: #e1e1e1;
+    box-shadow: 0 0 0 0.25rem rgba(189, 189, 189, 0.5); }
   .btn-check:checked + .btn-light,
   .btn-check:active + .btn-light, .btn-light:active, .btn-light.active,
   .show > .btn-light.dropdown-toggle {
     color: #000;
-    background-color: #f9fafb;
-    border-color: #f9fafb; }
+    background-color: #e5e5e5;
+    border-color: #e1e1e1; }
     .btn-check:checked + .btn-light:focus,
     .btn-check:active + .btn-light:focus, .btn-light:active:focus, .btn-light.active:focus,
     .show > .btn-light.dropdown-toggle:focus {
-      box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5); }
+      box-shadow: 0 0 0 0.25rem rgba(189, 189, 189, 0.5); }
   .btn-light:disabled, .btn-light.disabled {
     color: #000;
-    background-color: #f8f9fa;
-    border-color: #f8f9fa; }
+    background-color: #dedede;
+    border-color: #dedede; }
 
 .btn-dark {
   color: #fff;
-  background-color: #212529;
-  border-color: #212529; }
+  background-color: #191D1F;
+  border-color: #191D1F; }
   .btn-dark:hover {
     color: #fff;
-    background-color: #1c1f23;
-    border-color: #1a1e21; }
+    background-color: #15191a;
+    border-color: #141719; }
   .btn-check:focus + .btn-dark, .btn-dark:focus {
     color: #fff;
-    background-color: #1c1f23;
-    border-color: #1a1e21;
-    box-shadow: 0 0 0 0.25rem rgba(66, 70, 73, 0.5); }
+    background-color: #15191a;
+    border-color: #141719;
+    box-shadow: 0 0 0 0.25rem rgba(60, 63, 65, 0.5); }
   .btn-check:checked + .btn-dark,
   .btn-check:active + .btn-dark, .btn-dark:active, .btn-dark.active,
   .show > .btn-dark.dropdown-toggle {
     color: #fff;
-    background-color: #1a1e21;
-    border-color: #191c1f; }
+    background-color: #141719;
+    border-color: #131617; }
     .btn-check:checked + .btn-dark:focus,
     .btn-check:active + .btn-dark:focus, .btn-dark:active:focus, .btn-dark.active:focus,
     .show > .btn-dark.dropdown-toggle:focus {
-      box-shadow: 0 0 0 0.25rem rgba(66, 70, 73, 0.5); }
+      box-shadow: 0 0 0 0.25rem rgba(60, 63, 65, 0.5); }
   .btn-dark:disabled, .btn-dark.disabled {
     color: #fff;
-    background-color: #212529;
-    border-color: #212529; }
+    background-color: #191D1F;
+    border-color: #191D1F; }
 
 .btn-outline-primary, .is-style-bootstrap-outline-primary > a, .is-style-bootstrap-primary-lg > a {
   color: #325363;
@@ -2468,45 +2471,45 @@ textarea.form-control-lg {
     background-color: transparent; }
 
 .btn-outline-light {
-  color: #f8f9fa;
-  border-color: #f8f9fa; }
+  color: #dedede;
+  border-color: #dedede; }
   .btn-outline-light:hover {
     color: #000;
-    background-color: #f8f9fa;
-    border-color: #f8f9fa; }
+    background-color: #dedede;
+    border-color: #dedede; }
   .btn-check:focus + .btn-outline-light, .btn-outline-light:focus {
-    box-shadow: 0 0 0 0.25rem rgba(248, 249, 250, 0.5); }
+    box-shadow: 0 0 0 0.25rem rgba(222, 222, 222, 0.5); }
   .btn-check:checked + .btn-outline-light,
   .btn-check:active + .btn-outline-light, .btn-outline-light:active, .btn-outline-light.active, .btn-outline-light.dropdown-toggle.show {
     color: #000;
-    background-color: #f8f9fa;
-    border-color: #f8f9fa; }
+    background-color: #dedede;
+    border-color: #dedede; }
     .btn-check:checked + .btn-outline-light:focus,
     .btn-check:active + .btn-outline-light:focus, .btn-outline-light:active:focus, .btn-outline-light.active:focus, .btn-outline-light.dropdown-toggle.show:focus {
-      box-shadow: 0 0 0 0.25rem rgba(248, 249, 250, 0.5); }
+      box-shadow: 0 0 0 0.25rem rgba(222, 222, 222, 0.5); }
   .btn-outline-light:disabled, .btn-outline-light.disabled {
-    color: #f8f9fa;
+    color: #dedede;
     background-color: transparent; }
 
 .btn-outline-dark {
-  color: #212529;
-  border-color: #212529; }
+  color: #191D1F;
+  border-color: #191D1F; }
   .btn-outline-dark:hover {
     color: #fff;
-    background-color: #212529;
-    border-color: #212529; }
+    background-color: #191D1F;
+    border-color: #191D1F; }
   .btn-check:focus + .btn-outline-dark, .btn-outline-dark:focus {
-    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5); }
+    box-shadow: 0 0 0 0.25rem rgba(25, 29, 31, 0.5); }
   .btn-check:checked + .btn-outline-dark,
   .btn-check:active + .btn-outline-dark, .btn-outline-dark:active, .btn-outline-dark.active, .btn-outline-dark.dropdown-toggle.show {
     color: #fff;
-    background-color: #212529;
-    border-color: #212529; }
+    background-color: #191D1F;
+    border-color: #191D1F; }
     .btn-check:checked + .btn-outline-dark:focus,
     .btn-check:active + .btn-outline-dark:focus, .btn-outline-dark:active:focus, .btn-outline-dark.active:focus, .btn-outline-dark.dropdown-toggle.show:focus {
-      box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5); }
+      box-shadow: 0 0 0 0.25rem rgba(25, 29, 31, 0.5); }
   .btn-outline-dark:disabled, .btn-outline-dark.disabled {
-    color: #212529;
+    color: #191D1F;
     background-color: transparent; }
 
 .btn-link {
@@ -3612,18 +3615,18 @@ textarea.form-control-lg {
     color: #623b3f; }
 
 .alert-light {
-  color: #636464;
-  background-color: #fefefe;
-  border-color: #fdfdfe; }
+  color: #595959;
+  background-color: #f8f8f8;
+  border-color: whitesmoke; }
   .alert-light .alert-link {
-    color: #4f5050; }
+    color: #474747; }
 
 .alert-dark {
-  color: #141619;
-  background-color: #d3d3d4;
-  border-color: #bcbebf; }
+  color: #0f1113;
+  background-color: #d1d2d2;
+  border-color: #babbbc; }
   .alert-dark .alert-link {
-    color: #101214; }
+    color: #0c0e0f; }
 
 @keyframes progress-bar-stripes {
   0% {
@@ -3890,26 +3893,26 @@ textarea.form-control-lg {
     border-color: #7a4a4f; }
 
 .list-group-item-light {
-  color: #636464;
-  background-color: #fefefe; }
+  color: #595959;
+  background-color: #f8f8f8; }
   .list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus {
-    color: #636464;
-    background-color: #e5e5e5; }
+    color: #595959;
+    background-color: #dfdfdf; }
   .list-group-item-light.list-group-item-action.active {
     color: #fff;
-    background-color: #636464;
-    border-color: #636464; }
+    background-color: #595959;
+    border-color: #595959; }
 
 .list-group-item-dark {
-  color: #141619;
-  background-color: #d3d3d4; }
+  color: #0f1113;
+  background-color: #d1d2d2; }
   .list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus {
-    color: #141619;
-    background-color: #bebebf; }
+    color: #0f1113;
+    background-color: #bcbdbd; }
   .list-group-item-dark.list-group-item-action.active {
     color: #fff;
-    background-color: #141619;
-    border-color: #141619; }
+    background-color: #0f1113;
+    border-color: #0f1113; }
 
 .btn-close {
   box-sizing: content-box;
@@ -4667,14 +4670,14 @@ textarea.form-control-lg {
     color: #d6969d; }
 
 .link-light {
-  color: #f8f9fa; }
+  color: #dedede; }
   .link-light:hover, .link-light:focus {
-    color: #f9fafb; }
+    color: #e5e5e5; }
 
 .link-dark {
-  color: #212529; }
+  color: #191D1F; }
   .link-dark:hover, .link-dark:focus {
-    color: #1a1e21; }
+    color: #141719; }
 
 .ratio {
   position: relative;
@@ -4967,10 +4970,10 @@ textarea.form-control-lg {
   border-color: #CC7C84 !important; }
 
 .border-light {
-  border-color: #f8f9fa !important; }
+  border-color: #dedede !important; }
 
 .border-dark {
-  border-color: #212529 !important; }
+  border-color: #191D1F !important; }
 
 .border-white {
   border-color: #fff !important; }
@@ -5563,10 +5566,10 @@ textarea.form-control-lg {
   color: #CC7C84 !important; }
 
 .text-light {
-  color: #f8f9fa !important; }
+  color: #dedede !important; }
 
 .text-dark {
-  color: #212529 !important; }
+  color: #191D1F !important; }
 
 .text-white {
   color: #fff !important; }
@@ -5617,10 +5620,10 @@ textarea.form-control-lg {
   background-color: #CC7C84 !important; }
 
 .bg-light {
-  background-color: #f8f9fa !important; }
+  background-color: #dedede !important; }
 
 .bg-dark {
-  background-color: #212529 !important; }
+  background-color: #191D1F !important; }
 
 .bg-body {
   background-color: #fff !important; }

+ 6 - 4
css/custom.scss

@@ -7,10 +7,13 @@ $success: #5177B0;
 $info: #50A7AD;
 $warning: #E0DC67;
 $danger: #CC7C84;
+$light:#dedede;
+$dark:#191D1F;
 
 $indigo: #343C70;
 $blue: #38537A;
 $blue-100:#38537A;
+
 $font-family-sans-serif:  'Lato', Helvetica, Arial, sans-serif !default;
 
 a {
@@ -33,6 +36,7 @@ a {
 }
 
 
+
 .wp-block-button__link {
 	-webkit-border-radius: 2px;
 	border-radius: 2px;
@@ -45,10 +49,8 @@ a {
 }
 
 
-
-@import '../node_modules/bootstrap/scss/bootstrap';
+@import '../node_modules/bootstrap/scss/mixins';
 @import '../node_modules/bootstrap/scss/functions';
 @import '../node_modules/bootstrap/scss/variables';
-@import '../node_modules/bootstrap/scss/mixins';
-
+@import '../node_modules/bootstrap/scss/bootstrap';
 

+ 9 - 8
footer.php

@@ -1,20 +1,19 @@
 <div id="footer-nav">
 </div>
-  <div class="footer pt-5 pb-5">
+  <div class="footer mt-5 py-5">
     <div id="footer-widget" class="m-0">
-      <div class="container text-muted">
+      <div class="container text-light">
         <div class="row">
-          <div class="col-12 col-lg-4">
+          <div class="col-12 col-lg-4 d-none d-md-block">
             <?php if ( is_active_sidebar( 'footer-1' )) :  dynamic_sidebar( 'footer-1' ); endif; ?>
           </div>
-          <div class="col-12 col-lg-4">
+          <div class="col-12 col-lg-4 d-none d-md-block">
             <?php if ( is_active_sidebar( 'footer-2' )) :  dynamic_sidebar( 'footer-2' ); endif; ?>
           </div>
           <div class="col-12 col-lg-4">
               <h3 class="widget-title">Newsletter</h3>
-              <hr>
               <form class="mc">
-                <h3 class="widget-title">Sign up to receive email updates from us.</h3>
+                <h3 class="lato-widget">Sign up to receive email updates from us.</h3>
                 <div class="form-group row">
                   <div class="col">
                     <input type="text" class="form-control" placeholder="First name">
@@ -41,6 +40,7 @@
   <div class="container text-muted pt-3 pb-3">
     <div class="d-flex justify-content-md-end justify-content-sm-center">
       <nav class="navbar navbar-expand navbar-dark p-0">
+
       <?php
         wp_nav_menu( array(
           'theme_location' => 'bottom',
@@ -55,14 +55,15 @@
       </nav>
     </div>
     <div class="d-flex justify-content-md-start justify-content-sm-center">
-      <div class="site-info pt-4 pb-3 text-muted">
+      <div class="site-info py-1 text-muted">
         &copy; <?php echo date('Y'); ?> <?php echo '<a href="'.home_url().'">'.get_bloginfo('name').'</a>'; ?><br />
         408 West Alexander Avenue, Greenwood, SC 29646
       </div>
 
     </div>
     <div class="site-credits text-muted">
-      <p class="text-end">website: IHO <a href="https://en.wikipedia.org/wiki/Captain_Tom">Thomas Moore</a> <img src="<?php echo get_template_directory_uri(); ?>/img/knight.png" width="15px"></p>
+      <!--<p class="text-end pb-0"><i class="fs-2 bi bi-toggle-off"></i></p>-->
+      <p class="text-end">website IHO: <a href="https://en.wikipedia.org/wiki/Captain_Tom">Thomas Moore</a></p>
     </div>
   </div>
 </footer>

+ 20 - 22
front-page.php

@@ -1,13 +1,14 @@
 <?php get_header();?>
-  <?php if(is_front_page()): ?>
-    <div class="container-fluid p-0 m-0">
-     <?php if ( function_exists( 'soliloquy' ) ) { soliloquy( '3606' ); } ?>
-    </div>
-  <?php endif; ?>
+
 <div id="content" class="site-content">
   <div class="container">
-    <div class="row">
-      <section id="primary" class="content-area col-sm-12 col-lg-5">
+    <div class="row gx-5">
+      <section id="primary" class="col-sm-12 col-lg-6">
+        <?php if(is_front_page()): ?>
+          <div class="container-fluid p-0 m-0">
+           <?php if ( function_exists( 'soliloquy' ) ) { soliloquy( '3606' ); } ?>
+          </div>
+        <?php endif; ?>
         <div id="main" class="site-main" role="main">
           <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
             <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
@@ -18,11 +19,8 @@
         <?php endwhile; ?>
         </div>
       </section>
-      <section id="secondary" class="content-area col-sm-12 col-lg-6 offset-lg-1">
-        <header class="entry-header">
-          <h2 class="entry-title">Get Involved</h2>
+      <section id="secondary" class="col-sm-12 col-lg-6 ms-auto">
           <?php $post = get_post(7); $output = apply_filters( 'the_content', $post->post_content ); echo $output; ?>
-        </header>
           <h2 class="entry-title mt-5">Hospice Stores</h2>
         <div class="row no-gutters">
           <?php $upload_dir = wp_upload_dir(); ?>
@@ -47,31 +45,31 @@
           <h2 class="entry-title mt-5">News</h2>
         </header>
         <div class="">
-
   				<?php $mostrecentposts = new WP_Query();
           $mostrecentposts = get_posts('numberposts=1');
           foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
-
-          <div class="row no-gutters">
-            <div class="col-md-12">
-              <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
-              <div class="image-wrapper float-left pr-3">
-                <?php the_post_thumbnail('thumbnail', array('class' => 'rounded')); ?>
+          <div class="row">
+            <header class="entry-header">
+              <h3 class="front-page m-0"><?php the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );?></h3>
+              <div class="entry-meta mt-0">
+                <time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><i class="bi bi-calendar-date m2-1"></i> <?php echo get_the_date(); ?></time>
               </div>
-              <div class="pull-right">
-                <?php the_excerpt(); ?>
+            </header>
+            <div class="front-page-entry-content">
+              <div class="post-thumbnail">
+                <?php echo the_post_thumbnail(array(180,180), ['class' => 'p-2 float-end']); ?>
               </div>
+              <?php the_excerpt();?>
             </div>
           </div>
-
   				<?php endforeach;wp_reset_query();?>
         </div>
-        <hr>
         <div class="">
   				<?php $recentposts = get_posts(array('numberposts'=>5,'offset'=>1)); foreach ($recentposts as $post) : setup_postdata($post); ?>
   				       <li style="color:#777;list-style:none;"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
   				<?php endforeach; ?>
         </div>
+
       </section>
     </div>
   </div>

+ 24 - 4
functions.php

@@ -79,10 +79,6 @@ if ( ! function_exists( 'hp_setup' ) ) :
 endif;
 add_action( 'after_setup_theme', 'hp_setup' );
 
-function hp_content_width() {
-	$GLOBALS['content_width'] = apply_filters( 'hp_content_width', 1170 );
-}
-add_action( 'after_setup_theme', 'hp_content_width', 0 );
 
 function hp_widgets_init() {
     register_sidebar( array(
@@ -197,3 +193,27 @@ function hp_seamless_redirect() {
   }
 }
 add_action( 'template_redirect', 'hp_seamless_redirect' );
+
+function hp_exclude_seamless_post_type($query) {
+  if(is_admin() || !$query->is_main_query()) return;
+  if($query->is_search()) {
+    $post_type_to_remove = 'funds';
+    $searchable = get_post_types(array('exclude_from_search' => false));
+    if(is_array($searchable) && in_array($post_type_to_remove, $searchable)){
+      $query->set('post_type', $searchable);
+    }
+  }
+}
+add_action('pre_get_posts', 'hp_exclude_seamless_post_type', 99 );
+
+function hp_remove_fund_custom_type() {
+	global $wp_post_types;
+	$wp_post_types['funds']->exclude_from_search = true;
+}
+add_action( 'init', 'hp_remove_fund_custom_type', 99 );
+
+function hp_remove_donor_custom_type() {
+	global $wp_post_types;
+	$wp_post_types['donor']->exclude_from_search = true;
+}
+add_action( 'init', 'hp_remove_donor_custom_type', 99 );

+ 58 - 0
home.php

@@ -0,0 +1,58 @@
+<?php get_header(); ?>
+<div id="content" class="site-content">
+  <div class="container">
+    <div class="row">
+      <div class="col-lg-3 d-sm-none d-md-block">
+        <div class="hp-sidenav navbar sticky-md-top pt-sm-3" role="navigation">
+          <div class="navbars-collapse">
+            <div class="flex-column list-group-flush">
+              <?php get_sidebar() ?>
+            </div>
+          </div>
+        </div>
+      </div>
+      <section id="primary" class="content-area col-lg-9 col-md-12">
+        <div id="main" class="site-main" role="main">
+        <h1 class="entry-title">News</h1>
+        <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+            <div class="row">
+              <div class="col-lg-6">
+                <header class="entry-header">
+                  <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );?>
+                  <div class="entry-meta">
+                    <time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><i class="bi bi-calendar-date m2-1"></i> <?php echo get_the_date(); ?></time>
+                  </div>
+                </header>
+                <div class="entry-content">
+                  <?php the_excerpt();?>
+                </div>
+              </div>
+              <div class="col-lg-6">
+                <div class="post-thumbnail">
+                  <?php the_post_thumbnail('thumbnail', array('width' => 150)); ?>
+                </div>
+              </div>
+              <footer class="entry-footer">
+              </footer>
+            </div>
+          </article>
+        <hr/>
+        <?php endwhile;?>
+        </div>
+        <div class="row">
+          <div class="col-sm-12">
+            <?php the_posts_pagination( array(
+              'prev_text' => __( ' &larr; Newer ' ),
+              'next_text' => __( ' Older &rarr; ' ),
+            ));
+            ?>
+            <hr/>
+          </div>
+        </div>
+      </section>
+    </div>
+
+  </div>
+</div>
+<?php get_footer(); ?>

+ 1 - 1
inc/hp-cleaner.php

@@ -26,7 +26,7 @@ function filter_media_comment_status( $open, $post_id ) {
 add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
 
 function remove_default_img_sizes( $sizes ) {
-  $targets = ['medium_large', 'large', '1536x1536', '2048x2048'];
+  $targets = ['medium_large', '1536x1536', '2048x2048'];
   foreach($sizes as $size_index=>$size) {
     if(in_array($size, $targets)) {
       unset($sizes[$size_index]);

+ 11 - 9
inc/hp-templates.php

@@ -6,7 +6,7 @@
 
 function hp_donate_nav_item( $items, $args ) {
   if( $args->theme_location == 'primary' ) {
-    $items = $items .'<li id="donate-button" class="menu-item nav-item ps-lg-3">'."\n".'<a class="btn btn-outline-light" href="'.home_url().'/donate" role="button">Donate</a></li>';
+    $items = $items .'<li id="donate-button" class="menu-item nav-item ps-lg-3">'."\n".'<a class="btn btn-outline-light" href="'.home_url().'/get-involved/donate" role="button">Donate <i class="bi bi-suit-heart-fill p-1 text-danger"></i></a></li>';
   }
   return $items;
 }
@@ -14,14 +14,16 @@ add_filter('wp_nav_menu_items','hp_donate_nav_item',10,2);
 
 function hp_list_child_pages() {
   global $post;
-    $children = get_pages( array( 'child_of' => $post->ID ) );
-    $hasChild = (count( $children ) > 0 );
-    $page_id = ($hasChild) ? $post->ID : wp_get_post_parent_id( $post->ID );
-      wp_list_pages( array(
-      'title_li'    => '',
-      'sort_column' => 'post_title',
-      'child_of'    => $page_id,
-    ));
+  $children = get_pages( array( 'child_of' => $post->ID ) );
+  $haschild = (count( $children ) > 0 );
+  $page_id = ($haschild) ? $post->ID : wp_get_post_parent_id( $post->ID );
+  wp_list_pages( array(
+    'title_li'    => '',
+    'depth'       => 0,
+    'sort_order'  => 'asc',
+    'sort_column' => 'menu_order',
+    'child_of'    => $page_id,
+  ));
 }
 add_shortcode('hp_childpages', 'hp_list_child_pages');
 

+ 8 - 0
js/init.js

@@ -34,6 +34,14 @@ jQuery( function ( $ ) {
     }
   });
 
+  $('.blocks-gallery-item').on( 'show.bs.modal', function ( event ) {
+    var button = $( event.relatedTarget );
+    var modal = $( this );
+    modal.find('.modal-body').html(
+    button.html()
+    );
+  });
+
 });
 
 /****** accessibility for keyboard only users. https://git.io/vWdr2 ******/

+ 12 - 5
page-donate.php

@@ -2,11 +2,18 @@
 <div id="content" class="site-content">
   <div class="container">
     <div class="row">
-      <div class="col-md-3 ">
-        <div class="hp-sidenav navbar-collapse sticky-lg-top pt-5-md" role="navigation">
-            <ul class="nav flex-column list-group-flush">
-              <?php echo hp_list_child_pages(); ?>
-            </ul>
+      <div class="col-lg-3">
+        <div class="hp-sidenav navbar sticky-md-top pt-sm-3" role="navigation">
+          <div class="navbars-collapse">
+            <div class="flex-column list-group-flush">
+              <li class="<?php if ( is_page() && !$post->post_parent ) echo 'current_nav-item'; ?> nav-item list-group-item py-1 p-0">
+                <a href="<?php echo get_permalink( $post->post_parent ); ?>" >
+                  <?php echo get_the_title( $post->post_parent ); ?>
+                </a>
+              </li>
+             <?php echo hp_list_child_pages(); ?>
+            </div>
+          </div>
         </div>
       </div>
       <section id="primary" class="content-area col-sm-12 col-md-9">

+ 6 - 1
page-full.php

@@ -479,6 +479,11 @@
                   <button type="button" class="btn btn-outline-danger">Danger</button>
                 </p>
 
+                <p class="bs-component">
+                  <button type="button" class="btn btn-outline-light">Light</button>
+                  <button type="button" class="btn btn-outline-dark">Dark</button>
+                </p>
+
                 <div class="bs-component">
                   <div class="btn-group" role="group" aria-label="Button group with nested dropdown">
                     <button type="button" class="btn btn-primary">Primary</button>
@@ -525,7 +530,7 @@
                   </div>
                 </div>
 
-                <div class="bs-component">
+                <div class="bs-component mt-3">
                   <button type="button" class="btn btn-primary btn-lg">Large button</button>
                   <button type="button" class="btn btn-primary">Default button</button>
                   <button type="button" class="btn btn-primary btn-sm">Small button</button>

+ 6 - 1
page.php

@@ -6,6 +6,11 @@
         <div class="hp-sidenav navbar sticky-md-top pt-sm-3" role="navigation">
           <div class="navbars-collapse">
             <div class="flex-column list-group-flush">
+              <li class="<?php if ( is_page() && !$post->post_parent ) echo 'current_nav-item'; ?> nav-item list-group-item py-1 p-0">
+                <a href="<?php echo get_permalink( $post->post_parent ); ?>" >
+                  <?php echo get_the_title( $post->post_parent ); ?>
+                </a>
+              </li>
              <?php echo hp_list_child_pages(); ?>
             </div>
           </div>
@@ -25,7 +30,7 @@
               <?php the_content(); ?>
             </div>
             <div class="meta text-end mb-5">
-              <small><i class="bi-alarm"></i> Last Updated: <?php the_modified_time('F jS, Y'); edit_post_link( __( 'edit', 'textdomain' ), ' ( ', ' )' );?></small>
+              <small><i class="bi-alarm"></i> <?php the_modified_time('Y/m/d'); edit_post_link( __( 'edit', 'textdomain' ), ' ( ', ' )' );?></small>
             </div>
           </article>
         <?php endwhile; ?>

+ 7 - 5
search.php

@@ -1,8 +1,7 @@
 <?php get_header();?>
-
   <div class="container">
     <div class="row">
-      <div class="col col-lg-9 col-sm-12">
+      <div class="col-lg-9 col-sm-12">
         <?php if ( have_posts() ) : ?>
   				<header class="page-header">
   					<h1></strong><?php printf( __( 'Search for: %s' ), get_search_query() ); ?></h1>
@@ -14,12 +13,15 @@
           <div class="entry-content">
             <?php the_excerpt(); ?>
           </div>
-				<?php endwhile;	else : printf( __( 'Nothing Found' ));get_search_form(); endif;?>
+				<?php endwhile;	else: ?>
+          <header class="entry-header">
+          <h2 class="entry-title">Nothing Found</h2>
+          </header>
+        <?php get_search_form();endif; ?>
       </div>
-      <div class="col col-lg-3 col-sm-12 bg-primary">
+      <div class="col-lg-3 col-sm-12 d-none">
         <?php get_sidebar();?>
       </div>
     </div>
   </div>
-
 <?php get_footer();?>

+ 9 - 0
searchform.php

@@ -0,0 +1,9 @@
+<form role="search" method="get" class="search-form" id="searchform" action="<?php echo home_url( '/' ); ?>">
+  <div class="input-group mb-3">
+    <input type="search" id="s" class="form-control search-field"
+      placeholder="<?php echo esc_attr_x( 'Search', 'placeholder' ) ?>"
+      value="<?php echo get_search_query() ?>" name="s"
+      title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
+    <button class="btn btn-outline-light" type="submit"><i class="bi bi-search"></i></button>
+  </div>
+</form>

+ 3 - 3
single.php

@@ -6,9 +6,6 @@
         <div id="main" class="site-main" role="main">
         <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
           <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-            <div class="post-thumbnail">
-              <?php the_post_thumbnail(); ?>
-            </div>
             <header class="entry-header">
               <?php the_title( '<h1 class="entry-title">', '</h1>' );?>
               <div class="entry-meta">
@@ -19,6 +16,9 @@
               <?php the_content();?>
             </div>
             <footer class="entry-footer">
+              <div class="meta text-end mb-5">
+                <small><i class="bi-alarm"></i> <?php the_modified_time('Y/m/d'); edit_post_link( __( 'edit', 'textdomain' ), ' ( ', ' )' );?></small>
+              </div>
             </footer>
           </article>
         <?php

+ 118 - 83
style.css

@@ -70,23 +70,15 @@ h2.entry-title {
   font-family: 'Lato', sans-serif;
   border-bottom: 1px solid #eaecef;
 }
-h3.widget-title {
-  font-family: 'Lato', sans-serif;
-  font-weight:300;
-  font-size: 18px;
-  color:#d7d7d7;
-}
-h1.lato-widget {
-  font-family: 'Lato', sans-serif;
-  font-weight:300;
-  margin-top:0px;
-  font-size: 27px;
-  color:#d7d7d7;
+h3.front-page {
+
 }
-.notlight {
-  color:#d7d7d7;
+ul.page-history {
+  list-style:none;
+  padding: 0 0 0 5px;
 }
 
+
 /*--------------------------------------------------------------
 ########################## Elements ##########################
 --------------------------------------------------------------*/
@@ -177,13 +169,9 @@ table {
     font-size:12px;
   }
 }
-
-
 .dropdown-item.active, .dropdown-item:active {
   color:#777;
 }
-.hp-sidenav {
-}
 .hp-sidenav.sticky-lg-top {
   top:100px;
 }
@@ -195,12 +183,9 @@ table {
 .hp-sidenav li.list-group-item {
   background-color:transparent;
 }
-.hp-sidenav li.current_list-group-item {
-  border-bottom: 2px solid #d7d7d7;
-}
-.hp-sidenav li.current_list-group-item a {
+.hp-sidenav li.current_nav-item a {
   color:#343C70;
-  font-weight:500;
+  font-weight:700;
 }
 #page-sub-header {
   position: relative;
@@ -299,7 +284,6 @@ a.page-numbers:hover {
   padding-left: 0;
   padding-right: 0;
 }
-
 #masthead .navbar-nav > li > a:hover,
 #masthead .navbar-nav > li.current_page_item > a {
   color: #fff;
@@ -317,31 +301,25 @@ a.page-numbers:hover {
 .navbar-brand {
   height: auto;
 }
-
 .yamm .collapse,
 .yamm .dropup,
 .yamm .dropdown {
   position: static;
 }
-
 .yamm .container {
   position: relative;
 }
-
 .yamm .dropdown-menu {
   left: auto;
 }
-
 .yamm .yamm-content {
   padding: 1rem;
 }
-
 .yamm .dropdown.yamm-fw .dropdown-menu,
 .yamm .dropup.yamm-fw .dropdown-menu {
   left: 0;
   right: 0;
 }
-
 .navbar-toggle .icon-bar {
   background: #000 none repeat scroll 0 0;
 }
@@ -391,7 +369,6 @@ a.page-numbers:hover {
     -moz-border-radius: 6px 0 6px 6px;
     border-radius: 6px 0 6px 6px;
 }
-/* Small menu. */
 .menu-toggle,
 .main-navigation.toggled ul {
   display: block;
@@ -417,7 +394,6 @@ a.page-numbers:hover {
 .dropdown-menu .dropdown-item:hover {
   background: transparent;
 }
-
 @media screen and (min-width: 37.5em) {
   .menu-toggle {
     display: none;
@@ -435,16 +411,9 @@ a.page-numbers:hover {
     margin-left: 1.250rem;
     padding: 0;
   }
-
   .dropdown-menu li a {
     padding: 0;
   }
-
-  #masthead .navbar-nav > li > a {
-    padding-bottom: 0.625rem;
-    padding-top: 0.313rem;
-  }
-
   .navbar-light .navbar-toggler {
     border: medium none;
     outline: none;
@@ -597,56 +566,14 @@ a img.aligncenter {
   clear: both;
 }
 
-/*--------------------------------------------------------------
-########################## Widgets ##########################
---------------------------------------------------------------*/
-.widget {
-  margin: 0 0 1.5em;
-  font-size: 0.875rem;
-}
-.widget select {
-  max-width: 100%;
-}
-.widget_search .search-form input[type="submit"] {
-  display: none;
-}
-.nav > li > a:focus,
-.nav > li > a:hover {
-  background-color: #eee;
-  text-decoration: none;
-}
-.half-rule {
-  width: 6rem;
-  margin: 2.5rem 0;
-}
-.widget_categories .nav-link {
-  display: inline-block;
-}
-.mc4wp-form-basic label {
-  font-weight:300;
-}
-.mc4wp-form-basic input {
-  background: rgba(0, 0, 0, 0.2);
-  color:#fff;
-}
-.mc {
-  font-weight:300;
-}
-form.mc input.form-control {
-  background-color: rgba(255, 255, 255, 0.05);
-}
-form.mc ::placeholder {
-  color:#d7d7d7;
-  font-weight:300;
-}
 
 
 /*--------------------------------------------------------------
 ########################## Content ##########################
 --------------------------------------------------------------*/
 #content.site-content {
-  padding-bottom: 3.75rem;
-  padding-top: 4.125rem;
+  padding-bottom: 50px;
+  padding-top: 50px;
 }
 @media only screen and (max-width: 768px) {
   #content.site-content {
@@ -797,12 +724,120 @@ object {
 }
 
 
+/*--------------------------------------------------------------
+########################## Widgets ##########################
+--------------------------------------------------------------*/
+.widget {
+  margin: 0 0 1.5em;
+  font-size: 0.875rem;
+}
+.widget select {
+  max-width: 100%;
+}
+.widget_search .search-form input[type="submit"] {
+  display: none;
+}
+.widget .nav > li > a:focus,
+.widget .nav > li > a:hover {
+  text-decoration: none;
+  color:#325363;
+}
+.textwidget ul {
+  padding:0 0 0 5px;
+}
+.widget li {
+  list-style:none;
+  padding:0 0 0 5px;
+}
+.widget .nav-link {
+  padding:0 0 0 10px;
+}
+.widget ul.blogroll {
+  list-style: none;
+  padding:0 0 0 10px;
+}
+h3.widget-title {
+  font-family: 'Lato', sans-serif;
+  font-weight:400;
+  font-size: 18px;
+  color:#343C70;
+}
+.footer h3.widget-title {
+  font-family: 'Lato', sans-serif;
+  font-weight:300;
+  font-size: 18px;
+  color:#dedede;
+}
+h1.lato-widget {
+  font-family: 'Lato', sans-serif;
+  font-weight:300;
+  margin-top:0px;
+  font-size: 27px;
+  color:#d7d7d7;
+}
+h3.lato-widget {
+  font-family: 'Lato', sans-serif;
+  font-weight:300;
+  margin-top:0px;
+  color:#d7d7d7;
+}
+h3.widget-title {
+  margin-bottom: 16px;
+  padding-bottom: 16px;
+  border-bottom: .25px solid rgba(255, 255, 255, .25);
+}
+.half-rule {
+  width: 6rem;
+  margin: 2.5rem 0;
+}
+.widget_categories .nav-link {
+  display: inline-block;
+}
+.mc4wp-form-basic label {
+  font-weight:300;
+}
+.mc4wp-form-basic input {
+  background: rgba(0, 0, 0, 0.2);
+  color:#fff;
+}
+.footer .mc {
+  font-weight:300;
+}
+.footer form.mc input.form-control {
+  background-color: rgba(255, 255, 255, 0.05);
+}
+.footer form.mc ::placeholder {
+  color:#dedede;
+  font-weight:300;
+}
+.footer form.mc input.form-control {
+  color:#dedede;
+}
+.footer form.search-form input.search-field {
+  background-color: rgba(255, 255, 255, 0.05);
+}
+.footer form.search-form ::placeholder {
+  font-weight:300;
+  color:#dedede;
+}
+.footer form.search-form input.form-control {
+  color:#dedede;
+}
+.footer .btn-outline-light {
+  font-weight:300;
+}
+.footer .btn-outline-light:hover {
+  color:#343C70;
+  background-color: rgba(222, 222, 222, 0.6);
+}
+
 /*--------------------------------------------------------------
 ########################## Footer ##########################
 --------------------------------------------------------------*/
 
 .footer {
   background-color:#325363;
+  font-weight:400;
 }
 #colophon {
   font-size: 85%;