Ultimate Responsive Image Slider Plugin - Version 3.4.4

Version Description

*New Feature: Cloning slider (beta) - all users feedback is appreciated.

Download this release

Release Info

Developer FARAZFRANK
Plugin Icon 128x128 Ultimate Responsive Image Slider Plugin
Version 3.4.4
Comparing to
See all releases

Code changes from version 3.4.3 to 3.4.4

assets/css/wpfrank-uris-settings.css CHANGED
@@ -132,7 +132,7 @@
132
padding-bottom:3.8%;
133
cursor: pointer;
134
border: 5px solid rgba(0, 0, 0, 0.1);
135
- margin-left: 25px;
136
}
137
.uris-delete-all-slide:hover {
138
border: 5px dashed #FFFFFF;
@@ -163,6 +163,46 @@
163
z-index: 4;
164
}
165
166
.rpg-meta-container{
167
width:100%;
168
background:#fff;
@@ -289,4 +329,17 @@ input[type=range].uris-slider {
289
#wpfrank-action-metabox a {
290
display: inline-block !important;
291
margin-bottom: 5px !important;
292
}
132
padding-bottom:3.8%;
133
cursor: pointer;
134
border: 5px solid rgba(0, 0, 0, 0.1);
135
+ margin-left: 10px;
136
}
137
.uris-delete-all-slide:hover {
138
border: 5px dashed #FFFFFF;
163
z-index: 4;
164
}
165
166
+ /* clone slider button */
167
+ .uris-clone-slider {
168
+ float: left;
169
+ width:23%;
170
+ text-align:center;
171
+ padding-top:3.8%;
172
+ padding-bottom:3.8%;
173
+ cursor: pointer;
174
+ border: 5px solid rgba(0, 0, 0, 0.1);
175
+ margin-left: 10px;
176
+ }
177
+ .uris-clone-slider:hover {
178
+ border: 5px dashed #FFFFFF;
179
+ background: #007CBA;
180
+ }
181
+ .uris-clone-slider:hover p{
182
+ color:#ffffff;
183
+ }
184
+ .uris-clone-slider:hover .dashicons{
185
+ background: none repeat scroll 0 0 #ffffff;
186
+ color:#007CBA;
187
+ }
188
+ .uris-clone-slider .dashicons {
189
+ background: none repeat scroll 0 0 rgba(153, 153, 153, 0.1);
190
+ border-radius: 50%;
191
+ color: #999;
192
+ content: "?";
193
+ display: inline-block;
194
+ font: 400 74px/115px;
195
+ height: 100px;
196
+ font-size: 66px;
197
+ padding: 0;
198
+ line-height: 100px;
199
+ text-shadow: none;
200
+ top: 30%;
201
+ vertical-align: middle;
202
+ width: 100px;
203
+ z-index: 4;
204
+ }
205
+
206
.rpg-meta-container{
207
width:100%;
208
background:#fff;
329
#wpfrank-action-metabox a {
330
display: inline-block !important;
331
margin-bottom: 5px !important;
332
+ }
333
+
334
+ /* uris clone success message */
335
+ .uris-clone-success {
336
+ float: left;
337
+ width:100%;
338
+ text-align:center;
339
+ margin-top: 1%;
340
+ padding-top:0.5%;
341
+ padding-bottom:0.5%;
342
+ border: 2px solid rgba(0, 0, 0, 0.1);
343
+ display: none;
344
+ background-color: #31B0D5;
345
}
assets/js/uris-ajax-script.js ADDED
@@ -0,0 +1,20 @@
1
+ function uris_clone_run(post_id){
2
+ if(confirm("Are you sure want to create clone of this slider?")){
3
+ var formData = {
4
+ 'action': 'uris_clone_slider',
5
+ 'ursi_clone_post_id': post_id,
6
+ };
7
+
8
+ jQuery.ajax({
9
+ type: "post",
10
+ dataType: "json",
11
+ url: uris_ajax_object.ajax_url,
12
+ data: formData,
13
+ success: function(response){
14
+ //console.log('Got this from the server: ' + response);
15
+ //jQuery('.uris-clone-success').show().fadeOut(4000, 'linear');
16
+ jQuery('.uris-clone-success').show();
17
+ }
18
+ });
19
+ }
20
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpfrank.com/
4
Tags: slider, best slider plugin, image slide show, responsive slider, wordpress image slider plugin
5
Requires at least: 3.0
6
Tested up to: 5.3.2
7
- Stable tag: 3.4.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -75,8 +75,12 @@ Scale all images according to your size requirement.
75
* Slider Order – Ascending , Descending and Random (New)
76
Select from which sequence your first image slide will start.
77
78
* All Major & Latest Browser Compatible (IE, Chrome, Firefox)
79
Responsive image slider plugin is compatible with all major internet browsers.
80
* All Major Device Support
81
Works on smaller screen sizes, mobiles and tabs efficiently without any problem.
82
@@ -157,6 +161,9 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/ultimat
157
158
== Changelog ==
159
160
= 3.4.3 =
161
* Recover old sliders code bug fixed. Now, you can recover your old slider perfectly.
162
4
Tags: slider, best slider plugin, image slide show, responsive slider, wordpress image slider plugin
5
Requires at least: 3.0
6
Tested up to: 5.3.2
7
+ Stable tag: 3.4.4
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
75
* Slider Order – Ascending , Descending and Random (New)
76
Select from which sequence your first image slide will start.
77
78
+ * Clone Slider
79
+ You can make multiple copy of previously created slider so easily by hitting a clone slider button.
80
+
81
* All Major & Latest Browser Compatible (IE, Chrome, Firefox)
82
Responsive image slider plugin is compatible with all major internet browsers.
83
+
84
* All Major Device Support
85
Works on smaller screen sizes, mobiles and tabs efficiently without any problem.
86
161
162
== Changelog ==
163
164
+ = 3.4.4 =
165
+ *New Feature: Cloning slider (beta) - all users feedback is appreciated.
166
+
167
= 3.4.3 =
168
* Recover old sliders code bug fixed. Now, you can recover your old slider perfectly.
169
ultimate-responsive-image-slider.php CHANGED
@@ -1,9 +1,9 @@
1
<?php
2
/*
3
- Plugin Name: Ultimate Responsive Image Slider - 3.4.3
4
Plugin URI: https://wordpress.org/plugins/ultimate-responsive-image-slider/
5
Description: Add unlimited image slides using Ultimate Responsive Image Slider in any Page and Post content to give an attractive mode to represent contents.
6
- Version: 3.4.3
7
Author: FARAZFRANK
8
Author URI: http://wpfrank.com/
9
Text Domain: ultimate-responsive-image-slider
@@ -116,8 +116,58 @@ class URIS {
116
add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
117
// add new slide function
118
add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
119
}
120
121
/**
122
* Translate Plugin
123
*/
@@ -381,6 +431,14 @@ class URIS {
381
<div class="dashicons dashicons-trash"></div>
382
<p><?php _e('Delete All Slides', URIS_TD); ?></p>
383
</div>
384
385
<div style="clear:left;"></div>
386
<style>
1
<?php
2
/*
3
+ Plugin Name: Ultimate Responsive Image Slider - 3.4.4
4
Plugin URI: https://wordpress.org/plugins/ultimate-responsive-image-slider/
5
Description: Add unlimited image slides using Ultimate Responsive Image Slider in any Page and Post content to give an attractive mode to represent contents.
6
+ Version: 3.4.4
7
Author: FARAZFRANK
8
Author URI: http://wpfrank.com/
9
Text Domain: ultimate-responsive-image-slider
116
add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
117
// add new slide function
118
add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
119
+
120
+
121
+ // only for admin dashboard clone slider ajax JS
122
+ add_action( 'admin_enqueue_scripts', array(&$this, 'uris_scripts'));
123
+
124
+ //clone slider ajax call back, its required localize ajax object
125
+ add_action('wp_ajax_uris_clone_slider', array(&$this, 'uris_clone_slider'));
126
}
127
128
+
129
+ /**
130
+ * Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.
131
+ */
132
+ public function uris_scripts() {
133
+ wp_enqueue_script( 'ajax-script', URIS_PLUGIN_URL. 'assets/js/uris-ajax-script.js', array('jquery'));
134
+ wp_localize_script( 'ajax-script', 'uris_ajax_object', array('ajax_url' => admin_url( 'admin-ajax.php' )));
135
+ }
136
+
137
+ /**
138
+ * Clone slider call back
139
+ */
140
+ public function uris_clone_slider() {
141
+ if(isset($_POST['ursi_clone_post_id'])) {
142
+ $ursi_clone_post_id = sanitize_text_field($_POST['ursi_clone_post_id']);
143
+ // get all required data for cloning
144
+ $post_title = get_the_title($ursi_clone_post_id)." - Clone";
145
+ $post_type = "ris_gallery";
146
+ $post_status = "publish";
147
+ // get all slide ids for cloning
148
+ $URIS_All_Slide_Ids = get_post_meta( $ursi_clone_post_id, 'ris_all_photos_details', true);
149
+
150
+ // get slider post meta settings for cloning
151
+ $WRIS_Gallery_Settings_Key = "WRIS_Gallery_Settings_".$ursi_clone_post_id;
152
+ $WRIS_Gallery_Settings = get_post_meta( $ursi_clone_post_id, $WRIS_Gallery_Settings_Key, true);
153
+
154
+ //cloning post
155
+ $uris_cloning_post_array = array(
156
+ 'post_title' => $post_title,
157
+ 'post_type' => $post_type,
158
+ 'post_status' => $post_status,
159
+ 'meta_input' => array(
160
+ // post meta key => value
161
+ 'ris_all_photos_details' => $URIS_All_Slide_Ids,
162
+ ),
163
+ );
164
+
165
+ $cloned_post_id = wp_insert_post($uris_cloning_post_array);
166
+ // slider post meta settings cloning
167
+ add_post_meta( $cloned_post_id, "WRIS_Gallery_Settings_".$cloned_post_id, $WRIS_Gallery_Settings);
168
+ }
169
+ }
170
+
171
/**
172
* Translate Plugin
173
*/
431
<div class="dashicons dashicons-trash"></div>
432
<p><?php _e('Delete All Slides', URIS_TD); ?></p>
433
</div>
434
+ <div id="uris-clone-slider" class="uris-clone-slider" onclick="return uris_clone_run(<?php echo $post->ID; ?>);">
435
+ <div class="dashicons dashicons-admin-page"></div>
436
+ <p><?php _e("Clone Slider (beta)", URIS_TD); ?></p>
437
+ </div>
438
+
439
+ <div id="uris-clone-success" class="uris-clone-success">
440
+ <h1><?php _e('Slider clone created successfully.', URIS_TD); ?> <?php _e('Go to', URIS_TD); ?> <a href="edit.php?post_type=ris_gallery"><?php _e('All Slider', URIS_TD); ?></a> <?php _e('page to edit cloned slider.', URIS_TD); ?></h1>
441
+ </div>
442
443
<div style="clear:left;"></div>
444
<style>