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 

/ admin / settings-templates / indexer-settings.php

<div
	class="jet-smart-filters-settings-page jet-smart-filters-settings-page__general"
>
	<cx-vui-switcher
		name="use_indexed_filters"
		label="<?php _e( 'Use Indexed filters', 'jet-smart-filters' ); ?>"
		description="<?php _e( 'Enable indexed filters functionality', 'jet-smart-filters' ); ?>"
		:wrapper-css="[ 'equalwidth' ]"
		return-true="true"
		return-false="false"
		v-model="pageOptions.use_indexed_filters.value">
	</cx-vui-switcher>

	<div
		class="avaliable-controls"
		v-if="pageOptions.use_indexed_filters.value === 'true'"
	>
		<div class="avaliable-controls__header">
			<div class="cx-vui-title"><?php _e( 'Index Post Types', 'jet-smart-filters' ); ?></div>
			<div class="cx-vui-subtitle"><?php _e( 'List post types that will be indexed', 'jet-smart-filters' ); ?></div>
		</div>
		<div class="avaliable-controls__list">
			<div
				class="avaliable-controls__item"
				v-for="( value, prop, index ) in pageOptions.avaliable_post_types.options"
			>
				<cx-vui-switcher
					:key="index"
					:name="`avaliable-post-types-${prop}`"
					:label="value"
					:wrapper-css="[ 'equalwidth' ]"
					return-true="true"
					return-false="false"
					v-model="pageOptions.avaliable_post_types.value[prop]"
				>
				</cx-vui-switcher>
			</div>
		</div>
	</div>

</div>