Skip to content

Commit

Permalink
Merge branch 'release/1.17.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Jun 12, 2021
2 parents 774e21b + 676be89 commit 78501d6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion build
Submodule build updated 1 files
+3 −3 package-lock.json
6 changes: 6 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ function vantage_scripts() {

if ( siteorigin_setting( 'layout_fitvids' ) ) {
wp_enqueue_script( 'jquery-fitvids' , get_template_directory_uri() . '/js/jquery.fitvids' . SITEORIGIN_THEME_JS_PREFIX . '.js' , array('jquery'), '1.0', $in_footer );
wp_localize_script(
'vantage-main',
'vantage', array(
'fitvids' => true,
)
);
}

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion inc/customizer/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function css() {
// Start by importing Google web fonts
$return = '<style type="text/css" id="customizer-css">';

if ( apply_filters( 'vanage_import_google_fonts', true ) ) {
if ( apply_filters( 'vantage_import_google_fonts', true ) ) {
$import = array();
foreach ( $this->google_fonts as $font ) {
$import[ ] = urlencode( $font[ 0 ] ) . ':' . $font[ 1 ];
Expand Down
32 changes: 16 additions & 16 deletions inc/customizer/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
/* globals jQuery, wp, soCustomizeAdmin, confirm */

wp.customize.bind( 'ready', function( value ){
var $ = jQuery;
var $ = jQuery;

var button = null;
$('#accordion-panel-siteorigin_theme_settings ').one('expanded', function(){
var buttonWrapper = $("<div id='siteorigin-customizer-reset'></div>")
.appendTo( $('#accordion-panel-siteorigin_theme_settings .accordion-section-content.description') )
.append(
$("<a class='reset-customizations button-secondary'></a>")
.html( soCustomizeAdmin.button )
.attr( 'href', soCustomizeAdmin.action )
);
var button = null;
$('#accordion-panel-siteorigin_theme_settings ').one('expanded', function(){
var buttonWrapper = $("<div id='siteorigin-customizer-reset'></div>")
.appendTo( $('#accordion-panel-siteorigin_theme_settings .accordion-section-content.description') )
.append(
$("<a class='reset-customizations button-secondary'></a>")
.html( soCustomizeAdmin.button )
.attr( 'href', soCustomizeAdmin.action )
);

buttonWrapper.find( 'a.reset-customizations' ).on( 'click', function( e ) {
if( !confirm( soCustomizeAdmin.confirm ) ) {
e.preventDefault();
}
});
});
buttonWrapper.find( 'a.reset-customizations' ).on( 'click', function( e ) {
if( !confirm( soCustomizeAdmin.confirm ) ) {
e.preventDefault();
}
});
});

$( '#accordion-panel-theme_settings' ).one( 'expanded', function () {
var toggleSliderStretch = function ( selectedSlider ) {
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.theme-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jQuery ( function( $ ) {
} );

// Setup FitVids for entry content, video post format, Panels, WooCommerce pages, masthead widget area and the header sidebar.
if ( typeof $.fn.fitVids !== 'undefined' ) {
if ( typeof $.fn.fitVids !== 'undefined' && typeof vantage !== 'undefined' && typeof vantage.fitvids ) {
$( '.entry-content, .entry-content .panel, .entry-video, .woocommerce #main, #masthead-widgets, #header-sidebar' ).fitVids( { ignore: '.tableauViz' } );
}

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ This theme makes use of the SiteOrigin Settings Framework contained in the /inc

== Changelog ==

= 1.17.3 - 12 June 2021 =
* Only setup FitVids if enabled in Theme Settings. Ensures better compatibility with other plugins loading FitVids for fluid width video embeds.

= 1.17.2 - 25 April 2021 =
* Resolved Post Carousel post loop template notice.
* WooCommerce: Increased the cart quantity field width.
Expand Down

0 comments on commit 78501d6

Please sign in to comment.