36 lines
		
	
	
		
			863 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			863 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /**
 | |
|  *  html-admin-tools
 | |
|  *
 | |
|  *  View to output admin tools for both archive and single
 | |
|  *
 | |
|  *  @date    20/10/17
 | |
|  *  @since   5.6.3
 | |
|  *
 | |
|  *  @param   string $screen_id The screen ID used to display metaboxes
 | |
|  *  @param   string $active The active Tool
 | |
|  *  @return  n/a
 | |
|  */
 | |
| 
 | |
| $class = $active ? 'single' : 'grid';
 | |
| $tool  = $active ? ' tool-' . $active : '';
 | |
| ?>
 | |
| <div id="acf-admin-tools" class="wrap<?php echo esc_attr( $tool ); ?>">
 | |
| 
 | |
| 	<h1><?php _e( 'Tools', 'acf' ); ?> <?php
 | |
| 	if ( $active ) :
 | |
| 		?>
 | |
| 		<a class="page-title-action" href="<?php echo acf_get_admin_tools_url(); ?>"><?php _e( 'Back to all tools', 'acf' ); ?></a><?php endif; ?></h1>
 | |
| 
 | |
| 	<div class="acf-meta-box-wrap -<?php echo $class; ?>">
 | |
| 		<?php do_meta_boxes( $screen_id, 'normal', '' ); ?>
 | |
| 	</div>
 | |
| 
 | |
| 	<?php
 | |
| 	if ( ! acf_is_pro() ) {
 | |
| 		acf_get_view( 'acf-field-group/pro-features' );
 | |
| 	}
 | |
| 	?>
 | |
| </div>
 |