Slider by WD – Responsive Slider - Version 1.2.28

Version Description

  • Added: Ask a question button.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.2.28
Comparing to
See all releases

Code changes from version 1.2.27 to 1.2.28

css/images/help.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-64 -64)"><path class="a" d="M73.5,64A9.5,9.5,0,1,0,83,73.5,9.5,9.5,0,0,0,73.5,64Zm0,17.388A7.888,7.888,0,1,1,81.388,73.5,7.89,7.89,0,0,1,73.5,81.388Z"/><path class="a" d="M357.759,276.863a3.676,3.676,0,0,0-4.733,0A2.891,2.891,0,0,0,352,279.054v.161a.17.17,0,0,0,.17.17h1.018a.17.17,0,0,0,.17-.17v-.161a2.07,2.07,0,0,1,4.071,0,1.716,1.716,0,0,1-1.19,1.542,2.37,2.37,0,0,0-1.1.867,2.427,2.427,0,0,0-.422,1.376v.456a.17.17,0,0,0,.17.17H355.9a.17.17,0,0,0,.17-.17v-.481a1.025,1.025,0,0,1,.655-.95,3.061,3.061,0,0,0,2.059-2.81,2.882,2.882,0,0,0-1.024-2.191Zm-3.215,8.807a.848.848,0,1,0,.848-.848A.848.848,0,0,0,354.545,285.67Z" transform="translate(-281.893 -207.504)"/></g></svg>
css/pricing.css CHANGED
@@ -20,13 +20,26 @@
20
  border: 1px solid #D0D0D080;
21
  border-radius: 7px;
22
  color: #000000;
23
- padding: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  .wd-topbar-content {
26
  display: flex;
27
  justify-content: space-between;
28
  flex: auto;
29
- margin: 0 2px 0 0;
30
  padding: 10px 15px;
31
  height: 60px;
32
  }
@@ -58,12 +71,20 @@
58
  }
59
  .wd-topbar-links a,
60
  .wd-topbar-links a:focus {
61
- text-decoration: none;
62
  align-self: center;
63
  box-shadow: none;
64
  color: #000000;
65
- cursor:pointer;
66
  }
 
 
 
 
 
 
 
 
 
67
  .wd-topbar-links a:hover {
68
  opacity: 0.5;
69
  text-decoration: none;
@@ -137,5 +158,17 @@
137
  align-self: center;
138
  padding-bottom: 4px;
139
  }
 
140
  }
 
 
 
 
 
 
 
 
 
 
 
141
  /* Top bar end */
20
  border: 1px solid #D0D0D080;
21
  border-radius: 7px;
22
  color: #000000;
23
+ padding: 10px;
24
+ }
25
+ .wd-topbar_cont {
26
+ display: flex;
27
+ }
28
+ .wd-topbar.wd-topbar_support_forum {
29
+ background-color: #4786FF;
30
+ margin-left: 20px;
31
+ }
32
+
33
+ .wd-topbar-container .wd-topbar.wd-topbar_support_forum:hover
34
+ {
35
+ background-color: #3077FF;
36
+ opacity:1
37
  }
38
  .wd-topbar-content {
39
  display: flex;
40
  justify-content: space-between;
41
  flex: auto;
42
+ margin: 0 20px 0 0;
43
  padding: 10px 15px;
44
  height: 60px;
45
  }
71
  }
72
  .wd-topbar-links a,
73
  .wd-topbar-links a:focus {
 
74
  align-self: center;
75
  box-shadow: none;
76
  color: #000000;
77
+ text-decoration: none;
78
  }
79
+
80
+ .wd-topbar-links a.wd-topbar_support_forum {
81
+ color: #fff;
82
+ }
83
+
84
+ .wd-topbar-links a.wd-topbar_support_forum .help_icon {
85
+ margin-right: 10px;
86
+ }
87
+
88
  .wd-topbar-links a:hover {
89
  opacity: 0.5;
90
  text-decoration: none;
158
  align-self: center;
159
  padding-bottom: 4px;
160
  }
161
+
162
  }
163
+
164
+ @media screen and (max-width: 450px) {
165
+ .wd-topbar_cont {
166
+ display: block;
167
+ }
168
+
169
+ .wd-topbar-container .wd-topbar.wd-topbar_support_forum {
170
+ margin-left: 0px;
171
+ }
172
+ }
173
+
174
  /* Top bar end */
css/wds_tables.css CHANGED
@@ -2191,8 +2191,4 @@ div.wd-notice-margin {
2191
 
2192
  #wpbody-content>div:not(.wrap):not(#screen-meta-links), .wrap .notice:not(.wd-notice) {
2193
  display: none;
2194
- }
2195
-
2196
- #screen-meta-links {
2197
- margin-bottom: 30px;
2198
  }
2191
 
2192
  #wpbody-content>div:not(.wrap):not(#screen-meta-links), .wrap .notice:not(.wd-notice) {
2193
  display: none;
 
 
 
 
2194
  }
framework/WDW_S_Library.php CHANGED
@@ -2474,7 +2474,7 @@ class WDW_S_Library {
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');
2480
  wp_enqueue_style(WDS()->prefix . '-pricing');
@@ -2502,30 +2502,35 @@ class WDW_S_Library {
2502
  <?php
2503
  }
2504
  ?>
2505
- <div class="wd-topbar wd-topbar-links">
2506
- <div class="wd-topbar-links-container">
2507
- <?php if ( $show_guide_link ) { ?>
2508
- <a href="<?php echo $user_guide_link; ?>" target="_blank">
2509
- <div class="wd-topbar-links-item">
2510
- <?php _e('User guide', WDS()->prefix); ?>
2511
- </div>
2512
- </a>
2513
- <?php
2514
- }
2515
- if (WDS()->is_free) {
2516
- if ( $show_guide_link ) {
2517
- ?>
2518
- <span class="wd-topbar-separator"></span>
2519
- <?php } ?>
2520
- <a href="<?php echo $support_forum_link; ?>" target="_blank">
2521
- <div class="wd-topbar-links-item">
2522
- <?php _e('Support Forum', WDS()->prefix); ?>
2523
- </div>
2524
- </a>
2525
- <?php
2526
- }
2527
- ?>
2528
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2529
  </div>
2530
  </div>
2531
  <?php if ( $show_head ) {
2474
  }
2475
  }
2476
  $user_guide_link .= '?utm_source=slider&utm_medium=free_plugin';
2477
+ $support_forum_link = 'https://wordpress.org/support/plugin/slider-wd/#new-post';
2478
  $premium_link = 'https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin';
2479
  wp_enqueue_style(WDS()->prefix . '-roboto');
2480
  wp_enqueue_style(WDS()->prefix . '-pricing');
2502
  <?php
2503
  }
2504
  ?>
2505
+ <div class="wd-topbar_cont">
2506
+ <div class="wd-topbar wd-topbar-links wd-topbar_user_guid">
2507
+ <div class="wd-topbar-links-container">
2508
+ <?php if ( $show_guide_link ) { ?>
2509
+ <a href="<?php echo $user_guide_link; ?>" target="_blank" class="wd-topbar_user_guid">
2510
+ <div class="wd-topbar-links-item">
2511
+ <?php _e('User guide', WDS()->prefix); ?>
2512
+ </div>
2513
+ </a>
2514
+ <?php
2515
+ }?>
2516
+ </div>
 
 
 
 
 
 
 
 
 
 
 
2517
  </div>
2518
+ <?php
2519
+ if (WDS()->is_free) {
2520
+ ?>
2521
+ <div class="wd-topbar wd-topbar-links wd-topbar_support_forum">
2522
+ <div class="wd-topbar-links-container">
2523
+ <a href="<?php echo $support_forum_link; ?>" target="_blank" class="wd-topbar_support_forum">
2524
+ <div class="wd-topbar-links-item">
2525
+ <img src="<?php echo WDS()->plugin_url . '/css/images/help.svg'; ?>" class="help_icon" />
2526
+ <?php _e('Ask a question', WDS()->prefix); ?>
2527
+ </div>
2528
+ </a>
2529
+ </div>
2530
+ </div>
2531
+ <?php
2532
+ }
2533
+ ?>
2534
  </div>
2535
  </div>
2536
  <?php if ( $show_head ) {
js/wds.js CHANGED
@@ -10,6 +10,9 @@ jQuery(document).ready(function () {
10
 
11
  hide_dimmension_ratio();
12
  wds_whr('height');
 
 
 
13
  });
14
 
15
  jQuery(window).load(function () {
10
 
11
  hide_dimmension_ratio();
12
  wds_whr('height');
13
+
14
+ /* Ask a question menu link target _blank */
15
+ jQuery('#wds_ask_question').parent().attr('target','_blank');
16
  });
17
 
18
  jQuery(window).load(function () {
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.27
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -445,6 +445,8 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
445
 
446
  == Changelog ==
447
 
 
 
448
 
449
  = 1.2.27 =
450
  * Fixed: Video slide Video loop.
4
  Requires at least: 3.4
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.28
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
445
 
446
  == Changelog ==
447
 
448
+ = 1.2.28 =
449
+ * Added: Ask a question button.
450
 
451
  = 1.2.27 =
452
  * Fixed: Video slide Video loop.
slider-wd.php CHANGED
@@ -3,7 +3,7 @@
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.27
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
@@ -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.27';
82
- $this->db_version = '1.2.27';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $this->use_home_url();
@@ -191,6 +191,26 @@ final class WDS {
191
 
192
  // Import slider from builder
193
  add_filter('builder_import_slider', array('WDW_S_Library', 'twbb_wds_import'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  }
195
 
196
  public function enqueue_editor_styles() {
@@ -274,6 +294,17 @@ final class WDS {
274
  $uninstall_page = add_submenu_page(null, __('Uninstall', $this->prefix), __('Uninstall', $this->prefix), 'manage_options', 'uninstall_wds', array($this, 'admin_pages'));
275
  add_action('admin_print_styles-' . $uninstall_page, array($this, 'admin_styles'));
276
  add_action('admin_print_scripts-' . $uninstall_page, array($this, 'admin_scripts'));
 
 
 
 
 
 
 
 
 
 
 
277
  }
278
 
279
  /**
@@ -1146,7 +1177,7 @@ final class WDS {
1146
  if ( plugin_basename(__FILE__) == $file ) {
1147
  $plugin_url = "https://wordpress.org/support/plugin/slider-wd";
1148
  $prefix = $this->prefix;
1149
- $meta_fields[] = "<a href='" . $plugin_url . "' target='_blank'>" . __('Support Forum', $prefix) . "</a>";
1150
  $meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
1151
  <i class='wdi-rate-stars'>"
1152
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
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.28
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
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.28';
82
+ $this->db_version = '1.2.28';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $this->use_home_url();
191
 
192
  // Import slider from builder
193
  add_filter('builder_import_slider', array('WDW_S_Library', 'twbb_wds_import'));
194
+
195
+ if ( $this->is_free == 1 ) {
196
+ /* Add wordpress.org support custom link in plugin page */
197
+ add_filter('plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'add_ask_question_links' ));
198
+ }
199
+
200
+ }
201
+
202
+ /**
203
+ * Add plugin action links.
204
+ *
205
+ * Add a link to the settings page on the plugins.php page.
206
+ *
207
+ * @param array $links List of existing plugin action links.
208
+ * @return array List of modified plugin action links.
209
+ */
210
+ public function add_ask_question_links ( $links ) {
211
+ $url = 'https://wordpress.org/support/plugin/slider-wd/#new-post';
212
+ $ask_question_link = array('<a href="' . $url . '" target="_blank">' . __('Help', $this->prefix) . '</a>');
213
+ return array_merge( $links, $ask_question_link );
214
  }
215
 
216
  public function enqueue_editor_styles() {
294
  $uninstall_page = add_submenu_page(null, __('Uninstall', $this->prefix), __('Uninstall', $this->prefix), 'manage_options', 'uninstall_wds', array($this, 'admin_pages'));
295
  add_action('admin_print_styles-' . $uninstall_page, array($this, 'admin_styles'));
296
  add_action('admin_print_scripts-' . $uninstall_page, array($this, 'admin_scripts'));
297
+
298
+ if ( $this->is_free ) {
299
+ /* Custom link to wordpress.org*/
300
+ global $submenu;
301
+ $url = 'https://wordpress.org/support/plugin/slider-wd/#new-post';
302
+ $submenu[$parent_slug][] = array(
303
+ '<div id="wds_ask_question">' . __('Ask a question', $this->prefix) . '</div>',
304
+ 'manage_options',
305
+ $url
306
+ );
307
+ }
308
  }
309
 
310
  /**
1177
  if ( plugin_basename(__FILE__) == $file ) {
1178
  $plugin_url = "https://wordpress.org/support/plugin/slider-wd";
1179
  $prefix = $this->prefix;
1180
+ $meta_fields[] = "<a href='" . $plugin_url . "/#new-post' target='_blank'>" . __('Ask a question', $prefix) . "</a>";
1181
  $meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
1182
  <i class='wdi-rate-stars'>"
1183
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"