Version Description
Download this release
Release Info
Developer | weblizar |
Plugin | Ultimate Responsive Image Slider Plugin |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- css/slider-pro.css +1 -0
- get-uris-pro.php +1 -1
- help_and_support.php +7 -9
- img/loading.gif +0 -0
- readme.txt +2 -1
- ultimate-responsive-image-slider-settings-meta-box.php +142 -142
- ultimate-responsive-image-slider-short-code.php +51 -52
- ultimate-responsive-image-slider.php +20 -10
- uris-layout.php +72 -77
css/slider-pro.css
CHANGED
@@ -45,6 +45,7 @@
|
|
45 |
.sp-no-js {
|
46 |
overflow: hidden;
|
47 |
max-width: 100%;
|
|
|
48 |
}
|
49 |
|
50 |
/* Thumbnails
|
45 |
.sp-no-js {
|
46 |
overflow: hidden;
|
47 |
max-width: 100%;
|
48 |
+
|
49 |
}
|
50 |
|
51 |
/* Thumbnails
|
get-uris-pro.php
CHANGED
@@ -142,4 +142,4 @@
|
|
142 |
ul li img {
|
143 |
|
144 |
}
|
145 |
-
</style>
|
142 |
ul li img {
|
143 |
|
144 |
}
|
145 |
+
</style>
|
help_and_support.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<div class="row-fluid pricing-table pricing-three-column" style="margin-top: 10px; display:block; width:100%; overflow:hidden; background:white; box-shadow: 0 0 5px hsla(0, 0%, 20%, 0.3);padding-bottom:70px">
|
2 |
<div class="plan-name" style="margin-top:20px;text-align: center;">
|
3 |
<h2 style="font-weight: bold;font-size: 36px;padding-top: 30px;padding-bottom: 10px;color:#D9534F;">Ultimate Responsive Image Slider </h2>
|
4 |
-
|
5 |
</div>
|
6 |
<hr>
|
7 |
<div class="purchase_btn_div" style="margin-top:20px; margin-left:30px;">
|
@@ -53,16 +52,17 @@
|
|
53 |
</div>
|
54 |
<hr>
|
55 |
<div style="margin-top:30px;margin-left:30px;">
|
56 |
-
<h2 style="font-weight: bold;font-size: 28px;padding-top:10px;">
|
|
|
|
|
57 |
<form action="" method="post">
|
58 |
-
<input type="submit" value="
|
59 |
-
<h6 style="font-size: 22px;padding-top: 10px;padding-bottom: 10px;line-height:40px"><b>Note:</b>
|
60 |
</form>
|
61 |
</div>
|
62 |
</div>
|
63 |
<?php
|
64 |
-
if(isset($_REQUEST['urispchangeurl']) )
|
65 |
-
{
|
66 |
$all_posts = wp_count_posts( 'ris_gallery')->publish;
|
67 |
$args = array('post_type' => 'ris_gallery', 'posts_per_page' =>$all_posts);
|
68 |
global $URISP_Sliders;
|
@@ -104,9 +104,7 @@ if(isset($_REQUEST['urispchangeurl']) )
|
|
104 |
}
|
105 |
update_post_meta($URISP_Id, 'ris_all_photos_details', base64_encode(serialize($ImagesArray)));
|
106 |
$ImagesArray="";
|
107 |
-
}
|
108 |
-
|
109 |
endwhile;
|
110 |
}
|
111 |
-
|
112 |
?>
|
1 |
<div class="row-fluid pricing-table pricing-three-column" style="margin-top: 10px; display:block; width:100%; overflow:hidden; background:white; box-shadow: 0 0 5px hsla(0, 0%, 20%, 0.3);padding-bottom:70px">
|
2 |
<div class="plan-name" style="margin-top:20px;text-align: center;">
|
3 |
<h2 style="font-weight: bold;font-size: 36px;padding-top: 30px;padding-bottom: 10px;color:#D9534F;">Ultimate Responsive Image Slider </h2>
|
|
|
4 |
</div>
|
5 |
<hr>
|
6 |
<div class="purchase_btn_div" style="margin-top:20px; margin-left:30px;">
|
52 |
</div>
|
53 |
<hr>
|
54 |
<div style="margin-top:30px;margin-left:30px;">
|
55 |
+
<h2 style="font-weight: bold;font-size: 28px;padding-top:10px;">Did you migrated site from Old Domain to New Domain?</h2>
|
56 |
+
<h2 style="font-weight: bold;font-size: 30px;padding-top:10px;">OR</h2>
|
57 |
+
<h2 style="font-weight: bold;font-size: 28px;padding-top:10px;">Did you implemented SSL certificate on Domain like HTTPS?</h2>
|
58 |
<form action="" method="post">
|
59 |
+
<input type="submit" value="Hit This Button Update Slides URLs" name= "urispchangeurl" style= "margin-top:10px; margin-right:10px; margin-left:30px; background:#31B0D5; text-decoration:none;" class="btn btn-primary btn-lg">
|
60 |
+
<h6 style="font-size: 22px;padding-top: 10px;padding-bottom: 10px;line-height:40px"><b>Note:</b> You can also use this option after successfully imported <b>Ultimate Responsive Image Slider</b> Plugin and Uploads directory from old server to new server.</h6>
|
61 |
</form>
|
62 |
</div>
|
63 |
</div>
|
64 |
<?php
|
65 |
+
if(isset($_REQUEST['urispchangeurl']) ) {
|
|
|
66 |
$all_posts = wp_count_posts( 'ris_gallery')->publish;
|
67 |
$args = array('post_type' => 'ris_gallery', 'posts_per_page' =>$all_posts);
|
68 |
global $URISP_Sliders;
|
104 |
}
|
105 |
update_post_meta($URISP_Id, 'ris_all_photos_details', base64_encode(serialize($ImagesArray)));
|
106 |
$ImagesArray="";
|
107 |
+
}
|
|
|
108 |
endwhile;
|
109 |
}
|
|
|
110 |
?>
|
img/loading.gif
ADDED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.weblizar.com/
|
|
4 |
Tags: slider, best slider plugin, image slide show, responsive slider, wordpress image slider plugin
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.8.1
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -154,6 +154,7 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/ultimat
|
|
154 |
|
155 |
For more information, see Weblizar(http://wwww.weblizar.com/).
|
156 |
|
|
|
157 |
V 3.0.5 - version update + compatible upto wp 4.8 + SEO ready image slider
|
158 |
V 3.0.4 - Slide image blank alt text fixed
|
159 |
V 3.0.3 - version update + compatible upto wp 4.8
|
4 |
Tags: slider, best slider plugin, image slide show, responsive slider, wordpress image slider plugin
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.8.1
|
7 |
+
Stable tag: 3.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
154 |
|
155 |
For more information, see Weblizar(http://wwww.weblizar.com/).
|
156 |
|
157 |
+
V 3.0.6 - Pre loader added
|
158 |
V 3.0.5 - version update + compatible upto wp 4.8 + SEO ready image slider
|
159 |
V 3.0.4 - Slide image blank alt text fixed
|
160 |
V 3.0.3 - version update + compatible upto wp 4.8
|
ultimate-responsive-image-slider-settings-meta-box.php
CHANGED
@@ -7,139 +7,139 @@ $WRIS_Gallery_Settings_Key = "WRIS_Gallery_Settings_".$PostId;
|
|
7 |
$WRIS_Gallery_Settings = unserialize(get_post_meta( $PostId, $WRIS_Gallery_Settings_Key, true));
|
8 |
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
|
9 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Title']))
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color']))
|
135 |
-
$WRIS_L3_Navigation_Bullets_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color'];
|
136 |
-
else
|
137 |
-
$WRIS_L3_Navigation_Bullets_Color = "#000000";
|
138 |
-
|
139 |
-
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Pointer_Color']))
|
140 |
-
$WRIS_L3_Navigation_Pointer_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Pointer_Color'];
|
141 |
-
else
|
142 |
-
$WRIS_L3_Navigation_Pointer_Color = "#000000";
|
143 |
}
|
144 |
?>
|
145 |
<style>
|
@@ -292,7 +292,7 @@ if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRI
|
|
292 |
<tr id="L3">
|
293 |
<th scope="row"><label><?php _e('Thumbnail Resize', WRIS_TEXT_DOMAIN); ?></label></th>
|
294 |
<td>
|
295 |
-
<?php if(!isset($WRIS_L3_Thumbnail_Width)) $WRIS_L3_Thumbnail_Width = "
|
296 |
<?php if(!isset($WRIS_L3_Thumbnail_Height)) $WRIS_L3_Thumbnail_Height = "120"; ?>
|
297 |
<?php _e('Width', WRIS_TEXT_DOMAIN); ?> <input type="text" name="wl-l3-navigation-width" id="wl-l3-navigation-width" value="<?php echo $WRIS_L3_Thumbnail_Width; ?>">
|
298 |
<?php _e('Height', WRIS_TEXT_DOMAIN); ?> <input type="text" name="wl-l3-navigation-height" id="wl-l3-navigation-height" value="<?php echo $WRIS_L3_Thumbnail_Height; ?>">
|
@@ -353,22 +353,22 @@ if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRI
|
|
353 |
<select name="wl-l3-font-style" id="wl-l3-font-style" class="standard-dropdown" >
|
354 |
<optgroup label="Default Fonts">
|
355 |
<option value="Arial" <?php if($WRIS_L3_Font_Style == 'Arial' ) { echo "selected"; } ?>>Arial</option>
|
356 |
-
<option value="Arial Black"
|
357 |
<option value="Courier New" <?php if($WRIS_L3_Font_Style == 'Courier New' ) { echo "selected"; } ?>>Courier New</option>
|
358 |
<option value="Georgia" <?php if($WRIS_L3_Font_Style == 'Georgia' ) { echo "selected"; } ?>>Georgia</option>
|
359 |
<option value="Grande" <?php if($WRIS_L3_Font_Style == 'Grande' ) { echo "selected"; } ?>>Grande</option>
|
360 |
-
<option value="Helvetica"
|
361 |
-
<option value="Impact"
|
362 |
-
<option value="Lucida"
|
363 |
-
<option value="Lucida Grande"
|
364 |
<option value="_OpenSansBold" <?php if($WRIS_L3_Font_Style == '_OpenSansBold' ) { echo "selected"; } ?>>OpenSansBold</option>
|
365 |
<option value="Palatino Linotype" <?php if($WRIS_L3_Font_Style == 'Palatino Linotype' ) { echo "selected"; } ?>>Palatino</option>
|
366 |
-
<option value="Sans"
|
367 |
-
<option value="sans-serif"
|
368 |
-
<option value="Tahoma"
|
369 |
-
<option value="Times New Roman"
|
370 |
-
<option value="Trebuchet"
|
371 |
-
<option value="Verdana"
|
372 |
</optgroup>
|
373 |
</select>
|
374 |
<p class="description"><?php _e("Choose a caption font style.", WRIS_TEXT_DOMAIN); ?> (Upgrade to pro for get 500+ Google fonts in plugin, check <a href="https://weblizar.com/plugins/ultimate-responsive-image-slider-pro/" target="_new">demo</a> )</p>
|
7 |
$WRIS_Gallery_Settings = unserialize(get_post_meta( $PostId, $WRIS_Gallery_Settings_Key, true));
|
8 |
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
|
9 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Title']))
|
10 |
+
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
|
11 |
+
else
|
12 |
+
$WRIS_L3_Slide_Title = 1;
|
13 |
+
|
14 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow']))
|
15 |
+
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
|
16 |
+
else
|
17 |
+
$WRIS_L3_Auto_Slideshow = 1;
|
18 |
+
|
19 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition']))
|
20 |
+
$WRIS_L3_Transition = $WRIS_Gallery_Settings['WRIS_L3_Transition'];
|
21 |
+
else
|
22 |
+
$WRIS_L3_Transition = 1;
|
23 |
+
|
24 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition_Speed']))
|
25 |
+
$WRIS_L3_Transition_Speed = $WRIS_Gallery_Settings['WRIS_L3_Transition_Speed'];
|
26 |
+
else
|
27 |
+
$WRIS_L3_Transition_Speed = 5000;
|
28 |
+
|
29 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Order']))
|
30 |
+
$WRIS_L3_Slide_Order = $WRIS_Gallery_Settings['WRIS_L3_Slide_Order'];
|
31 |
+
else
|
32 |
+
$WRIS_L3_Slide_Order = "ASC";
|
33 |
+
|
34 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Distance']))
|
35 |
+
$WRIS_L3_Slide_Distance = $WRIS_Gallery_Settings['WRIS_L3_Slide_Distance'];
|
36 |
+
else
|
37 |
+
$WRIS_L3_Slide_Distance = 5;
|
38 |
+
|
39 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow']))
|
40 |
+
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
|
41 |
+
else
|
42 |
+
$WRIS_L3_Sliding_Arrow = 1;
|
43 |
+
|
44 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation']))
|
45 |
+
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
|
46 |
+
else
|
47 |
+
$WRIS_L3_Slider_Navigation = 1;
|
48 |
+
|
49 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Position']))
|
50 |
+
$WRIS_L3_Navigation_Position = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Position'];
|
51 |
+
else
|
52 |
+
$WRIS_L3_Navigation_Position = "bottom";
|
53 |
+
|
54 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Style']))
|
55 |
+
$WRIS_L3_Thumbnail_Style = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Style'];
|
56 |
+
else
|
57 |
+
$WRIS_L3_Thumbnail_Style = "border";
|
58 |
+
|
59 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Width']))
|
60 |
+
$WRIS_L3_Thumbnail_Width = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Width'];
|
61 |
+
else
|
62 |
+
$WRIS_L3_Thumbnail_Width = 120;
|
63 |
+
|
64 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Height']))
|
65 |
+
$WRIS_L3_Thumbnail_Height = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Height'];
|
66 |
+
else
|
67 |
+
$WRIS_L3_Thumbnail_Height = 120;
|
68 |
+
|
69 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Button']))
|
70 |
+
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
|
71 |
+
else
|
72 |
+
$WRIS_L3_Navigation_Button = 1;
|
73 |
+
|
74 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Width']))
|
75 |
+
$WRIS_L3_Width = $WRIS_Gallery_Settings['WRIS_L3_Width'];
|
76 |
+
else
|
77 |
+
$WRIS_L3_Width = "custom";
|
78 |
+
|
79 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Width']))
|
80 |
+
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
|
81 |
+
else
|
82 |
+
$WRIS_L3_Slider_Width = 1000;
|
83 |
|
84 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Height']))
|
85 |
+
$WRIS_L3_Height = $WRIS_Gallery_Settings['WRIS_L3_Height'];
|
86 |
+
else
|
87 |
+
$WRIS_L3_Height = "custom";
|
88 |
+
|
89 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Height']))
|
90 |
+
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
|
91 |
+
else
|
92 |
+
$WRIS_L3_Slider_Height = 500;
|
93 |
+
|
94 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Font_Style']))
|
95 |
+
$WRIS_L3_Font_Style = $WRIS_Gallery_Settings['WRIS_L3_Font_Style'];
|
96 |
+
else
|
97 |
+
$WRIS_L3_Font_Style = "Arial";
|
98 |
+
|
99 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_Color']))
|
100 |
+
$WRIS_L3_Title_Color = $WRIS_Gallery_Settings['WRIS_L3_Title_Color'];
|
101 |
+
else
|
102 |
+
$WRIS_L3_Title_Color = "#00000";
|
103 |
+
|
104 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_BgColor']))
|
105 |
+
$WRIS_L3_Title_BgColor = $WRIS_Gallery_Settings['WRIS_L3_Title_BgColor'];
|
106 |
+
else
|
107 |
+
$WRIS_L3_Title_BgColor = "#FFFFFF";
|
108 |
+
|
109 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_Color']))
|
110 |
+
$WRIS_L3_Desc_Color = $WRIS_Gallery_Settings['WRIS_L3_Desc_Color'];
|
111 |
+
else
|
112 |
+
$WRIS_L3_Desc_Color = "#FFFFFF";
|
113 |
+
|
114 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_BgColor']))
|
115 |
+
$WRIS_L3_Desc_BgColor = $WRIS_Gallery_Settings['WRIS_L3_Desc_BgColor'];
|
116 |
+
else
|
117 |
+
$WRIS_L3_Desc_BgColor = "#00000";
|
118 |
+
|
119 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Color']))
|
120 |
+
$WRIS_L3_Navigation_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Color'];
|
121 |
+
else
|
122 |
+
$WRIS_L3_Navigation_Color = "#FFFFFF";
|
123 |
+
|
124 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Fullscreeen']))
|
125 |
+
$WRIS_L3_Fullscreeen = $WRIS_Gallery_Settings['WRIS_L3_Fullscreeen'];
|
126 |
+
else
|
127 |
+
$WRIS_L3_Fullscreeen = 1;
|
128 |
+
|
129 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Custom_CSS']))
|
130 |
+
$WRIS_L3_Custom_CSS = $WRIS_Gallery_Settings['WRIS_L3_Custom_CSS'];
|
131 |
+
else
|
132 |
+
$WRIS_L3_Custom_CSS = "";
|
133 |
|
134 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color']))
|
135 |
+
$WRIS_L3_Navigation_Bullets_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color'];
|
136 |
+
else
|
137 |
+
$WRIS_L3_Navigation_Bullets_Color = "#000000";
|
138 |
|
139 |
+
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Pointer_Color']))
|
140 |
+
$WRIS_L3_Navigation_Pointer_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Pointer_Color'];
|
141 |
+
else
|
142 |
+
$WRIS_L3_Navigation_Pointer_Color = "#000000";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
?>
|
145 |
<style>
|
292 |
<tr id="L3">
|
293 |
<th scope="row"><label><?php _e('Thumbnail Resize', WRIS_TEXT_DOMAIN); ?></label></th>
|
294 |
<td>
|
295 |
+
<?php if(!isset($WRIS_L3_Thumbnail_Width)) $WRIS_L3_Thumbnail_Width = "120"; ?>
|
296 |
<?php if(!isset($WRIS_L3_Thumbnail_Height)) $WRIS_L3_Thumbnail_Height = "120"; ?>
|
297 |
<?php _e('Width', WRIS_TEXT_DOMAIN); ?> <input type="text" name="wl-l3-navigation-width" id="wl-l3-navigation-width" value="<?php echo $WRIS_L3_Thumbnail_Width; ?>">
|
298 |
<?php _e('Height', WRIS_TEXT_DOMAIN); ?> <input type="text" name="wl-l3-navigation-height" id="wl-l3-navigation-height" value="<?php echo $WRIS_L3_Thumbnail_Height; ?>">
|
353 |
<select name="wl-l3-font-style" id="wl-l3-font-style" class="standard-dropdown" >
|
354 |
<optgroup label="Default Fonts">
|
355 |
<option value="Arial" <?php if($WRIS_L3_Font_Style == 'Arial' ) { echo "selected"; } ?>>Arial</option>
|
356 |
+
<option value="Arial Black" <?php if($WRIS_L3_Font_Style == 'Arial Black' ) { echo "selected"; } ?>>Arial Black</option>
|
357 |
<option value="Courier New" <?php if($WRIS_L3_Font_Style == 'Courier New' ) { echo "selected"; } ?>>Courier New</option>
|
358 |
<option value="Georgia" <?php if($WRIS_L3_Font_Style == 'Georgia' ) { echo "selected"; } ?>>Georgia</option>
|
359 |
<option value="Grande" <?php if($WRIS_L3_Font_Style == 'Grande' ) { echo "selected"; } ?>>Grande</option>
|
360 |
+
<option value="Helvetica" <?php if($WRIS_L3_Font_Style == 'Helvetica' ) { echo "selected"; } ?>>Helvetica Neue</option>
|
361 |
+
<option value="Impact" <?php if($WRIS_L3_Font_Style == 'Impact' ) { echo "selected"; } ?>>Impact</option>
|
362 |
+
<option value="Lucida" <?php if($WRIS_L3_Font_Style == 'Lucida' ) { echo "selected"; } ?>>Lucida</option>
|
363 |
+
<option value="Lucida Grande" <?php if($WRIS_L3_Font_Style == 'Lucida Grande' ) { echo "selected"; } ?>>Lucida Grande</option>
|
364 |
<option value="_OpenSansBold" <?php if($WRIS_L3_Font_Style == '_OpenSansBold' ) { echo "selected"; } ?>>OpenSansBold</option>
|
365 |
<option value="Palatino Linotype" <?php if($WRIS_L3_Font_Style == 'Palatino Linotype' ) { echo "selected"; } ?>>Palatino</option>
|
366 |
+
<option value="Sans" <?php if($WRIS_L3_Font_Style == 'Sans' ) { echo "selected"; } ?>>Sans</option>
|
367 |
+
<option value="sans-serif" <?php if($WRIS_L3_Font_Style == 'sans-serif' ) { echo "selected"; } ?>>Sans-Serif</option>
|
368 |
+
<option value="Tahoma" <?php if($WRIS_L3_Font_Style == 'Tahoma' ) { echo "selected"; } ?>>Tahoma</option>
|
369 |
+
<option value="Times New Roman" <?php if($WRIS_L3_Font_Style == 'Times New Roman' ) { echo "selected"; } ?>>Times New Roman</option>
|
370 |
+
<option value="Trebuchet" <?php if($WRIS_L3_Font_Style == 'Trebuchet' ) { echo "selected"; } ?>>Trebuchet</option>
|
371 |
+
<option value="Verdana" <?php if($WRIS_L3_Font_Style == 'Verdana' ) { echo "selected"; } ?>>Verdana</option>
|
372 |
</optgroup>
|
373 |
</select>
|
374 |
<p class="description"><?php _e("Choose a caption font style.", WRIS_TEXT_DOMAIN); ?> (Upgrade to pro for get 500+ Google fonts in plugin, check <a href="https://weblizar.com/plugins/ultimate-responsive-image-slider-pro/" target="_new">demo</a> )</p>
|
ultimate-responsive-image-slider-short-code.php
CHANGED
@@ -8,132 +8,131 @@ function ResponsiveWWRISroShortCode( $Id ) {
|
|
8 |
* Load Saved Responsive Image Slider Settings
|
9 |
*/
|
10 |
if(!isset($Id['id'])) {
|
11 |
-
$Id['id'] = "";
|
12 |
-
|
13 |
} else {
|
14 |
$WRIS_Id = $Id['id'];
|
15 |
$WRIS_Gallery_Settings_Key = "WRIS_Gallery_Settings_".$WRIS_Id;
|
16 |
$WRIS_Gallery_Settings = unserialize(get_post_meta( $WRIS_Id, $WRIS_Gallery_Settings_Key, true));
|
17 |
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
|
18 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Title']))
|
19 |
-
$WRIS_L3_Slide_Title
|
20 |
else
|
21 |
-
$WRIS_L3_Slide_Title
|
22 |
|
23 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow']))
|
24 |
-
$WRIS_L3_Auto_Slideshow
|
25 |
else
|
26 |
-
$WRIS_L3_Auto_Slideshow
|
27 |
|
28 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition']))
|
29 |
-
$WRIS_L3_Transition
|
30 |
else
|
31 |
-
$WRIS_L3_Transition
|
32 |
|
33 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition_Speed']))
|
34 |
-
$WRIS_L3_Transition_Speed
|
35 |
else
|
36 |
-
$WRIS_L3_Transition_Speed
|
37 |
|
38 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Order']))
|
39 |
-
$WRIS_L3_Slide_Order
|
40 |
else
|
41 |
-
$WRIS_L3_Slide_Order
|
42 |
|
43 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Distance']))
|
44 |
-
$WRIS_L3_Slide_Distance
|
45 |
else
|
46 |
-
$WRIS_L3_Slide_Distance
|
47 |
|
48 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow']))
|
49 |
-
$WRIS_L3_Sliding_Arrow
|
50 |
else
|
51 |
-
$WRIS_L3_Sliding_Arrow
|
52 |
|
53 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation']))
|
54 |
-
$WRIS_L3_Slider_Navigation
|
55 |
else
|
56 |
-
$WRIS_L3_Slider_Navigation
|
57 |
|
58 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Position']))
|
59 |
-
$WRIS_L3_Navigation_Position
|
60 |
else
|
61 |
-
$WRIS_L3_Navigation_Position
|
62 |
|
63 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Style']))
|
64 |
-
$WRIS_L3_Thumbnail_Style
|
65 |
else
|
66 |
-
$WRIS_L3_Thumbnail_Style
|
67 |
|
68 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Width']))
|
69 |
-
$WRIS_L3_Thumbnail_Width
|
70 |
else
|
71 |
-
$WRIS_L3_Thumbnail_Width
|
72 |
|
73 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Height']))
|
74 |
-
$WRIS_L3_Thumbnail_Height
|
75 |
else
|
76 |
-
$WRIS_L3_Thumbnail_Height
|
77 |
|
78 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Button']))
|
79 |
-
$WRIS_L3_Navigation_Button
|
80 |
else
|
81 |
-
$WRIS_L3_Navigation_Button
|
82 |
|
83 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Width']))
|
84 |
-
$WRIS_L3_Width
|
85 |
else
|
86 |
-
$WRIS_L3_Width
|
87 |
|
88 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Width']))
|
89 |
-
$WRIS_L3_Slider_Width
|
90 |
else
|
91 |
-
$WRIS_L3_Slider_Width
|
92 |
|
93 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Height']))
|
94 |
-
$WRIS_L3_Height
|
95 |
else
|
96 |
-
$WRIS_L3_Height
|
97 |
|
98 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Height']))
|
99 |
-
$WRIS_L3_Slider_Height
|
100 |
else
|
101 |
-
$WRIS_L3_Slider_Height
|
102 |
|
103 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Font_Style']))
|
104 |
-
$WRIS_L3_Font_Style
|
105 |
else
|
106 |
-
$WRIS_L3_Font_Style
|
107 |
|
108 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_Color']))
|
109 |
-
$WRIS_L3_Title_Color
|
110 |
else
|
111 |
-
$WRIS_L3_Title_Color
|
112 |
|
113 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_BgColor']))
|
114 |
-
$WRIS_L3_Title_BgColor
|
115 |
else
|
116 |
-
$WRIS_L3_Title_BgColor
|
117 |
|
118 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_Color']))
|
119 |
-
$WRIS_L3_Desc_Color
|
120 |
else
|
121 |
-
$WRIS_L3_Desc_Color
|
122 |
|
123 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_BgColor']))
|
124 |
-
$WRIS_L3_Desc_BgColor
|
125 |
else
|
126 |
-
$WRIS_L3_Desc_BgColor
|
127 |
|
128 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Color']))
|
129 |
-
$WRIS_L3_Navigation_Color
|
130 |
else
|
131 |
-
$WRIS_L3_Navigation_Color
|
132 |
|
133 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Fullscreeen']))
|
134 |
-
$WRIS_L3_Fullscreeen
|
135 |
else
|
136 |
-
$WRIS_L3_Fullscreeen
|
137 |
|
138 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color']))
|
139 |
$WRIS_L3_Navigation_Bullets_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color'];
|
@@ -146,9 +145,9 @@ function ResponsiveWWRISroShortCode( $Id ) {
|
|
146 |
$WRIS_L3_Navigation_Pointer_Color = "#000000";
|
147 |
|
148 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Custom_CSS']))
|
149 |
-
$WRIS_L3_Custom_CSS
|
150 |
else
|
151 |
-
$WRIS_L3_Custom_CSS
|
152 |
}
|
153 |
}
|
154 |
|
8 |
* Load Saved Responsive Image Slider Settings
|
9 |
*/
|
10 |
if(!isset($Id['id'])) {
|
11 |
+
$Id['id'] = "";
|
|
|
12 |
} else {
|
13 |
$WRIS_Id = $Id['id'];
|
14 |
$WRIS_Gallery_Settings_Key = "WRIS_Gallery_Settings_".$WRIS_Id;
|
15 |
$WRIS_Gallery_Settings = unserialize(get_post_meta( $WRIS_Id, $WRIS_Gallery_Settings_Key, true));
|
16 |
if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRIS_L3_Slider_Height']) {
|
17 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Title']))
|
18 |
+
$WRIS_L3_Slide_Title = $WRIS_Gallery_Settings['WRIS_L3_Slide_Title'];
|
19 |
else
|
20 |
+
$WRIS_L3_Slide_Title = 1;
|
21 |
|
22 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow']))
|
23 |
+
$WRIS_L3_Auto_Slideshow = $WRIS_Gallery_Settings['WRIS_L3_Auto_Slideshow'];
|
24 |
else
|
25 |
+
$WRIS_L3_Auto_Slideshow = 1;
|
26 |
|
27 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition']))
|
28 |
+
$WRIS_L3_Transition = $WRIS_Gallery_Settings['WRIS_L3_Transition'];
|
29 |
else
|
30 |
+
$WRIS_L3_Transition = 1;
|
31 |
|
32 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Transition_Speed']))
|
33 |
+
$WRIS_L3_Transition_Speed = $WRIS_Gallery_Settings['WRIS_L3_Transition_Speed'];
|
34 |
else
|
35 |
+
$WRIS_L3_Transition_Speed = 5000;
|
36 |
|
37 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Order']))
|
38 |
+
$WRIS_L3_Slide_Order = $WRIS_Gallery_Settings['WRIS_L3_Slide_Order'];
|
39 |
else
|
40 |
+
$WRIS_L3_Slide_Order = "ASC";
|
41 |
|
42 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slide_Distance']))
|
43 |
+
$WRIS_L3_Slide_Distance = $WRIS_Gallery_Settings['WRIS_L3_Slide_Distance'];
|
44 |
else
|
45 |
+
$WRIS_L3_Slide_Distance = 5;
|
46 |
|
47 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow']))
|
48 |
+
$WRIS_L3_Sliding_Arrow = $WRIS_Gallery_Settings['WRIS_L3_Sliding_Arrow'];
|
49 |
else
|
50 |
+
$WRIS_L3_Sliding_Arrow = 1;
|
51 |
|
52 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation']))
|
53 |
+
$WRIS_L3_Slider_Navigation = $WRIS_Gallery_Settings['WRIS_L3_Slider_Navigation'];
|
54 |
else
|
55 |
+
$WRIS_L3_Slider_Navigation = 1;
|
56 |
|
57 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Position']))
|
58 |
+
$WRIS_L3_Navigation_Position = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Position'];
|
59 |
else
|
60 |
+
$WRIS_L3_Navigation_Position = "bottom";
|
61 |
|
62 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Style']))
|
63 |
+
$WRIS_L3_Thumbnail_Style = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Style'];
|
64 |
else
|
65 |
+
$WRIS_L3_Thumbnail_Style = "border";
|
66 |
|
67 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Width']))
|
68 |
+
$WRIS_L3_Thumbnail_Width = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Width'];
|
69 |
else
|
70 |
+
$WRIS_L3_Thumbnail_Width = 120;
|
71 |
|
72 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Height']))
|
73 |
+
$WRIS_L3_Thumbnail_Height = $WRIS_Gallery_Settings['WRIS_L3_Thumbnail_Height'];
|
74 |
else
|
75 |
+
$WRIS_L3_Thumbnail_Height = 120;
|
76 |
|
77 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Button']))
|
78 |
+
$WRIS_L3_Navigation_Button = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Button'];
|
79 |
else
|
80 |
+
$WRIS_L3_Navigation_Button = 1;
|
81 |
|
82 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Width']))
|
83 |
+
$WRIS_L3_Width = $WRIS_Gallery_Settings['WRIS_L3_Width'];
|
84 |
else
|
85 |
+
$WRIS_L3_Width = "custom";
|
86 |
|
87 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Width']))
|
88 |
+
$WRIS_L3_Slider_Width = $WRIS_Gallery_Settings['WRIS_L3_Slider_Width'];
|
89 |
else
|
90 |
+
$WRIS_L3_Slider_Width = 1000;
|
91 |
|
92 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Height']))
|
93 |
+
$WRIS_L3_Height = $WRIS_Gallery_Settings['WRIS_L3_Height'];
|
94 |
else
|
95 |
+
$WRIS_L3_Height = "custom";
|
96 |
|
97 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Slider_Height']))
|
98 |
+
$WRIS_L3_Slider_Height = $WRIS_Gallery_Settings['WRIS_L3_Slider_Height'];
|
99 |
else
|
100 |
+
$WRIS_L3_Slider_Height = 500;
|
101 |
|
102 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Font_Style']))
|
103 |
+
$WRIS_L3_Font_Style = $WRIS_Gallery_Settings['WRIS_L3_Font_Style'];
|
104 |
else
|
105 |
+
$WRIS_L3_Font_Style = "Arial";
|
106 |
|
107 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_Color']))
|
108 |
+
$WRIS_L3_Title_Color = $WRIS_Gallery_Settings['WRIS_L3_Title_Color'];
|
109 |
else
|
110 |
+
$WRIS_L3_Title_Color = "#00000";
|
111 |
|
112 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Title_BgColor']))
|
113 |
+
$WRIS_L3_Title_BgColor = $WRIS_Gallery_Settings['WRIS_L3_Title_BgColor'];
|
114 |
else
|
115 |
+
$WRIS_L3_Title_BgColor = "#FFFFFF";
|
116 |
|
117 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_Color']))
|
118 |
+
$WRIS_L3_Desc_Color = $WRIS_Gallery_Settings['WRIS_L3_Desc_Color'];
|
119 |
else
|
120 |
+
$WRIS_L3_Desc_Color = "#FFFFFF";
|
121 |
|
122 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Desc_BgColor']))
|
123 |
+
$WRIS_L3_Desc_BgColor = $WRIS_Gallery_Settings['WRIS_L3_Desc_BgColor'];
|
124 |
else
|
125 |
+
$WRIS_L3_Desc_BgColor = "#00000";
|
126 |
|
127 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Color']))
|
128 |
+
$WRIS_L3_Navigation_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Color'];
|
129 |
else
|
130 |
+
$WRIS_L3_Navigation_Color = "#FFFFFF";
|
131 |
|
132 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Fullscreeen']))
|
133 |
+
$WRIS_L3_Fullscreeen = $WRIS_Gallery_Settings['WRIS_L3_Fullscreeen'];
|
134 |
else
|
135 |
+
$WRIS_L3_Fullscreeen = 1;
|
136 |
|
137 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color']))
|
138 |
$WRIS_L3_Navigation_Bullets_Color = $WRIS_Gallery_Settings['WRIS_L3_Navigation_Bullets_Color'];
|
145 |
$WRIS_L3_Navigation_Pointer_Color = "#000000";
|
146 |
|
147 |
if(isset($WRIS_Gallery_Settings['WRIS_L3_Custom_CSS']))
|
148 |
+
$WRIS_L3_Custom_CSS = $WRIS_Gallery_Settings['WRIS_L3_Custom_CSS'];
|
149 |
else
|
150 |
+
$WRIS_L3_Custom_CSS = "";
|
151 |
}
|
152 |
}
|
153 |
|
ultimate-responsive-image-slider.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Ultimate Responsive Image Slider
|
4 |
-
* Version: 3.0.
|
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: https://weblizar.com/plugins/ultimate-responsive-image-slider-pro/
|
@@ -40,7 +40,7 @@ function WRIS_DefaultSettingsPro() {
|
|
40 |
'WRIS_L3_Slide_Distance' => 5,
|
41 |
'WRIS_L3_Thumbnail_Style' => "border",
|
42 |
'WRIS_L3_Thumbnail_Width' => 120,
|
43 |
-
'WRIS_L3_Thumbnail_Height' =>
|
44 |
'WRIS_L3_Width' => "custom",
|
45 |
'WRIS_L3_Height' => "custom",
|
46 |
'WRIS_L3_Navigation_Bullets_Color' => "#000000",
|
@@ -51,7 +51,7 @@ function WRIS_DefaultSettingsPro() {
|
|
51 |
|
52 |
// Image Crop Size Function
|
53 |
add_image_size( 'rpggallery_admin_thumb', 300, 300, true );
|
54 |
-
add_image_size( 'rpggallery_admin_large', 500,9999 );
|
55 |
|
56 |
function admin_content_wpse_144936() {
|
57 |
if(get_post_type()=="ris_gallery") { ?>
|
@@ -104,6 +104,19 @@ function admin_content_wpse_144936() {
|
|
104 |
}
|
105 |
add_action('in_admin_header','admin_content_wpse_144936');
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
/**
|
108 |
* URIS Enqueue Scripts
|
109 |
*/
|
@@ -281,8 +294,7 @@ class WRIS {
|
|
281 |
</div>
|
282 |
<?php
|
283 |
}
|
284 |
-
public function uris_upgrade_to_pro_function(){
|
285 |
-
?>
|
286 |
<div class="upgrade-to-pro-demo" style="text-align:center;margin-bottom:10px;margin-top:10px;">
|
287 |
<a href="http://demo.weblizar.com/ultimate-responsive-image-slider-pro/" target="_new" class="button button-primary button-hero">View Live Demo</a>
|
288 |
</div>
|
@@ -363,8 +375,7 @@ class WRIS {
|
|
363 |
$TotalImages = 0;
|
364 |
}
|
365 |
?>
|
366 |
-
</ul>
|
367 |
-
|
368 |
</div>
|
369 |
|
370 |
<!--Add New Image Button-->
|
@@ -394,7 +405,7 @@ class WRIS {
|
|
394 |
}
|
395 |
|
396 |
public function admin_thumb_uris($id) {
|
397 |
-
|
398 |
$image1 = wp_get_attachment_image_src($id, 'rpggallery_admin_thumb', true);
|
399 |
$image3 = wp_get_attachment_image_src($id, 'rpggallery_admin_large', true);
|
400 |
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
|
@@ -459,7 +470,6 @@ class WRIS {
|
|
459 |
//save settings meta box values
|
460 |
public function ris_settings_meta_save($PostID) {
|
461 |
if(isset($PostID) && isset($_POST['wl_action']) == "wl-save-settings") {
|
462 |
-
|
463 |
$WRIS_L3_Slide_Title = sanitize_option ( 'title', $_POST['wl-l3-slide-title'] );
|
464 |
$WRIS_L3_Auto_Slideshow = sanitize_option ( 'autoplay', $_POST['wl-l3-auto-slide'] );
|
465 |
$WRIS_L3_Transition = sanitize_option ( 'transition', $_POST['wl-l3-transition'] );
|
@@ -538,7 +548,7 @@ function uris_pro_SettingsPage() {
|
|
538 |
wp_enqueue_style('wl-boot-strap-admin', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
|
539 |
require_once("get-uris-pro.php");
|
540 |
}
|
541 |
-
function RIS_Help_and_Support_page(){
|
542 |
wp_enqueue_style('bootstrap-admin.css', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
|
543 |
require_once("help_and_support.php");
|
544 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Ultimate Responsive Image Slider
|
4 |
+
* Version: 3.0.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: https://weblizar.com/plugins/ultimate-responsive-image-slider-pro/
|
40 |
'WRIS_L3_Slide_Distance' => 5,
|
41 |
'WRIS_L3_Thumbnail_Style' => "border",
|
42 |
'WRIS_L3_Thumbnail_Width' => 120,
|
43 |
+
'WRIS_L3_Thumbnail_Height' => 120,
|
44 |
'WRIS_L3_Width' => "custom",
|
45 |
'WRIS_L3_Height' => "custom",
|
46 |
'WRIS_L3_Navigation_Bullets_Color' => "#000000",
|
51 |
|
52 |
// Image Crop Size Function
|
53 |
add_image_size( 'rpggallery_admin_thumb', 300, 300, true );
|
54 |
+
add_image_size( 'rpggallery_admin_large', 500,9999 );
|
55 |
|
56 |
function admin_content_wpse_144936() {
|
57 |
if(get_post_type()=="ris_gallery") { ?>
|
104 |
}
|
105 |
add_action('in_admin_header','admin_content_wpse_144936');
|
106 |
|
107 |
+
// Add settings link on plugin page
|
108 |
+
function ris_links($links) {
|
109 |
+
$ris_pro_link = '<a href="https://weblizar.com/plugins/ultimate-responsive-image-slider-pro/" target="_blank">Try Pro</a>';
|
110 |
+
array_unshift($links, $ris_pro_link);
|
111 |
+
|
112 |
+
$ris_settings_link = '<a href="edit.php?post_type=ris_gallery">Settings</a>';
|
113 |
+
array_unshift($links, $ris_settings_link);
|
114 |
+
|
115 |
+
return $links;
|
116 |
+
}
|
117 |
+
$ris_plugin_name = plugin_basename(__FILE__);
|
118 |
+
add_filter("plugin_action_links_$ris_plugin_name", 'ris_links' );
|
119 |
+
|
120 |
/**
|
121 |
* URIS Enqueue Scripts
|
122 |
*/
|
294 |
</div>
|
295 |
<?php
|
296 |
}
|
297 |
+
public function uris_upgrade_to_pro_function(){ ?>
|
|
|
298 |
<div class="upgrade-to-pro-demo" style="text-align:center;margin-bottom:10px;margin-top:10px;">
|
299 |
<a href="http://demo.weblizar.com/ultimate-responsive-image-slider-pro/" target="_new" class="button button-primary button-hero">View Live Demo</a>
|
300 |
</div>
|
375 |
$TotalImages = 0;
|
376 |
}
|
377 |
?>
|
378 |
+
</ul>
|
|
|
379 |
</div>
|
380 |
|
381 |
<!--Add New Image Button-->
|
405 |
}
|
406 |
|
407 |
public function admin_thumb_uris($id) {
|
408 |
+
$image = wp_get_attachment_image_src($id, 'rpggallery_admin_original', true);
|
409 |
$image1 = wp_get_attachment_image_src($id, 'rpggallery_admin_thumb', true);
|
410 |
$image3 = wp_get_attachment_image_src($id, 'rpggallery_admin_large', true);
|
411 |
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
|
470 |
//save settings meta box values
|
471 |
public function ris_settings_meta_save($PostID) {
|
472 |
if(isset($PostID) && isset($_POST['wl_action']) == "wl-save-settings") {
|
|
|
473 |
$WRIS_L3_Slide_Title = sanitize_option ( 'title', $_POST['wl-l3-slide-title'] );
|
474 |
$WRIS_L3_Auto_Slideshow = sanitize_option ( 'autoplay', $_POST['wl-l3-auto-slide'] );
|
475 |
$WRIS_L3_Transition = sanitize_option ( 'transition', $_POST['wl-l3-transition'] );
|
548 |
wp_enqueue_style('wl-boot-strap-admin', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
|
549 |
require_once("get-uris-pro.php");
|
550 |
}
|
551 |
+
function RIS_Help_and_Support_page() {
|
552 |
wp_enqueue_style('bootstrap-admin.css', WRIS_PLUGIN_URL.'css/bootstrap-admin.css');
|
553 |
require_once("help_and_support.php");
|
554 |
}
|
uris-layout.php
CHANGED
@@ -25,76 +25,75 @@ $i = 1;
|
|
25 |
$j = 1;
|
26 |
?>
|
27 |
<script type="text/javascript">
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
});
|
93 |
});
|
|
|
94 |
</script>
|
95 |
<style>
|
96 |
-
/*
|
97 |
-
|
98 |
/* border */
|
99 |
<?php if($WRIS_L3_Thumbnail_Style == "border") { ?>
|
100 |
#example3_<?php echo $post_id; ?> .sp-selected-thumbnail {
|
@@ -223,27 +222,23 @@ $j = 1;
|
|
223 |
if($Title == "") {
|
224 |
// if slide title blank then
|
225 |
global $wpdb;
|
226 |
-
$
|
227 |
-
if(count($attachment = $wpdb->get_col($wpdb->prepare("SELECT `post_title` FROM `$
|
228 |
// attachment title as alt
|
229 |
$slide_alt = $attachment[0];
|
230 |
if(empty($attachment[0])) {
|
231 |
// post title as alt
|
232 |
$slide_alt = get_the_title( $post_id );
|
233 |
}
|
234 |
-
}
|
235 |
} else {
|
236 |
// slide title as alt
|
237 |
$slide_alt = $Title;
|
238 |
}
|
239 |
?>
|
|
|
240 |
<div class="sp-slide">
|
241 |
-
<img class="sp-image" alt="<?php echo esc_attr($slide_alt); ?>" src=""
|
242 |
-
data-src="<?php echo esc_url($Url); ?>"
|
243 |
-
data-small="<?php echo esc_url($Url); ?>"
|
244 |
-
data-medium="<?php echo esc_url($Url); ?>"
|
245 |
-
data-large="<?php echo esc_url($Url); ?>"
|
246 |
-
data-retina="<?php echo esc_url($Url); ?>" />
|
247 |
|
248 |
<?php if($Title != "") { ?>
|
249 |
<p class="sp-layer sp-white sp-padding title-in title-in-bg hide-small-screen"
|
@@ -277,7 +272,7 @@ $j = 1;
|
|
277 |
$ThumbUrl = $RPGP_SinglePhotoDetails['rpggallery_admin_thumb'];
|
278 |
$j++;
|
279 |
?>
|
280 |
-
<img class="sp-thumbnail" src="<?php echo esc_url($ThumbUrl); ?>"/>
|
281 |
<?php } ?>
|
282 |
</div>
|
283 |
<?php } ?>
|
25 |
$j = 1;
|
26 |
?>
|
27 |
<script type="text/javascript">
|
28 |
+
jQuery( document ).ready(function( jQuery ) {
|
29 |
+
jQuery( '#example3_<?php echo $post_id; ?>' ).sliderPro({
|
30 |
+
//width
|
31 |
+
<?php if($WRIS_L3_Width == "100%") { ?>
|
32 |
+
width: "100%",
|
33 |
+
<?php } else if($WRIS_L3_Width == "custom") { ?>
|
34 |
+
width: <?php if($WRIS_L3_Slider_Width != "") echo $WRIS_L3_Slider_Width; else echo "1000"; ?>,
|
35 |
+
<?php } else if($WRIS_L3_Width == "fullWidth") { ?>
|
36 |
+
forceSize: 'fullWidth', //'fullWidth', 'fullWindow', 'none'
|
37 |
+
<?php } ?>
|
38 |
+
|
39 |
+
//height
|
40 |
+
<?php if($WRIS_L3_Height == "custom") { ?>
|
41 |
+
height: <?php if($WRIS_L3_Slider_Height != "") echo $WRIS_L3_Slider_Height; else echo "500"; ?>,
|
42 |
+
<?php } else { ?>
|
43 |
+
autoHeight: true,
|
44 |
+
<?php } ?>
|
45 |
+
|
46 |
+
//autoplay
|
47 |
+
<?php if($WRIS_L3_Auto_Slideshow == 1) { ?>
|
48 |
+
autoplay: true,
|
49 |
+
autoplayOnHover: 'none',
|
50 |
+
<?php } ?>
|
51 |
+
<?php if($WRIS_L3_Auto_Slideshow == 2) { ?>
|
52 |
+
autoplay: true,
|
53 |
+
autoplayOnHover: 'pause',
|
54 |
+
<?php } ?>
|
55 |
+
<?php if($WRIS_L3_Auto_Slideshow == 3) { ?>
|
56 |
+
autoplay: false,
|
57 |
+
<?php } ?>
|
58 |
+
autoplayDelay: <?php if($WRIS_L3_Transition_Speed != "") echo $WRIS_L3_Transition_Speed; else echo "5000"; ?>,
|
59 |
+
|
60 |
+
|
61 |
+
arrows: <?php if($WRIS_L3_Sliding_Arrow == 1) echo "true"; else echo "false"; ?>,
|
62 |
+
buttons: <?php if($WRIS_L3_Navigation_Button == 1) echo "true"; else echo "false"; ?>,
|
63 |
+
smallSize: 500,
|
64 |
+
mediumSize: 1000,
|
65 |
+
largeSize: 3000,
|
66 |
+
fade: <?php if($WRIS_L3_Transition == 1) echo "true"; else echo "false"; ?>,
|
67 |
+
|
68 |
+
//thumbnail
|
69 |
+
thumbnailArrows: true,
|
70 |
+
thumbnailWidth: <?php if($WRIS_L3_Thumbnail_Width != "") echo $WRIS_L3_Thumbnail_Width; else echo "120"; ?>,
|
71 |
+
thumbnailHeight: <?php if($WRIS_L3_Thumbnail_Height != "") echo $WRIS_L3_Thumbnail_Height; else echo "100"; ?>,
|
72 |
+
<?php if($WRIS_L3_Navigation_Position == "top") { ?>
|
73 |
+
thumbnailsPosition: 'top',
|
74 |
+
<?php } ?>
|
75 |
+
<?php if($WRIS_L3_Navigation_Position == "bottom") { ?>
|
76 |
+
thumbnailsPosition: 'bottom',
|
77 |
+
<?php } ?>
|
78 |
+
<?php if($WRIS_L3_Thumbnail_Style == "pointer") { ?>
|
79 |
+
thumbnailPointer: true,
|
80 |
+
<?php } ?>
|
81 |
+
centerImage: true,
|
82 |
+
allowScaleUp: true,
|
83 |
+
<?php if($WRIS_L3_Slide_Order == "shuffle") { ?>
|
84 |
+
shuffle: true,
|
85 |
+
<?php } ?>
|
86 |
+
startSlide: 0,
|
87 |
+
loop: true,
|
88 |
+
slideDistance: <?php if($WRIS_L3_Slide_Distance) echo $WRIS_L3_Slide_Distance; else echo "5"; ?>,
|
89 |
+
autoplayDirection: 'normal',
|
90 |
+
touchSwipe: true,
|
91 |
+
fullScreen: <?php if($WRIS_L3_Fullscreeen == 1) echo "true"; else echo "false"; ?>,
|
|
|
92 |
});
|
93 |
+
});
|
94 |
</script>
|
95 |
<style>
|
96 |
+
/* Layout 3 */
|
|
|
97 |
/* border */
|
98 |
<?php if($WRIS_L3_Thumbnail_Style == "border") { ?>
|
99 |
#example3_<?php echo $post_id; ?> .sp-selected-thumbnail {
|
222 |
if($Title == "") {
|
223 |
// if slide title blank then
|
224 |
global $wpdb;
|
225 |
+
$post_table_name = $wpdb->prefix. "posts";
|
226 |
+
if(count($attachment = $wpdb->get_col($wpdb->prepare("SELECT `post_title` FROM `$post_table_name` WHERE `guid` LIKE '%s'", $Url)))) {
|
227 |
// attachment title as alt
|
228 |
$slide_alt = $attachment[0];
|
229 |
if(empty($attachment[0])) {
|
230 |
// post title as alt
|
231 |
$slide_alt = get_the_title( $post_id );
|
232 |
}
|
233 |
+
}
|
234 |
} else {
|
235 |
// slide title as alt
|
236 |
$slide_alt = $Title;
|
237 |
}
|
238 |
?>
|
239 |
+
|
240 |
<div class="sp-slide">
|
241 |
+
<img class="sp-image" alt="<?php echo esc_attr($slide_alt); ?>" src="<?php echo WRIS_PLUGIN_URL; ?>css/images/blank.gif" data-src="<?php echo esc_url($Url); ?>" />
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
<?php if($Title != "") { ?>
|
244 |
<p class="sp-layer sp-white sp-padding title-in title-in-bg hide-small-screen"
|
272 |
$ThumbUrl = $RPGP_SinglePhotoDetails['rpggallery_admin_thumb'];
|
273 |
$j++;
|
274 |
?>
|
275 |
+
<img class="sp-thumbnail" src="<?php echo WRIS_PLUGIN_URL; ?>img/loading.gif" data-src="<?php echo esc_url($ThumbUrl); ?>"/>
|
276 |
<?php } ?>
|
277 |
</div>
|
278 |
<?php } ?>
|