diff --git a/inc/functions.php b/inc/functions.php index f6b7c083..515cff5b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -659,7 +659,7 @@ function spacious_footer_copyright() { $tg_link = '' . __( 'Spacious', 'spacious' ) . ''; - $default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ) . ' ' .__('All rights reserved.', 'spacious' ). sprintf( __( ' Theme %1$s', 'spacious' ), $tg_link ) . ' ' . sprintf( __( 'by ThemeGrill. Powered by: %2$s.', 'spacious' ), 'Spacious', $wp_link ); + $default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ) . ' ' .__('All rights reserved.', 'spacious' ). sprintf( __( ' Theme: %1$s', 'spacious' ), $tg_link ) . ' ' . sprintf( __( 'by ThemeGrill. Powered by: %2$s', 'spacious' ), 'Spacious', $wp_link ); $spacious_footer_copyright = ''; echo $spacious_footer_copyright; diff --git a/inc/migration.php b/inc/migration.php index 7cecd306..076b8d15 100644 --- a/inc/migration.php +++ b/inc/migration.php @@ -32,7 +32,9 @@ function spacious_major_controls_migrate() { // Get theme options. $themename = get_option( 'stylesheet' ); $themename = preg_replace( "/\W/", "_", strtolower( $themename ) ); - $spacious_theme_options = get_option( $themename ); + // get_option() returns false when the option doesn't exist (fresh installs), and the + // array writes/unset() below on a false value log PHP 8.1+ deprecation notices. + $spacious_theme_options = (array) get_option( $themename, array() ); // Base heading. $spacious_content_font = isset( $spacious_theme_options['spacious_content_font'] ) ? $spacious_theme_options['spacious_content_font'] : 'Lato'; diff --git a/readme.txt b/readme.txt index ba513743..fc39883d 100644 --- a/readme.txt +++ b/readme.txt @@ -55,6 +55,7 @@ and we will include it within the theme from next version update. * Dev - Meta box save routine reads $_POST without isset() checks or a value whitelist. * Dev - Deprecation notice on every page load from the IE 8 html5shiv script under WordPress 6.9+. * Dev - JavaScript errors from navigation.js on the Widgets screen and other pages without the theme header. +* Dev - PHP 8.1+ deprecation notices from the major controls migration on fresh installs with no saved theme options. * Fix - Submenu caret icon never flips direction when toggled. * Fix - Search block input renders taller than its Search button. * Fix - Slider scripts loaded on the homepage even when the slider setting was off. diff --git a/style.css b/style.css index ee669fcc..6951b230 100644 --- a/style.css +++ b/style.css @@ -1,24 +1,24 @@ @charset "UTF-8"; -/* -Theme Name: Spacious -Theme URI: https://themegrill.com/themes/spacious -Author: ThemeGrill -Author URI: https://themegrill.com -Description: Spacious is an incredible free business WordPress theme that fits small to medium businesses. This responsive theme is optimized for speed. So, you end up with a business website that loads within 1 second. Since Spacious is compatible with WooCommerce, you can easily set up an online store for your business. It's amazing collection of 16 free starter demos makes building a complete website very beginner-friendly. Spacious theme supports Gutenberg and page builder plugins like Elementor, Brizy, Beaver Builder, SiteOrigin, etc. So, import a demo with just one click and start customizing it using a page builder of your choice. Here are the key Spacious features you get with this theme: >> Well-coded >> Translation & RTL Ready >> Sticky Menu >> Complete Documentation >> Multiple Widget Areas >> Optimized for SEO >> Compatible with Major Browsers. Try this free theme yourself to establish and grow your business’ online presence without having to rely on developers or designers. You can always reach out at https://themegrill.com/contact/ if you encounter any issues. Also, explore all the available free starter sites at https://themegrilldemos.com/spacious-demos. -Version: 1.10.0 -Tested up to: 7.1 -Requires PHP: 7.4 -License: GNU General Public License v2 or laterals -License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: one-column, two-columns, right-sidebar, left-sidebar, flexible-header, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, footer-widgets, blog, e-commerce, rtl-language-support -Text Domain: spacious - -Resetting and rebuilding styles have been helped along thanks to the fine work of -Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html -along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ -and Blueprint http://www.blueprintcss.org/ +/* +Theme Name: Spacious +Theme URI: https://themegrill.com/themes/spacious +Author: ThemeGrill +Author URI: https://themegrill.com +Description: Spacious is an incredible free business WordPress theme that fits small to medium businesses. This responsive theme is optimized for speed. So, you end up with a business website that loads within 1 second. Since Spacious is compatible with WooCommerce, you can easily set up an online store for your business. It's amazing collection of 16 free starter demos makes building a complete website very beginner-friendly. Spacious theme supports Gutenberg and page builder plugins like Elementor, Brizy, Beaver Builder, SiteOrigin, etc. So, import a demo with just one click and start customizing it using a page builder of your choice. Here are the key Spacious features you get with this theme: >> Well-coded >> Translation & RTL Ready >> Sticky Menu >> Complete Documentation >> Multiple Widget Areas >> Optimized for SEO >> Compatible with Major Browsers. Try this free theme yourself to establish and grow your business’ online presence without having to rely on developers or designers. You can always reach out at https://themegrill.com/contact/ if you encounter any issues. Also, explore all the available free starter sites at https://themegrilldemos.com/spacious-demos. +Version: 1.10.0 +Tested up to: 7.1 +Requires PHP: 7.4 +License: GNU General Public License v2 or laterals +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Tags: one-column, two-columns, right-sidebar, left-sidebar, flexible-header, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, footer-widgets, blog, e-commerce, rtl-language-support +Text Domain: spacious + +Resetting and rebuilding styles have been helped along thanks to the fine work of +Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html +along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ +and Blueprint http://www.blueprintcss.org/ */ -/* =Reset +/* =Reset -------------------------------------------------------------- */ html, body, @@ -242,7 +242,7 @@ button::-moz-focus-inner { margin: 0; } -/* =GLOBAL +/* =GLOBAL ----------------------------------------------- */ body, button, @@ -310,7 +310,7 @@ hr, margin: 30px 0; } -/* =TEXT ELEMENTS +/* =TEXT ELEMENTS ----------------------------------------------- */ p { line-height: 24px; @@ -374,7 +374,7 @@ table { width: 100%; } -/* =SUPERCRIPT AND SUBSCRIPT +/* =SUPERCRIPT AND SUBSCRIPT ----------------------------------------------- */ sup, sub { @@ -421,7 +421,7 @@ li > ol { margin: 0 0 0 10px; } -/* =BLOCKQUOTE +/* =BLOCKQUOTE ----------------------------------------------- */ blockquote, .wp-block-quote, @@ -457,7 +457,7 @@ blockquote cite, text-transform: uppercase; } -/* =FORMS +/* =FORMS ----------------------------------------------- */ input, textarea { @@ -604,7 +604,7 @@ input[type="reset"]:active, input[type="button"]:active, input[type="submit"]:ac box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3); } -/* =LINKS +/* =LINKS ----------------------------------------------- */ a { color: #0FBE7C; @@ -621,7 +621,7 @@ a:focus { outline: thin dotted; } -/* =IMAGES +/* =IMAGES ----------------------------------------------- */ figure { margin: 0; @@ -662,7 +662,7 @@ img#wpstats { display: none; } -/* =CLEARFIX +/* =CLEARFIX ----------------------------------------------- */ .clearfix { display: inline-block; @@ -689,7 +689,7 @@ img#wpstats { clear: both; } -/* =ALIGNMENT +/* =ALIGNMENT ----------------------------------------------- */ .alignleft { display: inline; @@ -767,7 +767,7 @@ img#wpstats { /*****************************************************************/ /*****************************************************************/ -/* =BODY +/* =BODY ----------------------------------------------- */ body { padding-top: 30px; @@ -820,7 +820,7 @@ body { max-width: 978px; } -/* =FEATURED SLIDER +/* =FEATURED SLIDER ----------------------------------------------- */ #featured-slider { border-bottom: 1px solid #EAEAEA; @@ -927,7 +927,7 @@ body { background-color: #666666; } -/* =SLIDER CONTROLLERS +/* =SLIDER CONTROLLERS ----------------------------------------------- */ #controllers { text-align: center; @@ -953,7 +953,7 @@ body { color: #0FBE7C; } -/* =PAGE HEADER TITLE +/* =PAGE HEADER TITLE ----------------------------------------------- */ .header-post-title-container { border-bottom: 1px solid #EAEAEA; @@ -974,7 +974,7 @@ body { line-height: 36px; } -/* =BREADCRUMB NAVXT PLUGIN SUPPORT +/* =BREADCRUMB NAVXT PLUGIN SUPPORT ----------------------------------------------- */ .breadcrumb { float: right; @@ -993,7 +993,7 @@ body { color: #0FBE7C; } -/* =CONTENT +/* =CONTENT ----------------------------------------------- */ .sticky { display: block; @@ -1183,7 +1183,7 @@ body { font-size: 11px; } -/* =META +/* =META ----------------------------------------------- */ .meta { border-bottom: 1px dashed #EAEAEA; @@ -1219,7 +1219,7 @@ body { text-align: center; } -/* =NAVIGATION +/* =NAVIGATION ----------------------------------------------- */ .default-wp-page .previous { float: left; @@ -1239,7 +1239,7 @@ body { padding-bottom: 3px; } -/* =PAGINATION +/* =PAGINATION ----------------------------------------------- */ .pagination { margin: 15px 0; @@ -1263,7 +1263,7 @@ body { text-decoration: none; } -/* =TESTIMONIAL WIDGET +/* =TESTIMONIAL WIDGET ----------------------------------------------- */ .widget_testimonial { margin-bottom: 30px; @@ -1316,7 +1316,7 @@ body { color: #666666; } -/* =CALL TO ACTION WIDGET +/* =CALL TO ACTION WIDGET ----------------------------------------------- */ .widget_call_to_action { margin-bottom: 60px; @@ -1387,7 +1387,7 @@ body { margin-top: 5px; } -/* =MEDIA +/* =MEDIA ----------------------------------------------- */ .wp-caption { border: 1px solid #ccc; @@ -1409,7 +1409,7 @@ body { margin: 0.8075rem 0; } -/* =WORDPRESS GALLERY SUPPORT +/* =WORDPRESS GALLERY SUPPORT ----------------------------------------------- */ .gallery { margin: 0 auto 15px; @@ -1494,7 +1494,7 @@ ul.wp-block-gallery img { margin-bottom: 0; } -/* Gutenberg Blocks Layout. +/* Gutenberg Blocks Layout. --------------------------------------------------------------*/ .wp-block-gallery.alignleft, .wp-block-gallery.alignright, .wp-block-gallery.aligncenter, .wp-block-social-links.alignleft, @@ -1505,7 +1505,7 @@ ul.wp-block-gallery img { display: flex; } -/* =COMMENTS +/* =COMMENTS ----------------------------------------------- */ #comments { background-color: #FFFFFF; @@ -1715,7 +1715,7 @@ ul.wp-block-gallery img { color: #0FBE7C; } -/* =COMMENT FORM +/* =COMMENT FORM ----------------------------------------------- */ #respond h3#reply-title { line-height: 1.5; @@ -1832,7 +1832,7 @@ ul.wp-block-gallery img { color: #0FBE7C; } -/* =WIDGETS +/* =WIDGETS ----------------------------------------------- */ #secondary .widget ul li { line-height: 1.5; @@ -1898,7 +1898,7 @@ ul.wp-block-gallery img { width: 50%; } -/* =CALENDAR WIDGET +/* =CALENDAR WIDGET ----------------------------------------------- */ #wp-calendar th, #wp-calendar td, @@ -1946,7 +1946,7 @@ ul.wp-block-gallery img { padding: 1px 1px 1px 2px; } -/* =SCROLL UP +/* =SCROLL UP ----------------------------------------------- */ a#scroll-up { bottom: 20px; @@ -1976,7 +1976,7 @@ a#scroll-up:hover { /* For IE8 and earlier */ } -/* =READ MORE LINK +/* =READ MORE LINK ----------------------------------------------- */ .read-more, .more-link { @@ -1985,7 +1985,7 @@ a#scroll-up:hover { font-family: 'Lato', sans-serif; } -/* =PRIMARY AND SECONDARY CONTENT AREA +/* =PRIMARY AND SECONDARY CONTENT AREA ----------------------------------------------- */ #primary { float: left; @@ -2007,7 +2007,7 @@ a#scroll-up:hover { width: 30.4827586%; } -/* =LEFT SIDEBAR CONTENT LAYOUT +/* =LEFT SIDEBAR CONTENT LAYOUT -------------------------------------------------------------- */ .left-sidebar #primary { float: right; @@ -2017,7 +2017,7 @@ a#scroll-up:hover { float: left; } -/* =NO SIDEBAR CONTENT LAYOUT +/* =NO SIDEBAR CONTENT LAYOUT -------------------------------------------------------------- */ .no-sidebar #primary { float: none; @@ -2033,7 +2033,7 @@ a#scroll-up:hover { display: none; } -/* =POST CONTENT +/* =POST CONTENT ----------------------------------------------- */ #content .post, #content .page { @@ -2227,7 +2227,7 @@ a#scroll-up:hover { text-decoration: none; } -/* header media css +/* header media css --------------------------------------------------------------*/ div.wp-custom-header { position: relative; @@ -2384,7 +2384,7 @@ body.no-sidebar-content-stretched #main .inner-wrap #primary { src: url(assets/fonts/Lato-BlackItalic.woff) format("woff"); } -/* =HEADER +/* =HEADER ----------------------------------------------- */ #header-meta { background-color: #F8F8F8; @@ -2470,7 +2470,7 @@ h3#site-title { width: 100%; } -/* =SEARCH WIDGET +/* =SEARCH WIDGET ----------------------------------------------- */ #masthead .search-wrap input.s { width: 130px; @@ -2494,7 +2494,7 @@ h3#site-title { padding: 3px 7px; } -/* =HEADER INFO TEXT +/* =HEADER INFO TEXT ----------------------------------------------- */ .small-info-text { float: left; @@ -2509,7 +2509,7 @@ h3#site-title { margin-bottom: 0; } -/* =SOCIAL LINKS +/* =SOCIAL LINKS ----------------------------------------------- */ .social-links { max-width: 100%; @@ -2568,7 +2568,7 @@ h3#site-title { /* For IE8 and earlier */ } -/* =NAVIGATION +/* =NAVIGATION ----------------------------------------------- */ nav li > ul, nav li > ol { @@ -2812,7 +2812,7 @@ li.default-menu { background-color: #0fbe7c; } -/* =CART ICON +/* =CART ICON ----------------------------------------------- */ .cart-wrapper { float: right; @@ -2958,9 +2958,9 @@ li.default-menu { color: #ffffff; } -/* =DROP DOWN +/* =DROP DOWN ----------------------------------------------- */ -/* =SMALL MENU +/* =SMALL MENU ----------------------------------------------- */ .menu-toggle { display: none; @@ -3028,7 +3028,7 @@ li.default-menu { left: -100%; } -/* =SECONDARY MENUS +/* =SECONDARY MENUS ----------------------------------------------- */ .small-menu { float: right; @@ -3069,7 +3069,7 @@ li.default-menu { color: #0FBE7C; } -/* =Header Display Menu Bottom +/* =Header Display Menu Bottom ----------------------------------------------- */ .spacious-header-display-four .bottom-menu .main-navigation { float: left; @@ -3151,7 +3151,7 @@ li.default-menu { outline: none; } -/* =FOOTER WIDGET AREA +/* =FOOTER WIDGET AREA ----------------------------------------------- */ .footer-widgets-wrapper { background-color: #333333; @@ -3207,7 +3207,7 @@ li.default-menu { line-height: 18px; } -/* =FOOTER SOCKET AREA +/* =FOOTER SOCKET AREA ----------------------------------------------- */ .footer-socket-wrapper { padding: 10px 0; @@ -3246,7 +3246,7 @@ li.default-menu { top: 21px; } -/* =RESPONSIVE STRUCTURE +/* =RESPONSIVE STRUCTURE ----------------------------------------------- */ @media screen and (min-width: 1500px) { .wide-978 #featured-slider .entry-container { @@ -3488,7 +3488,7 @@ li.default-menu { line-height: 1.5em; padding: 10px; } - /* =RESPONSIVE SUB TOGGLE MENU + /* =RESPONSIVE SUB TOGGLE MENU ----------------------------------------------- */ /* sub-toggle */ .sub-toggle {