diff --git a/classes/class-fl-child-theme.php b/classes/class-fl-child-theme.php index 8e3ef02..6f4b328 100644 --- a/classes/class-fl-child-theme.php +++ b/classes/class-fl-child-theme.php @@ -35,9 +35,6 @@ static public function enqueue_scripts() // Load FA 5 Everywhere wp_enqueue_style( 'font-awesome-5' ); - // Business Profile CSS - //wp_enqueue_style( 'businessprofile', get_stylesheet_directory_uri() . '/css/business-profile.css' , array(), '2.0.0', 'all' ); - // Take out the default BB Scripts if not used // wp_dequeue_script( 'bootstrap' ); diff --git a/css/business-profile.css b/css/business-profile.css deleted file mode 100644 index fa81679..0000000 --- a/css/business-profile.css +++ /dev/null @@ -1,122 +0,0 @@ - -/* -Business Profile ----------------------------------------------------------------------------------------------------- */ - -.fl-page .bp-contact-card > div:before { - font-family: 'fontawesome'; - font-size: 20px; - width: 35px; - display: inline-block; - text-align: center; -} - -.fl-page .bp-phone:before { - content: ' \f095'; -} - -.fl-page .bp-contact:before { - content: ' \f0e0'; -} - -.fl-page .bp-address { - position: relative; - padding-left: 40px; -} -.fl-page .bp-address:before { - content: ' \f041'; - position: absolute; - left: 0; -} - -.fl-sidebar .bp-times { - width: 55%; -} - -.fl-sidebar .bp-weekday-name { - width: 35%; -} - -.bp-contact-card .bp-name { - margin-bottom: 0; -} - -.bp-contact-card .bp-address { - margin-top: 0; -} - -.bp-contact-card .bp-opening-hours .bp-weekday-name { - float: left; - clear: left; - width: 35%; -} - -.bp-contact-card .bp-opening-hours .bp-times { - float: right; - clear: right; - width: 60%; - text-align: left; -} - -.bp-contact-card .bp-opening-hours { - margin: 0 auto; -} - -.bp-opening-hours .bp-title { - display: none; -} - -.bp-map { - max-height: 210px; - max-width: 360px; -} -.fl-page-footer-widgets .bp-map { - height: 200px; - max-width: 340px; - margin: 0 auto; -} - -.fl-page-footer-widgets .bp-times { - width: 58%; - font-size: 14px; -} - -.fl-page-footer-widgets .bp-weekday-name { - width: 42%; - font-size: 14px; -} - -.fl-page-footer-widgets .bp-opening-hours .bp-title { - display: none; -} - - -@media only screen and (min-width: 1024px) { - - .fl-page-footer-widgets .bp-times { - font-size: 18px; - } - .fl-page-footer-widgets .bp-map { - margin: 0; - } - - .fl-page-footer-widgets .bp-weekday-name { - font-size: 18px; - } -} - -@media only screen and (min-width: 1200px) { - - .fl-page-footer-widgets .bp-times { - width: 60%; - } - - .fl-page-footer-widgets .bp-weekday-name { - width: 35%; - } - - #bp-map-0 > div { - width: 90% !important; - } -} - diff --git a/functions.php b/functions.php index 237fade..9c7dc05 100644 --- a/functions.php +++ b/functions.php @@ -127,6 +127,12 @@ function bt_theme_setup() { if ( class_exists( 'acf' ) ) { include_once( get_stylesheet_directory() . '/includes-child/acf.php' ); } + + /** + * Improve Cache Puging on Runcloud NGINX + * @since 1.0.0 + */ + //require_once get_stylesheet_directory() . '/includes-child/cache-buster.php'; /** * Get the plugins ffrom TGM Plugin Activation diff --git a/images/editor-quote.svg b/images/editor-quote.svg new file mode 100644 index 0000000..723bf63 --- /dev/null +++ b/images/editor-quote.svg @@ -0,0 +1,11 @@ + + + + + diff --git a/includes-child/cache-buster.php b/includes-child/cache-buster.php new file mode 100644 index 0000000..0ff2770 --- /dev/null +++ b/includes-child/cache-buster.php @@ -0,0 +1,84 @@ +purge_all();'); + global $nginx_purger; + $nginx_purger->purge_all(); + } else { + write_log('cph - nginx-helper plugin not installed or detected'); + } + + // If litespeed-cache plugins is enabled, purge cache. + write_log('cph - checking for litespeed-cache plugin'); + if ( is_plugin_active('litespeed-cache/litespeed-cache.php') ) { + write_log('cph - litespeed-cache plugin installed, running do_action(\'litespeed_purge_all\');'); + do_action( 'litespeed_purge_all' ); + } else { + write_log('cph - litespeed-cache plugin not installed or detected'); + } + write_log('cph - end of cache_purge_helper function'); +} + +/* Log to WordPress Debug Log */ +if ( ! function_exists('write_log')) { + function write_log ( $log ) { + if ( is_array( $log ) || is_object( $log ) ) { + error_log( print_r( $log, true ) ); + } else { + error_log( $log ); + } + } +} + +// Plugin Update Hooks +add_action( 'upgrader_process_complete', 'cache_purge_helper', 10, 0 ); // After plugins have been updated +add_action( 'activated_plugin', 'cache_purge_helper', 10, 0); // After a plugin has been activated +add_action( 'deactivated_plugin', 'cache_purge_helper', 10, 0); // After a plugin has been deactivated +add_action( 'switch_theme', 'cache_purge_helper', 10, 0); // After a theme has been changed + +// Beaver Builder +add_action( 'fl_builder_cache_cleared', 'cache_purge_helper', 10, 3 ); +add_action( 'fl_builder_after_save_layout', 'cache_purge_helper', 10, 3 ); +add_action( 'fl_builder_after_save_user_template', 'cache_purge_helper', 10, 3 ); +add_action( 'upgrader_process_complete', 'cache_purge_helper', 10, 3 ); + + +// AutoOptimizer +add_action( 'autoptimize_action_cachepurged','cache_purge_helper', 10, 3 ); // Need to document this. \ No newline at end of file diff --git a/includes-child/customizer-defaults.php b/includes-child/customizer-defaults.php index cff03bb..8f1cae0 100644 --- a/includes-child/customizer-defaults.php +++ b/includes-child/customizer-defaults.php @@ -14,8 +14,8 @@ function bt_customizer_options_filtered( $data, $key ) { // Layout $data['sections']['fl-layout']['options']['fl-content-width']['setting']['default']='1200'; - $data['sections']['fl-layout']['options']['fl-medium-breakpoint']['setting']['default']='1024'; - $data['sections']['fl-layout']['options']['fl-mobile-breakpoint']['setting']['default']='768'; + $data['sections']['fl-layout']['options']['fl-medium-breakpoint']['setting']['default']='1080'; + $data['sections']['fl-layout']['options']['fl-mobile-breakpoint']['setting']['default']='810'; $data['sections']['fl-layout']['options']['fl-framework']['setting']['default']='base-4'; diff --git a/includes-child/woocommerce/woo.css b/includes-child/woocommerce/woo.css index 215d58e..50ca229 100644 --- a/includes-child/woocommerce/woo.css +++ b/includes-child/woocommerce/woo.css @@ -13,7 +13,7 @@ button.woocommerce-form-login__submit { display: block; } -@media(min-width:768px) { +@media(min-width:810px) { .woocommerce-MyAccount-navigation { margin-right: 20px; @@ -261,7 +261,7 @@ button.woocommerce-form-login__submit { width: 49%; } -@media (min-width: 768px) { +@media (min-width: 810px) { .woocommerce-page .related ul.products li.product { width: 30.8%; padding: 2%; @@ -269,7 +269,7 @@ button.woocommerce-form-login__submit { } /* Reduce table padding on small devices */ -@media (max-width: 767px) { +@media (max-width: 809px) { .woocommerce table.shop_table th, .woocommerce-page table.shop_table th, .woocommerce table.shop_table td, @@ -341,9 +341,9 @@ button.woocommerce-form-login__submit { display: flex; } -/* 2 Column Checkout */ +/* 2 Column WooCommerce Checkout */ -@media(min-width:768px) { +@media(min-width:809px) { .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 { width: 90%; @@ -367,4 +367,9 @@ button.woocommerce-form-login__submit { float: left; clear: none; } -} \ No newline at end of file +} + +/* Center Checkout Processing Icon Spinner */ +.woocommerce .blockUI.blockOverlay:before { + position:fixed!important +} diff --git a/style.css b/style.css index 9b1870d..bc1d9bd 100644 --- a/style.css +++ b/style.css @@ -470,13 +470,13 @@ a.fl-post-slider-feed-more:hover { /* Media Query Snippets ---------------------------------------------------------------------------------------------------- */ -@media (max-width: 767px) { +@media (max-width: 809px) { } -@media (min-width: 768px) and (max-width:1023px) { +@media (min-width: 810px) and (max-width:1079px) { } -@media (min-width: 1024px) { +@media (min-width: 1080px) { } /* Client Colors @@ -508,7 +508,7 @@ a.fl-post-slider-feed-more:hover { * Black and white example below ---------------------------------------------------------------------------------------------------- */ -@media (max-width: 767px) { +@media (max-width: 809px) { .fl-page-nav-toggle-button.fl-page-nav-toggle-visible-mobile .fl-page-nav .navbar-toggle * { color: #000000; text-transform: uppercase; @@ -539,7 +539,7 @@ a.fl-post-slider-feed-more:hover { * Black example below ---------------------------------------------------------------------------------------------------- */ -@media (max-width: 767px) { +@media (max-width: 809px) { .fl-page .fl-menu-mobile-toggle * { color: #000; border: none; @@ -855,7 +855,7 @@ li.comment { } -@media (max-width: 767px) { +@media (max-width: 809px) { .site-footer-widgets-row .fl-heading, .site-footer-widgets-row .fl-icon-group-left, .site-footer-widgets-row .menu li, @@ -1002,7 +1002,7 @@ li.comment { * Class is applied in Column Parent Column */ -@media (min-width: 768px) { +@media (min-width: 810px) { .two-row-three-parent .fl-col-group { display: flex; flex-flow: row wrap; @@ -1018,7 +1018,7 @@ li.comment { * 1st code is CSS cols, 2nd code is 2 text edit boxes with UL list in each ---------------------------------------------------------------------------------------------------- */ -@media only screen and (min-width: 767px) { +@media (min-width: 810px) { .three-column-list { column-count: 3; column-gap: 40px; @@ -1030,7 +1030,7 @@ li.comment { } } -@media only screen and (max-width: 767px) { +@media (max-width:809px) { /* Add into Module Class */ .fl-builder .split-list ul { margin-bottom: 20px; @@ -1059,7 +1059,7 @@ li.comment { justify-content: flex-start; } -@media (min-width: 768px) { +@media (min-width: 810px) { .flex-bullet-list ul+ul { margin-left: 40px; } @@ -1072,7 +1072,7 @@ li.comment { } } -@media (max-width: 767px) { +@media (max-width: 809px) { .entry-content .you-list ul, .you-list ul { margin-top: 0 !important; diff --git a/webfonts/AvenirLTStd-Black.woff b/webfonts/AvenirLTStd-Black.woff new file mode 100644 index 0000000..bd07f3c Binary files /dev/null and b/webfonts/AvenirLTStd-Black.woff differ diff --git a/webfonts/AvenirLTStd-Black.woff2 b/webfonts/AvenirLTStd-Black.woff2 new file mode 100644 index 0000000..3019b58 Binary files /dev/null and b/webfonts/AvenirLTStd-Black.woff2 differ diff --git a/webfonts/AvenirLTStd-Book.woff b/webfonts/AvenirLTStd-Book.woff new file mode 100644 index 0000000..19bf1b8 Binary files /dev/null and b/webfonts/AvenirLTStd-Book.woff differ diff --git a/webfonts/AvenirLTStd-Book.woff2 b/webfonts/AvenirLTStd-Book.woff2 new file mode 100644 index 0000000..b171889 Binary files /dev/null and b/webfonts/AvenirLTStd-Book.woff2 differ diff --git a/webfonts/AvenirLTStd-Heavy.woff b/webfonts/AvenirLTStd-Heavy.woff new file mode 100644 index 0000000..5da12ae Binary files /dev/null and b/webfonts/AvenirLTStd-Heavy.woff differ diff --git a/webfonts/AvenirLTStd-Heavy.woff2 b/webfonts/AvenirLTStd-Heavy.woff2 new file mode 100644 index 0000000..bcf8ae5 Binary files /dev/null and b/webfonts/AvenirLTStd-Heavy.woff2 differ diff --git a/webfonts/AvenirLTStd-Roman.woff b/webfonts/AvenirLTStd-Roman.woff new file mode 100644 index 0000000..ebfe9d4 Binary files /dev/null and b/webfonts/AvenirLTStd-Roman.woff differ diff --git a/webfonts/AvenirLTStd-Roman.woff2 b/webfonts/AvenirLTStd-Roman.woff2 new file mode 100644 index 0000000..d1295d8 Binary files /dev/null and b/webfonts/AvenirLTStd-Roman.woff2 differ diff --git a/webfonts/stylesheet.css b/webfonts/stylesheet.css new file mode 100644 index 0000000..f84a80c --- /dev/null +++ b/webfonts/stylesheet.css @@ -0,0 +1,41 @@ +@font-face { + font-family: 'Avenir Book'; + src: url('AvenirLTStd-Book.woff2') format('woff2'), + url('AvenirLTStd-Book.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + + +@font-face { + font-family: 'Avenir Roman'; + src: url('AvenirLTStd-Roman.woff2') format('woff2'), + url('AvenirLTStd-Roman.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + + +@font-face { + font-family: 'Avenir Bold'; + src: url('AvenirLTStd-Heavy.woff2') format('woff2'), + url('AvenirLTStd-Heavy.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + + +@font-face { + font-family: 'Avenir Black'; + src: url('AvenirLTStd-Black.woff2') format('woff2'), + url('AvenirLTStd-Black.woff') format('woff'); + font-weight: 900; + font-style: normal; +} + + + + + + +