_dealer_settings::sort_vehicles_by_callback()


Source

File: includes/class-dealership-options.php

	}
	
	/**
	 * callback_include_sold_vehicles
	 * 
	 * Outputs a checkbox control for the Include Sold Vehicles setting.
	 *
	 * @return void
	 */
	function callback_include_sold_vehicles()
	{
		$this->boolean_checkbox_setting_callback(
			'include_sold_vehicles',
			__( 'Include sold vehicles in listings and search results', 'inventory-presser' )
		);
	}
	
	/**
	 * callback_mapbox_public_token
	 * 
	 * Outputs a text box control for the MapBox Public Token setting
	 *
	 * @return void
	 */
	function callback_mapbox_public_token()
	{
		printf(
			'<p><input type="text" name="%1$s" class="regular-text code" id="%1$s" value="%2$s" /></p><p class="description">%3$s <a href="%4$s">%5$s</a> %6$s</p>',
			'inventory_presser[mapbox_public_token]',
			isset( $this->option['mapbox_public_token'] ) ? $this->option['mapbox_public_token'] : '',
			__( 'Obtain a key at', 'inventory-presser' ),
			'https://mapbox.com/',
			'mapbox.com',
			__( 'to use the Map widget.', 'inventory-presser' )
		);
	}

	
	/**
	 * callback_price_display
	 * 
	 * Outputs a dropdown select control for the Price Display setting
	 *