Classic_Editor::render_no_hosts_found( bool $echo = true )

Render no hosts found template.


Parameters

$echo

(bool) (Optional) Whether to echo the template to the page or not.

Default value: true


Top ↑

Return

(string) The rendered template contents.


Top ↑

Source

File: src/Tribe/Meetings/Zoom/Classic_Editor.php

	public function render_no_hosts_found( $echo = true ) {
		$disabled_title = _x(
				'No Hosts Found',
				'Header shown if no hosts are found before generating a Zoom meeting or webinar.',
				'events-virtual'
			);

		$disabled_body = _x(
				'The Zoom account could not load any hosts, please follow the link and refresh your account and try again.',
				'The message shown if no hosts are found before generating a Zoom meeting or webinar.',
				'events-virtual'
			);

		$link_label = _x(
				'Refresh your account on the settings page',
				'The label of the button to link back to the settings to refresh a zoom account.',
				'events-virtual'
			);

		return $this->template->template(
			'virtual-metabox/zoom/account-disabled',
			[
				'disabled_title' => $disabled_title,
				'disabled_body'  => $disabled_body,
				'link_url'       => Settings::admin_url(),
				'link_label'     => $link_label,
				'echo'           => true,
			],
			$echo
		);
	}

Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.