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
section.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | ?> |
| 8 | <table class="ac-column-setting<?php echo $this->name ? esc_attr( ' ac-column-setting--' . $this->name ) : ''; ?>" data-setting="<?php echo esc_attr( $this->name ); ?>"> |
| 9 | <tr> |
| 10 | <td class="col-label"> |
| 11 | <label for="<?php echo esc_attr( $this->for ); ?>"> |
| 12 | <span class="label <?php echo esc_attr( $this->tooltip ? 'tooltip' : '' ); ?>"> |
| 13 | <?php echo $this->label; ?> |
| 14 | </span> |
| 15 | |
| 16 | <?php if ( $this->tooltip ) : ?> |
| 17 | <div class="tooltip"> |
| 18 | <?php echo $this->tooltip; ?> |
| 19 | </div> |
| 20 | <?php endif; ?> |
| 21 | |
| 22 | <?php if ( $this->instructions ): ?> |
| 23 | <?php $id = $this->name . uniqid(); ?> |
| 24 | <a class="ac-pointer ac-column-setting__instructions" rel="p-instruction-<?= $id; ?>" data-pos="right" data-width="300"> |
| 25 | <img src="<?= AC()->get_url(); ?>assets/images/question.svg" alt="?"> |
| 26 | </a> |
| 27 | <div id="p-instruction-<?= $id; ?>" style="display:none;"> |
| 28 | <?= $this->instructions; ?> |
| 29 | </div> |
| 30 | <?php endif; ?> |
| 31 | |
| 32 | <?php if ( $this->read_more ) : ?> |
| 33 | <a href="<?php echo esc_url( $this->read_more ); ?>" target="_blank" class="more-link"> |
| 34 | <span class="dashicons dashicons-admin-links"></span> |
| 35 | </a> |
| 36 | <?php endif; ?> |
| 37 | </label> |
| 38 | </td> |
| 39 | <td class="col-input"> |
| 40 | <?php if ( $this->setting ) : ?> |
| 41 | <div class="ac-setting-input"> |
| 42 | <?php echo $this->setting; ?> |
| 43 | </div> |
| 44 | <?php endif; ?> |
| 45 | |
| 46 | <?php |
| 47 | |
| 48 | if ( is_array( $this->sections ) ) { |
| 49 | foreach ( $this->sections as $section ) { |
| 50 | echo $section; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | ?> |
| 55 | </td> |
| 56 | </tr> |
| 57 | </table> |