Ultimate Responsive Image Slider Plugin - Version 3.0.10

Version Description

Download this release

Release Info

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

Code changes from version 3.0.9 to 3.0.10

readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: weblizar
3
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.2
7
- Stable tag: 3.0.9
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.9 - Rich text editor button size fix
158
V 3.0.8 - Rich text editor added for making description text more useful and attractive
159
V 3.0.7 - version update + compatible upto wp 4.8.2
3
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.3
7
+ Stable tag: 3.0.10
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.9 - Wooocommerce Conflict issue fixed + compatible upto wp 4.8.3
158
V 3.0.9 - Rich text editor button size fix
159
V 3.0.8 - Rich text editor added for making description text more useful and attractive
160
V 3.0.7 - version update + compatible upto wp 4.8.2
ultimate-responsive-image-slider-settings-meta-box.php CHANGED
@@ -157,7 +157,7 @@ if($WRIS_Gallery_Settings['WRIS_L3_Slider_Width'] && $WRIS_Gallery_Settings['WRI
157
<table class="form-table">
158
<tbody>
159
<tr id="L3">
160
- <th scope="row" colspan="2"><h2><?php _e('Configure Settings For Slider Shortcode', WRIS_TEXT_DOMAIN); ?>: <?php echo "[URIS id=$PostId]"; ?></h2><hr></th>
161
</tr>
162
163
<tr id="L3">
157
<table class="form-table">
158
<tbody>
159
<tr id="L3">
160
+ <th scope="row" colspan="2"><h2><?php _e('Configure Settings For Slider Shortcode', WRIS_TEXT_DOMAIN); ?>: <?php echo "<strong>[URIS id=$PostId]</strong>"; ?></h2><hr></th>
161
</tr>
162
163
<tr id="L3">
ultimate-responsive-image-slider-short-code.php CHANGED
@@ -3,6 +3,10 @@ add_shortcode( 'URIS', 'ResponsiveWWRISroShortCode' );
3
function ResponsiveWWRISroShortCode( $Id ) {
4
5
ob_start();
6
7
/**
8
* Load Saved Responsive Image Slider Settings
3
function ResponsiveWWRISroShortCode( $Id ) {
4
5
ob_start();
6
+
7
+ // slider js css scripts
8
+ wp_enqueue_script('ris-jquery-sliderPro-js', WRIS_PLUGIN_URL.'js/jquery.sliderPro.js', array('jquery'), '1.1.0', true);
9
+ wp_enqueue_style('ris-slider-css', WRIS_PLUGIN_URL.'css/slider-pro.css');
10
11
/**
12
* Load Saved Responsive Image Slider Settings
ultimate-responsive-image-slider.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
* Plugin Name: Ultimate Responsive Image Slider
4
- * Version: 3.0.9
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/
@@ -59,7 +59,7 @@ function admin_content_wpse_144936() {
59
.wlTBlock{
60
background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('<?php echo WRIS_PLUGIN_URL.'/img/bg2.jpg'; ?>') no-repeat fixed;
61
background-position: 50% 0 !important;
62
- padding: 27px 0 23px 0;
63
margin-left: -20px;
64
font-family: Myriad Pro ;
65
cursor: pointer;
@@ -85,7 +85,7 @@ function admin_content_wpse_144936() {
85
}
86
87
.wlTBlock a{
88
- text-decoration: none;
89
}
90
@media screen and ( max-width: 600px ) {
91
.wlTBlock{ padding-top: 60px; margin-bottom: -50px; }
@@ -114,16 +114,7 @@ function ris_links($links) {
114
$ris_plugin_name = plugin_basename(__FILE__);
115
add_filter("plugin_action_links_$ris_plugin_name", 'ris_links' );
116
117
- /**
118
- * URIS Enqueue Scripts
119
- */
120
- function URIS_Plugin_Scripts() {
121
- //js scripts
122
- wp_enqueue_script('ris-jquery-sliderPro-js', WRIS_PLUGIN_URL.'js/jquery.sliderPro.js', array('jquery'), '1.1.0', true);
123
- // css scripts
124
- wp_enqueue_style('ris-slider-css', WRIS_PLUGIN_URL.'css/slider-pro.css');
125
- }
126
- add_action( 'wp_enqueue_scripts', 'URIS_Plugin_Scripts' );
127
add_filter( 'widget_text', 'do_shortcode' );
128
129
class WRIS {
@@ -143,26 +134,34 @@ class WRIS {
143
}
144
145
private function __construct() {
146
$this->counter = 0;
147
- add_action('admin_print_scripts-post.php', array(&$this, 'ris_admin_print_scripts'));
148
- add_action('admin_print_scripts-post-new.php', array(&$this, 'ris_admin_print_scripts'));
149
- add_action('admin_notices', array(&$this, 'review_admin_notice_ris'));
150
add_image_size('rpg_gallery_admin_thumb', $this->admin_thumbnail_size, $this->admin_thumbnail_size, true);
151
- add_image_size('rpg_gallery_thumb', $this->thumbnail_size_w, $this->thumbnail_size_h, true);
152
- add_shortcode('rpggallery', array(&$this, 'shortcode'));
153
- if (is_admin()) {
154
- add_action('plugins_loaded', array(&$this, 'WRIS_Translate'), 1);
155
- add_action('init', array(&$this, 'ResponsiveImageSlider'), 1);
156
-
157
- add_action('add_meta_boxes', array(&$this, 'add_all_ris_meta_boxes'));
158
- add_action('admin_init', array(&$this, 'add_all_ris_meta_boxes'), 1);
159
-
160
- add_action('save_post', array(&$this, 'add_image_meta_box_save'), 9, 1);
161
- add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
162
-
163
- add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
164
- //add_action('admin_init', 'urisp_call');
165
- }
166
}
167
168
/**
@@ -172,30 +171,10 @@ class WRIS {
172
load_plugin_textdomain('W_R_I_S', FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
173
}
174
175
- //Required JS & CSS
176
public function ris_admin_print_scripts() {
177
- wp_enqueue_script( 'ris-bootstrap-js', WRIS_PLUGIN_URL.'js/bootstrap.min.js');
178
- wp_enqueue_style('uris-bootstrap-min', WRIS_PLUGIN_URL.'css/bootstrap.min.css');
179
- wp_enqueue_style('uris-font-awesome-min', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
180
- wp_enqueue_style('uris-editor-modal', WRIS_PLUGIN_URL.'css/editor-modal.css');
181
- wp_enqueue_script('media-upload');
182
- wp_enqueue_script('uris-media-uploader-js', WRIS_PLUGIN_URL . 'js/uris-multiple-media-uploader.js', array('jquery'));
183
- wp_enqueue_media();
184
-
185
- //custom add image box css
186
- wp_enqueue_style('ris-meta-css', WRIS_PLUGIN_URL.'css/ris-meta.css');
187
-
188
- //font awesome css
189
- wp_enqueue_style('ris-font-awesome-4', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
190
-
191
- //tool-tip js & css
192
- wp_enqueue_script('ris-tool-tip-js',WRIS_PLUGIN_URL.'tooltip/jquery.darktooltip.min.js', array('jquery'));
193
- wp_enqueue_style('ris-tool-tip-css', WRIS_PLUGIN_URL.'tooltip/darktooltip.min.css');
194
195
- //color-picker css n js
196
- wp_enqueue_style( 'wp-color-picker' );
197
- wp_enqueue_script( 'ris-color-picker-script', plugins_url('js/wl-color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
198
- }
199
200
// Register Custom Post Type
201
public function ResponsiveImageSlider() {
@@ -381,35 +360,37 @@ class WRIS {
381
}
382
?>
383
</ul>
384
- <div class="modal fade" id="myModal" role="dialog">
385
- <div class="modal-dialog">
386
- <!-- Modal content-->
387
- <div class="modal-content">
388
- <div class="modal-header">
389
- <button type="button" class="close" data-dismiss="modal">&times;</button>
390
- <h4 class="modal-title"><i class="fa fa-edit" style="font-size:23px"></i> Rich Editor</h4>
391
- </div>
392
- <div class="modal-body">
393
- <p>
394
- <?php
395
- $urisp_box = '';
396
- $urisp_editor_id = 'fetch_wpeditor_data';
397
- $settings = array( 'media_buttons' => false ,'quicktags' => array( 'buttons' => 'strong,em,del,link,close' ) ); // for remove media button from editor
398
- //wp_editor( $urisp_box, $urisp_editor_id); // with media button
399
- wp_editor( $urisp_box, $urisp_editor_id, $settings); // without media button
400
-
401
- ?>
402
- <input type="hidden" value="" id="fetch_wpelement" name="fetch_wpelement" />
403
- </p>
404
- </div>
405
- <div class="modal-footer">
406
- <button type="button" class="btn btn-default" onclick="urisp_richeditor_putdata()" data-dismiss="modal">Continue</button>
407
- <button type="button" class="btn btn-default" data-dismiss="modal">Exit</button>
408
- </div>
409
</div>
410
- </div>
411
</div>
412
-
413
</div>
414
415
<!--Add New Image Button-->
@@ -456,9 +437,8 @@ class WRIS {
456
$screen = get_current_screen();
457
if ( $screen->id == 'ris_gallery' ) {
458
echo '<div class="notice notice-warning is-dismissible review-notice">
459
- <p>Thanks for installing and using Ultimate Responsive Image Slider plugin. If you love our plugin and plugin is really work for you.</p>
460
- <p>Then please share your feedback about this plugin. Your feedback will be helpful to make plugin more error free.</p>
461
- <p><a href="https://wordpress.org/support/plugin/ultimate-responsive-image-slider/reviews/?filter=5" target="_blank" name="review" id="review" class="button button-primary">Review & Rate</a></p>
462
</div>';
463
}
464
}
@@ -467,7 +447,28 @@ class WRIS {
467
* This function display Add New Image interface
468
* Also loads all saved gallery photos into photo gallery
469
*/
470
- public function ris_settings_meta_box_function($post) {
471
require_once('ultimate-responsive-image-slider-settings-meta-box.php');
472
}
473
1
<?php
2
/**
3
* Plugin Name: Ultimate Responsive Image Slider
4
+ * Version: 3.0.10
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/
59
.wlTBlock{
60
background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('<?php echo WRIS_PLUGIN_URL.'/img/bg2.jpg'; ?>') no-repeat fixed;
61
background-position: 50% 0 !important;
62
+ padding: 15px 0 0 0;
63
margin-left: -20px;
64
font-family: Myriad Pro ;
65
cursor: pointer;
85
}
86
87
.wlTBlock a{
88
+ text-decoration: none !important;
89
}
90
@media screen and ( max-width: 600px ) {
91
.wlTBlock{ padding-top: 60px; margin-bottom: -50px; }
114
$ris_plugin_name = plugin_basename(__FILE__);
115
add_filter("plugin_action_links_$ris_plugin_name", 'ris_links' );
116
117
+ // Slider Text Widget Support
118
add_filter( 'widget_text', 'do_shortcode' );
119
120
class WRIS {
134
}
135
136
private function __construct() {
137
+
138
$this->counter = 0;
139
+
140
+ // image crop function
141
add_image_size('rpg_gallery_admin_thumb', $this->admin_thumbnail_size, $this->admin_thumbnail_size, true);
142
+ add_image_size('rpg_gallery_thumb', $this->thumbnail_size_w, $this->thumbnail_size_h, true);
143
+
144
+ // Translate plugin
145
+ add_action('plugins_loaded', array(&$this, 'WRIS_Translate'), 1);
146
+
147
+ // CPT Function
148
+ add_action('init', array(&$this, 'ResponsiveImageSlider'), 1);
149
+
150
+ // generate metabox funtion
151
+ add_action('add_meta_boxes', array(&$this, 'add_all_ris_meta_boxes'));
152
+ add_action('admin_init', array(&$this, 'add_all_ris_meta_boxes'), 1);
153
+
154
+ //notice
155
+ add_action('admin_notices', array(&$this, 'review_admin_notice_ris'));
156
+
157
+ // metabox setting save function
158
+ add_action('save_post', array(&$this, 'add_image_meta_box_save'), 9, 1);
159
+ add_action('save_post', array(&$this, 'ris_settings_meta_save'), 9, 1);
160
+
161
+ // add new slide function
162
+ add_action('wp_ajax_uris_get_thumbnail', array(&$this, 'ajax_get_thumbnail_uris'));
163
+
164
+ add_shortcode('rpggallery', array(&$this, 'shortcode'));
165
}
166
167
/**
171
load_plugin_textdomain('W_R_I_S', FALSE, dirname( plugin_basename(__FILE__)).'/languages/' );
172
}
173
174
+ /* //Required JS & CSS
175
public function ris_admin_print_scripts() {
176
177
+ } */
178
179
// Register Custom Post Type
180
public function ResponsiveImageSlider() {
360
}
361
?>
362
</ul>
363
+
364
+ <!--rich editor modal-->
365
+ <div class="modal fade" id="myModal" role="dialog">
366
+ <div class="modal-dialog">
367
+ <!-- Modal content-->
368
+ <div class="modal-content">
369
+ <div class="modal-header">
370
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
371
+ <h4 class="modal-title"><i class="fa fa-edit" style="font-size:23px"></i> Rich Editor</h4>
372
+ </div>
373
+ <div class="modal-body">
374
+ <p>
375
+ <?php
376
+ $urisp_box = '';
377
+ $urisp_editor_id = 'fetch_wpeditor_data';
378
+ $settings = array( 'media_buttons' => false ,'quicktags' => array( 'buttons' => 'strong,em,del,link,close' ) ); // for remove media button from editor
379
+ //wp_editor( $urisp_box, $urisp_editor_id); // with media button
380
+ wp_editor( $urisp_box, $urisp_editor_id, $settings); // without media button
381
+
382
+ ?>
383
+ <input type="hidden" value="" id="fetch_wpelement" name="fetch_wpelement" />
384
+ </p>
385
</div>
386
+ <div class="modal-footer">
387
+ <button type="button" class="btn btn-default" onclick="urisp_richeditor_putdata()" data-dismiss="modal">Continue</button>
388
+ <button type="button" class="btn btn-default" data-dismiss="modal">Exit</button>
389
+ </div>
390
+ </div>
391
</div>
392
+ </div>
393
+ <!--rich editor modal-->
394
</div>
395
396
<!--Add New Image Button-->
437
$screen = get_current_screen();
438
if ( $screen->id == 'ris_gallery' ) {
439
echo '<div class="notice notice-warning is-dismissible review-notice">
440
+ <p>Thanks for installing and using Ultimate Responsive Image Slider plugin.
441
+ Then please share your feedback about this plugin. Your feedback will be helpful to make plugin more error free. <a href="https://wordpress.org/support/plugin/ultimate-responsive-image-slider/reviews/?filter=5" target="_blank" name="review" id="review" class="button button-primary">Rate Us</a></p>
442
</div>';
443
}
444
}
447
* This function display Add New Image interface
448
* Also loads all saved gallery photos into photo gallery
449
*/
450
+ public function ris_settings_meta_box_function($post) {
451
+ wp_enqueue_script( 'ris-bootstrap-js', WRIS_PLUGIN_URL.'js/bootstrap.min.js');
452
+ wp_enqueue_style('uris-bootstrap-min', WRIS_PLUGIN_URL.'css/bootstrap.min.css');
453
+ wp_enqueue_style('uris-font-awesome-min', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
454
+ wp_enqueue_style('uris-editor-modal', WRIS_PLUGIN_URL.'css/editor-modal.css');
455
+ wp_enqueue_script('media-upload');
456
+ wp_enqueue_script('uris-media-uploader-js', WRIS_PLUGIN_URL . 'js/uris-multiple-media-uploader.js', array('jquery'));
457
+ wp_enqueue_media();
458
+
459
+ //custom add image box css
460
+ wp_enqueue_style('ris-meta-css', WRIS_PLUGIN_URL.'css/ris-meta.css');
461
+
462
+ //font awesome css
463
+ wp_enqueue_style('ris-font-awesome-4', WRIS_PLUGIN_URL.'css/font-awesome/css/font-awesome.min.css');
464
+
465
+ //tool-tip js & css
466
+ wp_enqueue_script('ris-tool-tip-js',WRIS_PLUGIN_URL.'tooltip/jquery.darktooltip.min.js', array('jquery'));
467
+ wp_enqueue_style('ris-tool-tip-css', WRIS_PLUGIN_URL.'tooltip/darktooltip.min.css');
468
+
469
+ //color-picker css n js
470
+ wp_enqueue_style( 'wp-color-picker' );
471
+ wp_enqueue_script( 'ris-color-picker-script', plugins_url('js/wl-color-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
472
require_once('ultimate-responsive-image-slider-settings-meta-box.php');
473
}
474