<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom_field_id='<?php echo $this->custom_field->id; ?>'>

	<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
		<?php echo esc_html( $this->custom_field->name ); ?>
	</div>

	<?php foreach ( $this->sidebar_custom_fields[ $this->custom_field->id ] as $field_value => $field_count ) { ?>

		<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is_custom_field_value_selected( $field_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom_field_id='<?php echo $this->custom_field->id; ?>' data-value='<?php echo $field_value; ?>'>

			<input type='radio' name='<?php echo esc_attr( $this->custom_field->id ); ?>' value='<?php echo $field_value; ?>' <?php echo ( $this->is_custom_field_value_selected( $field_value ) ? 'checked' : '' ); ?> >

			<label class='ewd-upcp-catalog-sidebar-custom-field-value-label'> 

				<span><?php echo $field_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field_count; ?>)</span></span>
	
			</label>

		</div>

	<?php } ?>

</div>