Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions pressbooks-shortcode-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ function glossaryDefinitionShortcodeHandler( $atts = [], $content = null ) {
*/
function videopickerShortcodeHandler( $atts = [], $content = null ) {
return '<div class="textbox interactive-content">
<p><span class="interactive-content__icon"></span>An interactive video picker element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.</p>
<p><span class="interactive-content__icon"></span>'
. esc_html__( 'An interactive video picker element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.', 'pressbooks-shortcode-handler' )
. '</p>
</div>';
}

Expand All @@ -118,7 +120,9 @@ function choosedatasetShortcodeHandler( $atts = [], $content = null ) {
return '<div id="' . $id . '" class="chooseDataset">
' . $header . '
<div class="textbox interactive-content">
<p><span class="interactive-content__icon"></span>An interactive dataset picker element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.</p>
<p><span class="interactive-content__icon"></span>'
. esc_html__( 'An interactive dataset picker element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.', 'pressbooks-shortcode-handler' )
. '</p>
</div></div>';
}

Expand All @@ -130,6 +134,8 @@ function choosedatasetShortcodeHandler( $atts = [], $content = null ) {
*/
function ohmQuestionShortcodeHandler( $atts = [], $content = null ) {
return '<div class="textbox interactive-content">
<p><span class="interactive-content__icon"></span>An interactive online homework element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.</p>
<p><span class="interactive-content__icon"></span>'
. esc_html__( 'An interactive online homework element has been excluded from the printed version of the text. To see the interactive element that was excluded, please visit the courseware online.', 'pressbooks-shortcode-handler' )
. '</p>
</div>';
}