Version Description
- Added: Slider edit links for Elementor widget.
Download this release
Release Info
Developer | 10web |
Plugin | Slider by WD – Responsive Slider |
Version | 1.2.26 |
Comparing to | |
See all releases |
Code changes from version 1.2.25 to 1.2.26
- admin/controllers/elementorWidget.php +9 -2
- demo_sliders/demo_sliders.php +11 -11
- framework/WDW_S_Library.php +1 -0
- js/wds_elementor_widget.js +20 -0
- readme.txt +5 -1
- slider-wd.php +18 -14
admin/controllers/elementorWidget.php
CHANGED
@@ -47,7 +47,14 @@ class WDSElementor extends \Elementor\Widget_Base {
|
|
47 |
'label' => __('Slider', WDS()->prefix),
|
48 |
]
|
49 |
);
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
$sliders = wds_get_sliders();
|
52 |
$sliders[0] = __('Select a Slider', WDS()->prefix);
|
53 |
$this->add_control(
|
@@ -55,7 +62,7 @@ class WDSElementor extends \Elementor\Widget_Base {
|
|
55 |
[
|
56 |
'label_block' => TRUE,
|
57 |
'show_label' => FALSE,
|
58 |
-
'description' => __('Select the slider to display.', WDS()->prefix) . ' <a target="_balnk" href="' .
|
59 |
'type' => \Elementor\Controls_Manager::SELECT,
|
60 |
'default' => 0,
|
61 |
'options' => $sliders,
|
47 |
'label' => __('Slider', WDS()->prefix),
|
48 |
]
|
49 |
);
|
50 |
+
if($this->get_id() !== null){
|
51 |
+
$settings = $this->get_init_settings();
|
52 |
+
}
|
53 |
+
$wds_edit_link = add_query_arg(array( 'page' => 'sliders_' . WDS()->prefix ), admin_url('admin.php'));
|
54 |
+
if(isset($settings) && isset($settings["sliders"]) && intval($settings["sliders"])>0){
|
55 |
+
$wds_id = intval($settings["sliders"]);
|
56 |
+
$wds_edit_link = add_query_arg(array( 'page' => 'sliders_' . WDS()->prefix, 'task'=>'edit', 'current_id'=>$wds_id ), admin_url('admin.php'));
|
57 |
+
}
|
58 |
$sliders = wds_get_sliders();
|
59 |
$sliders[0] = __('Select a Slider', WDS()->prefix);
|
60 |
$this->add_control(
|
62 |
[
|
63 |
'label_block' => TRUE,
|
64 |
'show_label' => FALSE,
|
65 |
+
'description' => __('Select the slider to display.', WDS()->prefix) . ' <a target="_balnk" href="' . $wds_edit_link . '">' . __('Edit slider', WDS()->prefix) . '</a>',
|
66 |
'type' => \Elementor\Controls_Manager::SELECT,
|
67 |
'default' => 0,
|
68 |
'options' => $sliders,
|
demo_sliders/demo_sliders.php
CHANGED
@@ -9,56 +9,56 @@ function print_demo_sliders() {
|
|
9 |
if ( !class_exists('ZipArchive') ) {
|
10 |
$error_ext_mess .= WDW_S_Library::message_id(0, __('Slider import will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it. ', WDS()->prefix),'error');
|
11 |
}
|
12 |
-
$buy_now_href = 'https://10web.io/plugins/wordpress-slider
|
13 |
$demo_sliders = array(
|
14 |
'presentation' => array(
|
15 |
'name' => __('Presentation', WDS()->prefix),
|
16 |
-
'eye_href' => 'https://demo.10web.io/slider
|
17 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/presentation.zip',
|
18 |
),
|
19 |
'layers' => array(
|
20 |
'name' => __('Layers', WDS()->prefix),
|
21 |
-
'eye_href' => 'https://demo.10web.io/slider/layers
|
22 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/layers.zip',
|
23 |
),
|
24 |
'online-store' => array(
|
25 |
'name' => __('Online store', WDS()->prefix),
|
26 |
-
'eye_href' => 'https://demo.10web.io/slider/online-store
|
27 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/online-store.zip',
|
28 |
),
|
29 |
'hotspot' => array(
|
30 |
'name' => __('HotSpot', WDS()->prefix),
|
31 |
-
'eye_href' => 'https://demo.10web.io/slider/hotspot
|
32 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/hotspot.zip',
|
33 |
),
|
34 |
'parallax' => array(
|
35 |
'name' => __('Parallax', WDS()->prefix),
|
36 |
-
'eye_href' => 'https://demo.10web.io/slider/parallax
|
37 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/parallax.zip',
|
38 |
),
|
39 |
'filmstrip' => array(
|
40 |
'name' => __('Filmstrip', WDS()->prefix),
|
41 |
-
'eye_href' => 'https://demo.10web.io/slider/filmstrip
|
42 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/filmstrip.zip',
|
43 |
),
|
44 |
'carousel' => array(
|
45 |
'name' => __('Carousel', WDS()->prefix),
|
46 |
-
'eye_href' => 'https://demo.10web.io/slider/carousel
|
47 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/carousel.zip',
|
48 |
),
|
49 |
'slider-3d' => array(
|
50 |
'name' => __('3D Slider', WDS()->prefix),
|
51 |
-
'eye_href' => 'https://demo.10web.io/slider/3d-slider
|
52 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/3d-slider.zip',
|
53 |
),
|
54 |
'zoom' => array(
|
55 |
'name' => __('Zoom', WDS()->prefix),
|
56 |
-
'eye_href' => 'https://demo.10web.io/slider/zoom
|
57 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/zoom.zip',
|
58 |
),
|
59 |
'video' => array(
|
60 |
'name' => __('Video', WDS()->prefix),
|
61 |
-
'eye_href' => 'https://demo.10web.io/slider/video
|
62 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/video.zip',
|
63 |
)
|
64 |
);
|
9 |
if ( !class_exists('ZipArchive') ) {
|
10 |
$error_ext_mess .= WDW_S_Library::message_id(0, __('Slider import will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it. ', WDS()->prefix),'error');
|
11 |
}
|
12 |
+
$buy_now_href = 'https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin#plugin_steps';
|
13 |
$demo_sliders = array(
|
14 |
'presentation' => array(
|
15 |
'name' => __('Presentation', WDS()->prefix),
|
16 |
+
'eye_href' => 'https://demo.10web.io/slider/?utm_source=slider&utm_medium=free_plugin',
|
17 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/presentation.zip',
|
18 |
),
|
19 |
'layers' => array(
|
20 |
'name' => __('Layers', WDS()->prefix),
|
21 |
+
'eye_href' => 'https://demo.10web.io/slider/layers/?utm_source=slider&utm_medium=free_plugin',
|
22 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/layers.zip',
|
23 |
),
|
24 |
'online-store' => array(
|
25 |
'name' => __('Online store', WDS()->prefix),
|
26 |
+
'eye_href' => 'https://demo.10web.io/slider/online-store/?utm_source=slider&utm_medium=free_plugin',
|
27 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/online-store.zip',
|
28 |
),
|
29 |
'hotspot' => array(
|
30 |
'name' => __('HotSpot', WDS()->prefix),
|
31 |
+
'eye_href' => 'https://demo.10web.io/slider/hotspot/?utm_source=slider&utm_medium=free_plugin',
|
32 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/hotspot.zip',
|
33 |
),
|
34 |
'parallax' => array(
|
35 |
'name' => __('Parallax', WDS()->prefix),
|
36 |
+
'eye_href' => 'https://demo.10web.io/slider/parallax/?utm_source=slider&utm_medium=free_plugin',
|
37 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/parallax.zip',
|
38 |
),
|
39 |
'filmstrip' => array(
|
40 |
'name' => __('Filmstrip', WDS()->prefix),
|
41 |
+
'eye_href' => 'https://demo.10web.io/slider/filmstrip/?utm_source=slider&utm_medium=free_plugin',
|
42 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/filmstrip.zip',
|
43 |
),
|
44 |
'carousel' => array(
|
45 |
'name' => __('Carousel', WDS()->prefix),
|
46 |
+
'eye_href' => 'https://demo.10web.io/slider/carousel/?utm_source=slider&utm_medium=free_plugin',
|
47 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/carousel.zip',
|
48 |
),
|
49 |
'slider-3d' => array(
|
50 |
'name' => __('3D Slider', WDS()->prefix),
|
51 |
+
'eye_href' => 'https://demo.10web.io/slider/3d-slider/?utm_source=slider&utm_medium=free_plugin',
|
52 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/3d-slider.zip',
|
53 |
),
|
54 |
'zoom' => array(
|
55 |
'name' => __('Zoom', WDS()->prefix),
|
56 |
+
'eye_href' => 'https://demo.10web.io/slider/zoom/?utm_source=slider&utm_medium=free_plugin',
|
57 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/zoom.zip',
|
58 |
),
|
59 |
'video' => array(
|
60 |
'name' => __('Video', WDS()->prefix),
|
61 |
+
'eye_href' => 'https://demo.10web.io/slider/video/?utm_source=slider&utm_medium=free_plugin',
|
62 |
'download_href' => 'https://demo.10web.io/wp-content/uploads/demo-sliders/video.zip',
|
63 |
)
|
64 |
);
|
framework/WDW_S_Library.php
CHANGED
@@ -2473,6 +2473,7 @@ class WDW_S_Library {
|
|
2473 |
break;
|
2474 |
}
|
2475 |
}
|
|
|
2476 |
$support_forum_link = 'https://wordpress.org/support/plugin/slider-wd';
|
2477 |
$premium_link = 'https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin';
|
2478 |
wp_enqueue_style(WDS()->prefix . '-roboto');
|
2473 |
break;
|
2474 |
}
|
2475 |
}
|
2476 |
+
$user_guide_link .= '?utm_source=slider&utm_medium=free_plugin';
|
2477 |
$support_forum_link = 'https://wordpress.org/support/plugin/slider-wd';
|
2478 |
$premium_link = 'https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin';
|
2479 |
wp_enqueue_style(WDS()->prefix . '-roboto');
|
js/wds_elementor_widget.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery("document").ready(function () {
|
2 |
+
elementor.hooks.addAction( 'panel/open_editor/widget/wds-elementor', function( panel, model, view ) {
|
3 |
+
var wds_el = jQuery('select[data-setting="sliders"]',window.parent.document);
|
4 |
+
wds_add_edit_link(wds_el);
|
5 |
+
});
|
6 |
+
jQuery('body').on('change', 'select[data-setting="sliders"]',window.parent.document, function (){
|
7 |
+
wds_add_edit_link(jQuery(this));
|
8 |
+
});
|
9 |
+
});
|
10 |
+
|
11 |
+
function wds_add_edit_link(el) {
|
12 |
+
var wds_el = el;
|
13 |
+
var wds_id = wds_el.val();
|
14 |
+
var a_link = wds_el.closest('.elementor-control-content').find('.elementor-control-field-description').find('a');
|
15 |
+
var new_link = 'admin.php?page=sliders_wds';
|
16 |
+
if(wds_id !== '0'){
|
17 |
+
new_link = 'admin.php?page=sliders_wds&task=edit¤t_id='+wds_el.val();
|
18 |
+
}
|
19 |
+
a_link.attr( 'href', new_link);
|
20 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
|
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -445,6 +445,10 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
|
|
445 |
|
446 |
== Changelog ==
|
447 |
|
|
|
|
|
|
|
|
|
448 |
= 1.2.25 =
|
449 |
* Fixed: Newly added slider preview image.
|
450 |
* Fixed: Leave page message for newly published slider.
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.2.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
445 |
|
446 |
== Changelog ==
|
447 |
|
448 |
+
|
449 |
+
= 1.2.26 =
|
450 |
+
* Added: Slider edit links for Elementor widget.
|
451 |
+
|
452 |
= 1.2.25 =
|
453 |
* Fixed: Newly added slider preview image.
|
454 |
* Fixed: Leave page message for newly published slider.
|
slider-wd.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Slider by 10Web
|
4 |
-
* Plugin URI: https://10web.io/plugins/wordpress-slider
|
5 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: 10Web
|
8 |
-
* Author URI: https://10web.io/pricing
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
|
@@ -78,8 +78,8 @@ final class WDS {
|
|
78 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
79 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
80 |
$this->main_file = plugin_basename(__FILE__);
|
81 |
-
$this->plugin_version = '1.2.
|
82 |
-
$this->db_version = '1.2.
|
83 |
$this->prefix = 'wds';
|
84 |
$this->nicename = __('Slider', $this->prefix);
|
85 |
$this->use_home_url();
|
@@ -187,6 +187,7 @@ final class WDS {
|
|
187 |
add_action('elementor/elements/categories_registered', array($this, 'register_widget_category'), 1, 1);
|
188 |
//fires after elementor editor styles and scripts are enqueued.
|
189 |
add_action('elementor/editor/after_enqueue_styles', array($this, 'enqueue_editor_styles'), 11);
|
|
|
190 |
|
191 |
// Import slider from builder
|
192 |
add_filter('builder_import_slider', array('WDW_S_Library', 'twbb_wds_import'));
|
@@ -195,6 +196,9 @@ final class WDS {
|
|
195 |
public function enqueue_editor_styles() {
|
196 |
wp_enqueue_style('twbb-editor-styles', $this->plugin_url . '/css/wds_elementor_icon/wds_elementor_icon.css', array(), '1.0.0');
|
197 |
}
|
|
|
|
|
|
|
198 |
|
199 |
/**
|
200 |
* Register widget for Elementor builder.
|
@@ -963,38 +967,38 @@ final class WDS {
|
|
963 |
"user_guide" => array(
|
964 |
0 => array(
|
965 |
"main_title" => __("Installing the Slider", $this->prefix),
|
966 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360015864212-Introducing-WordPress-Slider",
|
967 |
"titles" => array()
|
968 |
),
|
969 |
1 => array(
|
970 |
"main_title" => __("Adding Images to Sliders", $this->prefix),
|
971 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360016084651-Adding-Images-Through-WD-Media-Uploader",
|
972 |
"titles" => array()
|
973 |
),
|
974 |
2 => array(
|
975 |
"main_title" => __("Adding Layers to The Slide", $this->prefix),
|
976 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360015864732-Adding-Layers-to-Slides",
|
977 |
"titles" => array()
|
978 |
),
|
979 |
3 => array(
|
980 |
"main_title" => __("Changing/Modifying Slider Settings", $this->prefix),
|
981 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360015864812-Modifying-Slider-Settings",
|
982 |
"titles" => array()
|
983 |
),
|
984 |
4 => array(
|
985 |
"main_title" => __("Publishing the Created Slider", $this->prefix),
|
986 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360015864912-Publishing-Sliders-on-WordPress",
|
987 |
"titles" => array()
|
988 |
),
|
989 |
5 => array(
|
990 |
"main_title" => __("Importing/Exporting Sliders", $this->prefix),
|
991 |
-
"url" => "https://help.10web.io/hc/en-us/articles/360015864972-Importing-and-Exporting-Sliders",
|
992 |
"titles" => array()
|
993 |
),
|
994 |
),
|
995 |
-
"video_youtube_id" => "xebpM_-GwG0",
|
996 |
-
"plugin_wd_url" => "https://10web.io/plugins/wordpress-slider
|
997 |
-
"plugin_wd_demo_link" => "https://demo.10web.io/slider
|
998 |
"plugin_wd_addons_link" => "",
|
999 |
"after_subscribe" => admin_url('admin.php?page=sliders_wds'), // this can be plagin overview page or set up page
|
1000 |
"plugin_wizard_link" => '',
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Slider by 10Web
|
4 |
+
* Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
|
5 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
6 |
+
* Version: 1.2.26
|
7 |
* Author: 10Web
|
8 |
+
* Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
11 |
|
78 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
79 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
80 |
$this->main_file = plugin_basename(__FILE__);
|
81 |
+
$this->plugin_version = '1.2.26';
|
82 |
+
$this->db_version = '1.2.26';
|
83 |
$this->prefix = 'wds';
|
84 |
$this->nicename = __('Slider', $this->prefix);
|
85 |
$this->use_home_url();
|
187 |
add_action('elementor/elements/categories_registered', array($this, 'register_widget_category'), 1, 1);
|
188 |
//fires after elementor editor styles and scripts are enqueued.
|
189 |
add_action('elementor/editor/after_enqueue_styles', array($this, 'enqueue_editor_styles'), 11);
|
190 |
+
add_action('elementor/editor/after_enqueue_scripts', array($this, 'enqueue_elementor_widget_scripts'));
|
191 |
|
192 |
// Import slider from builder
|
193 |
add_filter('builder_import_slider', array('WDW_S_Library', 'twbb_wds_import'));
|
196 |
public function enqueue_editor_styles() {
|
197 |
wp_enqueue_style('twbb-editor-styles', $this->plugin_url . '/css/wds_elementor_icon/wds_elementor_icon.css', array(), '1.0.0');
|
198 |
}
|
199 |
+
public function enqueue_elementor_widget_scripts() {
|
200 |
+
wp_enqueue_script('wds_elementor_widget_js', $this->plugin_url . '/js/wds_elementor_widget.js', array('jquery'));
|
201 |
+
}
|
202 |
|
203 |
/**
|
204 |
* Register widget for Elementor builder.
|
967 |
"user_guide" => array(
|
968 |
0 => array(
|
969 |
"main_title" => __("Installing the Slider", $this->prefix),
|
970 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360015864212-Introducing-WordPress-Slider?utm_source=slider&utm_medium=free_plugin",
|
971 |
"titles" => array()
|
972 |
),
|
973 |
1 => array(
|
974 |
"main_title" => __("Adding Images to Sliders", $this->prefix),
|
975 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360016084651-Adding-Images-Through-WD-Media-Uploader?utm_source=slider&utm_medium=free_plugin",
|
976 |
"titles" => array()
|
977 |
),
|
978 |
2 => array(
|
979 |
"main_title" => __("Adding Layers to The Slide", $this->prefix),
|
980 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360015864732-Adding-Layers-to-Slides?utm_source=slider&utm_medium=free_plugin",
|
981 |
"titles" => array()
|
982 |
),
|
983 |
3 => array(
|
984 |
"main_title" => __("Changing/Modifying Slider Settings", $this->prefix),
|
985 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360015864812-Modifying-Slider-Settings?utm_source=slider&utm_medium=free_plugin",
|
986 |
"titles" => array()
|
987 |
),
|
988 |
4 => array(
|
989 |
"main_title" => __("Publishing the Created Slider", $this->prefix),
|
990 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360015864912-Publishing-Sliders-on-WordPress?utm_source=slider&utm_medium=free_plugin",
|
991 |
"titles" => array()
|
992 |
),
|
993 |
5 => array(
|
994 |
"main_title" => __("Importing/Exporting Sliders", $this->prefix),
|
995 |
+
"url" => "https://help.10web.io/hc/en-us/articles/360015864972-Importing-and-Exporting-Sliders?utm_source=slider&utm_medium=free_plugin",
|
996 |
"titles" => array()
|
997 |
),
|
998 |
),
|
999 |
+
"video_youtube_id" => "xebpM_-GwG0",
|
1000 |
+
"plugin_wd_url" => "https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin",
|
1001 |
+
"plugin_wd_demo_link" => "https://demo.10web.io/slider/?utm_source=slider&utm_medium=free_plugin",
|
1002 |
"plugin_wd_addons_link" => "",
|
1003 |
"after_subscribe" => admin_url('admin.php?page=sliders_wds'), // this can be plagin overview page or set up page
|
1004 |
"plugin_wizard_link" => '',
|