tools.php
22 lines
| 1 | <?php |
| 2 | /** |
| 3 | * View to output admin tools for both archive and single |
| 4 | * |
| 5 | * @package wordpress/secure-custom-fields |
| 6 | */ |
| 7 | |
| 8 | $class = $active ? 'single' : 'grid'; |
| 9 | $tool = $active ? ' tool-' . $active : ''; |
| 10 | ?> |
| 11 | <div id="acf-admin-tools" class="wrap<?php echo esc_attr( $tool ); ?>"> |
| 12 | |
| 13 | <h1><?php esc_html_e( 'Tools', 'secure-custom-fields' ); ?> <?php |
| 14 | if ( $active ) : |
| 15 | ?> |
| 16 | <a class="page-title-action" href="<?php echo esc_url( acf_get_admin_tools_url() ); ?>"><?php esc_html_e( 'Back to all tools', 'secure-custom-fields' ); ?></a><?php endif; ?></h1> |
| 17 | |
| 18 | <div class="acf-meta-box-wrap -<?php echo esc_attr( $class ); ?>"> |
| 19 | <?php do_meta_boxes( $screen_id, 'normal', '' ); ?> |
| 20 | </div> |
| 21 | </div> |
| 22 |