From 7c60666b6e817fde5d1c33cb88920018202ace9a Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Thu, 6 Jan 2022 19:01:19 +0200 Subject: [PATCH 1/4] Comment formatting update --- inc/template-tags.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 51402e7..ec913cd 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -9,7 +9,7 @@ if ( ! function_exists( 'siteorigin_north_display_logo' ) ) : /** - * Display the logo or site title + * Display the logo or site title. */ function siteorigin_north_display_logo() { $logo = siteorigin_setting( 'branding_logo' ); @@ -43,7 +43,7 @@ function siteorigin_north_display_logo() { if ( ! function_exists( 'siteorigin_north_display_retina_logo' ) ) : /** - * Display a retina ready logo + * Display a retina ready logo. */ function siteorigin_north_display_retina_logo( $attr ) { if ( current_filter() == 'wp_get_attachment_image_attributes' ) { @@ -496,7 +496,7 @@ function siteorigin_north_entry_thumbnail() { if ( ! function_exists( 'siteorigin_north_get_video' ) ) : /** - * Get the video from the current post + * Get the video from the current post. */ function siteorigin_north_get_video() { $first_url = ''; @@ -528,7 +528,7 @@ function siteorigin_north_get_video() { if ( ! function_exists( 'siteorigin_north_filter_video' ) ) : /** - * Removes the video from the post content + * Removes the video from the post content. */ function siteorigin_north_filter_video( $content ) { if ( siteorigin_north_get_video() ) { @@ -547,7 +547,7 @@ function siteorigin_north_filter_video( $content ) { if ( ! function_exists( 'siteorigin_north_strip_gallery' ) ) : /** - * Remove gallery from post content + * Remove gallery from post content. */ function siteorigin_north_strip_gallery( $content ) { preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); @@ -569,7 +569,7 @@ function siteorigin_north_strip_gallery( $content ) { if ( ! function_exists( 'siteorigin_north_get_image' ) ) : /** - * Get the first image from the post content + * Get the first image from the post content. */ function siteorigin_north_get_image() { $first_image = ''; From 65ea2f05a709d949559ab34e9cbbbaea4b315bf8 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Tue, 1 Feb 2022 22:02:56 +1000 Subject: [PATCH 2/4] Interruptible Page Jump and Scroll to Top --- js/north.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/north.js b/js/north.js index 88e9145..8a20408 100644 --- a/js/north.js +++ b/js/north.js @@ -90,7 +90,7 @@ var $a = $( this ); var $target = $( '[name=' + this.hash.slice( 1 ) + ']' ).length ? $( '[name=' + this.hash.slice( 1 ) + ']' ) : $( $a.get( 0 ).hash ); if ( $target.length ) { - $( 'html, body' ).animate( { + $( 'html, body' ).stop().animate( { scrollTop: $target.offset().top - headerHeight( $target ) }, 1000 ); @@ -273,7 +273,7 @@ sttWindowScroll(); $( window ).on( 'scroll', sttWindowScroll ); $( '#scroll-to-top' ).on( 'click', function() { - $( 'html,body' ).animate( { scrollTop: 0 } ); + $( 'html,body' ).stop().animate( { scrollTop: 0 } ); } ); // Handle the header search. @@ -465,7 +465,7 @@ var $target = $( window.location.hash ); if ( $target.length ) { setTimeout( function() { - $( 'html, body' ).animate( { + $( 'html, body' ).stop().animate( { scrollTop: $target.offset().top - headerHeight( $target, true ) }, 0, From 85c11459a1326d4226ca1bd8c36ba227f8c8e259 Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Sat, 5 Feb 2022 15:06:49 +0200 Subject: [PATCH 3/4] Updated Tested up to tags --- readme.txt | 2 +- sass/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 54b87da..53d3ac0 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: siteorigin Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce -Tested up to: 5.8 +Tested up to: 5.9 Requires at least: 4.7 Requires PHP: 5.6.20 License: GPLv2 or later diff --git a/sass/style.scss b/sass/style.scss index f282f72..b292121 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -5,7 +5,7 @@ Author URI: https://siteorigin.com/ Theme URI: https://siteorigin.com/theme/north/ Description: Inspired by the elegant majesty and purity of the Swiss Alps and built with business owners in mind, North is the star in the SiteOrigin sky. With easy-to-use options, classic lines and a minimal feel, North feels visually limitless and technically effortless. It's fully responsive and retina ready. Some key features are its responsive menu, gorgeous animations and tight integration with all the major plugins you've come to rely on. You can use it to create a business website using SiteOrigin Page Builder and our Widgets Bundle. You can also build a full ecommerce store though North's WooCommerce integration. We offer free and premium support on our support forums (http://siteorigin.com/thread/). Version: dev -Tested up to: 5.8 +Tested up to: 5.9 Requires at least: 4.7 Requires PHP: 5.6.20 License: GNU General Public License v2 or later From ffaab49e209adb882a35163d71c9db628c84061e Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Sat, 5 Feb 2022 15:49:15 +0200 Subject: [PATCH 4/4] Updated changelog --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index 53d3ac0..a9ea66c 100644 --- a/readme.txt +++ b/readme.txt @@ -104,6 +104,10 @@ Original design files are available on [Google Drive](https://drive.google.com/f == Changelog == += 1.19.5 - 05 February 2022 = +* Updated `Tested up to` tag to `5.9`. +* Smooth Scrolling: Update to allow for animation interruption when another page jump is clicked. + = 1.19.4 - 30 November 2021 = * Updated SiteOrigin Settings: Ensured WPML translated theme strings aren't overridden.