Location_Search_Field::render( Tribe__Template $template )

Renders the “Location” search field in the View.


Parameters #

$template

(Tribe__Template) (Required) Current instance of the Tribe__Template that's being rendered.


Top ↑

Return #

(string)


Top ↑

Source #

File: src/Tribe/Views/V2/Views/Partials/Location_Search_Field.php

	public function render( \Tribe__Template $template ) {
		$disable_tribe_bar    = tribe_is_truthy( tribe_get_option( 'tribeDisableTribeBar', false ) );
		$hide_location_search = tribe_is_truthy( tribe_get_option( 'hideLocationSearch', false ) );

		if ( $disable_tribe_bar || $hide_location_search || tribe_is_using_basic_gmaps_api() ) {
			return '';
		}

		return $template->template( 'location/form-field' );
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.5 Introduced.