Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-smart-filters   php

Repository URL to install this package:

Version: 2.2.1 

/ filters / radio-item.php

<?php
/**
 * Checkbox list item template
 */

$checked_icon = apply_filters( 'jet-smart-filters/templates/radio/checked-icon', 'fa fa-check' );

?>
<div class="jet-radio-list__row jet-filter-row<?php echo $extra_classes; ?>">
	<label class="jet-radio-list__item">
		<input
			type="radio"
			class="jet-radio-list__input"
			autocomplete="off"
			name="<?php echo $query_var; ?>"
			value="<?php echo $value; ?>"
			data-label="<?php echo $label; ?>"
			<?php echo $checked; ?>
		>
		<div class="jet-radio-list__button">
			<?php if ( $show_decorator ) : ?>
				<span class="jet-radio-list__decorator"><i class="jet-radio-list__checked-icon <?php echo $checked_icon ?>"></i></span>
			<?php endif; ?>
			<span class="jet-radio-list__label"><?php echo $label; ?></span>
			<?php
				// print counter if not all option
				if ( $value !== 'all' ) {
					do_action('jet-smart-filter/templates/counter', $args );
				}
			?>
		</div>
	</label>
</div>