Version Description
- Added: Smart crop.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- admin/controllers/WDSControllerSliders_wds.php +5 -2
- admin/models/WDSModelSliders_wds.php +3 -1
- admin/views/WDSViewSliders_wds.php +40 -6
- frontend/views/WDSViewSlider.php +3 -1
- js/wds.js +17 -3
- readme.txt +4 -1
- slider-wd.php +4 -2
- sliders-insert.php +2 -0
- sliders-update.php +5 -1
admin/controllers/WDSControllerSliders_wds.php
CHANGED
@@ -195,9 +195,10 @@ class WDSControllerSliders_wds {
|
|
195 |
$keyboard_nav = ((isset($_POST['keyboard_nav'])) ? (int) esc_html(stripslashes($_POST['keyboard_nav'])) : 0);
|
196 |
$possib_add_ffamily = ((isset($_POST['possib_add_ffamily'])) ? esc_html(stripslashes($_POST['possib_add_ffamily'])) : '');
|
197 |
$show_thumbnail = ((isset($_POST['show_thumbnail'])) ? (int) esc_html(stripslashes($_POST['show_thumbnail'])) : 0);
|
198 |
-
$thumb_size = ((isset($_POST['thumb_size'])) ? esc_html(stripslashes($_POST['thumb_size'])) : '0.
|
199 |
$fixed_bg = ((isset($_POST['fixed_bg'])) ? (int) esc_html(stripslashes($_POST['fixed_bg'])) : 0);
|
200 |
-
|
|
|
201 |
$data = array(
|
202 |
'name' => $name,
|
203 |
'published' => $published,
|
@@ -298,6 +299,8 @@ class WDSControllerSliders_wds {
|
|
298 |
'show_thumbnail' => $show_thumbnail,
|
299 |
'thumb_size' => $thumb_size,
|
300 |
'fixed_bg' => $fixed_bg,
|
|
|
|
|
301 |
);
|
302 |
|
303 |
if (!$slider_id) {
|
195 |
$keyboard_nav = ((isset($_POST['keyboard_nav'])) ? (int) esc_html(stripslashes($_POST['keyboard_nav'])) : 0);
|
196 |
$possib_add_ffamily = ((isset($_POST['possib_add_ffamily'])) ? esc_html(stripslashes($_POST['possib_add_ffamily'])) : '');
|
197 |
$show_thumbnail = ((isset($_POST['show_thumbnail'])) ? (int) esc_html(stripslashes($_POST['show_thumbnail'])) : 0);
|
198 |
+
$thumb_size = ((isset($_POST['thumb_size'])) ? esc_html(stripslashes($_POST['thumb_size'])) : '0.3');
|
199 |
$fixed_bg = ((isset($_POST['fixed_bg'])) ? (int) esc_html(stripslashes($_POST['fixed_bg'])) : 0);
|
200 |
+
$smart_crop = ((isset($_POST['smart_crop'])) ? (int) esc_html(stripslashes($_POST['smart_crop'])) : 0);
|
201 |
+
$crop_image_position = ((isset($_POST['crop_image_position'])) ? esc_html(stripslashes($_POST['crop_image_position'])) : 'middle-center');
|
202 |
$data = array(
|
203 |
'name' => $name,
|
204 |
'published' => $published,
|
299 |
'show_thumbnail' => $show_thumbnail,
|
300 |
'thumb_size' => $thumb_size,
|
301 |
'fixed_bg' => $fixed_bg,
|
302 |
+
'smart_crop' => $smart_crop,
|
303 |
+
'crop_image_position' => $crop_image_position,
|
304 |
);
|
305 |
|
306 |
if (!$slider_id) {
|
admin/models/WDSModelSliders_wds.php
CHANGED
@@ -206,8 +206,10 @@ class WDSModelSliders_wds {
|
|
206 |
$row->keyboard_nav = 0;
|
207 |
$row->possib_add_ffamily = '';
|
208 |
$row->show_thumbnail = 0;
|
209 |
-
$row->thumb_size = '0.
|
210 |
$row->fixed_bg = 0;
|
|
|
|
|
211 |
}
|
212 |
return $row;
|
213 |
}
|
206 |
$row->keyboard_nav = 0;
|
207 |
$row->possib_add_ffamily = '';
|
208 |
$row->show_thumbnail = 0;
|
209 |
+
$row->thumb_size = '0.3';
|
210 |
$row->fixed_bg = 0;
|
211 |
+
$row->smart_crop = 0;
|
212 |
+
$row->crop_image_position = 'center center';
|
213 |
}
|
214 |
return $row;
|
215 |
}
|
admin/views/WDSViewSliders_wds.php
CHANGED
@@ -632,9 +632,43 @@ class WDSViewSliders_wds {
|
|
632 |
<tr>
|
633 |
<td class="spider_label"><label>Background fit: </label></td>
|
634 |
<td>
|
635 |
-
<input type="radio" name="bg_fit" id="bg_fit_cover" value="cover" <?php if ($row->bg_fit == 'cover') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: 'cover'})" /><label <?php echo $row->bg_fit == 'cover' ? 'class="selected_color"' : ''; ?> for="bg_fit_cover">Cover</label>
|
636 |
-
<input type="radio" name="bg_fit" id="bg_fit_fill" value="100% 100%" <?php if ($row->bg_fit == '100% 100%') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: '100% 100%'})" /><label <?php echo $row->bg_fit == '100% 100%' ? 'class="selected_color"' : ''; ?> for="bg_fit_fill">Fill</label>
|
637 |
-
<input type="radio" name="bg_fit" id="bg_fit_contain" value="contain" <?php if ($row->bg_fit == 'contain') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: 'contain'})" /><label <?php echo $row->bg_fit == 'contain' ? 'class="selected_color"' : ''; ?> for="bg_fit_contain">Contain</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
638 |
</td>
|
639 |
</tr>
|
640 |
<tr>
|
@@ -2030,13 +2064,13 @@ class WDSViewSliders_wds {
|
|
2030 |
<?php
|
2031 |
if ($row->spider_uploader) {
|
2032 |
?>
|
2033 |
-
<a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide','slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="wds_change_thumbnail thickbox thickbox-preview" title="Edit
|
2034 |
</a>
|
2035 |
<?php
|
2036 |
}
|
2037 |
else {
|
2038 |
?>
|
2039 |
-
<span class="wds_change_thumbnail" onclick="spider_media_uploader('<?php echo $slide_row->id; ?>', event, false); return false;" title="Edit
|
2040 |
<?php
|
2041 |
}
|
2042 |
?>
|
@@ -2082,7 +2116,7 @@ class WDSViewSliders_wds {
|
|
2082 |
else {
|
2083 |
?>
|
2084 |
<div class="slide_add_buttons_wrap">
|
2085 |
-
<a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="action_buttons edit_slide thickbox thickbox-preview" title="Edit
|
2086 |
Add/Edit Image
|
2087 |
</a>
|
2088 |
</div>
|
632 |
<tr>
|
633 |
<td class="spider_label"><label>Background fit: </label></td>
|
634 |
<td>
|
635 |
+
<input onClick="bwg_enable_disable('', 'tr_smart_crop', 'bg_fit_cover')" type="radio" name="bg_fit" id="bg_fit_cover" value="cover" <?php if ($row->bg_fit == 'cover') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: 'cover'})" /><label <?php echo $row->bg_fit == 'cover' ? 'class="selected_color"' : ''; ?> for="bg_fit_cover">Cover</label>
|
636 |
+
<input onClick="bwg_enable_disable('none', 'tr_smart_crop', 'bg_fit_fill'); jQuery('#smart_crop0').click();" type="radio" name="bg_fit" id="bg_fit_fill" value="100% 100%" <?php if ($row->bg_fit == '100% 100%') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: '100% 100%'})" /><label <?php echo $row->bg_fit == '100% 100%' ? 'class="selected_color"' : ''; ?> for="bg_fit_fill">Fill</label>
|
637 |
+
<input onClick="bwg_enable_disable('', 'tr_smart_crop', 'bg_fit_contain')" type="radio" name="bg_fit" id="bg_fit_contain" value="contain" <?php if ($row->bg_fit == 'contain') echo 'checked="checked"'; ?> onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundSize: 'contain'})" /><label <?php echo $row->bg_fit == 'contain' ? 'class="selected_color"' : ''; ?> for="bg_fit_contain">Contain</label>
|
638 |
+
</td>
|
639 |
+
</tr>
|
640 |
+
<tr id="tr_smart_crop">
|
641 |
+
<td class="spider_label"><label>Smart Crop</label></td>
|
642 |
+
<td>
|
643 |
+
<input onClick="bwg_enable_disable('', 'tr_crop_pos', 'smart_crop1')" type="radio" id="smart_crop1" name="smart_crop" <?php echo (($row->smart_crop) ? 'checked="checked"' : ''); ?> value="1" /><label <?php echo (($row->smart_crop) ? 'class="selected_color"' : ''); ?> for="smart_crop1">Yes</label>
|
644 |
+
<input onClick="bwg_enable_disable('none', 'tr_crop_pos', 'smart_crop0')" type="radio" id="smart_crop0" name="smart_crop" <?php echo (($row->smart_crop) ? '' : 'checked="checked"'); ?> value="0" /><label for="smart_crop0">No</label>
|
645 |
+
<div class="spider_description"></div>
|
646 |
+
</td>
|
647 |
+
</tr>
|
648 |
+
<tr id="tr_crop_pos">
|
649 |
+
<td class="spider_label_options">
|
650 |
+
<label for="smart_crop">Crop Image Position </label>
|
651 |
+
</td>
|
652 |
+
<td>
|
653 |
+
<table class="wds_position_table">
|
654 |
+
<tbody>
|
655 |
+
<tr>
|
656 |
+
<td class="wds_position_td"><input type="radio" value="left top" name="crop_image_position" <?php if ($row->crop_image_position == "left top") echo 'checked="checked"'; ?> ></td>
|
657 |
+
<td class="wds_position_td"><input type="radio" value="center top" name="crop_image_position" <?php if ($row->crop_image_position == "center top") echo 'checked="checked"'; ?> ></td>
|
658 |
+
<td class="wds_position_td"><input type="radio" value="right top" name="crop_image_position" <?php if ($row->crop_image_position == "right top") echo 'checked="checked"'; ?> ></td>
|
659 |
+
</tr>
|
660 |
+
<tr>
|
661 |
+
<td class="wds_position_td"><input type="radio" value="left center" name="crop_image_position" <?php if ($row->crop_image_position == "left center") echo 'checked="checked"'; ?> ></td>
|
662 |
+
<td class="wds_position_td"><input type="radio" value="center center" name="crop_image_position" <?php if ($row->crop_image_position == "center center") echo 'checked="checked"'; ?> ></td>
|
663 |
+
<td class="wds_position_td"><input type="radio" value="right center" name="crop_image_position" <?php if ($row->crop_image_position == "right center") echo 'checked="checked"'; ?> ></td>
|
664 |
+
</tr>
|
665 |
+
<tr>
|
666 |
+
<td class="wds_position_td"><input type="radio" value="left bottom" name="crop_image_position" <?php if ($row->crop_image_position == "left bottom") echo 'checked="checked"'; ?> ></td>
|
667 |
+
<td class="wds_position_td"><input type="radio" value="center bottom" name="crop_image_position" <?php if ($row->crop_image_position == "center bottom") echo 'checked="checked"'; ?> ></td>
|
668 |
+
<td class="wds_position_td"><input type="radio" value="right bottom" name="crop_image_position" <?php if ($row->crop_image_position == "right bottom") echo 'checked="checked"'; ?> ></td>
|
669 |
+
</tr>
|
670 |
+
</tbody>
|
671 |
+
</table>
|
672 |
</td>
|
673 |
</tr>
|
674 |
<tr>
|
2064 |
<?php
|
2065 |
if ($row->spider_uploader) {
|
2066 |
?>
|
2067 |
+
<a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide','slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="wds_change_thumbnail thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;">
|
2068 |
</a>
|
2069 |
<?php
|
2070 |
}
|
2071 |
else {
|
2072 |
?>
|
2073 |
+
<span class="wds_change_thumbnail" onclick="spider_media_uploader('<?php echo $slide_row->id; ?>', event, false); return false;" title="Add/Edit Image" value="Edit Image"></span>
|
2074 |
<?php
|
2075 |
}
|
2076 |
?>
|
2116 |
else {
|
2117 |
?>
|
2118 |
<div class="slide_add_buttons_wrap">
|
2119 |
+
<a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="action_buttons edit_slide thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;">
|
2120 |
Add/Edit Image
|
2121 |
</a>
|
2122 |
</div>
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -138,6 +138,8 @@ class WDSViewSlider {
|
|
138 |
global $wp;
|
139 |
$current_url = add_query_arg($wp->query_string, '', home_url($wp->request));
|
140 |
$fixed_bg = isset($slider_row->fixed_bg) ? $slider_row->fixed_bg : 0;
|
|
|
|
|
141 |
|
142 |
$current_image_url = '';
|
143 |
?>
|
@@ -186,7 +188,7 @@ class WDSViewSlider {
|
|
186 |
margin: 0 !important;
|
187 |
float: none !important;
|
188 |
vertical-align: middle;
|
189 |
-
background-position: center center;
|
190 |
background-repeat: no-repeat;
|
191 |
background-size: <?php echo $slider_row->bg_fit; ?>;
|
192 |
<?php echo $fixed_bg ? 'background-attachment: fixed;' : ''; ?>
|
138 |
global $wp;
|
139 |
$current_url = add_query_arg($wp->query_string, '', home_url($wp->request));
|
140 |
$fixed_bg = isset($slider_row->fixed_bg) ? $slider_row->fixed_bg : 0;
|
141 |
+
$smart_crop = isset($slider_row->smart_crop) ? $slider_row->smart_crop : 0;
|
142 |
+
$crop_image_position = isset($slider_row->crop_image_position) ? $slider_row->crop_image_position : 'center center';
|
143 |
|
144 |
$current_image_url = '';
|
145 |
?>
|
188 |
margin: 0 !important;
|
189 |
float: none !important;
|
190 |
vertical-align: middle;
|
191 |
+
background-position: <?php echo ($smart_crop == '1' && ($slider_row->bg_fit == 'cover' || $slider_row->bg_fit == 'contain')) ? $crop_image_position : 'center center'; ?>;
|
192 |
background-repeat: no-repeat;
|
193 |
background-size: <?php echo $slider_row->bg_fit; ?>;
|
194 |
<?php echo $fixed_bg ? 'background-attachment: fixed;' : ''; ?>
|
js/wds.js
CHANGED
@@ -124,6 +124,8 @@ function spider_ajax_save(form_id, event) {
|
|
124 |
post_data["show_thumbnail"] = jQuery("input[name=show_thumbnail]:checked").val();
|
125 |
post_data["thumb_size"] = jQuery("input[name=wds_thumb_size]").val();
|
126 |
post_data["fixed_bg"] = jQuery("input[name=fixed_bg]:checked").val();
|
|
|
|
|
127 |
/* Css.*/
|
128 |
post_data["css"] = jQuery("#css").val();
|
129 |
|
@@ -367,6 +369,18 @@ function wds_onload() {
|
|
367 |
else {
|
368 |
bwg_enable_disable('none', 'tr_thumb_size', 'show_thumbnail0');
|
369 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
|
371 |
jQuery('.wds_rl_butt_groups').each(function(i) {
|
372 |
var type_key = jQuery(this).attr('value');
|
@@ -2426,14 +2440,14 @@ function wds_add_slide() {
|
|
2426 |
var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
|
2427 |
var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
|
2428 |
if (spider_uploader) {
|
2429 |
-
slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="action_buttons edit_slide thickbox thickbox-preview" title="Edit
|
2430 |
update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
|
2431 |
-
edit_slide_by = ' <a href="' + uploader_href_for_add_slide + '" class="wds_change_thumbnail thickbox thickbox-preview" title="Edit
|
2432 |
img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
|
2433 |
}
|
2434 |
else {
|
2435 |
slide_upload_by = ' <input id="button_image_url' + slideID + '" class="action_buttons edit_slide" type="button" value="Add/Edit Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
|
2436 |
-
edit_slide_by = ' <span class="wds_change_thumbnail" type="button" value="Edit
|
2437 |
update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
|
2438 |
img_layer_upload_by = ' <input class="action_buttons add_image_layer ' + (!fv ? "" : "secondary wds_free_button") + ' button-small" type="button" value="Add Image Layer" onclick="' + (!fv ? "wds_add_layer(\'image\', \'' + slideID + '\', \'\', event)" : "alert('This functionality is disabled in free version.')") + '; return false;" />';
|
2439 |
}
|
124 |
post_data["show_thumbnail"] = jQuery("input[name=show_thumbnail]:checked").val();
|
125 |
post_data["thumb_size"] = jQuery("input[name=wds_thumb_size]").val();
|
126 |
post_data["fixed_bg"] = jQuery("input[name=fixed_bg]:checked").val();
|
127 |
+
post_data["smart_crop"] = jQuery("input[name=smart_crop]:checked").val();
|
128 |
+
post_data["crop_image_position"] = jQuery("input[name=crop_image_position]:checked").val();
|
129 |
/* Css.*/
|
130 |
post_data["css"] = jQuery("#css").val();
|
131 |
|
369 |
else {
|
370 |
bwg_enable_disable('none', 'tr_thumb_size', 'show_thumbnail0');
|
371 |
}
|
372 |
+
if (jQuery("#bg_fit_cover").is(":checked") || jQuery("#bg_fit_contain").is(":checked")) {
|
373 |
+
jQuery('#tr_smart_crop').show();
|
374 |
+
}
|
375 |
+
else {
|
376 |
+
jQuery('#tr_smart_crop').hide();
|
377 |
+
}
|
378 |
+
if (jQuery("#smart_crop1").is(":checked")) {
|
379 |
+
bwg_enable_disable('', 'tr_crop_pos', 'smart_crop1');
|
380 |
+
}
|
381 |
+
else {
|
382 |
+
bwg_enable_disable('none', 'tr_crop_pos', 'smart_crop0');
|
383 |
+
}
|
384 |
|
385 |
jQuery('.wds_rl_butt_groups').each(function(i) {
|
386 |
var type_key = jQuery(this).attr('value');
|
2440 |
var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
|
2441 |
var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
|
2442 |
if (spider_uploader) {
|
2443 |
+
slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="action_buttons edit_slide thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;">Add/Edit Image</a>';
|
2444 |
update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
|
2445 |
+
edit_slide_by = ' <a href="' + uploader_href_for_add_slide + '" class="wds_change_thumbnail thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;"></a>';
|
2446 |
img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
|
2447 |
}
|
2448 |
else {
|
2449 |
slide_upload_by = ' <input id="button_image_url' + slideID + '" class="action_buttons edit_slide" type="button" value="Add/Edit Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
|
2450 |
+
edit_slide_by = ' <span class="wds_change_thumbnail" type="button" value="Add/Edit Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" ></span>';
|
2451 |
update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
|
2452 |
img_layer_upload_by = ' <input class="action_buttons add_image_layer ' + (!fv ? "" : "secondary wds_free_button") + ' button-small" type="button" value="Add Image Layer" onclick="' + (!fv ? "wds_add_layer(\'image\', \'' + slideID + '\', \'\', event)" : "alert('This functionality is disabled in free version.')") + '; return false;" />';
|
2453 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider, mp3, video, embed media
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -159,6 +159,9 @@ After downloading the ZIP file of the slider plugin,
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 1.1.1 =
|
163 |
* Fixed: Backend styles.
|
164 |
* Fixed: Check all in add post popup.
|
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, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider, mp3, video, embed media
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 1.1.2 =
|
163 |
+
* Added: Smart crop.
|
164 |
+
|
165 |
= 1.1.1 =
|
166 |
* Fixed: Backend styles.
|
167 |
* Fixed: Check all in add post popup.
|
slider-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://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.1.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -408,6 +408,8 @@ function wds_activate() {
|
|
408 |
'show_thumbnail' => 0,
|
409 |
'thumb_size' => '0.2',
|
410 |
'fixed_bg' => 0,
|
|
|
|
|
411 |
)
|
412 |
);
|
413 |
}
|
@@ -421,7 +423,7 @@ register_activation_hook(__FILE__, 'wds_activate');
|
|
421 |
|
422 |
function wds_install() {
|
423 |
$version = get_option("wds_version");
|
424 |
-
$new_version = '1.1.
|
425 |
if ($version && version_compare($version, $new_version, '<')) {
|
426 |
require_once WD_S_DIR . "/sliders-update.php";
|
427 |
wds_update($version);
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://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.1.2
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
408 |
'show_thumbnail' => 0,
|
409 |
'thumb_size' => '0.2',
|
410 |
'fixed_bg' => 0,
|
411 |
+
'smart_crop' => 0,
|
412 |
+
'crop_image_position' => 'center center',
|
413 |
)
|
414 |
);
|
415 |
}
|
423 |
|
424 |
function wds_install() {
|
425 |
$version = get_option("wds_version");
|
426 |
+
$new_version = '1.1.2';
|
427 |
if ($version && version_compare($version, $new_version, '<')) {
|
428 |
require_once WD_S_DIR . "/sliders-update.php";
|
429 |
wds_update($version);
|
sliders-insert.php
CHANGED
@@ -103,6 +103,8 @@ function wds_insert() {
|
|
103 |
`show_thumbnail` tinyint(1) NOT NULL,
|
104 |
`thumb_size` varchar(8) NOT NULL,
|
105 |
`fixed_bg` tinyint(1) NOT NULL,
|
|
|
|
|
106 |
PRIMARY KEY (`id`)
|
107 |
) DEFAULT CHARSET=utf8;";
|
108 |
$wpdb->query($wdsslider);
|
103 |
`show_thumbnail` tinyint(1) NOT NULL,
|
104 |
`thumb_size` varchar(8) NOT NULL,
|
105 |
`fixed_bg` tinyint(1) NOT NULL,
|
106 |
+
`smart_crop` tinyint(1) NOT NULL,
|
107 |
+
`crop_image_position` varchar(16) NOT NULL,
|
108 |
PRIMARY KEY (`id`)
|
109 |
) DEFAULT CHARSET=utf8;";
|
110 |
$wpdb->query($wdsslider);
|
sliders-update.php
CHANGED
@@ -92,11 +92,15 @@ function wds_update($version) {
|
|
92 |
}
|
93 |
if (version_compare($version, '1.0.43') == -1) {
|
94 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `show_thumbnail` tinyint(1) NOT NULL DEFAULT 0");
|
95 |
-
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `thumb_size` varchar(8) NOT NULL DEFAULT '0.
|
96 |
}
|
97 |
if (version_compare($version, '1.0.47') == -1) {
|
98 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `fixed_bg` tinyint(1) NOT NULL DEFAULT 0");
|
99 |
}
|
|
|
|
|
|
|
|
|
100 |
return;
|
101 |
}
|
102 |
|
92 |
}
|
93 |
if (version_compare($version, '1.0.43') == -1) {
|
94 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `show_thumbnail` tinyint(1) NOT NULL DEFAULT 0");
|
95 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `thumb_size` varchar(8) NOT NULL DEFAULT '0.3'");
|
96 |
}
|
97 |
if (version_compare($version, '1.0.47') == -1) {
|
98 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `fixed_bg` tinyint(1) NOT NULL DEFAULT 0");
|
99 |
}
|
100 |
+
if (version_compare($version, '1.1.2') == -1) {
|
101 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `smart_crop` tinyint(1) NOT NULL DEFAULT 0");
|
102 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `crop_image_position` varchar(16) NOT NULL DEFAULT 'center center'");
|
103 |
+
}
|
104 |
return;
|
105 |
}
|
106 |
|