From 6040da025cd5b716ff822eba6307ec56bb19f5a0 Mon Sep 17 00:00:00 2001 From: francgrasso Date: Thu, 30 Apr 2020 17:32:50 +0200 Subject: [PATCH] support to "YITH Slider for page builders" plugin --- header.php | 4 ++-- inc/metaboxes.php | 4 ++-- sidebar.php | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/header.php b/header.php index 3baa5c2..0c51876 100644 --- a/header.php +++ b/header.php @@ -112,12 +112,12 @@ class="site-header ID, 'header_slider', true ); if ( $slider && '' != $slider ) { - echo do_shortcode( '[yith-proteo-slider slider="' . get_post_meta( $post->ID, 'header_slider', true ) . '"]' ); + echo do_shortcode( '[yith-slider slider="' . get_post_meta( $post->ID, 'header_slider', true ) . '"]' ); } } } diff --git a/inc/metaboxes.php b/inc/metaboxes.php index 653faf1..c0161e1 100644 --- a/inc/metaboxes.php +++ b/inc/metaboxes.php @@ -54,7 +54,7 @@ function yith_proteo_header_slider_add_meta_box() { } -if ( defined( 'YITH_PROTEO_UTILS' ) ) { +if ( defined( 'YITH_SLIDER_FOR_PAGE_BUILDERS' ) ) { add_action( 'add_meta_boxes', 'yith_proteo_header_slider_add_meta_box' ); } @@ -227,7 +227,7 @@ function yith_proteo_header_slider_html( $post ) { - 1, - 'post_type' => 'yith_proteo_slider', + 'post_type' => 'yith_slider', 'post_status' => 'publish', 'fields' => 'ids', ); diff --git a/sidebar.php b/sidebar.php index fb8b346..c939879 100644 --- a/sidebar.php +++ b/sidebar.php @@ -6,7 +6,6 @@ * * @package yith-proteo */ - if ( ! is_active_sidebar( 'sidebar-1' ) || ! yith_proteo_get_sidebar_position( 'sidebar-show' ) ) { return; }