Version Description
single quota in image name (bug fixed)
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- admin/controllers/WDSControllerSliders_wds.php +4 -4
- admin/models/WDSModelSliders_wds.php +4 -4
- filemanager/UploadHandler.php +29 -12
- framework/WDW_S_Library.php +1 -1
- frontend/views/WDSViewSlider.php +4 -4
- readme.txt +6 -1
- slider-wd.php +27 -3
admin/controllers/WDSControllerSliders_wds.php
CHANGED
@@ -116,11 +116,11 @@ class WDSControllerSliders_wds {
|
|
116 |
$prev_next_butt = ((isset($_POST['prev_next_butt'])) ? (int) esc_html(stripslashes($_POST['prev_next_butt'])) : 1);
|
117 |
$play_paus_butt = ((isset($_POST['play_paus_butt'])) ? (int) esc_html(stripslashes($_POST['play_paus_butt'])) : 0);
|
118 |
$navigation = ((isset($_POST['navigation'])) ? esc_html(stripslashes($_POST['navigation'])) : 'hover');
|
119 |
-
$rl_butt_style = ((isset($_POST['rl_butt_style']) && $allow) ? esc_html(stripslashes($_POST['rl_butt_style'])) : 'fa-angle
|
120 |
$rl_butt_size = ((isset($_POST['rl_butt_size']) && $allow) ? (int) esc_html(stripslashes($_POST['rl_butt_size'])) : 40);
|
121 |
$pp_butt_size = ((isset($_POST['pp_butt_size']) && $allow) ? (int) esc_html(stripslashes($_POST['pp_butt_size'])) : 40);
|
122 |
$butts_color = ((isset($_POST['butts_color']) && $allow) ? esc_html(stripslashes($_POST['butts_color'])) : '000000');
|
123 |
-
$butts_transparent = ((isset($_POST['butts_transparent']) && $allow) ? (int) esc_html(stripslashes($_POST['butts_transparent'])) :
|
124 |
$hover_color = ((isset($_POST['hover_color']) && $allow) ? esc_html(stripslashes($_POST['hover_color'])) : '000000');
|
125 |
$nav_border_width = ((isset($_POST['nav_border_width']) && $allow) ? (int) esc_html(stripslashes($_POST['nav_border_width'])) : 0);
|
126 |
$nav_border_style = ((isset($_POST['nav_border_style']) && $allow) ? esc_html(stripslashes($_POST['nav_border_style'])) : 'none');
|
@@ -131,8 +131,8 @@ class WDSControllerSliders_wds {
|
|
131 |
if (isset($_POST['enable_bullets']) && (esc_html(stripslashes($_POST['enable_bullets'])) == 0)) {
|
132 |
$bull_position = 'none';
|
133 |
}
|
134 |
-
$bull_style = ((isset($_POST['bull_style']) && $allow) ? esc_html(stripslashes($_POST['bull_style'])) : 'fa-
|
135 |
-
$bull_size = ((isset($_POST['bull_size']) && $allow) ? (int) esc_html(stripslashes($_POST['bull_size'])) :
|
136 |
$bull_color = ((isset($_POST['bull_color']) && $allow) ? esc_html(stripslashes($_POST['bull_color'])) : 'FFFFFF');
|
137 |
$bull_act_color = ((isset($_POST['bull_act_color']) && $allow) ? esc_html(stripslashes($_POST['bull_act_color'])) : 'FFFFFF');
|
138 |
$bull_margin = ((isset($_POST['bull_margin']) && $allow) ? (int) esc_html(stripslashes($_POST['bull_margin'])) : 3);
|
116 |
$prev_next_butt = ((isset($_POST['prev_next_butt'])) ? (int) esc_html(stripslashes($_POST['prev_next_butt'])) : 1);
|
117 |
$play_paus_butt = ((isset($_POST['play_paus_butt'])) ? (int) esc_html(stripslashes($_POST['play_paus_butt'])) : 0);
|
118 |
$navigation = ((isset($_POST['navigation'])) ? esc_html(stripslashes($_POST['navigation'])) : 'hover');
|
119 |
+
$rl_butt_style = ((isset($_POST['rl_butt_style']) && $allow) ? esc_html(stripslashes($_POST['rl_butt_style'])) : 'fa-angle');
|
120 |
$rl_butt_size = ((isset($_POST['rl_butt_size']) && $allow) ? (int) esc_html(stripslashes($_POST['rl_butt_size'])) : 40);
|
121 |
$pp_butt_size = ((isset($_POST['pp_butt_size']) && $allow) ? (int) esc_html(stripslashes($_POST['pp_butt_size'])) : 40);
|
122 |
$butts_color = ((isset($_POST['butts_color']) && $allow) ? esc_html(stripslashes($_POST['butts_color'])) : '000000');
|
123 |
+
$butts_transparent = ((isset($_POST['butts_transparent']) && $allow) ? (int) esc_html(stripslashes($_POST['butts_transparent'])) : 100);
|
124 |
$hover_color = ((isset($_POST['hover_color']) && $allow) ? esc_html(stripslashes($_POST['hover_color'])) : '000000');
|
125 |
$nav_border_width = ((isset($_POST['nav_border_width']) && $allow) ? (int) esc_html(stripslashes($_POST['nav_border_width'])) : 0);
|
126 |
$nav_border_style = ((isset($_POST['nav_border_style']) && $allow) ? esc_html(stripslashes($_POST['nav_border_style'])) : 'none');
|
131 |
if (isset($_POST['enable_bullets']) && (esc_html(stripslashes($_POST['enable_bullets'])) == 0)) {
|
132 |
$bull_position = 'none';
|
133 |
}
|
134 |
+
$bull_style = ((isset($_POST['bull_style']) && $allow) ? esc_html(stripslashes($_POST['bull_style'])) : 'fa-square-o');
|
135 |
+
$bull_size = ((isset($_POST['bull_size']) && $allow) ? (int) esc_html(stripslashes($_POST['bull_size'])) : 20);
|
136 |
$bull_color = ((isset($_POST['bull_color']) && $allow) ? esc_html(stripslashes($_POST['bull_color'])) : 'FFFFFF');
|
137 |
$bull_act_color = ((isset($_POST['bull_act_color']) && $allow) ? esc_html(stripslashes($_POST['bull_act_color'])) : 'FFFFFF');
|
138 |
$bull_margin = ((isset($_POST['bull_margin']) && $allow) ? (int) esc_html(stripslashes($_POST['bull_margin'])) : 3);
|
admin/models/WDSModelSliders_wds.php
CHANGED
@@ -119,7 +119,7 @@ class WDSModelSliders_wds {
|
|
119 |
$row->prev_next_butt = 1;
|
120 |
$row->play_paus_butt = 0;
|
121 |
$row->navigation = 'hover';
|
122 |
-
$row->rl_butt_style = 'fa-angle
|
123 |
$row->rl_butt_size = 40;
|
124 |
$row->pp_butt_size = 40;
|
125 |
$row->butts_color = '000000';
|
@@ -129,11 +129,11 @@ class WDSModelSliders_wds {
|
|
129 |
$row->nav_border_color = 'FFFFFF';
|
130 |
$row->nav_border_radius = '20px';
|
131 |
$row->nav_bg_color = 'FFFFFF';
|
132 |
-
$row->butts_transparent =
|
133 |
$row->enable_bullets = 1;
|
134 |
$row->bull_position = 'bottom';
|
135 |
-
$row->bull_style = 'fa-
|
136 |
-
$row->bull_size =
|
137 |
$row->bull_color = 'FFFFFF';
|
138 |
$row->bull_act_color = 'FFFFFF';
|
139 |
$row->bull_margin = 3;
|
119 |
$row->prev_next_butt = 1;
|
120 |
$row->play_paus_butt = 0;
|
121 |
$row->navigation = 'hover';
|
122 |
+
$row->rl_butt_style = 'fa-angle';
|
123 |
$row->rl_butt_size = 40;
|
124 |
$row->pp_butt_size = 40;
|
125 |
$row->butts_color = '000000';
|
129 |
$row->nav_border_color = 'FFFFFF';
|
130 |
$row->nav_border_radius = '20px';
|
131 |
$row->nav_bg_color = 'FFFFFF';
|
132 |
+
$row->butts_transparent = 100;
|
133 |
$row->enable_bullets = 1;
|
134 |
$row->bull_position = 'bottom';
|
135 |
+
$row->bull_style = 'fa-square-o';
|
136 |
+
$row->bull_size = 20;
|
137 |
$row->bull_color = 'FFFFFF';
|
138 |
$row->bull_act_color = 'FFFFFF';
|
139 |
$row->bull_margin = 3;
|
filemanager/UploadHandler.php
CHANGED
@@ -598,18 +598,35 @@ class UploadHandler {
|
|
598 |
}
|
599 |
|
600 |
protected function handle_zip_file($file_path, $file) {
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
|
614 |
protected function handle_directory($target_dir) {
|
615 |
$extracted_files = scandir($target_dir);
|
598 |
}
|
599 |
|
600 |
protected function handle_zip_file($file_path, $file) {
|
601 |
+
$zip = new ZipArchive;
|
602 |
+
$res = $zip->open($file_path);
|
603 |
+
if ($res === TRUE) {
|
604 |
+
$allow_extract = true;
|
605 |
+
for($i = 0; $i < $zip->numFiles; $i++) {
|
606 |
+
$OnlyFileName = $zip->getNameIndex($i);
|
607 |
+
$FullFileName = $zip->statIndex($i);
|
608 |
+
if (!($FullFileName['name'][strlen($FullFileName['name'])-1] =="/")) {
|
609 |
+
if (!preg_match('#\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|ini|txt)$#i', $OnlyFileName)) {
|
610 |
+
$allow_extract = false;
|
611 |
+
}
|
612 |
+
}
|
613 |
+
}
|
614 |
+
if ($allow_extract) {
|
615 |
+
$target_dir = substr($file_path, 0, strlen($file_path) - 4);
|
616 |
+
if (!is_dir($target_dir)) {
|
617 |
+
mkdir($target_dir, 0777);
|
618 |
+
}
|
619 |
+
$zip->extractTo($target_dir);
|
620 |
+
}
|
621 |
+
else {
|
622 |
+
$file->error = 'Zip file should contain only image files.';
|
623 |
+
}
|
624 |
+
$zip->close();
|
625 |
+
if ($allow_extract) {
|
626 |
+
$this->handle_directory($target_dir);
|
627 |
+
}
|
628 |
+
}
|
629 |
+
}
|
630 |
|
631 |
protected function handle_directory($target_dir) {
|
632 |
$extracted_files = scandir($target_dir);
|
framework/WDW_S_Library.php
CHANGED
@@ -302,7 +302,7 @@ class WDW_S_Library {
|
|
302 |
else {
|
303 |
document.getElementById('page_number').value = jQuery('#current_page').val();
|
304 |
}
|
305 |
-
|
306 |
}
|
307 |
return true;
|
308 |
}
|
302 |
else {
|
303 |
document.getElementById('page_number').value = jQuery('#current_page').val();
|
304 |
}
|
305 |
+
document.getElementById('<?php echo $form_id; ?>').submit();
|
306 |
}
|
307 |
return true;
|
308 |
}
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -396,8 +396,8 @@ class WDSViewSlider {
|
|
396 |
wds_clear_layers_effects_out_before_change_<?php echo $wds; ?>["<?php echo $key; ?>"] = [];
|
397 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"] = [];
|
398 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["id"] = "<?php echo $slide_row->id; ?>";
|
399 |
-
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_url"] = "<?php echo $slide_row->image_url; ?>";
|
400 |
-
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["thumb_url"] = "<?php echo $slide_row->thumb_url; ?>";
|
401 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["is_video"] = "<?php echo $slide_row->type == "YOUTUBE" || $slide_row->type == "VIMEO"; ?>";
|
402 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["slide_layers_count"] = 0;
|
403 |
<?php
|
@@ -486,7 +486,7 @@ class WDSViewSlider {
|
|
486 |
<div id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
|
487 |
class="wds_slideshow_image_<?php echo $wds; ?>"
|
488 |
onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\')' : ''; ?>"
|
489 |
-
style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . $slide_row->image_url . "');" : ""); ?>">
|
490 |
<?php
|
491 |
}
|
492 |
else {
|
@@ -910,7 +910,7 @@ class WDSViewSlider {
|
|
910 |
var next_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
|
911 |
<?php if ($slider_row->preload_images) { ?>
|
912 |
if (!wds_data_<?php echo $wds; ?>[key]["is_video"]) {
|
913 |
-
jQuery(next_image_class).find("div").css("background-image",
|
914 |
}
|
915 |
<?php } ?>
|
916 |
var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
|
396 |
wds_clear_layers_effects_out_before_change_<?php echo $wds; ?>["<?php echo $key; ?>"] = [];
|
397 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"] = [];
|
398 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["id"] = "<?php echo $slide_row->id; ?>";
|
399 |
+
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_url"] = "<?php echo addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)); ?>";
|
400 |
+
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["thumb_url"] = "<?php echo addslashes(htmlspecialchars_decode ($slide_row->thumb_url,ENT_QUOTES)); ?>";
|
401 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["is_video"] = "<?php echo $slide_row->type == "YOUTUBE" || $slide_row->type == "VIMEO"; ?>";
|
402 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["slide_layers_count"] = 0;
|
403 |
<?php
|
486 |
<div id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
|
487 |
class="wds_slideshow_image_<?php echo $wds; ?>"
|
488 |
onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\')' : ''; ?>"
|
489 |
+
style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
|
490 |
<?php
|
491 |
}
|
492 |
else {
|
910 |
var next_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
|
911 |
<?php if ($slider_row->preload_images) { ?>
|
912 |
if (!wds_data_<?php echo $wds; ?>[key]["is_video"]) {
|
913 |
+
jQuery(next_image_class).find("div").css("background-image", 'url("' + wds_data_<?php echo $wds; ?>[key]["image_url"] + '")');
|
914 |
}
|
915 |
<?php } ?>
|
916 |
var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-slider-plugin.html
|
|
4 |
Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,6 +41,7 @@ The number of the slides for each slider is not limited. Various layers can be a
|
|
41 |
* Design customization for almost all features
|
42 |
* Custom CSS support for adding additional styling features to the slider
|
43 |
* Possibility to use Slider WD Media Upload for uploading multiple images at once
|
|
|
44 |
|
45 |
Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
|
46 |
* 26 transition effects
|
@@ -128,6 +129,10 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
|
|
128 |
|
129 |
|
130 |
== Changelog ==
|
|
|
|
|
|
|
|
|
131 |
= 1.0.2 =
|
132 |
|
133 |
* Turn SliderWD Media Upload
|
4 |
Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
* Design customization for almost all features
|
42 |
* Custom CSS support for adding additional styling features to the slider
|
43 |
* Possibility to use Slider WD Media Upload for uploading multiple images at once
|
44 |
+
* Text and image watermarking possibility
|
45 |
|
46 |
Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
|
47 |
* 26 transition effects
|
129 |
|
130 |
|
131 |
== Changelog ==
|
132 |
+
|
133 |
+
= 1.0.3 =
|
134 |
+
single quota in image name (bug fixed)
|
135 |
+
|
136 |
= 1.0.2 =
|
137 |
|
138 |
* Turn SliderWD Media Upload
|
slider-wd.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
-
* Description:
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -38,6 +38,14 @@ function wds_options_panel() {
|
|
38 |
add_action('admin_menu', 'wds_options_panel');
|
39 |
|
40 |
function wd_sliders() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
42 |
$page = WDW_S_Library::get('page');
|
43 |
if (($page != '') && (($page == 'sliders_wds') || ($page == 'uninstall_wds') || ($page == 'WDSShortcode'))) {
|
@@ -49,12 +57,28 @@ function wd_sliders() {
|
|
49 |
}
|
50 |
|
51 |
function wds_licensing() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
wp_register_style('wds_licensing', WD_S_URL . '/licensing/style.css', array(), get_option("wds_version"));
|
53 |
wp_print_styles('wds_licensing');
|
54 |
require_once(WD_S_DIR . '/licensing/licensing.php');
|
55 |
}
|
56 |
|
57 |
function wds_featured() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
require_once(WD_S_DIR . '/featured/featured.php');
|
59 |
wp_register_style('wds_featured', WD_S_URL . '/featured/style.css', array(), get_option("wds_version"));
|
60 |
wp_print_styles('wds_featured');
|
@@ -197,7 +221,7 @@ register_activation_hook(__FILE__, 'wds_activate');
|
|
197 |
|
198 |
function wds_install() {
|
199 |
$version = get_option("wds_version");
|
200 |
-
$new_version = '1.0.
|
201 |
if ($version && version_compare($version, $new_version, '<')) {
|
202 |
require_once WD_S_DIR . "/sliders-update.php";
|
203 |
wds_update($version);
|
3 |
/**
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
+
* 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.
|
7 |
+
* Version: 1.0.3
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
38 |
add_action('admin_menu', 'wds_options_panel');
|
39 |
|
40 |
function wd_sliders() {
|
41 |
+
if (function_exists('current_user_can')) {
|
42 |
+
if (!current_user_can('manage_options')) {
|
43 |
+
die('Access Denied');
|
44 |
+
}
|
45 |
+
}
|
46 |
+
else {
|
47 |
+
die('Access Denied');
|
48 |
+
}
|
49 |
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
50 |
$page = WDW_S_Library::get('page');
|
51 |
if (($page != '') && (($page == 'sliders_wds') || ($page == 'uninstall_wds') || ($page == 'WDSShortcode'))) {
|
57 |
}
|
58 |
|
59 |
function wds_licensing() {
|
60 |
+
if (function_exists('current_user_can')) {
|
61 |
+
if (!current_user_can('manage_options')) {
|
62 |
+
die('Access Denied');
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else {
|
66 |
+
die('Access Denied');
|
67 |
+
}
|
68 |
wp_register_style('wds_licensing', WD_S_URL . '/licensing/style.css', array(), get_option("wds_version"));
|
69 |
wp_print_styles('wds_licensing');
|
70 |
require_once(WD_S_DIR . '/licensing/licensing.php');
|
71 |
}
|
72 |
|
73 |
function wds_featured() {
|
74 |
+
if (function_exists('current_user_can')) {
|
75 |
+
if (!current_user_can('manage_options')) {
|
76 |
+
die('Access Denied');
|
77 |
+
}
|
78 |
+
}
|
79 |
+
else {
|
80 |
+
die('Access Denied');
|
81 |
+
}
|
82 |
require_once(WD_S_DIR . '/featured/featured.php');
|
83 |
wp_register_style('wds_featured', WD_S_URL . '/featured/style.css', array(), get_option("wds_version"));
|
84 |
wp_print_styles('wds_featured');
|
221 |
|
222 |
function wds_install() {
|
223 |
$version = get_option("wds_version");
|
224 |
+
$new_version = '1.0.3';
|
225 |
if ($version && version_compare($version, $new_version, '<')) {
|
226 |
require_once WD_S_DIR . "/sliders-update.php";
|
227 |
wds_update($version);
|