<?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', 'wppowersuite-lite' ); ?></h2>
<p class="description"><?php esc_html_e( 'Control where this taxonomy appears in the admin and on the front end.', 'wppowersuite-lite' ); ?></p>

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