<?php
/**
 * Condition template.
 *
 * @package Woodmart
 */

?>
<div class="xts-layout-condition-template xts-hidden">
	<div class="xts-layout-condition">
		<select class="xts-layout-condition-comparison" name="wd_layout_condition_comparison" aria-label="<?php esc_attr_e( 'Condition comparison', 'woodmart' ); ?>">
			<option value="include">
				<?php esc_html_e( 'Include', 'woodmart' ); ?>
			</option>
			<option value="exclude">
				<?php esc_html_e( 'Exclude', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-type" name="wd_layout_condition_type" data-type="shop_archive" aria-label="<?php esc_attr_e( 'Condition type', 'woodmart' ); ?>">
			<option value="all">
				<?php esc_html_e( 'All product archives', 'woodmart' ); ?>
			</option>
			<option value="shop_page">
				<?php esc_html_e( 'Shop page', 'woodmart' ); ?>
			</option>
			<option value="product_search">
				<?php esc_html_e( 'Shop search results', 'woodmart' ); ?>
			</option>
			<option value="product_cats">
				<?php esc_html_e( 'Product categories', 'woodmart' ); ?>
			</option>
			<option value="product_tags">
				<?php esc_html_e( 'Product tags', 'woodmart' ); ?>
			</option>
			<option value="product_attr">
				<?php esc_html_e( 'Product attribute', 'woodmart' ); ?>
			</option>
			<option value="product_term">
				<?php esc_html_e( 'Product term (category, tag, attribute)', 'woodmart' ); ?>
			</option>
			<option value="product_cat_children">
				<?php esc_html_e( 'Child product categories', 'woodmart' ); ?>
			</option>
			<option value="filtered_product_term">
				<?php esc_html_e( 'Filtered by attribute', 'woodmart' ); ?>
			</option>
			<option value="filtered_product_term_any">
				<?php esc_html_e( 'Filtered by any attribute', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-type" name="wd_layout_condition_type" data-type="single_product" aria-label="<?php esc_attr_e( 'Condition type', 'woodmart' ); ?>">
			<option value="all">
				<?php esc_html_e( 'All products', 'woodmart' ); ?>
			</option>
			<option value="product">
				<?php esc_html_e( 'Single product id', 'woodmart' ); ?>
			</option>
			<option value="product_cat">
				<?php esc_html_e( 'Product category', 'woodmart' ); ?>
			</option>
			<option value="product_cat_children">
				<?php esc_html_e( 'Child product categories', 'woodmart' ); ?>
			</option>
			<option value="product_tag">
				<?php esc_html_e( 'Product tag', 'woodmart' ); ?>
			</option>
			<option value="product_attr_term">
				<?php esc_html_e( 'Product attribute', 'woodmart' ); ?>
			</option>
			<option value="product_type">
				<?php esc_html_e( 'Product type', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-type" name="wd_layout_condition_type" data-type="checkout_form" aria-label="<?php esc_attr_e( 'Condition type', 'woodmart' ); ?>">
			<option value="checkout_form">
				<?php esc_html_e( 'Checkout page form', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-type" name="wd_layout_condition_type" data-type="checkout_content" aria-label="<?php esc_attr_e( 'Condition type', 'woodmart' ); ?>">
			<option value="checkout_content">
				<?php esc_html_e( 'Checkout page content', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-type" name="wd_layout_condition_type" data-type="cart" aria-label="<?php esc_attr_e( 'Condition type', 'woodmart' ); ?>">
			<option value="cart">
				<?php esc_html_e( 'Cart page', 'woodmart' ); ?>
			</option>
		</select>

		<select class="xts-layout-condition-query xts-hidden" name="wd_layout_condition_query" placeholder="<?php echo esc_attr__( 'Start typing...', 'woodmart' ); ?>" aria-label="<?php esc_attr_e( 'Condition query', 'woodmart' ); ?>"></select>

		<a href="javascript:void(0);" class="xts-layout-condition-remove xts-bordered-btn xts-color-warning xts-style-icon xts-i-close" title="<?php esc_html_e( 'Remove condition', 'woodmart' ); ?>"></a>
	</div>
</div>
