header-icon.php
5 years ago
header.php
5 years ago
section.php
5 years ago
setting-date.php
5 years ago
setting-label-icons.php
5 years ago
setting-label.php
5 years ago
setting-message.php
5 years ago
setting-pro.php
5 years ago
setting-width.php
5 years ago
setting-date.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | ?> |
| 8 | <table class="ac-column-setting<?= $this->name ? esc_attr( ' ac-column-setting--' . $this->name ) : ''; ?>" data-setting="<?= esc_attr( $this->name ); ?>"> |
| 9 | <tr> |
| 10 | <td class="col-label"> |
| 11 | <label for="<?= esc_attr( $this->for ); ?>"> |
| 12 | <span class="label<?= esc_attr( $this->tooltip ? ' tooltip' : '' ); ?>"> |
| 13 | <?= $this->label; ?> |
| 14 | </span> |
| 15 | |
| 16 | <?php if ( $this->tooltip ) : ?> |
| 17 | <div class="tooltip"> |
| 18 | <?= $this->tooltip; ?> |
| 19 | </div> |
| 20 | <?php endif; ?> |
| 21 | </label> |
| 22 | </td> |
| 23 | <td class="col-input"> |
| 24 | <div class="ac-setting-input ac-setting-input-date"> |
| 25 | <div class="radio-labels vertical"> |
| 26 | |
| 27 | <?php foreach ( $this->date_options as $key => $label ) : ?> |
| 28 | <?php |
| 29 | $value = $key === 'custom' |
| 30 | ? $this->date_format |
| 31 | : $key; |
| 32 | ?> |
| 33 | <label> |
| 34 | <input class="<?= esc_attr( $value ); ?>" type="radio" <?= $key === 'custom' ? 'data-custom' : '' ?> name="<?= $this->setting->get_name(); ?>" value="<?= esc_attr( $value ); ?>"> |
| 35 | <?= $label; ?> |
| 36 | </label> |
| 37 | <?php endforeach; ?> |
| 38 | |
| 39 | </div> |
| 40 | <p class="help-msg"></p> |
| 41 | <input type="hidden" class="ac-setting-input-date__value" data-value-input name="<?= $this->setting->get_name(); ?>" value="<?= $this->date_format; ?>"> |
| 42 | </div> |
| 43 | </td> |
| 44 | </tr> |
| 45 | </table> |