<?php
/**
 * CPT Builder - Taxonomy Visibility tab.
 *
 * @package CptBuilder
 *
 * @var array<string, mixed> $definition
 */

namespace CptBuilder;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<h2><?php esc_html_e( 'Visibility', 'wp-powersuite' ); ?></h2>
<p class="description"><?php esc_html_e( 'Control where this taxonomy appears in the admin and on the front end.', 'wp-powersuite' ); ?></p>

<table class="form-table" role="presentation">
	<tbody>
		<?php
		cptb_tax_arg_checkbox( $definition, 'public', __( 'Public', 'wp-powersuite' ), __( 'Make this taxonomy available on the front end and in queries.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'publicly_queryable', __( 'Publicly queryable', 'wp-powersuite' ), __( 'Allow front-end queries by term.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_ui', __( 'Show admin UI', 'wp-powersuite' ), __( 'Generate a default management UI in the admin.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_in_menu', __( 'Show in menu', 'wp-powersuite' ), __( 'Show the taxonomy under its post type menu.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_in_nav_menus', __( 'Show in nav menus', 'wp-powersuite' ), __( 'Make terms available for selection in navigation menus.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_tagcloud', __( 'Show in tag cloud', 'wp-powersuite' ), __( 'Allow this taxonomy in the Tag Cloud widget.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_in_quick_edit', __( 'Show in Quick Edit', 'wp-powersuite' ), __( 'Show the taxonomy in the Quick/Bulk Edit panel.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'show_admin_column', __( 'Show admin column', 'wp-powersuite' ), __( 'Add a column for this taxonomy to the post type list table.', 'wp-powersuite' ) );
		cptb_tax_arg_checkbox( $definition, 'sort', __( 'Remember term order', 'wp-powersuite' ), __( 'Remember the order in which terms are added to objects.', 'wp-powersuite' ) );
		?>
	</tbody>
</table>
