callouts
4 months ago
upgrade
4 months ago
widgets
4 months ago
components-admin.php
4 months ago
help-addons-row.php
4 months ago
help-addons.php
4 months ago
help.php
4 months ago
postbox-header.php
4 months ago
settings-reset.php
4 months ago
settings-settings.php
4 months ago
settings-tools.php
4 months ago
settings.php
4 months ago
setup-add.php
4 months ago
setup-edit.php
4 months ago
shortcode.php
4 months ago
view.php
4 months ago
postbox-header.php
50 lines
| 1 | <?php |
| 2 | |
| 3 | // Don't load directly. |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | die( '-1' ); |
| 6 | } |
| 7 | |
| 8 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound |
| 9 | |
| 10 | /** |
| 11 | * @var string $title The header title. |
| 12 | */ |
| 13 | |
| 14 | $box_id = 'pods-ui-postbox-header-' . sanitize_title( $title ); |
| 15 | ?> |
| 16 | |
| 17 | <?php if ( version_compare( $GLOBALS['wp_version'], '5.5', '>=' ) ) : ?> |
| 18 | <div class="postbox-header"> |
| 19 | <h2 class="hndle"> |
| 20 | <span><?php echo esc_html( $title ); ?></span> |
| 21 | </h2> |
| 22 | <div class="handle-actions hide-if-no-js"> |
| 23 | <?php |
| 24 | /* We need to build support for this later. |
| 25 | <button type="button" class="handle-order-higher" aria-disabled="false" aria-describedby="<?php echo esc_attr( $box_id ); ?>-handle-order-higher-description"> |
| 26 | <span class="screen-reader-text"><?php esc_html_e( 'Move up', 'pods' ); ?></span> |
| 27 | <span class="order-higher-indicator" aria-hidden="true"></span> |
| 28 | </button> |
| 29 | <span class="hidden" id="<?php echo esc_attr( $box_id ); ?>-handle-order-higher-description"><?php esc_html_e( 'Move box up', 'pods' ); ?></span> |
| 30 | <button type="button" class="handle-order-lower" aria-disabled="false" aria-describedby="<?php echo esc_attr( $box_id ); ?>-handle-order-lower-description"> |
| 31 | <span class="screen-reader-text"><?php esc_html_e( 'Move down', 'pods' ); ?></span> |
| 32 | <span class="order-lower-indicator" aria-hidden="true"></span> |
| 33 | </button> |
| 34 | */ |
| 35 | ?> |
| 36 | <span class="hidden" id="<?php echo esc_attr( $box_id ); ?>-handle-order-lower-description"><?php esc_html_e( 'Move box down', 'pods' ); ?></span> |
| 37 | <button type="button" class="handlediv" aria-expanded="true"> |
| 38 | <span class="screen-reader-text"><?php esc_html_e( 'Toggle panel', 'pods' ); ?></span> |
| 39 | <span class="toggle-indicator" aria-hidden="true"></span> |
| 40 | </button> |
| 41 | </div> |
| 42 | </div> |
| 43 | <?php else : ?> |
| 44 | <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'pods' ); ?>"><br></div> |
| 45 | <h3 class="hndle"> |
| 46 | <span><?php echo esc_html( $title ); ?></span> |
| 47 | </h3> |
| 48 | <?php endif; ?> |
| 49 | <?php |
| 50 |