Widget Options - Version 3.8

Version Description

  • Added option to upgrade to PRO version.
Download this release

Release Info

Developer mej
Plugin Icon 128x128 Widget Options
Version 3.8
Comparing to
See all releases

Code changes from version 3.7.14 to 3.8

assets/css/admin.css CHANGED
@@ -189,10 +189,11 @@ body .extended-widget-opts-tabs .extended-widget-gopro-tab-alignment a{
189
  text-align: center;
190
  font-size: 16px;
191
  font-weight: bold;
 
192
  }
193
  .widgetopts-unlock-features .dashicons{
194
- font-size: 25px;
195
- margin-right: 4px;
196
  }
197
 
198
  /* customizer fix */
@@ -937,3 +938,46 @@ div#widgets-right .widget-top:hover,
937
  margin: 10px 0px 0px;
938
  text-align: center;
939
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  text-align: center;
190
  font-size: 16px;
191
  font-weight: bold;
192
+ line-height: 28px;
193
  }
194
  .widgetopts-unlock-features .dashicons{
195
+ font-size: 23px;
196
+ margin-right: 10px;
197
  }
198
 
199
  /* customizer fix */
938
  margin: 10px 0px 0px;
939
  text-align: center;
940
  }
941
+
942
+ /* DEMO Options */
943
+ .extended-widget-opts-tabcontent .extended-widget-opts-demo-feature {
944
+ margin-top: 1em;
945
+ }
946
+ .extended-widget-opts-demo-feature {
947
+ position: relative;
948
+ }
949
+
950
+ .extended-widget-opts-demo-feature > * {
951
+ z-index: 1;
952
+ }
953
+ .extended-widget-opts-demo-feature:before {
954
+ content: '';
955
+ display: block;
956
+ position: absolute;
957
+ top: 0px;
958
+ left: 0px;
959
+ right: 0px;
960
+ bottom: 0px;
961
+ z-index: 2;
962
+ background: #FFF1B8;
963
+ opacity: 0.85;
964
+ }
965
+ .extended-widget-opts-demo-feature .extended-widget-opts-demo-warning {
966
+ display: flex;
967
+ align-items: center;
968
+ justify-content: center;
969
+ position: absolute;
970
+ top: 50%;
971
+ left: 0px;
972
+ right: 0px;
973
+ z-index: 3;
974
+ flex-wrap: wrap;
975
+ transform: translate(0, -50%);
976
+ }
977
+ .extended-widget-opts-demo-feature .extended-widget-opts-demo-warning > * {
978
+ width: 100%;
979
+ }
980
+ .extended-widget-opts-feature-warning {
981
+ background: #FFF1B8;
982
+ padding: 15px;
983
+ }
includes/widgets/option-tabs/alignment.php CHANGED
@@ -61,7 +61,11 @@ function widgetopts_tabcontent_alignment( $args ){
61
  </td>
62
  </tr>
63
  <tr valign="top" class="widgetopts-topro">
64
- <td colspan="2"><small><?php _e( '<em>Upgrade to <a href="'.$upgrade_link.'" target="_blank">Pro Version</a> for Multiple Devices Alignment and Additional Widget Options.</em>', 'widget-options' );?></small></td>
 
 
 
 
65
  </tr>
66
  </tbody>
67
  </table>
61
  </td>
62
  </tr>
63
  <tr valign="top" class="widgetopts-topro">
64
+ <td colspan="2">
65
+ <div class="extended-widget-opts-feature-warning">
66
+ <small><?php _e( '<em>Upgrade to <a href="'.$upgrade_link.'" target="_blank">Pro Version</a> for Multiple Devices Alignment and Additional Widget Options.</em>', 'widget-options' );?></small>
67
+ </div>
68
+ </td>
69
  </tr>
70
  </tbody>
71
  </table>
includes/widgets/option-tabs/settings.php CHANGED
@@ -84,6 +84,10 @@ if( !function_exists( 'widgetopts_tabcontent_settings' ) ):
84
  </li>
85
  <?php } ?>
86
 
 
 
 
 
87
  <?php if( 'activate' == $widget_options['logic'] ){ ?>
88
  <li class="extended-widget-opts-settings-tab-logic">
89
  <a href="#extended-widget-opts-settings-tab-<?php echo $args['id'];?>-logic" title="<?php _e( 'Display Logic', 'widget-options' );?>" ><?php _e( 'Logic', 'widget-options' );?></a>
@@ -167,6 +171,147 @@ if( !function_exists( 'widgetopts_tabcontent_settings' ) ):
167
  </div><!-- end class tab content -->
168
  <?php } ?>
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  <?php if( 'activate' == $widget_options['logic'] ){ ?>
171
  <!-- start logic tab content -->
172
  <div id="extended-widget-opts-settings-tab-<?php echo $args['id'];?>-logic" class="extended-widget-opts-settings-tabcontent extended-widget-opts-inner-tabcontent">
84
  </li>
85
  <?php } ?>
86
 
87
+ <li class="extended-widget-opts-settings-tab-animation">
88
+ <a href="#extended-widget-opts-settings-tab-<?php echo $args['id'];?>-animation" title="<?php _e( 'Animation', 'widget-options' );?>" ><?php _e( 'Animation', 'widget-options' );?></a>
89
+ </li>
90
+
91
  <?php if( 'activate' == $widget_options['logic'] ){ ?>
92
  <li class="extended-widget-opts-settings-tab-logic">
93
  <a href="#extended-widget-opts-settings-tab-<?php echo $args['id'];?>-logic" title="<?php _e( 'Display Logic', 'widget-options' );?>" ><?php _e( 'Logic', 'widget-options' );?></a>
171
  </div><!-- end class tab content -->
172
  <?php } ?>
173
 
174
+ <!-- start Animation tab demo -->
175
+ <?php
176
+ $animation_array = array(
177
+ 'Attention Seekers' => array(
178
+ 'bounce',
179
+ 'flash',
180
+ 'pulse',
181
+ 'rubberBand',
182
+ 'shake',
183
+ 'swing',
184
+ 'tada',
185
+ 'wobble',
186
+ 'jello'
187
+ ) ,
188
+ 'Bouncing Entrances' => array(
189
+ 'bounceIn',
190
+ 'bounceInDown',
191
+ 'bounceInLeft',
192
+ 'bounceInRight',
193
+ 'bounceInUp',
194
+ ),
195
+
196
+ 'Fading Entrances' => array(
197
+ 'fadeIn',
198
+ 'fadeInDown',
199
+ 'fadeInDownBig',
200
+ 'fadeInLeft',
201
+ 'fadeInLeftBig',
202
+ 'fadeInRight',
203
+ 'fadeInRightBig',
204
+ 'fadeInUp',
205
+ 'fadeInUpBig'
206
+ ),
207
+ 'Flippers' => array(
208
+ 'flip',
209
+ 'flipInX',
210
+ 'flipInY',
211
+ 'flipOutX',
212
+ 'flipOutY'
213
+ ),
214
+ 'Lightspeed' => array(
215
+ 'lightSpeedIn',
216
+ 'lightSpeedOut'
217
+ ),
218
+
219
+ 'Rotating Entrances' => array(
220
+ 'rotateIn',
221
+ 'rotateInDownLeft',
222
+ 'rotateInDownRight',
223
+ 'rotateInUpLeft',
224
+ 'rotateInUpRight'
225
+ ),
226
+ 'Sliding Entrances' => array(
227
+ 'slideInUp',
228
+ 'slideInDown',
229
+ 'slideInLeft',
230
+ 'slideInRight'
231
+ ),
232
+ 'Zoom Entrances' => array(
233
+ 'zoomIn',
234
+ 'zoomInDown',
235
+ 'zoomInLeft',
236
+ 'zoomInRight',
237
+ 'zoomInUp'
238
+ ),
239
+ 'Specials' => array(
240
+ 'hinge',
241
+ 'rollIn'
242
+ )
243
+ ); ?>
244
+ <!-- start animation tab content -->
245
+ <div id="extended-widget-opts-settings-tab-<?php echo $args['id'];?>-animation" class="extended-widget-opts-settings-tabcontent extended-widget-opts-inner-tabcontent">
246
+ <div class="widget-opts-animation">
247
+ <div class="extended-widget-opts-demo-feature">
248
+ <div class="extended-widget-opts-demo-warning">
249
+ <p class="widgetopts-unlock-features">
250
+ <span class="dashicons dashicons-lock"></span><br>
251
+ Unlock all Features<br>
252
+ <a href="https://widget-options.com/?utm_source=wordpressadmin&amp;utm_medium=widgettabs&amp;utm_campaign=widgetoptsprotab" class="button-primary" target="_blank">Learn More</a>
253
+ </p>
254
+ </div>
255
+ <p>
256
+ <label for="opts-class-animation-<?php echo $args['id'];?>"><?php _e( 'Animation Type', 'widget-options' );?></label>
257
+ <br />
258
+ <select class="widefat" readonly>
259
+ <option value=""><?php _e( 'None', 'widget-options' );?></option>
260
+ <?php foreach( $animation_array as $group => $anims ){ ?>
261
+ <optgroup label="<?php _e( $group, 'widget-options' );?>">
262
+ <?php foreach( $anims as $anim => $aname ){ ?>
263
+ <option value="<?php echo $aname;?>" <?php echo ( $animation == $aname ) ? 'selected="selected"' : ''; ?> ><?php _e( $aname, 'widget-options' )?></option>
264
+ <?php } ?>
265
+ </optgroup>
266
+ <?php } ?>
267
+ </select>
268
+ <small><em><?php _e( 'The type of animation for this event.', 'widget-options' );?></em></small>
269
+ </p>
270
+
271
+ <p>
272
+ <label for="opts-class-event-<?php echo $args['id'];?>"><?php _e( 'Animation Event', 'widget-options' );?></label>
273
+ <br />
274
+ <select class="widefat" readonly>
275
+ <option value="enters" <?php echo ('enters' == $event) ? 'selected="selected"' : ''; ?>><?php _e( 'Element Enters Screen', 'widget-options' );?></option>
276
+ <option value="onScreen" <?php echo ('onScreen' == $event) ? 'selected="selected"' : ''; ?>><?php _e( 'Element In Screen', 'widget-options' );?></option>
277
+ <option value="pageLoad" <?php echo ('pageLoad' == $event) ? 'selected="selected"' : ''; ?>><?php _e( 'Page Load', 'widget-options' );?></option>
278
+ </select>
279
+ <small><em><?php _e( 'The event that triggers the animation', 'widget-options' );?></em></small>
280
+ </p>
281
+
282
+ <p>
283
+ <label for="opts-class-speed-<?php echo $args['id'];?>"><?php _e( 'Animation Speed', 'widget-options' );?></label>
284
+ <br />
285
+ <input type="text" class="widefat" readonly />
286
+ <small><em><?php _e( 'How many seconds the incoming animation should lasts.', 'widget-options' );?></em></small>
287
+ </p>
288
+
289
+ <p>
290
+ <label for="opts-class-offset-<?php echo $args['id'];?>"><?php _e( 'Screen Offset', 'widget-options' );?></label>
291
+ <br />
292
+ <input type="text" readonly />
293
+ <small><em><?php _e( 'How many pixels above the bottom of the screen must the widget be before animating.', 'widget-options' );?></em></small>
294
+ </p>
295
+
296
+ <p>
297
+ <label for="opts-class-hidden-<?php echo $args['id'];?>"><?php _e( 'Hide Before Animation', 'widget-options' );?></label>
298
+ <br />
299
+ <input type="checkbox" value="1" readonly />
300
+ <label for="opts-class-hidden-<?php echo $args['id'];?>"><?php _e( 'Enabled', 'widget-options' );?></label><br />
301
+ <small><em><?php _e( 'Hide widget before animating.', 'widget-options' );?></em></small>
302
+ </p>
303
+
304
+ <p>
305
+ <label for="opts-class-delay-<?php echo $args['id'];?>"><?php _e( 'Animation Delay', 'widget-options' );?></label>
306
+ <br />
307
+ <input type="text" class="widefat" readonly />
308
+ <small><em><?php _e( 'Number of seconds after the event to start the animation.', 'widget-options' );?></em></small>
309
+ </p>
310
+ </div>
311
+ </div>
312
+ </div><!-- end animation tab content -->
313
+ <!-- end Animation tab demo -->
314
+
315
  <?php if( 'activate' == $widget_options['logic'] ){ ?>
316
  <!-- start logic tab content -->
317
  <div id="extended-widget-opts-settings-tab-<?php echo $args['id'];?>-logic" class="extended-widget-opts-settings-tabcontent extended-widget-opts-inner-tabcontent">
includes/widgets/option-tabs/state.php CHANGED
@@ -49,6 +49,59 @@ function widgetopts_tabcontent_state( $args ){
49
  </select>
50
  </p>
51
  <p><small><?php _e( 'Restrict widget visibility for logged-in and logged-out users. ', 'widget-options' );?></small></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  </div>
53
  <?php
54
  }
49
  </select>
50
  </p>
51
  <p><small><?php _e( 'Restrict widget visibility for logged-in and logged-out users. ', 'widget-options' );?></small></p>
52
+
53
+ <div class="extended-widget-opts-demo-feature">
54
+ <div class="extended-widget-opts-demo-warning">
55
+ <p class="widgetopts-unlock-features">
56
+ <span class="dashicons dashicons-lock"></span><br>
57
+ Unlock all Features<br>
58
+ <a href="https://widget-options.com/?utm_source=wordpressadmin&amp;utm_medium=widgettabs&amp;utm_campaign=widgetoptsprotab" class="button-primary" target="_blank">Learn More</a>
59
+ </p>
60
+ </div>
61
+ <p class="widgetopts-subtitle"><?php _e( 'User Roles', 'widget-options' );?></p>
62
+ <p>
63
+ <strong><?php _e( 'Hide/Show', 'widget-options' );?></strong>
64
+ <select class="widefat" readonly>
65
+ <option value="hide" <?php if( $options_role == 'hide' ){ echo 'selected="selected"'; }?> ><?php _e( 'Hide on checked roles', 'widget-options' );?></option>
66
+ <option value="show" <?php if( $options_role == 'show' ){ echo 'selected="selected"'; }?>><?php _e( 'Show on checked roles', 'widget-options' );?></option>
67
+ </select>
68
+ </p>
69
+ <div class="extended-widget-opts-inner-roles" style="max-height: 230px;padding: 5px;overflow:auto;">
70
+ <table class="form-table">
71
+ <tbody>
72
+ <tr valign="top">
73
+ <td scope="row"><strong><?php _e( 'Roles', 'widget-options' );?></strong></td>
74
+ <td>&nbsp;</td>
75
+ </tr>
76
+ <?php foreach ( $roles as $role_name => $role_info ) {
77
+ if( isset( $args['params'] ) && isset( $args['params']['roles'] ) ){
78
+ if( isset( $args['params']['roles'][ $role_name ] ) ){
79
+ $checked = 'checked="checked"';
80
+ }else{
81
+ $checked = '';
82
+ }
83
+ }else{
84
+ $checked = '';
85
+ }
86
+ ?>
87
+ <tr valign="top">
88
+ <td scope="row"><label for="extended_widget_opts-<?php echo $args['id'];?>-role-<?php echo $role_name;?>"><?php echo $role_info['name'];?></label></td>
89
+ <td>
90
+ <input type="checkbox" value="1" readonly />
91
+ </td>
92
+ </tr>
93
+ <?php } ?>
94
+ <tr valign="top">
95
+ <td scope="row"><?php _e( 'Guests', 'widget-options' );?></td>
96
+ <td>
97
+ <input type="checkbox" value="1" readonly />
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ </div>
103
+ <p><small><?php _e( 'Restrict widget visibility per user roles.', 'widget-options' );?></small></p>
104
+ </div>
105
  </div>
106
  <?php
107
  }
includes/widgets/option-tabs/visibility.php CHANGED
@@ -281,6 +281,10 @@ function widgetopts_tabcontent_visibility( $args ){
281
  <?php } ?>
282
  </div>
283
  </div>
 
 
 
 
284
  </div><!-- end tax tab content -->
285
  <?php } ?>
286
  </div><!-- end .extended-widget-opts-visibility-tabs -->
281
  <?php } ?>
282
  </div>
283
  </div>
284
+ <?php $upgrade_link = apply_filters('widget_options_site_url', trailingslashit(WIDGETOPTS_PLUGIN_WEBSITE)); ?>
285
+ <div class="extended-widget-opts-feature-warning">
286
+ <small><?php _e( '<em>Upgrade to <a href="'.$upgrade_link.'" target="_blank">Pro Version</a> to manage visibility for Custom Taxonomies.</em>', 'widget-options' );?></small>
287
+ </div>
288
  </div><!-- end tax tab content -->
289
  <?php } ?>
290
  </div><!-- end .extended-widget-opts-visibility-tabs -->
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
- * Version: 3.7.14
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
@@ -85,7 +85,7 @@ final class WP_Widget_Options {
85
 
86
  // Plugin version.
87
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
88
- define( 'WIDGETOPTS_VERSION', '3.7.14' );
89
  }
90
 
91
  // Plugin Folder Path.
@@ -198,6 +198,10 @@ final class WP_Widget_Options {
198
  require_once WIDGETOPTS_PLUGIN_DIR . 'includes/widgets/option-tabs/state.php';
199
  }
200
 
 
 
 
 
201
  //add settings tab if activated
202
  if( 'activate' == $widget_options['hide_title'] ||
203
  'activate' == $widget_options['classes'] ||
3
  * Plugin Name: Widget Options
4
  * Plugin URI: https://widget-options.com/
5
  * Description: Additional Widget options for better widget control. Get <strong><a href="http://widget-options.com/" target="_blank" >Extended Widget Options for WordPress</a></strong> for complete widget controls. Thanks!
6
+ * Version: 3.8
7
  * Author: Widget Options Team
8
  * Author URI: https://widget-options.com/
9
  * Text Domain: widget-options
85
 
86
  // Plugin version.
87
  if ( ! defined( 'WIDGETOPTS_VERSION' ) ) {
88
+ define( 'WIDGETOPTS_VERSION', '3.8' );
89
  }
90
 
91
  // Plugin Folder Path.
198
  require_once WIDGETOPTS_PLUGIN_DIR . 'includes/widgets/option-tabs/state.php';
199
  }
200
 
201
+ //add days and dates tab DEMO
202
+ require_once WIDGETOPTS_PLUGIN_DIR . 'includes/widgets/option-tabs/days-dates.php';
203
+ require_once WIDGETOPTS_PLUGIN_DIR . 'includes/widgets/option-tabs/styling.php';
204
+
205
  //add settings tab if activated
206
  if( 'activate' == $widget_options['hide_title'] ||
207
  'activate' == $widget_options['classes'] ||
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: widgets, restrict widgets, display widgets, widget logic, hide widgets, hi
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -154,6 +154,10 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
154
 
155
  == Changelog ==
156
 
 
 
 
 
157
  = 3.7.14 =
158
 
159
  * Fixed PHP Recoverable fatal error – when switching AMP mode
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 3.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
154
 
155
  == Changelog ==
156
 
157
+ = 3.8 =
158
+
159
+ * Added option to upgrade to PRO version.
160
+
161
  = 3.7.14 =
162
 
163
  * Fixed PHP Recoverable fatal error – when switching AMP mode