help-tab
5 years ago
page
5 years ago
edit-actions.php
5 years ago
edit-addon.php
5 years ago
edit-column.php
5 years ago
edit-columns.php
5 years ago
edit-menu.php
5 years ago
edit-submenu.php
5 years ago
edit-tabmenu.php
5 years ago
loading-message.php
5 years ago
menu.php
5 years ago
mini-tooltip.php
5 years ago
modal-pro.php
5 years ago
side-banner.php
5 years ago
side-feedback.php
5 years ago
side-support.php
5 years ago
table.php
5 years ago
tooltip-body.php
5 years ago
tooltip-label.php
5 years ago
wrap.php
5 years ago
edit-column.php
102 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * @global \AC\Column $column |
| 9 | */ |
| 10 | |
| 11 | $column = $this->column; |
| 12 | |
| 13 | ?> |
| 14 | |
| 15 | <form class="ac-column ac-<?= esc_attr( $column->get_type() ); ?>" |
| 16 | data-type="<?= esc_attr( $column->get_type() ); ?>" |
| 17 | data-original="<?= esc_attr( $column->is_original() ); ?>" |
| 18 | data-column-name="<?= esc_attr( $column->get_name() ); ?>"> |
| 19 | |
| 20 | <div class="ac-column-header"> |
| 21 | <table class="widefat"> |
| 22 | <tbody> |
| 23 | <tr> |
| 24 | <td class="column_sort"> |
| 25 | <span class="cpacicon-move"></span> |
| 26 | </td> |
| 27 | <td class="column_label"> |
| 28 | <div class="inner"> |
| 29 | <div class="meta"> |
| 30 | <?php |
| 31 | |
| 32 | foreach ( $column->get_settings() as $setting ) { |
| 33 | if ( $setting instanceof \AC\Settings\Column ) { |
| 34 | echo $setting->render_header() . "\n"; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Fires in the meta-element for column options, which is displayed right after the column label |
| 40 | * |
| 41 | * @param \AC\Column $column_instance Column class instance |
| 42 | * |
| 43 | * @since 2.0 |
| 44 | */ |
| 45 | do_action( 'ac/column/header', $column ); |
| 46 | |
| 47 | ?> |
| 48 | </div> |
| 49 | <a class="toggle" data-toggle="column"> |
| 50 | <?= $column->get_setting( 'label' )->get_value(); ?> |
| 51 | </a> |
| 52 | <small class="column-id"><?= sprintf( '%s: %s', __( 'Name', 'codepress-admin-columns' ), $column->get_name() ); ?></small> |
| 53 | <small class="column-type"><?= sprintf( '%s: %s', __( 'Type', 'codepress-admin-columns' ), $column->get_type() ); ?></small> |
| 54 | <a class="edit-button" data-toggle="column"><?php _e( 'Edit', 'codepress-admin-columns' ); ?></a> |
| 55 | <a class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a> |
| 56 | <?php if ( ! $column->is_original() ) : ?> |
| 57 | <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a> |
| 58 | <?php endif; ?> |
| 59 | <a class="remove-button" data-remove-column><?php _e( 'Remove', 'codepress-admin-columns' ); ?></a> |
| 60 | </div> |
| 61 | </td> |
| 62 | <td class="column_type"> |
| 63 | <div class="inner" data-toggle="column"> |
| 64 | <?= ac_helper()->html->strip_attributes( $column->get_label(), [ 'style', 'class' ] ); ?> |
| 65 | </div> |
| 66 | </td> |
| 67 | <td class="column_edit" data-toggle="column"> |
| 68 | </td> |
| 69 | </tr> |
| 70 | </tbody> |
| 71 | </table> |
| 72 | </div> |
| 73 | |
| 74 | <div class="ac-column-body"> |
| 75 | <div class="ac-column-settings"> |
| 76 | |
| 77 | <?php |
| 78 | |
| 79 | foreach ( $column->get_settings() as $setting ) { |
| 80 | echo $setting->render() . "\n"; |
| 81 | } |
| 82 | |
| 83 | ?> |
| 84 | |
| 85 | <table class="ac-column-setting ac-column-setting-actions"> |
| 86 | <tr> |
| 87 | <td class="col-label"></td> |
| 88 | <td class="col-settings"> |
| 89 | <p> |
| 90 | <a href="#" class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a> |
| 91 | <?php if ( ! $column->is_original() ) : ?> |
| 92 | <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a> |
| 93 | <?php endif; ?> |
| 94 | <a href="#" class="remove-button" data-remove-column><?php _e( 'Remove' ); ?></a> |
| 95 | </p> |
| 96 | </td> |
| 97 | </tr> |
| 98 | |
| 99 | </table> |
| 100 | </div> |
| 101 | </div> |
| 102 | </form> |