Block::event_schedule_block_message()
Outputs a message for the Event Schedule Block.
Displays an informative message about the necessity of choosing a date with sessions. The message is localized and includes a link to a KB article.
Return
(string) The HTML output with the message.
Source
File: src/Conference/Editor/Block.php
public function event_schedule_block_message() {
$kb_link = 'https://evnt.is/1bd6';
ob_start();
?>
<div class="tec-event-schedule-manager__schedule-block--message-wrap">
<div class="tec-event-schedule-manager__schedule-block-message-title-wrap">
<?php
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
// phpcs:disable TEC.XSS.EscapeOutput.OutputNotEscaped
echo $this->get_icon();
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
// phpcs:enable TEC.XSS.EscapeOutput.OutputNotEscaped
?>
<h2>
<?php echo esc_html_x( 'Event Schedule', 'The heading for the Event Schedule block.', 'event-schedule-manager' ); ?>
</h2>
</div>
<?php
printf(
/* Translators: %1$s - open link tag, %2$s - close link tag. */
esc_html_x( 'Select a date(s) with at least one session to display the schedule. %1$sLearn more%2$s.', 'No sessions found message for Event Schedule block.', 'event-schedule-manager' ),
'<a href="' . esc_url( $kb_link ) . '" class="tec-event-schedule-manager__schedule-block-message--link" target="_blank">',
'</a>'
);
?>
</div>
<?php
return ob_get_clean();
}
Changelog
| Version | Description |
|---|---|
| 1.1.0 | Introduced. |