add theme

This commit is contained in:
Tony Volpe
2024-06-18 16:47:10 -04:00
parent 95cb30b884
commit 706f089d5e
408 changed files with 77892 additions and 0 deletions

View File

@@ -0,0 +1,303 @@
<?php
// css below for Checkout flow... probably belongs in the SCSS
?>
<style>
.cart-summary {
background-color: #f4f4f4;
}
.cart-summary .image-wrapper {
width: 100%;
}
.bi-check {
font-size: 2rem;
}
.image-wrapper img {
display: block;
margin: 0 auto;
width: 75%;
}
.woocommerce-order-received .woocommerce-order-details {
display: none;
visibility: hidden;
}
</style>
<?php
wp_footer();
$stylesheet = get_field('style_sheet');
// default to consumer brand if we don't have the ACF option for the current page
if (!$stylesheet) {
$stylesheet = "consumer-brand";
}
$company_logo = get_field('company_logo', 'option');
$facebook_url = get_field('facebook_url', 'option');
$linkedin_url = get_field('linkedin_url', 'option');
$youtube_url = get_field('youtube_url', 'option');
$consumer_phone_number = get_field('consumer_phone_number', 'option');
$business_phone_number = get_field('business_phone_number', 'option');
$address = get_field('address', 'option');
$copyright_info = get_field('copyright_info', 'option');
$privacy_policy_link = get_field('privacy_policy_link', 'option');
$terms_of_use_link = get_field('terms_of_use_link', 'option');
$sitemap_link = get_field('sitemap_link', 'option');
$incident_report_link = get_field('incident_report_link', 'option');
$consumer_disclaimer = get_field('consumer_disclaimer', 'option');
$business_disclaimer = get_field('business_disclaimer', 'option');
$caution_info = get_field('caution_info', 'option');
$referral_paragraph = get_field('referral_paragraph', 'option');
$banner_bottom = get_field('banner_bottom', 'option');
$banner_link = get_field('banner_link', 'option');
$col_1_consumer_menu_title = get_field('col_1_consumer_menu_title', 'option');
$col_2_consumer_menu_title = get_field('col_2_consumer_menu_title', 'option');
$col_3_consumer_menu_title = get_field('col_3_consumer_menu_title', 'option');
$col_4_consumer_menu_title = get_field('col_4_consumer_menu_title', 'option');
$col_1_business_menu_title = get_field('col_1_business_menu_title', 'option');
$col_2_business_menu_title = get_field('col_2_business_menu_title', 'option');
$col_3_business_menu_title = get_field('col_3_business_menu_title', 'option');
$col_4_business_menu_title = get_field('col_4_business_menu_title', 'option');
$google_link = get_field('google_link', 'option');
?>
<footer class="site-footer <?php echo $stylesheet; ?>">
<div class="footer-wrapper">
<div class="container">
<?php if( $stylesheet == 'business-brand' ) { ?>
<div class="row">
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_1_business_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-one-business-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_2_business_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-two-business-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_3_business_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-three-business-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_4_business_menu_title; ?></h3>
<?php if( isset($referral_paragraph) ) : ?>
<p class="text-white"><?php echo $referral_paragraph; ?></p>
<?php endif; ?>
<?php
wp_nav_menu(array(
'theme_location' => 'col-four-business-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
</div>
<?php } else { ?>
<div class="row">
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_1_consumer_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-one-consumer-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_2_consumer_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-two-consumer-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_3_consumer_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-three-consumer-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
<div class="col-lg-3">
<h3 class="text-uppercase text-white"><?php echo $col_4_consumer_menu_title; ?></h3>
<?php
wp_nav_menu(array(
'theme_location' => 'col-four-consumer-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="footer-nav-list %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?>
</div>
</div>
<?php } ?>
<div class="row d-flex justify-content-center align-items-center p-4">
<div class="col-lg-5 col-xl-6">
<img class="img-fluid footer-logo" src="<?php echo $company_logo['url']; ?>" />
</div>
<div class="col-lg-4 col-xl-3">
<h4 class="text-nowrap text-white footer-phone">Call us at:
<?php if( $stylesheet == 'consumer-brand' ) : ?>
<a class="text-decoration-none text-white" href="tel:<?php echo $consumer_phone_number; ?>"><?php echo $consumer_phone_number; ?></a>
<?php else : ?>
<a class="text-decoration-none text-white" href="tel:<?php echo $business_phone_number; ?>"><?php echo $business_phone_number; ?></a>
<?php endif; ?>
</h4>
</div>
<div class="col-lg-3">
<div class="row social-icons">
<div class="col text-center">
<a arialabel="Facebook" href="<?php echo $facebook_url; ?>">
<i class="fa-brands fa-facebook" aria-hidden="true" title="Link to Lifeline Facebook page"></i>
</a>
</div>
<div class="col text-center">
<a aria-label="LinkedIn" href="<?php echo $linkedin_url; ?>">
<i class="fa-brands fa-linkedin" aria-hidden="true" title="Link to Lifeline LinkedIn page"></i>
</a>
</div>
<div class="col text-center">
<a aria-label="YouTube" href="<?php echo $youtube_url; ?>">
<i class="fa-brands fa-youtube" aria-hidden="true" title="Link to Lifeline YouTube page"></i>
</a>
</div>
</div>
</div>
</div>
<div class="row w-100 p-2">
<div class="col">
<p class="text-white text-center">
<a class="text-decoration-none text-white" href="<?php echo $privacy_policy_link['url']; ?>">Privacy Policy</a><span class="px-2">|</span>
<a class="text-decoration-none text-white" href="<?php echo $terms_of_use_link['url']; ?>">Terms of Use</a><span class="px-2">|</span>
<a class="text-decoration-none text-white" href="<?php echo $sitemap_link['url']; ?>">Sitemap</a><span class="px-2">|</span>
<a class="text-decoration-none text-white" href="<?php echo $incident_report_link['url']; ?>">Submit Incident Report</a><span class="px-2"></span>
</p>
<p class="text-white text-center"><a href="<?php echo $google_link; ?>" target="_blank" aria-label="Link opens in a new tab" style="" class="text-center text-decoration-none text-wrap text-white"><?php echo $address; ?></a></p>
</div>
</div>
<div class="row w-100 p-2">
<div class="col">
<h5 class="text-white text-center">© <?php echo date("Y"); ?> <?php echo $copyright_info; ?><span class="px-2"></h5>
</div>
</div>
</div>
</div>
<div class="footer-bottom pl-5 pb-5">
<div class="container">
<div class="row pb-4">
<div class="col">
<?php if( $stylesheet == 'business-brand' ) { ?>
<?php echo $business_disclaimer; ?>
<?php } else { ?>
<?php echo $consumer_disclaimer; ?>
<?php } ?>
</div>
</div>
<div class="row">
<div class="col">
<?php echo $caution_info; ?>
</div>
</div>
</div>
</div>
</footer>
<?php if( $banner_bottom && $stylesheet == 'consumer-brand' ) : ?>
<div class="fixed-bottom py-1 banner-bottom">
<div class="container-fluid banner-bottom-wrapper">
<div class="row">
<div class="col-12 p-0">
<?php if( $banner_link ) : ?>
<a class="text-white banner-bottom-link" href="<?php echo $banner_link['url'] ?>">
<h5 class="text-white m-0 banner-bottom-text">
<?php echo $banner_bottom; ?>
<span class="text-nowrap banner-link-title"><?php echo $banner_link['title'] ?></span>
</h5>
</a>
<?php endif; ?>
<i class="fa fa-window-close banner-bottom-close" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
<?php endif; ?>
<script>
$(window).on('load', function() {
$bannerBottom = $('.banner-bottom');
$bannerBottomClose = $('.banner-bottom-close');
$bannerBottomClose.on('click', function() {
$bannerBottom.fadeOut();
sessionStorage.setItem('bannerBottom', 'shown');
});
if(!sessionStorage.getItem('bannerBottom')) {
$bannerBottom.show();
}
});
</script>
<script type="text/javascript" src="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/js/all.min.js" integrity="sha512-6PM0qYu5KExuNcKt5bURAoT6KCThUmHRewN3zUFNaoI6Di7XJPTMoT6K0nsagZKk2OB4L7E3q1uQKHNHd4stIQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>