Version Description
- Tested & found compatible with WP 4.7.
Download this release
Release Info
Developer | PerS |
Plugin | Date and Time Picker Field |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- acf-date-time-picker.php +2 -2
- date-time-picker-v4.php +38 -0
- readme.txt +4 -2
acf-date-time-picker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Advanced Custom Fields: Date and Time Picker
|
4 |
* Plugin URI: https://github.com/soderlind/acf-field-date-time-picker
|
5 |
* Description: Date and Time Picker field for Advanced Custom Fields
|
6 |
-
* Version: 2.1.
|
7 |
* Author: Per Soderlind
|
8 |
* Author URI: http://soderlind.no
|
9 |
* License: GPLv2 or later
|
@@ -11,7 +11,7 @@
|
|
11 |
* Text Domain: acf-field-date-time-picker
|
12 |
* Domain Path: /languages
|
13 |
*/
|
14 |
-
define( 'ACFFIELDDATETIMEPICKER_VERSION', '2.1.
|
15 |
/**
|
16 |
* Class acfFieldDateTimePickerPlugin
|
17 |
*/
|
3 |
* Plugin Name: Advanced Custom Fields: Date and Time Picker
|
4 |
* Plugin URI: https://github.com/soderlind/acf-field-date-time-picker
|
5 |
* Description: Date and Time Picker field for Advanced Custom Fields
|
6 |
+
* Version: 2.1.2
|
7 |
* Author: Per Soderlind
|
8 |
* Author URI: http://soderlind.no
|
9 |
* License: GPLv2 or later
|
11 |
* Text Domain: acf-field-date-time-picker
|
12 |
* Domain Path: /languages
|
13 |
*/
|
14 |
+
define( 'ACFFIELDDATETIMEPICKER_VERSION', '2.1.2' );
|
15 |
/**
|
16 |
* Class acfFieldDateTimePickerPlugin
|
17 |
*/
|
date-time-picker-v4.php
CHANGED
@@ -112,6 +112,25 @@ if ( ! class_exists( 'ACFFieldDateTimePicker' ) ) :
|
|
112 |
?>
|
113 |
</td>
|
114 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_timeformat">
|
116 |
<td class="label">
|
117 |
<label><?php _e( 'Time Format', $this->domain ); ?></label>
|
@@ -140,6 +159,25 @@ if ( ! class_exists( 'ACFFieldDateTimePicker' ) ) :
|
|
140 |
?>
|
141 |
</td>
|
142 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_week_number">
|
144 |
<td class="label">
|
145 |
<label for=""><?php _e( 'Display Week Number?', $this->domain ); ?></label>
|
112 |
?>
|
113 |
</td>
|
114 |
</tr>
|
115 |
+
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_default_date">
|
116 |
+
<td class="label">
|
117 |
+
<label for=""><?php _e( 'Default date:', $this->domain ); ?></label>
|
118 |
+
</td>
|
119 |
+
<td>
|
120 |
+
<?php
|
121 |
+
do_action('acf/create_field', array(
|
122 |
+
'type' => 'text',
|
123 |
+
'name' => 'fields[' . $key . '][default_date',
|
124 |
+
'value' => $field['default_date_'],
|
125 |
+
// 'layout' => 'horizontal',
|
126 |
+
// 'choices' => array(
|
127 |
+
// 'true' => __( 'Yes', $this->domain ),
|
128 |
+
// 'false' => __( 'No', $this->domain ),
|
129 |
+
// ),
|
130 |
+
));
|
131 |
+
?>
|
132 |
+
</td>
|
133 |
+
</tr>
|
134 |
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_timeformat">
|
135 |
<td class="label">
|
136 |
<label><?php _e( 'Time Format', $this->domain ); ?></label>
|
159 |
?>
|
160 |
</td>
|
161 |
</tr>
|
162 |
+
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_default_time">
|
163 |
+
<td class="label">
|
164 |
+
<label for=""><?php _e( 'Default time:', $this->domain ); ?></label>
|
165 |
+
</td>
|
166 |
+
<td>
|
167 |
+
<?php
|
168 |
+
do_action('acf/create_field', array(
|
169 |
+
'type' => 'text',
|
170 |
+
'name' => 'fields[' . $key . '][default_time]',
|
171 |
+
'value' => $field['default_time'],
|
172 |
+
// 'layout' => 'horizontal',
|
173 |
+
// 'choices' => array(
|
174 |
+
// 'true' => __( 'Yes', $this->domain ),
|
175 |
+
// 'false' => __( 'No', $this->domain ),
|
176 |
+
// ),
|
177 |
+
));
|
178 |
+
?>
|
179 |
+
</td>
|
180 |
+
</tr>
|
181 |
<tr class="field_option field_option_<?php echo $this->name; ?> timepicker_week_number">
|
182 |
<td class="label">
|
183 |
<label for=""><?php _e( 'Display Week Number?', $this->domain ); ?></label>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: PerS
|
|
3 |
Donate link: http://soderlind.no/donate/
|
4 |
Tags: acf, custom field,datepicker,timepicker
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -128,6 +128,8 @@ The Date and Time Picker field is saved as an UNIX timestamp. Use the PHP [date]
|
|
128 |
|
129 |
|
130 |
== Changelog ==
|
|
|
|
|
131 |
= 2.1.1 =
|
132 |
* Tested & found compatible with WP 4.6.
|
133 |
= 2.1.0 =
|
3 |
Donate link: http://soderlind.no/donate/
|
4 |
Tags: acf, custom field,datepicker,timepicker
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.7
|
7 |
+
Stable tag: 2.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
128 |
|
129 |
|
130 |
== Changelog ==
|
131 |
+
= 2.1.2 =
|
132 |
+
* Tested & found compatible with WP 4.7.
|
133 |
= 2.1.1 =
|
134 |
* Tested & found compatible with WP 4.6.
|
135 |
= 2.1.0 =
|