Inventory_Presser_Vehicle::carfax_icon_svg()

carfax_icon_svg


Description Description

Returns an SVG element that is one of various Carfax icons, usually containing the text, "SHOW ME THE Carfax," but sometimes also adorned with a green banner that says "GOOD VALUE."

A setting this plugin provides allows users to cede control of the

<svg> payload to Carfax, by using an SVG provided by a URL instead of the .svg files that ship with this plugin.


Top ↑

Return Return

(string) An <svg> HTML element or empty string


Top ↑

Source Source

File: includes/class-vehicle.php

		 * Filter callback. Helps WordPress understand which post meta values 
		 * should be treated as numbers. By default, they are all strings, and 
		 * strings sort differently than numbers.
		 *
		 * @param  string $value
		 * @param  string $meta_key
		 * @return string Returns the input $value or the string 'meta_value_num'
		 */
		function indicate_post_meta_values_are_numbers( $value, $meta_key )
		{
			return ( INVP::meta_value_is_number( $meta_key ) ? 'meta_value_num' : $value );
		}
		
		/**
		 * is_carfax_one_owner
		 * 
		 * Answers the question, "is this vehicle designated a "one owner" by 
		 * Carfax?
		 *
		 * @deprecated 12.0.0 Use invp_is_carfax_one_owner() instead.
		 * @return bool True if this vehicle is designated as a "one owner" by Carfax
		 */
		function is_carfax_one_owner()
		{
			return invp_is_carfax_one_owner( $this->post_ID );
		}

		/**
		 * location_sentence
		 * 
		 * Creates a short sentence identifying the dealership address where
		 * this vehicle is located. If there is only one term in the locations
		 * taxonomy containing vehicles, this method returns an empty string.
		 *
		 * @deprecated 12.0.0 Use invp_get_the_location_sentence() instead.
		 * @return string An HTML <div> element containing a sentence that identifies the lot where this vehicle is located.
		 */
		function location_sentence()
		{
			return invp_get_the_location_sentence( $this->post_ID );
		}