html-admin-tools.php 774 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * html-admin-tools
  4. *
  5. * View to output admin tools for both archive and single
  6. *
  7. * @date 20/10/17
  8. * @since 5.6.3
  9. *
  10. * @param string $screen_id The screen ID used to display metaboxes
  11. * @param string $active The active Tool
  12. * @return n/a
  13. */
  14. $class = $active ? 'single' : 'grid';
  15. $tool = $active ? ' tool-' . $active : '';
  16. ?>
  17. <div id="acf-admin-tools" class="wrap<?php echo esc_attr( $tool ); ?>">
  18. <h1><?php _e( 'Tools', 'acf' ); ?> <?php
  19. if ( $active ) :
  20. ?>
  21. <a class="page-title-action" href="<?php echo acf_get_admin_tools_url(); ?>"><?php _e( 'Back to all tools', 'acf' ); ?></a><?php endif; ?></h1>
  22. <div class="acf-meta-box-wrap -<?php echo $class; ?>">
  23. <?php do_meta_boxes( $screen_id, 'normal', '' ); ?>
  24. </div>
  25. </div>