Version Description
- Fixed versioning issue
Download this release
Release Info
Developer | mej |
Plugin | Widget Options |
Version | 3.8.2 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.8.2
- includes/widgets/option-tabs/days-dates.php +110 -0
- includes/widgets/option-tabs/styling.php +168 -0
- plugin.php +2 -2
- readme.txt +9 -1
includes/widgets/option-tabs/days-dates.php
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Days and Dates Widget Options
|
4 |
+
*
|
5 |
+
* @copyright Copyright (c) 2015, Jeffrey Carandang
|
6 |
+
* @since 1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Add Days & Dates Widget Options Tab
|
14 |
+
*
|
15 |
+
* @since 1.0
|
16 |
+
* @return void
|
17 |
+
*/
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Called on 'extended_widget_opts_tabs'
|
21 |
+
* create new tab navigation for alignment options
|
22 |
+
*/
|
23 |
+
function widgetopts_tab_days( $args ){ ?>
|
24 |
+
<li class="extended-widget-opts-tab-days">
|
25 |
+
<a href="#extended-widget-opts-tab-<?php echo $args['id'];?>-days" title="<?php _e( 'Days & Dates', 'widget-options' );?>" ><span class="dashicons dashicons-calendar-alt"></span> <span class="tabtitle"><?php _e( 'Days', 'widget-options' );?></span></a>
|
26 |
+
</li>
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
add_action( 'extended_widget_opts_tabs', 'widgetopts_tab_days' );
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Called on 'extended_widget_opts_tabcontent'
|
33 |
+
* create new tab content options for alignment options
|
34 |
+
*/
|
35 |
+
function widgetopts_tabcontent_days( $args ){
|
36 |
+
global $widget_options;
|
37 |
+
$days = array(
|
38 |
+
'monday' => __( 'Monday', 'widget-options' ),
|
39 |
+
'tuesday' => __( 'Tuesday', 'widget-options' ),
|
40 |
+
'wednesday' => __( 'Wednesday', 'widget-options' ),
|
41 |
+
'thursday' => __( 'Thursday', 'widget-options' ),
|
42 |
+
'friday' => __( 'Friday', 'widget-options' ),
|
43 |
+
'saturday' => __( 'Saturday', 'widget-options' ),
|
44 |
+
'sunday' => __( 'Sunday', 'widget-options' ),
|
45 |
+
);
|
46 |
+
$options_role = '';
|
47 |
+
$options_dates = '';
|
48 |
+
$from = '';
|
49 |
+
$to = '';
|
50 |
+
?>
|
51 |
+
<div id="extended-widget-opts-tab-<?php echo $args['id'];?>-days" class="extended-widget-opts-tabcontent extended-widget-opts-tabcontent-days">
|
52 |
+
<div class="extended-widget-opts-demo-feature">
|
53 |
+
<div class="extended-widget-opts-demo-warning">
|
54 |
+
<p class="widgetopts-unlock-features">
|
55 |
+
<span class="dashicons dashicons-lock"></span><br>
|
56 |
+
Unlock all Features<br>
|
57 |
+
<a href="https://widget-options.com/?utm_source=wordpressadmin&utm_medium=widgettabs&utm_campaign=widgetoptsprotab" class="button-primary" target="_blank">Learn More</a>
|
58 |
+
</p>
|
59 |
+
</div>
|
60 |
+
<p>
|
61 |
+
<strong><?php _e( 'Hide/Show', 'widget-options' );?></strong>
|
62 |
+
<select class="widefat" readonly>
|
63 |
+
<option value="hide"><?php _e( 'Hide on checked days', 'widget-options' );?></option>
|
64 |
+
<option value="show"><?php _e( 'Show on checked days', 'widget-options' );?></option>
|
65 |
+
</select>
|
66 |
+
</p>
|
67 |
+
<table class="form-table">
|
68 |
+
<tbody>
|
69 |
+
<tr valign="top">
|
70 |
+
<td scope="row"><strong><?php _e( 'Days', 'widget-options' );?></strong></td>
|
71 |
+
<td> </td>
|
72 |
+
</tr>
|
73 |
+
<?php foreach ( $days as $key => $day ) {
|
74 |
+
$checked = '';
|
75 |
+
?>
|
76 |
+
<tr valign="top">
|
77 |
+
<td scope="row"><label><?php echo $day;?></label></td>
|
78 |
+
<td>
|
79 |
+
<input type="checkbox" value="1" readonly />
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
<?php } ?>
|
83 |
+
</tbody>
|
84 |
+
</table>
|
85 |
+
<br />
|
86 |
+
|
87 |
+
<p>
|
88 |
+
<strong><?php _e( 'Hide/Show', 'widget-options' );?></strong>
|
89 |
+
<select class="widefat" readonly>
|
90 |
+
<option value="hide"><?php _e( 'Hide on date range', 'widget-options' );?></option>
|
91 |
+
<option value="show"><?php _e( 'Show on date range', 'widget-options' );?></option>
|
92 |
+
</select>
|
93 |
+
</p>
|
94 |
+
<table class="form-table">
|
95 |
+
<tbody>
|
96 |
+
<tr valign="top">
|
97 |
+
<td scope="row"><strong><?php _e( 'From: ', 'widget-options' );?></strong></td>
|
98 |
+
<td><input type="text" class="widefat extended-widget-opts-date" readonly /></td>
|
99 |
+
</tr>
|
100 |
+
<tr valign="top">
|
101 |
+
<td scope="row"><strong><?php _e( 'To: ', 'widget-options' );?></strong></td>
|
102 |
+
<td><input type="text" class="widefat extended-widget-opts-date" readonly /></td>
|
103 |
+
</tr>
|
104 |
+
</tbody>
|
105 |
+
</table>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
add_action( 'extended_widget_opts_tabcontent', 'widgetopts_tabcontent_days'); ?>
|
includes/widgets/option-tabs/styling.php
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Styling Widget Options
|
4 |
+
*
|
5 |
+
* @copyright Copyright (c) 2015, Jeffrey Carandang
|
6 |
+
* @since 1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Add Styling Widget Options Tab
|
14 |
+
*
|
15 |
+
* @since 1.0
|
16 |
+
* @return void
|
17 |
+
*/
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Called on 'extended_widget_opts_tabs'
|
21 |
+
* create new tab navigation for alignment options
|
22 |
+
*/
|
23 |
+
function widgetopts_tab_styling( $args ){ ?>
|
24 |
+
<li class="extended-widget-opts-tab-styling">
|
25 |
+
<a href="#extended-widget-opts-tab-<?php echo $args['id'];?>-styling" title="<?php _e( 'Styling', 'widget-options' );?>" ><span class="dashicons dashicons-art"></span> <span class="tabtitle"><?php _e( 'Styling', 'widget-options' );?></span></a>
|
26 |
+
</li>
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
add_action( 'extended_widget_opts_tabs', 'widgetopts_tab_styling' );
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Called on 'extended_widget_opts_tabcontent'
|
33 |
+
* create new tab content options for alignment options
|
34 |
+
*/
|
35 |
+
function widgetopts_tabcontent_styling( $args ){
|
36 |
+
global $widget_options;
|
37 |
+
|
38 |
+
$selected = 0;
|
39 |
+
$bg_image = '';
|
40 |
+
$background = '';
|
41 |
+
$background_hover = '';
|
42 |
+
$heading = '';
|
43 |
+
$text = '';
|
44 |
+
$links = '';
|
45 |
+
$links_hover = '';
|
46 |
+
$border_color = '';
|
47 |
+
$border_width = '';
|
48 |
+
$border_type = '';
|
49 |
+
|
50 |
+
$background_input = '';
|
51 |
+
$text_input = '';
|
52 |
+
$border_color_input = '';
|
53 |
+
$border_width_input = '';
|
54 |
+
$border_type_input = '';
|
55 |
+
|
56 |
+
$background_submit = '';
|
57 |
+
$background_submit_hover = '';
|
58 |
+
$text_submit = '';
|
59 |
+
$border_color_submit = '';
|
60 |
+
$border_width_submit = '';
|
61 |
+
$border_type_submit = '';
|
62 |
+
|
63 |
+
$list_border_color = '';
|
64 |
+
$table_border_color = '';
|
65 |
+
?>
|
66 |
+
<div id="extended-widget-opts-tab-<?php echo $args['id'];?>-styling" class="extended-widget-opts-tabcontent extended-widget-opts-tabcontent-styling">
|
67 |
+
<div class="extended-widget-opts-demo-feature">
|
68 |
+
<div class="extended-widget-opts-demo-warning">
|
69 |
+
<p class="widgetopts-unlock-features">
|
70 |
+
<span class="dashicons dashicons-lock"></span><br>
|
71 |
+
Unlock all Features<br>
|
72 |
+
<a href="https://widget-options.com/?utm_source=wordpressadmin&utm_medium=widgettabs&utm_campaign=widgetoptsprotab" class="button-primary" target="_blank">Learn More</a>
|
73 |
+
</p>
|
74 |
+
</div>
|
75 |
+
|
76 |
+
<div class="extended-widget-opts-styling-tabs extended-widget-opts-inside-tabs">
|
77 |
+
|
78 |
+
<ul class="extended-widget-opts-styling-tabnav-ul">
|
79 |
+
<li class="extended-widget-opts-styling-tab-styling">
|
80 |
+
<a href="#extended-widget-opts-styling-tab-<?php echo $args['id'];?>-widget" ><?php _e( 'Widget', 'widget-options' );?></a>
|
81 |
+
</li>
|
82 |
+
<li class="extended-widget-opts-styling-tab-form">
|
83 |
+
<a href="#extended-widget-opts-styling-tab-<?php echo $args['id'];?>-form" ><?php _e( 'Forms', 'widget-options' );?></a>
|
84 |
+
</li>
|
85 |
+
<li class="extended-widget-opts-styling-tab-form">
|
86 |
+
<a href="#extended-widget-opts-styling-tab-<?php echo $args['id'];?>-others" ><?php _e( 'Others', 'widget-options' );?></a>
|
87 |
+
</li>
|
88 |
+
<div class="extended-widget-opts-clearfix"></div>
|
89 |
+
</ul>
|
90 |
+
|
91 |
+
<div id="extended-widget-opts-styling-tab-<?php echo $args['id'];?>-widget" class="extended-widget-opts-styling-tabcontent extended-widget-opts-inner-tabcontent">
|
92 |
+
<p class="widgetopts-subtitle"><?php _e( 'Background Image', 'widget-options' );?></p>
|
93 |
+
|
94 |
+
<table class="form-table">
|
95 |
+
<tbody>
|
96 |
+
<tr valign="top">
|
97 |
+
<td colspan="2"><input type="text" class="widefat extended_widget_opts-bg-image" name="<?php echo $args['namespace'];?>[extended_widget_opts][styling][bg_image]" value="<?php echo $bg_image;?>" placeholder="<?php _e( 'Image Url', 'widget-options' );?>" />
|
98 |
+
</td>
|
99 |
+
</tr>
|
100 |
+
<tr valign="top">
|
101 |
+
<td colspan="2" class="alright">
|
102 |
+
<input type="button" class="button-primary extended_widget_opts-bg_uploader" value="<?php _e( 'Upload', 'widget-options' );?>" >
|
103 |
+
<input type="button" class="button-secondary extended_widget_opts-remove_image" value="<?php _e( 'Remove', 'widget-options' );?>">
|
104 |
+
</td>
|
105 |
+
</tr>
|
106 |
+
</tbody>
|
107 |
+
</table><br />
|
108 |
+
|
109 |
+
<p class="widgetopts-subtitle"><?php _e( 'Widget Styling Options', 'widget-options' );?></p>
|
110 |
+
|
111 |
+
<table class="form-table">
|
112 |
+
<tbody>
|
113 |
+
<tr valign="top">
|
114 |
+
<td scope="row"><?php _e( 'Background Color', 'widget-options' );?></td>
|
115 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
116 |
+
</tr>
|
117 |
+
<tr valign="top">
|
118 |
+
<td scope="row"><?php _e( 'Hover Background Color', 'widget-options' );?></td>
|
119 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
120 |
+
</tr>
|
121 |
+
<tr valign="top">
|
122 |
+
<td scope="row"><?php _e( 'Headings', 'widget-options' );?></td>
|
123 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
124 |
+
</tr>
|
125 |
+
<tr valign="top">
|
126 |
+
<td scope="row"><?php _e( 'Text', 'widget-options' );?></td>
|
127 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
128 |
+
</tr>
|
129 |
+
<tr valign="top">
|
130 |
+
<td scope="row"><?php _e( 'Links', 'widget-options' );?></td>
|
131 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
132 |
+
</tr>
|
133 |
+
<tr valign="top">
|
134 |
+
<td scope="row"><?php _e( 'Links Hover', 'widget-options' );?></td>
|
135 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
136 |
+
</tr>
|
137 |
+
<tr valign="top">
|
138 |
+
<td scope="row"><?php _e( 'Border Color', 'widget-options' );?></td>
|
139 |
+
<td><input type="text" class="widget-opts-color" readonly /></td>
|
140 |
+
</tr>
|
141 |
+
<tr valign="top">
|
142 |
+
<td scope="row"><?php _e( 'Border Style', 'widget-options' );?></td>
|
143 |
+
<td>
|
144 |
+
<select class="widefat" readonly>
|
145 |
+
<option value="" ><?php _e( 'Default', 'widget-options' );?></option>
|
146 |
+
</select>
|
147 |
+
</td>
|
148 |
+
</tr>
|
149 |
+
<tr valign="top">
|
150 |
+
<td scope="row"><?php _e( 'Border Width', 'widget-options' );?></td>
|
151 |
+
<td><input type="text" size="5" class="inputsize5" readonly />px</td>
|
152 |
+
</tr>
|
153 |
+
</tbody>
|
154 |
+
</table>
|
155 |
+
</div>
|
156 |
+
|
157 |
+
<div id="extended-widget-opts-styling-tab-<?php echo $args['id'];?>-form" class="extended-widget-opts-styling-tabcontent extended-widget-opts-inner-tabcontent"></div>
|
158 |
+
|
159 |
+
<div id="extended-widget-opts-styling-tab-<?php echo $args['id'];?>-others" class="extended-widget-opts-styling-tabcontent extended-widget-opts-inner-tabcontent"></div>
|
160 |
+
|
161 |
+
<div class="extended-widget-opts-clearfix"></div>
|
162 |
+
</div><!-- end .extended-widget-opts-tabs -->
|
163 |
+
</div>
|
164 |
+
|
165 |
+
</div>
|
166 |
+
<?php
|
167 |
+
}
|
168 |
+
add_action( 'extended_widget_opts_tabcontent', 'widgetopts_tabcontent_styling'); ?>
|
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.8
|
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.8' );
|
89 |
}
|
90 |
|
91 |
// Plugin Folder Path.
|
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.2
|
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.2' );
|
89 |
}
|
90 |
|
91 |
// Plugin Folder Path.
|
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.8
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -154,6 +154,14 @@ Widget Options is a featured pack fully lightweight plugin. Using Query Monitor
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
= 3.8 =
|
158 |
|
159 |
* Added option to upgrade to PRO version.
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.8.2
|
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.2 =
|
158 |
+
|
159 |
+
* Fixed versioning issue
|
160 |
+
|
161 |
+
= 3.8.1 =
|
162 |
+
|
163 |
+
* Fixed missing plugin files
|
164 |
+
|
165 |
= 3.8 =
|
166 |
|
167 |
* Added option to upgrade to PRO version.
|