Version Description
Download this release
Release Info
Developer | FARAZFRANK |
Plugin | Ultimate Responsive Image Slider Plugin |
Version | 3.2.14 |
Comparing to | |
See all releases |
Code changes from version 3.2.13 to 3.2.14
- readme.txt +10 -7
- ultimate-responsive-image-slider.php +55 -55
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: FARAZFRANK
|
|
3 |
Donate link: https://www.wpfrank.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: 5.0.
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -90,7 +90,7 @@ Change image slide sequence through simple drag and drop feature.
|
|
90 |
|
91 |
### Buy Pro Plugin Now [Ultimate Responsive Image Slider Pro](http://wpfrank.com/account/signup/ultimate-responsive-image-slider-pro/)
|
92 |
|
93 |
-
If you have any question contact us at here: [Plugin Support Forum ](http://wordpress.org/support/plugin/ultimate-responsive-image-slider)
|
94 |
|
95 |
== Installation ==
|
96 |
1. Upload the entire **responsive-image-slider** folder to the **/wp-content/plugins/** directory.
|
@@ -103,13 +103,13 @@ If you have any question contact us at here: [Plugin Support Forum ](http://word
|
|
103 |
3. Slider Preview Below Content With Bullets Navigation
|
104 |
4. Slider Preview With Thumbnail Navigation
|
105 |
5. Slider Preview Without Bullets & Thumbnail Navigation
|
106 |
-
6. Slider Preview With Custom Height & Width
|
107 |
7. Slider Preview With Custom Height & Width
|
108 |
8. Slider Preview With Content & Without Bullets & Thumbnail Navigation
|
109 |
9. Slider Preview With Thumbnail Navigation Two
|
110 |
10. Add Slide Images Through Plugin Media uploader
|
111 |
11. Slider Settings For Individual Slide Show
|
112 |
-
12. Slider Shortcode Copy Widget Within Plugin Dashboard
|
113 |
|
114 |
= Docs & Support =
|
115 |
If any support required then post your query in WordPress [Plugin Support Forum ](http://wordpress.org/support/plugin/ultimate-responsive-image-slider)
|
@@ -127,6 +127,9 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/ultimat
|
|
127 |
== Changelog ==
|
128 |
For more information, see [WP Frank](https://wpfrank.com/)
|
129 |
|
|
|
|
|
|
|
130 |
= V 3.2.13 =
|
131 |
* Added Our Premium Plugins
|
132 |
* Fixed bug when updating image URLs after website migration
|
@@ -153,7 +156,7 @@ For more information, see [WP Frank](https://wpfrank.com/)
|
|
153 |
= V 3.2.7 =
|
154 |
- Update Review Button
|
155 |
- Update close icon of slider in dashboard
|
156 |
-
- Bug Fixed : Autoplay Slider Speed's span not visible
|
157 |
|
158 |
= V 3.2.6 =
|
159 |
- continuty update
|
@@ -177,4 +180,4 @@ For more information, see [WP Frank](https://wpfrank.com/)
|
|
177 |
|
178 |
= V 3.2.0 =
|
179 |
- Compatible with Page elementor plugin
|
180 |
-
- Version Update + Compatible upto wp 4.9.7
|
3 |
Donate link: https://www.wpfrank.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: 5.0.2
|
7 |
+
Stable tag: 3.2.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
90 |
|
91 |
### Buy Pro Plugin Now [Ultimate Responsive Image Slider Pro](http://wpfrank.com/account/signup/ultimate-responsive-image-slider-pro/)
|
92 |
|
93 |
+
If you have any question contact us at here: [Plugin Support Forum ](http://wordpress.org/support/plugin/ultimate-responsive-image-slider)
|
94 |
|
95 |
== Installation ==
|
96 |
1. Upload the entire **responsive-image-slider** folder to the **/wp-content/plugins/** directory.
|
103 |
3. Slider Preview Below Content With Bullets Navigation
|
104 |
4. Slider Preview With Thumbnail Navigation
|
105 |
5. Slider Preview Without Bullets & Thumbnail Navigation
|
106 |
+
6. Slider Preview With Custom Height & Width
|
107 |
7. Slider Preview With Custom Height & Width
|
108 |
8. Slider Preview With Content & Without Bullets & Thumbnail Navigation
|
109 |
9. Slider Preview With Thumbnail Navigation Two
|
110 |
10. Add Slide Images Through Plugin Media uploader
|
111 |
11. Slider Settings For Individual Slide Show
|
112 |
+
12. Slider Shortcode Copy Widget Within Plugin Dashboard
|
113 |
|
114 |
= Docs & Support =
|
115 |
If any support required then post your query in WordPress [Plugin Support Forum ](http://wordpress.org/support/plugin/ultimate-responsive-image-slider)
|
127 |
== Changelog ==
|
128 |
For more information, see [WP Frank](https://wpfrank.com/)
|
129 |
|
130 |
+
= V 3.2.14 =
|
131 |
+
* Added Check Pro Banner
|
132 |
+
|
133 |
= V 3.2.13 =
|
134 |
* Added Our Premium Plugins
|
135 |
* Fixed bug when updating image URLs after website migration
|
156 |
= V 3.2.7 =
|
157 |
- Update Review Button
|
158 |
- Update close icon of slider in dashboard
|
159 |
+
- Bug Fixed : Autoplay Slider Speed's span not visible
|
160 |
|
161 |
= V 3.2.6 =
|
162 |
- continuty update
|
180 |
|
181 |
= V 3.2.0 =
|
182 |
- Compatible with Page elementor plugin
|
183 |
+
- Version Update + Compatible upto wp 4.9.7
|
ultimate-responsive-image-slider.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Responsive Image Slider
|
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.2.
|
7 |
Author: WP Frank
|
8 |
Author URI: https://wpfrank.com/
|
9 |
Text Domain: ultimate-responsive-image-slider
|
@@ -13,13 +13,13 @@ License: GPL2
|
|
13 |
Ultimate Responsive Image Slider is free software: you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
15 |
the Free Software Foundation, either version 2 of the License, or any later version.
|
16 |
-
|
17 |
Ultimate Responsive Image Slider is distributed in the hope that it will be useful,
|
18 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
GNU General Public License for more details.
|
21 |
-
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
along with Ultimate Responsive Image Slider. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
|
24 |
*/
|
25 |
|
@@ -68,19 +68,19 @@ function WRIS_DefaultSettingsPro() {
|
|
68 |
add_option("WRIS_Settings", $DefaultSettingsProArray);
|
69 |
}
|
70 |
|
71 |
-
// Image Crop Size Function
|
72 |
-
add_image_size( 'rpggallery_admin_thumb', 300, 300, true );
|
73 |
add_image_size( 'rpggallery_admin_large', 500,9999 );
|
74 |
|
75 |
// Add settings link on plugin page
|
76 |
function ris_links($links) {
|
77 |
$ris_pro_link = '<a href="http://wpfrank.com/" target="_blank">WP Frank</a>';
|
78 |
-
array_unshift($links, $ris_pro_link);
|
79 |
-
$ris_settings_link = '<a href="edit.php?post_type=ris_gallery">Settings</a>';
|
80 |
-
array_unshift($links, $ris_settings_link);
|
81 |
-
return $links;
|
82 |
-
}
|
83 |
-
$uris_plugin_name = plugin_basename(__FILE__);
|
84 |
add_filter("plugin_action_links_$uris_plugin_name", 'ris_links' );
|
85 |
|
86 |
// Slider Text Widget Support
|
@@ -101,42 +101,42 @@ class URIS {
|
|
101 |
}
|
102 |
return self::$instance;
|
103 |
}
|
104 |
-
|
105 |
private function __construct() {
|
106 |
-
|
107 |
$this->counter = 0;
|
108 |
-
|
109 |
// image crop function
|
110 |
add_image_size('rpg_gallery_admin_thumb', $this->admin_thumbnail_size, $this->admin_thumbnail_size, true);
|
111 |
add_image_size('rpg_gallery_thumb', $this->thumbnail_size_w, $this->thumbnail_size_h, true);
|
112 |
-
|
113 |
// Translate plugin
|
114 |
add_action('plugins_loaded', array(&$this, 'WRIS_Translate'), 1);
|
115 |
-
|
116 |
// CPT Function
|
117 |
add_action('init', array(&$this, 'ResponsiveImageSlider'),1);
|
118 |
-
|
119 |
// generate metabox funtion
|
120 |
add_action('add_meta_boxes', array(&$this, 'add_all_ris_meta_boxes'));
|
121 |
add_action('admin_init', array(&$this, 'add_all_ris_meta_boxes'), 1);
|
122 |
-
|
123 |
// metabox setting save function
|
124 |
add_action('save_post', array(&$this, 'add_image_meta_box_save'), 9, 1);
|
125 |
add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
|
126 |
-
|
127 |
// add new slide function
|
128 |
add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
|
129 |
-
|
130 |
add_shortcode('rpggallery', array(&$this, 'shortcode'));
|
131 |
}
|
132 |
-
|
133 |
/**
|
134 |
* Translate Plugin
|
135 |
*/
|
136 |
public function WRIS_Translate() {
|
137 |
load_plugin_textdomain('ultimate-responsive-image-slider', FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
|
138 |
}
|
139 |
-
|
140 |
// Register Custom Post Type
|
141 |
public function ResponsiveImageSlider() {
|
142 |
$labels = array(
|
@@ -173,12 +173,12 @@ class URIS {
|
|
173 |
'rewrite' => false,
|
174 |
'capability_type' => 'post'
|
175 |
);
|
176 |
-
|
177 |
register_post_type( 'ris_gallery', $args );
|
178 |
add_filter( 'manage_edit-ris_gallery_columns', array(&$this, 'ris_gallery_columns' )) ;
|
179 |
add_action( 'manage_ris_gallery_posts_custom_column', array(&$this, 'ris_gallery_manage_columns' ), 10, 2 );
|
180 |
}
|
181 |
-
|
182 |
function ris_gallery_columns( $columns ){
|
183 |
$columns = array(
|
184 |
'cb' => '<input type="checkbox" />',
|
@@ -199,7 +199,7 @@ class URIS {
|
|
199 |
break;
|
200 |
}
|
201 |
}
|
202 |
-
|
203 |
public function add_all_ris_meta_boxes() {
|
204 |
add_meta_box( __('Add Slides', URIS_TD), __('Add Slides', URIS_TD), array(&$this, 'ris_generate_add_image_meta_box_function'), 'ris_gallery', 'normal', 'low' );
|
205 |
add_meta_box( __('Apply Setting On Ultimate Responsive Image Slider', URIS_TD), __('Apply Setting On Ultimate Responsive Image Slider', URIS_TD), array(&$this, 'ris_settings_meta_box_function'), 'ris_gallery', 'normal', 'low');
|
@@ -207,7 +207,7 @@ class URIS {
|
|
207 |
add_meta_box('Show US Some Love & Rate Us', 'Show US Some Love & Rate Us', array(&$this, 'uris_Rate_us_meta_box_function'), 'ris_gallery', 'side', 'low');
|
208 |
add_meta_box( __('Upgrade To Pro Plugin', URIS_TD), __('Upgrade To Pro Plugin', URIS_TD), array(&$this, 'ris_upgrade_to_pro_meta_box_function'), 'ris_gallery', 'side', 'low');
|
209 |
}
|
210 |
-
|
211 |
//Rate Us Meta Box
|
212 |
public function uris_Rate_us_meta_box_function() { ?>
|
213 |
<style>
|
@@ -241,7 +241,7 @@ class URIS {
|
|
241 |
<div align="center">
|
242 |
<p>Please Review & Rate Us On WordPress</p>
|
243 |
<a class="upgrade-to-pro-demo urisp-rate-us" style=" text-decoration: none; height: 40px; width: 40px;" href="https://wordpress.org/plugins/ultimate-responsive-image-slider/#reviews" target="_blank">
|
244 |
-
<img class="wpf_uris_fivestar" src="<?php $path = URIS_PLUGIN_URL."/img/5star.jpg" ; echo $path; ?>">
|
245 |
</a>
|
246 |
</div>
|
247 |
<div class="upgrade-to-pro" style="text-align:center;margin-bottom:10px;margin-top:10px;">
|
@@ -249,7 +249,7 @@ class URIS {
|
|
249 |
</div>
|
250 |
<?php
|
251 |
}
|
252 |
-
|
253 |
/**
|
254 |
* Upgrade To Meta Box
|
255 |
*/
|
@@ -262,7 +262,7 @@ class URIS {
|
|
262 |
</div>
|
263 |
<?php
|
264 |
}
|
265 |
-
|
266 |
/**
|
267 |
* This function display Add New Image interface
|
268 |
* Also loads all saved gallery photos into photo gallery
|
@@ -280,7 +280,7 @@ class URIS {
|
|
280 |
if(is_array($WRIS_AllPhotosDetails)){
|
281 |
foreach($WRIS_AllPhotosDetails as $WRIS_SinglePhotoDetails) {
|
282 |
$name = $WRIS_SinglePhotoDetails['rpgp_image_label'];
|
283 |
-
$desc = $WRIS_SinglePhotoDetails['rpgp_image_desc'];
|
284 |
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
|
285 |
$url = $WRIS_SinglePhotoDetails['rpgp_image_url'];
|
286 |
$url1 = $WRIS_SinglePhotoDetails['rpggallery_admin_thumb'];
|
@@ -309,13 +309,13 @@ class URIS {
|
|
309 |
<?php
|
310 |
$i++;
|
311 |
} // end of foreach
|
312 |
-
}
|
313 |
} else {
|
314 |
$TotalImages = 0;
|
315 |
}
|
316 |
?>
|
317 |
</ul>
|
318 |
-
|
319 |
<!--rich editor modal-->
|
320 |
<div class="modal fade" id="myModal" role="dialog">
|
321 |
<div class="modal-dialog">
|
@@ -346,7 +346,7 @@ class URIS {
|
|
346 |
</div>
|
347 |
<!--rich editor modal-->
|
348 |
</div>
|
349 |
-
|
350 |
<!--Add New Image Button-->
|
351 |
<div class="rpg-image-entry add_rpg_new_image" id="uris_gallery_upload_button" data-uploader_title="Upload Image" data-uploader_button_text="Select" >
|
352 |
<div class="dashicons dashicons-plus"></div>
|
@@ -364,13 +364,13 @@ class URIS {
|
|
364 |
}
|
365 |
</style>
|
366 |
<script>
|
367 |
-
function urisp_richeditor(id){
|
368 |
var richeditdata = jQuery(".urisp_richeditbox_"+id).val();
|
369 |
jQuery("#fetch_wpeditor_data").val(richeditdata);
|
370 |
jQuery("#fetch_wpeditor_data-html").click();
|
371 |
jQuery("#fetch_wpelement").val(id);
|
372 |
-
}
|
373 |
-
function urisp_richeditor_putdata(){
|
374 |
jQuery("#fetch_wpeditor_data").click();
|
375 |
jQuery("#fetch_wpeditor_data-html").click();
|
376 |
var fetch_wpelement_id = jQuery("#fetch_wpelement").val();
|
@@ -379,7 +379,7 @@ class URIS {
|
|
379 |
}
|
380 |
</script>
|
381 |
<?php
|
382 |
-
}
|
383 |
|
384 |
/**
|
385 |
* This function display Add New Image interface
|
@@ -389,21 +389,21 @@ class URIS {
|
|
389 |
wp_enqueue_script('uris-bootstrap-js', URIS_PLUGIN_URL.'js/bootstrap.min.js');
|
390 |
wp_enqueue_style('uris-bootstrap-min', URIS_PLUGIN_URL.'css/bootstrap-latest/bootstrap.css');
|
391 |
wp_enqueue_style('uris-font-awesome-5.0.8', URIS_PLUGIN_URL.'css/font-awesome-latest/css/fontawesome-all.min.css');
|
392 |
-
wp_enqueue_style('uris-editor-modal', URIS_PLUGIN_URL.'css/editor-modal.css');
|
393 |
wp_enqueue_script('media-upload');
|
394 |
wp_enqueue_script('uris-media-uploader-js', URIS_PLUGIN_URL . 'js/uris-multiple-media-uploader.js', array('jquery'));
|
395 |
wp_enqueue_media();
|
396 |
-
|
397 |
//custom add image box css
|
398 |
wp_enqueue_style('ris-meta-css', URIS_PLUGIN_URL.'css/ris-meta.css');
|
399 |
-
|
400 |
//font awesome css
|
401 |
wp_enqueue_style('ris-font-awesome-5.0.8', URIS_PLUGIN_URL.'css/font-awesome-latest/css/fontawesome-all.min.css');
|
402 |
|
403 |
//tool-tip js & css
|
404 |
wp_enqueue_script('ris-tool-tip-js',URIS_PLUGIN_URL.'tooltip/jquery.darktooltip.min.js', array('jquery'));
|
405 |
wp_enqueue_style('ris-tool-tip-css', URIS_PLUGIN_URL.'tooltip/darktooltip.min.css');
|
406 |
-
|
407 |
//color-picker css n js
|
408 |
wp_enqueue_style( 'wp-color-picker' );
|
409 |
wp_enqueue_script( 'ris-color-picker-script', plugins_url('js/wl-color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
@@ -412,18 +412,18 @@ class URIS {
|
|
412 |
wp_enqueue_style('ris_codemirror-css', URIS_PLUGIN_URL.'css/codemirror/codemirror.css');
|
413 |
wp_enqueue_style('ris_blackboard', URIS_PLUGIN_URL.'css/codemirror/blackboard.css');
|
414 |
wp_enqueue_style('ris_show-hint-css', URIS_PLUGIN_URL.'css/codemirror/show-hint.css');
|
415 |
-
|
416 |
wp_enqueue_script('ris_codemirror-js',URIS_PLUGIN_URL.'css/codemirror/codemirror.js',array('jquery'));
|
417 |
wp_enqueue_script('ris_css-js',URIS_PLUGIN_URL.'css/codemirror/ris-css.js',array('jquery'));
|
418 |
wp_enqueue_script('ris_css-hint-js',URIS_PLUGIN_URL.'css/codemirror/css-hint.js',array('jquery'));
|
419 |
|
420 |
-
require_once('ultimate-responsive-image-slider-settings-meta-box.php');
|
421 |
}
|
422 |
-
|
423 |
public function ris_shotcode_meta_box_function() { ?>
|
424 |
<p><?php _e("Use below shortcode in any Page/Post to publish your slider", URIS_TD);?></p>
|
425 |
<input readonly="readonly" type="text" value="<?php echo "[URIS id=".get_the_ID()."]"; ?>">
|
426 |
-
<?php
|
427 |
}
|
428 |
|
429 |
public function admin_thumb_uris($id) {
|
@@ -454,7 +454,7 @@ class URIS {
|
|
454 |
</li>
|
455 |
<?php
|
456 |
}
|
457 |
-
|
458 |
public function ajax_get_thumbnail_uris() {
|
459 |
echo $this->admin_thumb_uris($_POST['imageid']);
|
460 |
die;
|
@@ -487,9 +487,9 @@ class URIS {
|
|
487 |
$ImagesArray = array();
|
488 |
update_post_meta($PostID, 'ris_all_photos_details', base64_encode(serialize($ImagesArray)));
|
489 |
}
|
490 |
-
}
|
491 |
}
|
492 |
-
|
493 |
//save settings meta box values
|
494 |
public function ris_settings_meta_save($PostID) {
|
495 |
if(isset($PostID) && isset($_POST['wl_action']) == "wl-save-settings") {
|
@@ -524,7 +524,7 @@ class URIS {
|
|
524 |
$WRIS_L3_Height = sanitize_text_field( $_POST['wl-l3-height'] );
|
525 |
$WRIS_L3_Navigation_Bullets_Color = sanitize_option ( 'navigation_bullet_color', $_POST['wl-l3-navigation-bullets-color'] );
|
526 |
$WRIS_L3_Navigation_Pointer_Color = sanitize_option ( 'navigation_pointer_color', $_POST['wl-l3-navigation-pointer-color'] );
|
527 |
-
|
528 |
$WRIS_Settings_Array = serialize( array(
|
529 |
'WRIS_L3_Title_Align' => $WRIS_L3_Title_Align,
|
530 |
'WRIS_L3_Slide_Title' => $WRIS_L3_Slide_Title,
|
@@ -558,7 +558,7 @@ class URIS {
|
|
558 |
'WRIS_L3_Navigation_Bullets_Color' => $WRIS_L3_Navigation_Bullets_Color,
|
559 |
'WRIS_L3_Navigation_Pointer_Color' => $WRIS_L3_Navigation_Pointer_Color,
|
560 |
));
|
561 |
-
|
562 |
$WRIS_Gallery_Settings = "WRIS_Gallery_Settings_".$PostID;
|
563 |
update_post_meta($PostID, $WRIS_Gallery_Settings, $WRIS_Settings_Array);
|
564 |
}
|
@@ -569,11 +569,11 @@ global $URIS;
|
|
569 |
$URIS = URIS::forge();
|
570 |
|
571 |
// Review Notice Box
|
572 |
-
|
573 |
function uris_admin_notice_resport() {
|
574 |
global $pagenow;
|
575 |
$uris_screen = get_current_screen();
|
576 |
-
if ( $pagenow == 'edit.php' && $uris_screen->post_type == "ris_gallery" ) {
|
577 |
require_once ( 'uris-feature-admin-notice.php' );
|
578 |
}
|
579 |
}
|
@@ -595,4 +595,4 @@ function uris_pro_SettingsPage() {
|
|
595 |
*/
|
596 |
require_once("ultimate-responsive-image-slider-short-code.php");
|
597 |
require_once( 'products.php' );
|
598 |
-
?>
|
3 |
Plugin Name: Ultimate Responsive Image Slider
|
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.2.14
|
7 |
Author: WP Frank
|
8 |
Author URI: https://wpfrank.com/
|
9 |
Text Domain: ultimate-responsive-image-slider
|
13 |
Ultimate Responsive Image Slider is free software: you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
15 |
the Free Software Foundation, either version 2 of the License, or any later version.
|
16 |
+
|
17 |
Ultimate Responsive Image Slider is distributed in the hope that it will be useful,
|
18 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
GNU General Public License for more details.
|
21 |
+
|
22 |
+
You should have received a copy of the GNU General Public License
|
23 |
along with Ultimate Responsive Image Slider. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
|
24 |
*/
|
25 |
|
68 |
add_option("WRIS_Settings", $DefaultSettingsProArray);
|
69 |
}
|
70 |
|
71 |
+
// Image Crop Size Function
|
72 |
+
add_image_size( 'rpggallery_admin_thumb', 300, 300, true );
|
73 |
add_image_size( 'rpggallery_admin_large', 500,9999 );
|
74 |
|
75 |
// Add settings link on plugin page
|
76 |
function ris_links($links) {
|
77 |
$ris_pro_link = '<a href="http://wpfrank.com/" target="_blank">WP Frank</a>';
|
78 |
+
array_unshift($links, $ris_pro_link);
|
79 |
+
$ris_settings_link = '<a href="edit.php?post_type=ris_gallery">Settings</a>';
|
80 |
+
array_unshift($links, $ris_settings_link);
|
81 |
+
return $links;
|
82 |
+
}
|
83 |
+
$uris_plugin_name = plugin_basename(__FILE__);
|
84 |
add_filter("plugin_action_links_$uris_plugin_name", 'ris_links' );
|
85 |
|
86 |
// Slider Text Widget Support
|
101 |
}
|
102 |
return self::$instance;
|
103 |
}
|
104 |
+
|
105 |
private function __construct() {
|
106 |
+
|
107 |
$this->counter = 0;
|
108 |
+
|
109 |
// image crop function
|
110 |
add_image_size('rpg_gallery_admin_thumb', $this->admin_thumbnail_size, $this->admin_thumbnail_size, true);
|
111 |
add_image_size('rpg_gallery_thumb', $this->thumbnail_size_w, $this->thumbnail_size_h, true);
|
112 |
+
|
113 |
// Translate plugin
|
114 |
add_action('plugins_loaded', array(&$this, 'WRIS_Translate'), 1);
|
115 |
+
|
116 |
// CPT Function
|
117 |
add_action('init', array(&$this, 'ResponsiveImageSlider'),1);
|
118 |
+
|
119 |
// generate metabox funtion
|
120 |
add_action('add_meta_boxes', array(&$this, 'add_all_ris_meta_boxes'));
|
121 |
add_action('admin_init', array(&$this, 'add_all_ris_meta_boxes'), 1);
|
122 |
+
|
123 |
// metabox setting save function
|
124 |
add_action('save_post', array(&$this, 'add_image_meta_box_save'), 9, 1);
|
125 |
add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
|
126 |
+
|
127 |
// add new slide function
|
128 |
add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
|
129 |
+
|
130 |
add_shortcode('rpggallery', array(&$this, 'shortcode'));
|
131 |
}
|
132 |
+
|
133 |
/**
|
134 |
* Translate Plugin
|
135 |
*/
|
136 |
public function WRIS_Translate() {
|
137 |
load_plugin_textdomain('ultimate-responsive-image-slider', FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
|
138 |
}
|
139 |
+
|
140 |
// Register Custom Post Type
|
141 |
public function ResponsiveImageSlider() {
|
142 |
$labels = array(
|
173 |
'rewrite' => false,
|
174 |
'capability_type' => 'post'
|
175 |
);
|
176 |
+
|
177 |
register_post_type( 'ris_gallery', $args );
|
178 |
add_filter( 'manage_edit-ris_gallery_columns', array(&$this, 'ris_gallery_columns' )) ;
|
179 |
add_action( 'manage_ris_gallery_posts_custom_column', array(&$this, 'ris_gallery_manage_columns' ), 10, 2 );
|
180 |
}
|
181 |
+
|
182 |
function ris_gallery_columns( $columns ){
|
183 |
$columns = array(
|
184 |
'cb' => '<input type="checkbox" />',
|
199 |
break;
|
200 |
}
|
201 |
}
|
202 |
+
|
203 |
public function add_all_ris_meta_boxes() {
|
204 |
add_meta_box( __('Add Slides', URIS_TD), __('Add Slides', URIS_TD), array(&$this, 'ris_generate_add_image_meta_box_function'), 'ris_gallery', 'normal', 'low' );
|
205 |
add_meta_box( __('Apply Setting On Ultimate Responsive Image Slider', URIS_TD), __('Apply Setting On Ultimate Responsive Image Slider', URIS_TD), array(&$this, 'ris_settings_meta_box_function'), 'ris_gallery', 'normal', 'low');
|
207 |
add_meta_box('Show US Some Love & Rate Us', 'Show US Some Love & Rate Us', array(&$this, 'uris_Rate_us_meta_box_function'), 'ris_gallery', 'side', 'low');
|
208 |
add_meta_box( __('Upgrade To Pro Plugin', URIS_TD), __('Upgrade To Pro Plugin', URIS_TD), array(&$this, 'ris_upgrade_to_pro_meta_box_function'), 'ris_gallery', 'side', 'low');
|
209 |
}
|
210 |
+
|
211 |
//Rate Us Meta Box
|
212 |
public function uris_Rate_us_meta_box_function() { ?>
|
213 |
<style>
|
241 |
<div align="center">
|
242 |
<p>Please Review & Rate Us On WordPress</p>
|
243 |
<a class="upgrade-to-pro-demo urisp-rate-us" style=" text-decoration: none; height: 40px; width: 40px;" href="https://wordpress.org/plugins/ultimate-responsive-image-slider/#reviews" target="_blank">
|
244 |
+
<img class="wpf_uris_fivestar" src="<?php $path = URIS_PLUGIN_URL."/img/5star.jpg" ; echo $path; ?>">
|
245 |
</a>
|
246 |
</div>
|
247 |
<div class="upgrade-to-pro" style="text-align:center;margin-bottom:10px;margin-top:10px;">
|
249 |
</div>
|
250 |
<?php
|
251 |
}
|
252 |
+
|
253 |
/**
|
254 |
* Upgrade To Meta Box
|
255 |
*/
|
262 |
</div>
|
263 |
<?php
|
264 |
}
|
265 |
+
|
266 |
/**
|
267 |
* This function display Add New Image interface
|
268 |
* Also loads all saved gallery photos into photo gallery
|
280 |
if(is_array($WRIS_AllPhotosDetails)){
|
281 |
foreach($WRIS_AllPhotosDetails as $WRIS_SinglePhotoDetails) {
|
282 |
$name = $WRIS_SinglePhotoDetails['rpgp_image_label'];
|
283 |
+
$desc = $WRIS_SinglePhotoDetails['rpgp_image_desc'];
|
284 |
$UniqueString = substr(str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 5);
|
285 |
$url = $WRIS_SinglePhotoDetails['rpgp_image_url'];
|
286 |
$url1 = $WRIS_SinglePhotoDetails['rpggallery_admin_thumb'];
|
309 |
<?php
|
310 |
$i++;
|
311 |
} // end of foreach
|
312 |
+
}
|
313 |
} else {
|
314 |
$TotalImages = 0;
|
315 |
}
|
316 |
?>
|
317 |
</ul>
|
318 |
+
|
319 |
<!--rich editor modal-->
|
320 |
<div class="modal fade" id="myModal" role="dialog">
|
321 |
<div class="modal-dialog">
|
346 |
</div>
|
347 |
<!--rich editor modal-->
|
348 |
</div>
|
349 |
+
|
350 |
<!--Add New Image Button-->
|
351 |
<div class="rpg-image-entry add_rpg_new_image" id="uris_gallery_upload_button" data-uploader_title="Upload Image" data-uploader_button_text="Select" >
|
352 |
<div class="dashicons dashicons-plus"></div>
|
364 |
}
|
365 |
</style>
|
366 |
<script>
|
367 |
+
function urisp_richeditor(id){
|
368 |
var richeditdata = jQuery(".urisp_richeditbox_"+id).val();
|
369 |
jQuery("#fetch_wpeditor_data").val(richeditdata);
|
370 |
jQuery("#fetch_wpeditor_data-html").click();
|
371 |
jQuery("#fetch_wpelement").val(id);
|
372 |
+
}
|
373 |
+
function urisp_richeditor_putdata(){
|
374 |
jQuery("#fetch_wpeditor_data").click();
|
375 |
jQuery("#fetch_wpeditor_data-html").click();
|
376 |
var fetch_wpelement_id = jQuery("#fetch_wpelement").val();
|
379 |
}
|
380 |
</script>
|
381 |
<?php
|
382 |
+
}
|
383 |
|
384 |
/**
|
385 |
* This function display Add New Image interface
|
389 |
wp_enqueue_script('uris-bootstrap-js', URIS_PLUGIN_URL.'js/bootstrap.min.js');
|
390 |
wp_enqueue_style('uris-bootstrap-min', URIS_PLUGIN_URL.'css/bootstrap-latest/bootstrap.css');
|
391 |
wp_enqueue_style('uris-font-awesome-5.0.8', URIS_PLUGIN_URL.'css/font-awesome-latest/css/fontawesome-all.min.css');
|
392 |
+
wp_enqueue_style('uris-editor-modal', URIS_PLUGIN_URL.'css/editor-modal.css');
|
393 |
wp_enqueue_script('media-upload');
|
394 |
wp_enqueue_script('uris-media-uploader-js', URIS_PLUGIN_URL . 'js/uris-multiple-media-uploader.js', array('jquery'));
|
395 |
wp_enqueue_media();
|
396 |
+
|
397 |
//custom add image box css
|
398 |
wp_enqueue_style('ris-meta-css', URIS_PLUGIN_URL.'css/ris-meta.css');
|
399 |
+
|
400 |
//font awesome css
|
401 |
wp_enqueue_style('ris-font-awesome-5.0.8', URIS_PLUGIN_URL.'css/font-awesome-latest/css/fontawesome-all.min.css');
|
402 |
|
403 |
//tool-tip js & css
|
404 |
wp_enqueue_script('ris-tool-tip-js',URIS_PLUGIN_URL.'tooltip/jquery.darktooltip.min.js', array('jquery'));
|
405 |
wp_enqueue_style('ris-tool-tip-css', URIS_PLUGIN_URL.'tooltip/darktooltip.min.css');
|
406 |
+
|
407 |
//color-picker css n js
|
408 |
wp_enqueue_style( 'wp-color-picker' );
|
409 |
wp_enqueue_script( 'ris-color-picker-script', plugins_url('js/wl-color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
412 |
wp_enqueue_style('ris_codemirror-css', URIS_PLUGIN_URL.'css/codemirror/codemirror.css');
|
413 |
wp_enqueue_style('ris_blackboard', URIS_PLUGIN_URL.'css/codemirror/blackboard.css');
|
414 |
wp_enqueue_style('ris_show-hint-css', URIS_PLUGIN_URL.'css/codemirror/show-hint.css');
|
415 |
+
|
416 |
wp_enqueue_script('ris_codemirror-js',URIS_PLUGIN_URL.'css/codemirror/codemirror.js',array('jquery'));
|
417 |
wp_enqueue_script('ris_css-js',URIS_PLUGIN_URL.'css/codemirror/ris-css.js',array('jquery'));
|
418 |
wp_enqueue_script('ris_css-hint-js',URIS_PLUGIN_URL.'css/codemirror/css-hint.js',array('jquery'));
|
419 |
|
420 |
+
require_once('ultimate-responsive-image-slider-settings-meta-box.php');
|
421 |
}
|
422 |
+
|
423 |
public function ris_shotcode_meta_box_function() { ?>
|
424 |
<p><?php _e("Use below shortcode in any Page/Post to publish your slider", URIS_TD);?></p>
|
425 |
<input readonly="readonly" type="text" value="<?php echo "[URIS id=".get_the_ID()."]"; ?>">
|
426 |
+
<?php
|
427 |
}
|
428 |
|
429 |
public function admin_thumb_uris($id) {
|
454 |
</li>
|
455 |
<?php
|
456 |
}
|
457 |
+
|
458 |
public function ajax_get_thumbnail_uris() {
|
459 |
echo $this->admin_thumb_uris($_POST['imageid']);
|
460 |
die;
|
487 |
$ImagesArray = array();
|
488 |
update_post_meta($PostID, 'ris_all_photos_details', base64_encode(serialize($ImagesArray)));
|
489 |
}
|
490 |
+
}
|
491 |
}
|
492 |
+
|
493 |
//save settings meta box values
|
494 |
public function ris_settings_meta_save($PostID) {
|
495 |
if(isset($PostID) && isset($_POST['wl_action']) == "wl-save-settings") {
|
524 |
$WRIS_L3_Height = sanitize_text_field( $_POST['wl-l3-height'] );
|
525 |
$WRIS_L3_Navigation_Bullets_Color = sanitize_option ( 'navigation_bullet_color', $_POST['wl-l3-navigation-bullets-color'] );
|
526 |
$WRIS_L3_Navigation_Pointer_Color = sanitize_option ( 'navigation_pointer_color', $_POST['wl-l3-navigation-pointer-color'] );
|
527 |
+
|
528 |
$WRIS_Settings_Array = serialize( array(
|
529 |
'WRIS_L3_Title_Align' => $WRIS_L3_Title_Align,
|
530 |
'WRIS_L3_Slide_Title' => $WRIS_L3_Slide_Title,
|
558 |
'WRIS_L3_Navigation_Bullets_Color' => $WRIS_L3_Navigation_Bullets_Color,
|
559 |
'WRIS_L3_Navigation_Pointer_Color' => $WRIS_L3_Navigation_Pointer_Color,
|
560 |
));
|
561 |
+
|
562 |
$WRIS_Gallery_Settings = "WRIS_Gallery_Settings_".$PostID;
|
563 |
update_post_meta($PostID, $WRIS_Gallery_Settings, $WRIS_Settings_Array);
|
564 |
}
|
569 |
$URIS = URIS::forge();
|
570 |
|
571 |
// Review Notice Box
|
572 |
+
add_action( "admin_notices", "uris_admin_notice_resport" );
|
573 |
function uris_admin_notice_resport() {
|
574 |
global $pagenow;
|
575 |
$uris_screen = get_current_screen();
|
576 |
+
if ( $pagenow == 'edit.php' && $uris_screen->post_type == "ris_gallery" && ! isset( $_GET['page'] ) ) {
|
577 |
require_once ( 'uris-feature-admin-notice.php' );
|
578 |
}
|
579 |
}
|
595 |
*/
|
596 |
require_once("ultimate-responsive-image-slider-short-code.php");
|
597 |
require_once( 'products.php' );
|
598 |
+
?>
|