tools.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package ACF |
| 4 | * @author WP Engine |
| 5 | * |
| 6 | * © 2026 Advanced Custom Fields (ACF®). All rights reserved. |
| 7 | * "ACF" is a trademark of WP Engine. |
| 8 | * Licensed under the GNU General Public License v2 or later. |
| 9 | * https://www.gnu.org/licenses/gpl-2.0.html |
| 10 | */ |
| 11 | |
| 12 | $class = $active ? 'single' : 'grid'; |
| 13 | $tool = $active ? ' tool-' . $active : ''; |
| 14 | ?> |
| 15 | <div id="acf-admin-tools" class="wrap<?php echo esc_attr( $tool ); ?>"> |
| 16 | |
| 17 | <h1> |
| 18 | <?php esc_html_e( 'Tools', 'acf' ); ?> |
| 19 | <?php if ( $active ) { ?> |
| 20 | <a class="page-title-action" href="<?php echo esc_url( acf_get_admin_tools_url() ); ?>"><?php esc_html_e( 'Back to all tools', 'acf' ); ?></a> |
| 21 | <?php } ?> |
| 22 | </h1> |
| 23 | |
| 24 | <div class="acf-meta-box-wrap -<?php echo esc_attr( $class ); ?>"> |
| 25 | <?php do_meta_boxes( $screen_id, 'normal', '' ); ?> |
| 26 | </div> |
| 27 | |
| 28 | <?php |
| 29 | if ( ! acf_is_pro() ) { |
| 30 | acf_get_view( 'acf-field-group/pro-features' ); |
| 31 | } |
| 32 | ?> |
| 33 | </div> |
| 34 |