Inventory_Presser_Options::callback_sort_vehicles_by()

callback_sort_vehicles_by


Description Description

Output the controls that create the default vehicle sort setting.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-dealership-options.php

		) );

		$selected_val = null;
		if ( isset( $this->option['price_display'] ) )
		{
			$selected_val = $this->option['price_display'];
		}

		printf(
			'<select name="%s[price_display]" id="price_display">',
			INVP::OPTION_NAME
		);
		foreach( $price_display_options as $val => $name )
		{
			printf(
				'<option value="%s"%s>%s</option>',
				$val,
				selected( $val, $selected_val, false ),
				$name
			);
		}
		printf(
			'</select><p class="description" id="%s[price_display]-description">&quot;%s&quot; %s.</p>',
			INVP::OPTION_NAME,
			__( 'Call for Price', 'inventory-presser' ),
			__( 'will display for any price that is zero', 'inventory-presser' )
		);
	}

	/**
	 * callback_show_all_taxonomies
	 * 
	 * Output the controls that create the Show all Taxonomies setting.
	 *
	 * @return void