Page_API::get_no_facebook_app_id_message_content()

Get the message to content for no Facebook App ID.


Return

(TribeEventsVirtualMeetingsFacebookarray<string|TribeEventsVirtualMeetingsFacebookmixed>) An array of the content for the template to display no Facebook App ID.


Top ↑

Source

File: src/Tribe/Meetings/Facebook/Page_API.php

	public function get_no_facebook_app_id_message_content() {
		return [
			'path'  => 'virtual-metabox/facebook/autodetect-message',
			'field' => [
				'classes_wrap' => [ 'tribe-dependent', 'tribe-events-virtual-meetings-autodetect-facebook-video__message-wrap', 'error', 'inline' ],
				'message'      => sprintf(
					'%1$s <a href="%2$s" target="_blank">%3$s</a> %4$s',
					esc_html_x(
						'No connected Facebook Pages found. You must',
					'The start of the message for smart url/autodetect when there is no Facebook App ID.',
					'events-virtual'
					),
					Settings::admin_url(),
					esc_html_x(
						'connect a Facebook App',
						'The link text in message for smart url/autodetect when there is no Facebook App ID.',
						'events-virtual'
					),
					esc_html_x(
						'to your site before you can add a Facebook video to an event.',
						'The end of the message for smart url/autodetect when there is no Facebook App ID.',
						'events-virtual'
					)
				),
				'wrap_attrs'   => [
					'data-depends'   => '#tribe-events-virtual-autodetect-source',
					'data-condition' => Facebook_Meta::$autodetect_fb_video_id,
				],
			]
		];
	}

Top ↑

Changelog

Changelog
Version Description
1.8.0 Introduced.