Ultimate Responsive Image Slider Plugin - Version 1.7

Version Description

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Ultimate Responsive Image Slider Plugin
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

js/rpgp-multiple-media-uploader.js CHANGED
@@ -42,6 +42,13 @@ jQuery(function(jQuery) {
42
});
43
file_frame.open();
44
});
45
46
47
},
42
});
43
file_frame.open();
44
});
45
+
46
+ jQuery('#uris_delete_all_button').on('click', function() {
47
+ if (confirm('Are you sure you want to delete all the image slides?')) {
48
+ rpggallery.admin_thumb_ul.empty();
49
+ }
50
+ return false;
51
+ });
52
53
54
},
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
Contributors: weblizar
3
Donate link: http://www.weblizar.com/
4
Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, featured-content-slider, flex slider, free video slider, Horizontal slider, HTML5 slider, image, Image Rotator, image slider, image slideshow, images, javascript slider, javascript slideshow, jquery slider, jquery slideshow, media, nivo slider, nivoslider, page, photo slider, picture slider, plugin, Post, posts, posts slider, recent post slider, responsive, responsive slider, responsive slideshow, seo, slide, slide show, slider, slider plugin, slider shortcode, slides, slideshow, slideshow manager, slideshow plugin, vertical slider, vertical slides, wordpress seo, wordpress slider, wordpress slideshow, wp, wp slider, thumbnail slider, responsive image slider, slider plugin, mobile slider, tab slider, touch slider, text slider, link slider, media slider, 3d slider , awesome slider, wordpress slider plugin, meta slider, free slider, free plugin, gpl slider, Responsive Touch Slider, easy slider , simple slider, image slideshow, lightbox, popbox, gallery, image gallery, slider gallery, photo gallery, thumbnail, portfolio, portfolio gallery, slider portfolio, css slider, jquery plugin, jquery slider plugin, jquery slideshow plugin, animation, animation slider, navigation slider, bullet slider, html5, css3 slider, css3 slideshow, responsive images, responsive, post slider, page slider, wordpress photos slider , wordpress photos slideshow, responsive 3d slider, slideshow
5
- Requires at least: 3.3
6
- Tested up to: 4.2.2
7
- Stable tag: 1.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -12,7 +12,7 @@ Add Fully Responsive Image Slider To Your WordPress Blog
12
13
== Description ==
14
15
- Ultimate responsive image slider a fully responsive slider plugin for WordPress blog users. You can add infinite image slides in a single slider using multiple image uploader. You can publish unlimited slider on your blog.
16
17
Images slider has various settings like customizable height and width, auto play slides, slide thumbnails, navigation buttons and many more. You can configure each slider setting individually and accordingly to you. You can show slider within the Page or Post content.
18
@@ -125,6 +125,15 @@ If you have any question contact us at here: [Plugin Support Forum ](http://word
125
126
For more information, see Weblizar(http://wwww.weblizar.com/).
127
128
= Version 1.6 10-07-2015 =
129
130
* Resolved font of image titles is shrink problem for responsive views (safari).
2
Contributors: weblizar
3
Donate link: http://www.weblizar.com/
4
Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, featured-content-slider, flex slider, free video slider, Horizontal slider, HTML5 slider, image, Image Rotator, image slider, image slideshow, images, javascript slider, javascript slideshow, jquery slider, jquery slideshow, media, nivo slider, nivoslider, page, photo slider, picture slider, plugin, Post, posts, posts slider, recent post slider, responsive, responsive slider, responsive slideshow, seo, slide, slide show, slider, slider plugin, slider shortcode, slides, slideshow, slideshow manager, slideshow plugin, vertical slider, vertical slides, wordpress seo, wordpress slider, wordpress slideshow, wp, wp slider, thumbnail slider, responsive image slider, slider plugin, mobile slider, tab slider, touch slider, text slider, link slider, media slider, 3d slider , awesome slider, wordpress slider plugin, meta slider, free slider, free plugin, gpl slider, Responsive Touch Slider, easy slider , simple slider, image slideshow, lightbox, popbox, gallery, image gallery, slider gallery, photo gallery, thumbnail, portfolio, portfolio gallery, slider portfolio, css slider, jquery plugin, jquery slider plugin, jquery slideshow plugin, animation, animation slider, navigation slider, bullet slider, html5, css3 slider, css3 slideshow, responsive images, responsive, post slider, page slider, wordpress photos slider , wordpress photos slideshow, responsive 3d slider, slideshow
5
+ Requires at least: 3.5
6
+ Tested up to: 4.3
7
+ Stable tag: 1.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
12
13
== Description ==
14
15
+ Ultimate responsive image slider a fully responsive slider plugin for WordPress blog users. You can add infinite image slides in a single slider using multiple image uploader. You can publish unlimited slider on your blog.
16
17
Images slider has various settings like customizable height and width, auto play slides, slide thumbnails, navigation buttons and many more. You can configure each slider setting individually and accordingly to you. You can show slider within the Page or Post content.
18
125
126
For more information, see Weblizar(http://wwww.weblizar.com/).
127
128
+ = Version 1.7 11-08-2015 =
129
+
130
+ * New Feature: Slide Translation Speed Setting
131
+ * New Feature: Slide Translation Effect Setting
132
+ * New Feature: Custom CSS Setting
133
+ * Improvement: Delete all slide button
134
+ * Fixed: Now you can embed the slider shortcode in any theme file and sidebar or footer widget
135
+ * Compatible with wordPress 4.3 version
136
+
137
= Version 1.6 10-07-2015 =
138
139
* Resolved font of image titles is shrink problem for responsive views (safari).
ultimate-responsive-image-slider-settings-meta-box.php CHANGED
@@ -8,20 +8,22 @@ $WRIS_Gallery_Settings = unserialize(get_post_meta( $PostId, $WRIS_Gallery_Setti
8
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
9
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
10
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
11
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
12
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
13
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
14
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
15
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
16
}
17
?>
18
<style>
19
-
20
- .thumb-pro th, .thumb-pro label, .thumb-pro h3, .thumb-pro{
21
color:#31a3dd !important;
22
font-weight:bold;
23
}
24
- .caro-pro th, .caro-pro label, .caro-pro h3, .caro-pro{
25
color:#DA5766 !important;
26
font-weight:bold;
27
}
@@ -57,6 +59,28 @@ if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRI
57
</p>
58
</td>
59
</tr>
60
61
<tr id="L3">
62
<th scope="row"><label>Sliding Arrow</label></th>
@@ -120,5 +144,18 @@ if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRI
120
</p>
121
</td>
122
</tr>
123
</tbody>
124
</table>
8
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
9
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
10
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
11
+ $WRIS_L3_Transition = $WRIS_Gallery_Settings['WRIS_L3_Transition'];
12
+ $WRIS_L3_Transition_Speed = $WRIS_Gallery_Settings['WRIS_L3_Transition_Speed'];
13
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
14
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
15
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
16
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
17
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
18
+ $WRIS_L3_Custom_CSS = $WRIS_Gallery_Settings['WRIS_L3_Custom_CSS'];
19
}
20
?>
21
<style>
22
+ .thumb-pro th, .thumb-pro label, .thumb-pro h3, .thumb-pro {
23
color:#31a3dd !important;
24
font-weight:bold;
25
}
26
+ .caro-pro th, .caro-pro label, .caro-pro h3, .caro-pro {
27
color:#DA5766 !important;
28
font-weight:bold;
29
}
59
</p>
60
</td>
61
</tr>
62
+ <tr id="L3">
63
+ <th scope="row"><label>Slide Transition</label></th>
64
+ <td>
65
+ <?php if(!isset($WRIS_L3_Transition)) $WRIS_L3_Transition = 1; ?>
66
+ <input type="radio" name="wl-l3-transition" id="wl-l3-transition" value="1" <?php if($WRIS_L3_Transition == 1 ) { echo "checked"; } ?>> Fade
67
+ <input type="radio" name="wl-l3-transition" id="wl-l3-transition" value="0" <?php if($WRIS_L3_Transition == 0 ) { echo "checked"; } ?>> Slide
68
+ <p class="description">
69
+ Select a transition effect you want to apply on slides.
70
+ </p>
71
+ </td>
72
+ </tr>
73
+
74
+ <tr id="L3">
75
+ <th scope="row"><label>Slide Transition Speed</label></th>
76
+ <td>
77
+ <?php if(!isset($WRIS_L3_Transition_Speed)) $WRIS_L3_Transition_Speed = 5000; ?>
78
+ <input type="text" name="wl-l3-transition-speed" id="wl-l3-transition-speed" value="<?php echo $WRIS_L3_Transition_Speed; ?>">
79
+ <p class="description">
80
+ Set your desired transition speed of slides. Default width is 5000px.
81
+ </p>
82
+ </td>
83
+ </tr>
84
85
<tr id="L3">
86
<th scope="row"><label>Sliding Arrow</label></th>
144
</p>
145
</td>
146
</tr>
147
+
148
+ <tr id="L3">
149
+ <th scope="row"><label>Custom CSS</label></th>
150
+ <td>
151
+ <?php if(!isset($WRIS_L3_Custom_CSS)) $WRIS_L3_Custom_CSS = ""; ?>
152
+ <textarea name="wl-l3-custom-css" id="wl-l3-custom-css" rows="5" cols="75"><?php echo $WRIS_L3_Custom_CSS; ?></textarea>
153
+ <p class="description">
154
+ Enter any custom css you want to apply on this slider into textarea filed.<br>
155
+ <strong>Note:</strong> Please Do Not Use <strong>&lt;style&gt;...&lt;/style&gt;</strong> Tag With Custom CSS.
156
+ </p>
157
+ </td>
158
+ </tr>
159
+
160
</tbody>
161
</table>
ultimate-responsive-image-slider-short-code.php CHANGED
@@ -17,11 +17,14 @@ function ResponsiveWWRISroShortCode( $Id ) {
17
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
18
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
19
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
20
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
21
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
22
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
23
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
24
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
25
}
26
}
27
17
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
18
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
19
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
20
+ $WRIS_L3_Transition = $WRIS_Gallery_Settings['WRIS_L3_Transition'];
21
+ $WRIS_L3_Transition_Speed = $WRIS_Gallery_Settings['WRIS_L3_Transition_Speed'];
22
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
23
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
24
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
25
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
26
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
27
+ $WRIS_L3_Custom_CSS = $WRIS_Gallery_Settings['WRIS_L3_Custom_CSS'];
28
}
29
}
30
ultimate-responsive-image-slider.php CHANGED
@@ -1,31 +1,33 @@
1
<?php
2
/**
3
* Plugin Name: Ultimate Responsive Image Slider
4
- * Version: 1.6
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
* Author: Weblizar
7
* Author URI: http://weblizar.com/plugins/
8
* Plugin URI: http://weblizar.com/plugins/
9
*/
10
11
- /**
12
- * Constant Variable
13
- */
14
define("WRIS_TEXT_DOMAIN", "W_R_I_S" );
15
define("WRIS_PLUGIN_URL", plugin_dir_url(__FILE__));
16
17
// Apply default settings on activation
18
register_activation_hook( __FILE__, 'WRIS_DefaultSettingsPro' );
19
- function WRIS_DefaultSettingsPro(){
20
$DefaultSettingsProArray = serialize( array(
21
//layout 3 settings
22
"WRIS_L3_Slide_Title" => 1,
23
"WRIS_L3_Auto_Slideshow" => 1,
24
"WRIS_L3_Sliding_Arrow" => 1,
25
"WRIS_L3_Slider_Navigation" => 1,
26
"WRIS_L3_Navigation_Button" => 1,
27
"WRIS_L3_Slider_Width" => "1000",
28
- "WRIS_L3_Slider_Height" => "500"
29
));
30
add_option("WRIS_Settings", $DefaultSettingsProArray);
31
}
@@ -35,28 +37,16 @@ add_image_size( 'rpggallery_admin_thumb', 300, 300, true );
35
add_image_size( 'rpggallery_admin_large', 500,9999 );
36
37
/**
38
- * Weblizar [URIS] Shortcode Detect Function
39
*/
40
- function WeblizarWRISShortCodeDetect() {
41
- global $wp_query;
42
- $Posts = $wp_query->posts;
43
- $Pattern = get_shortcode_regex();
44
- foreach ($Posts as $Post) {
45
- if ( strpos($Post->post_content, 'URIS' ) ) {
46
- /**
47
- * js scripts
48
- */
49
- wp_enqueue_script('ris-jquery-sliderPro-js', WRIS_PLUGIN_URL.'js/jquery.sliderPro.js', array('jquery'), '', true);
50
-
51
- /**
52
- * css scripts
53
- */
54
- wp_enqueue_style('ris-slider-css', WRIS_PLUGIN_URL.'css/slider-pro.css');
55
- break;
56
- } //end of if
57
- } //end of foreach
58
}
59
- add_action( 'wp', 'WeblizarWRISShortCodeDetect' );
60
61
class WRIS {
62
@@ -184,16 +174,12 @@ class WRIS {
184
add_meta_box(__('Show us some love, Rate Us', WRIS_TEXT_DOMAIN) , __('Show us some love, Rate Us', WRIS_TEXT_DOMAIN), array(&$this, 'uris_Rate_us_meta_box_function'), 'ris_gallery', 'side', 'low');
185
add_meta_box(__('Upgrade To Pro Version', WRIS_TEXT_DOMAIN) , __('Upgrade To Pro Version', WRIS_TEXT_DOMAIN), array(&$this, 'uris_upgrade_to_pro_function'), 'ris_gallery', 'side', 'low');
186
add_meta_box(__('Pro Features', WRIS_TEXT_DOMAIN) , __('Pro Features', WRIS_TEXT_DOMAIN), array(&$this ,'uris_pro_features'), 'ris_gallery', 'side', 'low');
187
-
188
-
189
}
190
191
- /**
192
- * Rate Us Meta Box
193
- */
194
public function uris_Rate_us_meta_box_function() { ?>
195
<style>
196
- .fag-rate-us span.dashicons{
197
width: 30px;
198
height: 30px;
199
}
@@ -204,7 +190,7 @@ class WRIS {
204
</style>
205
<div align="center">
206
<p>Please Review & Rate Us On WordPress</p>
207
- <a class="upgrade-to-pro-demo fag-rate-us" style=" text-decoration: none; height: 40px; width: 40px;" href="http://wordpress.org/plugins/responsive-portfolio/" target="_blank">
208
<span class="dashicons dashicons-star-filled"></span>
209
<span class="dashicons dashicons-star-filled"></span>
210
<span class="dashicons dashicons-star-filled"></span>
@@ -212,8 +198,8 @@ class WRIS {
212
<span class="dashicons dashicons-star-filled"></span>
213
</a>
214
</div>
215
- <div class="upgrade-to-pro " style="text-align:center;margin-bottom:10px;margin-top:10px;">
216
- <a href="https://wordpress.org/plugins/ultimate-responsive-image-slider/" target="_blank" class="button button-primary button-hero ">RATE US</a>
217
</div>
218
<?php
219
}
@@ -231,32 +217,28 @@ class WRIS {
231
<?php
232
}
233
234
- public function uris_pro_features(){
235
- ?>
236
-
237
- <ul style="">
238
- <li class="plan-feature">Responsive Design</li>
239
- <li class="plan-feature">5 Slider Layout</li>
240
- <li class="plan-feature">Unlimited Color Scheme</li>
241
- <li class="plan-feature">Touch Slider</li>
242
- <li class="plan-feature">Full Screen slideshow</li>
243
- <li class="plan-feature">Thumbnail Slider</li>
244
- <li class="plan-feature">Lightbox Integrated</li>
245
- <li class="plan-feature">External Link Button</li>
246
- <li class="plan-feature">Carousel Slider</li>
247
- <li class="plan-feature">All Gallery Shortcode</li>
248
- <li class="plan-feature">Each Gallery has Unique Shortcode</li>
249
- <li class="plan-feature">Drag and Drop image Position</li>
250
- <li class="plan-feature">Multiple Image uploader</li>
251
- <li class="plan-feature">Shortcode Button on post or page</li>
252
- <li class="plan-feature">Unique settings for each gallery</li>
253
- <li class="plan-feature">Auto Play Pause</li>
254
- <li class="plan-feature">All Browser Compatible</li>
255
-
256
-
257
- </ul>
258
- <?php
259
- }
260
261
/**
262
* This function display Add New Image interface
@@ -276,15 +258,12 @@ class WRIS {
276
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
277
$url = $WRIS_SinglePhotoDetails['rpgp_image_url'];
278
$url1 = $WRIS_SinglePhotoDetails['rpggallery_admin_thumb'];
279
- $url3 = $WRIS_SinglePhotoDetails['rpggallery_admin_large'];
280
- ?>
281
-
282
<li class="rpg-image-entry" id="rpg_img">
283
<a class="gallery_remove rpggallery_remove" href="#gallery_remove" id="rpg_remove_bt" ><img src="<?php echo WRIS_PLUGIN_URL.'img/Close-icon.png'; ?>" /></a>
284
<div class="rpp-admin-inner-div1" >
285
<img src="<?php echo $url1; ?>" class="rpg-meta-image" alt="" style="">
286
<input type="hidden" id="unique_string[]" name="unique_string[]" value="<?php echo $UniqueString; ?>" />
287
- <!--<input type="button" id="upload-background-<?php //echo $UniqueString; ?>" name="upload-background-<?php //echo $UniqueString; ?>" value="Upload Image" class="button-primary " onClick="ris_weblizar_image('<?php //echo $UniqueString; ?>')" />-->
288
</div>
289
<div class="rpp-admin-inner-div2" >
290
<input type="text" id="rpgp_image_url[]" name="rpgp_image_url[]" class="rpg_label_text" value="<?php echo $url; ?>" readonly="readonly" style="display:none;" />
@@ -307,6 +286,7 @@ class WRIS {
307
}
308
?>
309
</ul>
310
</div>
311
312
<!--Add New Image Button-->
@@ -317,6 +297,7 @@ class WRIS {
317
</p>
318
</div>
319
<div style="clear:left;"></div>
320
<?php
321
}
322
@@ -344,7 +325,6 @@ class WRIS {
344
<a class="gallery_remove rpggallery_remove" href="#gallery_remove" id="rpg_remove_bt" ><img src="<?php echo WRIS_PLUGIN_URL.'img/Close-icon.png'; ?>" /></a>
345
<div class="rpp-admin-inner-div1" >
346
<img src="<?php echo $image1[0]; ?>" class="rpg-meta-image" alt="" style="">
347
- <!--<input type="button" id="upload-background-<?php //echo $UniqueString; ?>" name="upload-background-<?php //echo $UniqueString; ?>" value="Upload Image" class="button-primary " onClick="ris_weblizar_image('<?php //echo $UniqueString; ?>')" />-->
348
</div>
349
<div class="rpp-admin-inner-div1" >
350
<input type="text" id="rpgp_image_url[]" name="rpgp_image_url[]" class="rpg_label_text" value="<?php echo $image[0]; ?>" readonly="readonly" style="display:none;" />
@@ -363,7 +343,6 @@ class WRIS {
363
<?php
364
}
365
366
-
367
public function ajax_get_thumbnail_uris() {
368
echo $this->admin_thumb_uris($_POST['imageid']);
369
die;
@@ -405,21 +384,27 @@ class WRIS {
405
406
$WRIS_L3_Slide_Title = $_POST['wl-l3-slide-title'];
407
$WRIS_L3_Auto_Slideshow = $_POST['wl-l3-auto-slide'];
408
$WRIS_L3_Sliding_Arrow = $_POST['wl-l3-sliding-arrow'];
409
$WRIS_L3_Slider_Navigation = $_POST['wl-l3-navigation'];
410
$WRIS_L3_Navigation_Button = $_POST['wl-l3-navigation-button'];
411
$WRIS_L3_Slider_Width = $_POST['wl-l3-slider-width'];
412
$WRIS_L3_Slider_Height = $_POST['wl-l3-slider-height'];
413
414
$WRIS_Settings_Array = serialize( array(
415
- 'WRIS_L3_Slide_Title' => $WRIS_L3_Slide_Title,
416
'WRIS_L3_Auto_Slideshow' => $WRIS_L3_Auto_Slideshow,
417
'WRIS_L3_Sliding_Arrow' => $WRIS_L3_Sliding_Arrow,
418
'WRIS_L3_Slider_Navigation' => $WRIS_L3_Slider_Navigation,
419
'WRIS_L3_Navigation_Button' => $WRIS_L3_Navigation_Button,
420
'WRIS_L3_Slider_Width' => $WRIS_L3_Slider_Width,
421
'WRIS_L3_Slider_Height' => $WRIS_L3_Slider_Height,
422
- ) );
423
424
$WRIS_Gallery_Settings = "WRIS_Gallery_Settings_".$PostID;
425
update_post_meta($PostID, $WRIS_Gallery_Settings, $WRIS_Settings_Array);
@@ -435,18 +420,15 @@ $WRIS = WRIS::forge();
435
*/
436
add_action('admin_menu' , 'uris_pro_SettingsPage');
437
function uris_pro_SettingsPage() {
438
- add_submenu_page('edit.php?post_type=ris_gallery', __('Upgrade To Pro', WRIS_TEXT_DOMAIN), __('Upgrade To Pro', WRIS_TEXT_DOMAIN), 'administrator', 'ris_gallery', 'uris_upgrade_pro_function');
439
function uris_upgrade_pro_function() {
440
-
441
- wp_enqueue_style('wl-font-awesome-4', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
442
wp_enqueue_style('wl-pricing-table-css', WRIS_PLUGIN_URL.'css/pricing-table.css');
443
wp_enqueue_style('wl-boot-strap-admin', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
444
-
445
require_once("get-uris-pro.php");
446
}
447
}
448
449
-
450
/**
451
* Weblizar RIS Short Code [URIS]
452
*/
1
<?php
2
/**
3
* Plugin Name: Ultimate Responsive Image Slider
4
+ * Version: 1.7
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
* Author: Weblizar
7
* Author URI: http://weblizar.com/plugins/
8
* Plugin URI: http://weblizar.com/plugins/
9
*/
10
11
+
12
+ //Constant Variable
13
define("WRIS_TEXT_DOMAIN", "W_R_I_S" );
14
define("WRIS_PLUGIN_URL", plugin_dir_url(__FILE__));
15
16
// Apply default settings on activation
17
register_activation_hook( __FILE__, 'WRIS_DefaultSettingsPro' );
18
+ function WRIS_DefaultSettingsPro() {
19
$DefaultSettingsProArray = serialize( array(
20
//layout 3 settings
21
"WRIS_L3_Slide_Title" => 1,
22
"WRIS_L3_Auto_Slideshow" => 1,
23
+ "WRIS_L3_Transition" => 1,
24
+ "WRIS_L3_Transition_Speed" => 5000,
25
"WRIS_L3_Sliding_Arrow" => 1,
26
"WRIS_L3_Slider_Navigation" => 1,
27
"WRIS_L3_Navigation_Button" => 1,
28
"WRIS_L3_Slider_Width" => "1000",
29
+ "WRIS_L3_Slider_Height" => "500",
30
+ "WRIS_L3_Custom_CSS" => ""
31
));
32
add_option("WRIS_Settings", $DefaultSettingsProArray);
33
}
37
add_image_size( 'rpggallery_admin_large', 500,9999 );
38
39
/**
40
+ * URIS Enqueue Scripts
41
*/
42
+ function URIS_Plugin_Scripts() {
43
+ //js scripts
44
+ wp_enqueue_script('ris-jquery-sliderPro-js', WRIS_PLUGIN_URL.'js/jquery.sliderPro.js', array('jquery'), '1.1.0', true);
45
+ // css scripts
46
+ wp_enqueue_style('ris-slider-css', WRIS_PLUGIN_URL.'css/slider-pro.css');
47
}
48
+ add_action( 'wp_enqueue_scripts', 'URIS_Plugin_Scripts' );
49
+ add_filter( 'widget_text', 'do_shortcode' );
50
51
class WRIS {
52
174
add_meta_box(__('Show us some love, Rate Us', WRIS_TEXT_DOMAIN) , __('Show us some love, Rate Us', WRIS_TEXT_DOMAIN), array(&$this, 'uris_Rate_us_meta_box_function'), 'ris_gallery', 'side', 'low');
175
add_meta_box(__('Upgrade To Pro Version', WRIS_TEXT_DOMAIN) , __('Upgrade To Pro Version', WRIS_TEXT_DOMAIN), array(&$this, 'uris_upgrade_to_pro_function'), 'ris_gallery', 'side', 'low');
176
add_meta_box(__('Pro Features', WRIS_TEXT_DOMAIN) , __('Pro Features', WRIS_TEXT_DOMAIN), array(&$this ,'uris_pro_features'), 'ris_gallery', 'side', 'low');
177
}
178
179
+ //Rate Us Meta Box
180
public function uris_Rate_us_meta_box_function() { ?>
181
<style>
182
+ .fag-rate-us span.dashicons {
183
width: 30px;
184
height: 30px;
185
}
190
</style>
191
<div align="center">
192
<p>Please Review & Rate Us On WordPress</p>
193
+ <a class="upgrade-to-pro-demo fag-rate-us" style=" text-decoration: none; height: 40px; width: 40px;" href="https://wordpress.org/support/view/plugin-reviews/ultimate-responsive-image-slider?filter=5" target="_blank">
194
<span class="dashicons dashicons-star-filled"></span>
195
<span class="dashicons dashicons-star-filled"></span>
196
<span class="dashicons dashicons-star-filled"></span>
198
<span class="dashicons dashicons-star-filled"></span>
199
</a>
200
</div>
201
+ <div class="upgrade-to-pro" style="text-align:center;margin-bottom:10px;margin-top:10px;">
202
+ <a href="https://wordpress.org/support/view/plugin-reviews/ultimate-responsive-image-slider?filter=5" target="_blank" class="button button-primary button-hero ">RATE US</a>
203
</div>
204
<?php
205
}
217
<?php
218
}
219
220
+ public function uris_pro_features(){ ?>
221
+ <ul style="">
222
+ <li class="plan-feature">Responsive Design</li>
223
+ <li class="plan-feature">5 Slider Layout</li>
224
+ <li class="plan-feature">Unlimited Color Scheme</li>
225
+ <li class="plan-feature">Touch Slider</li>
226
+ <li class="plan-feature">Full Screen slideshow</li>
227
+ <li class="plan-feature">Thumbnail Slider</li>
228
+ <li class="plan-feature">Lightbox Integrated</li>
229
+ <li class="plan-feature">External Link Button</li>
230
+ <li class="plan-feature">Carousel Slider</li>
231
+ <li class="plan-feature">All Gallery Shortcode</li>
232
+ <li class="plan-feature">Each Gallery has Unique Shortcode</li>
233
+ <li class="plan-feature">Drag and Drop image Position</li>
234
+ <li class="plan-feature">Multiple Image uploader</li>
235
+ <li class="plan-feature">Shortcode Button on post or page</li>
236
+ <li class="plan-feature">Unique settings for each gallery</li>
237
+ <li class="plan-feature">Auto Play Pause</li>
238
+ <li class="plan-feature">All Browser Compatible</li>
239
+ </ul>
240
+ <?php
241
+ }
242
243
/**
244
* This function display Add New Image interface
258
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
259
$url = $WRIS_SinglePhotoDetails['rpgp_image_url'];
260
$url1 = $WRIS_SinglePhotoDetails['rpggallery_admin_thumb'];
261
+ $url3 = $WRIS_SinglePhotoDetails['rpggallery_admin_large']; ?>
262
<li class="rpg-image-entry" id="rpg_img">
263
<a class="gallery_remove rpggallery_remove" href="#gallery_remove" id="rpg_remove_bt" ><img src="<?php echo WRIS_PLUGIN_URL.'img/Close-icon.png'; ?>" /></a>
264
<div class="rpp-admin-inner-div1" >
265
<img src="<?php echo $url1; ?>" class="rpg-meta-image" alt="" style="">
266
<input type="hidden" id="unique_string[]" name="unique_string[]" value="<?php echo $UniqueString; ?>" />
267
</div>
268
<div class="rpp-admin-inner-div2" >
269
<input type="text" id="rpgp_image_url[]" name="rpgp_image_url[]" class="rpg_label_text" value="<?php echo $url; ?>" readonly="readonly" style="display:none;" />
286
}
287
?>
288
</ul>
289
+
290
</div>
291
292
<!--Add New Image Button-->
297
</p>
298
</div>
299
<div style="clear:left;"></div>
300
+ <input id="uris_delete_all_button" class="button" type="button" value="Remove All Slides" rel="">
301
<?php
302
}
303
325
<a class="gallery_remove rpggallery_remove" href="#gallery_remove" id="rpg_remove_bt" ><img src="<?php echo WRIS_PLUGIN_URL.'img/Close-icon.png'; ?>" /></a>
326
<div class="rpp-admin-inner-div1" >
327
<img src="<?php echo $image1[0]; ?>" class="rpg-meta-image" alt="" style="">
328
</div>
329
<div class="rpp-admin-inner-div1" >
330
<input type="text" id="rpgp_image_url[]" name="rpgp_image_url[]" class="rpg_label_text" value="<?php echo $image[0]; ?>" readonly="readonly" style="display:none;" />
343
<?php
344
}
345
346
public function ajax_get_thumbnail_uris() {
347
echo $this->admin_thumb_uris($_POST['imageid']);
348
die;
384
385
$WRIS_L3_Slide_Title = $_POST['wl-l3-slide-title'];
386
$WRIS_L3_Auto_Slideshow = $_POST['wl-l3-auto-slide'];
387
+ $WRIS_L3_Transition = $_POST['wl-l3-transition'];
388
+ $WRIS_L3_Transition_Speed = $_POST['wl-l3-transition-speed'];
389
$WRIS_L3_Sliding_Arrow = $_POST['wl-l3-sliding-arrow'];
390
$WRIS_L3_Slider_Navigation = $_POST['wl-l3-navigation'];
391
$WRIS_L3_Navigation_Button = $_POST['wl-l3-navigation-button'];
392
$WRIS_L3_Slider_Width = $_POST['wl-l3-slider-width'];
393
$WRIS_L3_Slider_Height = $_POST['wl-l3-slider-height'];
394
+ $WRIS_L3_Custom_CSS = $_POST['wl-l3-custom-css'];
395
396
$WRIS_Settings_Array = serialize( array(
397
+ 'WRIS_L3_Slide_Title' => $WRIS_L3_Slide_Title,
398
'WRIS_L3_Auto_Slideshow' => $WRIS_L3_Auto_Slideshow,
399
+ 'WRIS_L3_Transition' => $WRIS_L3_Transition,
400
+ 'WRIS_L3_Transition_Speed' => $WRIS_L3_Transition_Speed,
401
'WRIS_L3_Sliding_Arrow' => $WRIS_L3_Sliding_Arrow,
402
'WRIS_L3_Slider_Navigation' => $WRIS_L3_Slider_Navigation,
403
'WRIS_L3_Navigation_Button' => $WRIS_L3_Navigation_Button,
404
'WRIS_L3_Slider_Width' => $WRIS_L3_Slider_Width,
405
'WRIS_L3_Slider_Height' => $WRIS_L3_Slider_Height,
406
+ 'WRIS_L3_Custom_CSS' => $WRIS_L3_Custom_CSS,
407
+ ));
408
409
$WRIS_Gallery_Settings = "WRIS_Gallery_Settings_".$PostID;
410
update_post_meta($PostID, $WRIS_Gallery_Settings, $WRIS_Settings_Array);
420
*/
421
add_action('admin_menu' , 'uris_pro_SettingsPage');
422
function uris_pro_SettingsPage() {
423
function uris_upgrade_pro_function() {
424
+ wp_enqueue_style('wl-font-awesome-4', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
425
wp_enqueue_style('wl-pricing-table-css', WRIS_PLUGIN_URL.'css/pricing-table.css');
426
wp_enqueue_style('wl-boot-strap-admin', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
427
require_once("get-uris-pro.php");
428
}
429
+ add_submenu_page('edit.php?post_type=ris_gallery', __('Upgrade To Pro', WRIS_TEXT_DOMAIN), __('Upgrade To Pro', WRIS_TEXT_DOMAIN), 'administrator', 'ris_gallery', 'uris_upgrade_pro_function');
430
}
431
432
/**
433
* Weblizar RIS Short Code [URIS]
434
*/
uris-layout.php CHANGED
@@ -1,4 +1,3 @@
1
-
2
<?php
3
/**
4
* Load All WRIS Custom Post Type
@@ -25,12 +24,13 @@ $j = 1;
25
width: <?php if($WRIS_L3_Slider_Width != "") echo $WRIS_L3_Slider_Width; else echo "1000"; ?>,
26
height: <?php if($WRIS_L3_Slider_Height != "") echo $WRIS_L3_Slider_Height; else echo "500"; ?>,
27
autoplay: <?php if($WRIS_L3_Auto_Slideshow == 1) echo "true"; else echo "false"; ?>,
28
arrows: <?php if($WRIS_L3_Sliding_Arrow == 1) echo "true"; else echo "false"; ?>,
29
buttons: <?php if($WRIS_L3_Navigation_Button == 1) echo "true"; else echo "false"; ?>,
30
smallSize: 500,
31
mediumSize: 1000,
32
largeSize: 3000,
33
- //fade: true,
34
thumbnailArrows: true,
35
});
36
});
@@ -100,6 +100,8 @@ $j = 1;
100
display: none;
101
}
102
}
103
</style>
104
<?php if($WRIS_L3_Slide_Title == 1) { ?>
105
<h3 class="uris-slider-title"><?php echo get_the_title( $post_id ); ?> </h3>
1
<?php
2
/**
3
* Load All WRIS Custom Post Type
24
width: <?php if($WRIS_L3_Slider_Width != "") echo $WRIS_L3_Slider_Width; else echo "1000"; ?>,
25
height: <?php if($WRIS_L3_Slider_Height != "") echo $WRIS_L3_Slider_Height; else echo "500"; ?>,
26
autoplay: <?php if($WRIS_L3_Auto_Slideshow == 1) echo "true"; else echo "false"; ?>,
27
+ autoplayDelay: <?php if($WRIS_L3_Transition_Speed != "") echo $WRIS_L3_Transition_Speed; else echo "5000"; ?>,
28
arrows: <?php if($WRIS_L3_Sliding_Arrow == 1) echo "true"; else echo "false"; ?>,
29
buttons: <?php if($WRIS_L3_Navigation_Button == 1) echo "true"; else echo "false"; ?>,
30
smallSize: 500,
31
mediumSize: 1000,
32
largeSize: 3000,
33
+ fade: <?php if($WRIS_L3_Transition == 1) echo "true"; else echo "false"; ?>,
34
thumbnailArrows: true,
35
});
36
});
100
display: none;
101
}
102
}
103
+ /* Custom CSS */
104
+ <?php echo $WRIS_L3_Custom_CSS; ?>
105
</style>
106
<?php if($WRIS_L3_Slide_Title == 1) { ?>
107
<h3 class="uris-slider-title"><?php echo get_the_title( $post_id ); ?> </h3>