<?php
/**
 * Templates Keywords Filter
 */

?>
<#
	if ( ! _.isEmpty( keywords ) ) {
#>
<div>
	<label><?php echo wp_kses_post( __( 'Filter by Widget / Addon', 'premium-addons-for-elementor' ) ); ?></label>
	<select id="elementor-template-library-filter-subtype" class="elementor-template-library-filter-select premium-library-keywords" data-elementor-filter="subtype">
		<option value=""><?php echo wp_kses_post( __( 'All Widgets/Addons', 'premium-addons-for-elementor' ) ); ?></option>
		<# _.each( keywords, function( title, slug ) { #>
			<option value="{{ slug }}" <# if (slug === activeKeyword) { #>selected<# } #>>{{ title }}</option>
		<# }); #>
	</select>
</div>
<#
	}
#>
