Classic_Editor::render_account_disabled_details( bool $is_loaded = true, bool $only_details = false, bool $echo = true )
Render the account disabled template.
Contents
Parameters
- $is_loaded
-
(bool) (Optional) Whether the account is loaded or not.
Default value: true
- $only_details
-
(bool) (Optional) Whether to echo only the details of the disabled template.
Default value: false
- $echo
-
(bool) (Optional) Whether to echo the template to the page or not.
Default value: true
Return
(string) The rendered template contents.
Source
File: src/Tribe/Meetings/Zoom/Classic_Editor.php
public function render_account_disabled_details( $is_loaded = true, $only_details = false, $echo = true ) {
$disabled_title = $is_loaded
? _x(
'Zoom Account Disabled',
'Header of the disabled account details section when an account is disabled.',
'events-virtual'
)
: _x(
'Zoom Account Not Found',
'Header of the account details section shown when no account is loaded.',
'events-virtual'
);
$disabled_body = $is_loaded
? _x(
'The Zoom account is disabled on your website, please use the link to go to the API settings and activate it.',
'The message to display when a Zoom account is disabled.',
'events-virtual'
)
: _x(
'The Zoom account is not found on your website, please use the link and add back the account to your site.',
'The message to display when a Zoom account is not found.',
'events-virtual'
);
$link_label = $is_loaded
? _x(
'Enable your account on the settings page',
'The label of the button to link back to the settings to enable a Zoom account.',
'events-virtual'
)
: _x(
'Add your account on the settings page',
'The label of the button to link back to the settings to add a Zoom account.',
'events-virtual'
);
if ( $only_details ) {
return $this->template->template(
'virtual-metabox/zoom/account-disabled-details',
[
'disabled_title' => $disabled_title,
'disabled_body' => $disabled_body,
'link_url' => Settings::admin_url(),
'link_label' => $link_label,
],
$echo
);
}
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
);
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |