Skip to content

Commit

Permalink
removed b tag from remaining legacy html
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Dec 4, 2024
1 parent 110706f commit e7bf09c
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Modules/Exercise/Assignment/class.ilExAssignmentInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function getScheduleInfo(): array
}

if ($state->hasSubmissionStarted()) {
$ret["time_to_send"] = ["txt" => $lng->txt("exc_time_to_send"), "value" => "<b>" . $state->getRemainingTimePresentation() . "</b>"];
$ret["time_to_send"] = ["txt" => $lng->txt("exc_time_to_send"), "value" => "<strong>" . $state->getRemainingTimePresentation() . "</strong>"];
}
return $ret;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- END check_col -->
<!-- BEGIN td -->
<td class="std" valign="top">
<!-- BEGIN link_start --><a href="{LINK_VIEW_TERM}"><b><!-- END link_start -->{TEXT}<!-- BEGIN link_end --></b></a><a name="{ANCHOR_TERM}"/><!-- END link_end -->
<!-- BEGIN link_start --><a href="{LINK_VIEW_TERM}"><strong><!-- END link_start -->{TEXT}<!-- BEGIN link_end --></strong></a><a name="{ANCHOR_TERM}"/><!-- END link_end -->
</td>
<!-- END td -->
<td class="std" valign="top">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ public function handleCodeParagraph(
ilFileUtils::makeDirParents($directory);
$file = $directory . "/" . $title;
if (!($fp = fopen($file, "w+"))) {
die("<b>Error</b>: Could not open \"" . $file . "\" for writing" .
" in <b>" . __FILE__ . "</b> on line <b>" . __LINE__ . "</b><br />");
die("<strong>Error</strong>: Could not open \"" . $file . "\" for writing" .
" in <strong>" . __FILE__ . "</strong> on line <strong>" . __LINE__ . "</strong><br />");
}
chmod($file, 0770);
fwrite($fp, $text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2314,8 +2314,8 @@ public function handleCodeParagraph(
ilFileUtils::makeDirParents($directory);
$file = $directory . "/" . $title;
if (!($fp = fopen($file, "w+"))) {
die("<b>Error</b>: Could not open \"" . $file . "\" for writing" .
" in <b>" . __FILE__ . "</b> on line <b>" . __LINE__ . "</b><br />");
die("<strong>Error</strong>: Could not open \"" . $file . "\" for writing" .
" in <strong>" . __FILE__ . "</strong> on line <strong>" . __LINE__ . "</strong><br />");
}
chmod($file, 0770);
fwrite($fp, $text);
Expand Down
8 changes: 4 additions & 4 deletions Modules/LearningModule/classes/class.ilLMPageObjectGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,18 +464,18 @@ public function initEditLayoutForm(): void
if (is_file($im = ilUtil::getImagePath("layout_" . $this->content_object->getLayout() . ".png"))) {
$im_tag = ilUtil::img($im, $this->content_object->getLayout());
}
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><b>" .
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
$lng->txt("cont_lm_default_layout") .
"</b>: " . $lng->txt("cont_layout_" . $this->content_object->getLayout()) .
"</strong>: " . $lng->txt("cont_layout_" . $this->content_object->getLayout()) .
"</td></tr></table>", ""));

foreach (ilObjContentObject::getAvailableLayouts() as $l) {
$im_tag = "";
if (is_file($im = ilUtil::getImagePath("layout_" . $l . ".png"))) {
$im_tag = ilUtil::img($im, $l);
}
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><b>" .
$lng->txt("cont_layout_" . $l) . "</b>: " . $lng->txt("cont_layout_" . $l . "_desc") .
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
$lng->txt("cont_layout_" . $l) . "</strong>: " . $lng->txt("cont_layout_" . $l . "_desc") .
"</td></tr></table>", $l));
}

Expand Down
4 changes: 2 additions & 2 deletions Modules/LearningModule/classes/class.ilLMPagesTableGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ protected function fillRow(array $a_set): void
// check whether page is header or footer
$add_str = "";
if ($a_set["obj_id"] == $this->lm->getHeaderPage()) {
$add_str = " <b>(" . $lng->txt("cont_header") . ")</b>";
$add_str = " <strong>(" . $lng->txt("cont_header") . ")</strong>";
}
if ($a_set["obj_id"] == $this->lm->getFooterPage()) {
$add_str .= " <b>(" . $lng->txt("cont_footer") . ")</b>";
$add_str .= " <strong>(" . $lng->txt("cont_footer") . ")</strong>";
}

$this->tpl->setVariable("USAGE", $path_str . $add_str);
Expand Down
12 changes: 6 additions & 6 deletions Modules/LearningModule/classes/class.ilLinksTableGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function fillRow(array $a_set): void
} else {
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</strong>"
);
}
$this->tpl->parseCurrentBlock();
Expand All @@ -126,7 +126,7 @@ protected function fillRow(array $a_set): void
} else {
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</strong>"
);
}
$this->tpl->parseCurrentBlock();
Expand All @@ -143,7 +143,7 @@ protected function fillRow(array $a_set): void
} else {
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</strong>"
);
}
$this->tpl->parseCurrentBlock();
Expand All @@ -160,7 +160,7 @@ protected function fillRow(array $a_set): void
} else {
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</strong>"
);
}
$this->tpl->parseCurrentBlock();
Expand All @@ -181,7 +181,7 @@ protected function fillRow(array $a_set): void
} else {
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target_id . "]" . "</strong>"
);
}
$this->tpl->parseCurrentBlock();
Expand Down Expand Up @@ -211,7 +211,7 @@ protected function fillRow(array $a_set): void
$this->tpl->setCurrentBlock("link");
$this->tpl->setVariable(
"TXT_MISSING",
"<b>" . $lng->txt("cont_target_missing") . " [" . $target . "]" . "</b>"
"<strong>" . $lng->txt("cont_target_missing") . " [" . $target . "]" . "</strong>"
);
$this->tpl->parseCurrentBlock();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2780,9 +2780,9 @@ public static function getLayoutOption(
if (is_file($im = ilUtil::getImagePath("layout_" . $a_def_option . ".png"))) {
$im_tag = ilUtil::img($im, $a_def_option);
}
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><b>" .
$layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
$lng->txt("cont_lm_default_layout") .
"</b>: " . $lng->txt("cont_layout_" . $a_def_option) .
"</strong>: " . $lng->txt("cont_layout_" . $a_def_option) .
"</td></tr></table>", ""));
}
foreach (ilObjContentObject::getAvailableLayouts() as $l) {
Expand All @@ -2791,7 +2791,7 @@ public static function getLayoutOption(
$im_tag = ilUtil::img($im, $l);
}
$layout->addOption(new ilRadioOption("<table><tr><td style='padding: 0px 5px 5px;'>" .
$im_tag . "</td><td style='padding:5px;'><b>" . $lng->txt("cont_layout_" . $l) . "</b>: " .
$im_tag . "</td><td style='padding:5px;'><strong>" . $lng->txt("cont_layout_" . $l) . "</strong>: " .
$lng->txt("cont_layout_" . $l . "_desc") . "</td></tr></table>", $l));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<td class="std" colspan="2">{TXT_NEW_ENTRY}</td>
</tr>
<tr>
<td class="option"><b>{TXT_TITLE}</b></td>
<td class="option"><strong>{TXT_TITLE}</strong></td>
<td class="option_value"><input type="text" maxlength="255" SIZE="40" name="title" value="{TITLE}"></td>
</tr>
<tr>
<td class="option"><b>{TXT_TARGET}</b></td>
<td class="option"><strong>{TXT_TARGET}</strong></td>
<td class="option_value"><input type="text" maxlength="255" SIZE="40" name="target" value="{TARGET}"></td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@
</td>
<!-- END contrl_col -->
<td class="std">
<p class="small"><b>{VAL_TITLE}</b></p>
<p class="small"><strong>{VAL_TITLE}</strong></p>
<p class="small">
{VAL_DESCRIPTION}
</p>
</td>
<td class="std">
<p class="small ilWhiteSpaceNowrap"><b>{TXT_DURATION}</b>:
<p class="small ilWhiteSpaceNowrap"><strong>{TXT_DURATION}</strong>:
{VAL_DURATION}
</p>
<!-- BEGIN access -->
<p class="small ilWhiteSpaceNowrap"><b>{TXT_ACCESS}</b>:
<p class="small ilWhiteSpaceNowrap"><strong>{TXT_ACCESS}</strong>:
{VAL_ACCESS}
</p>
<!-- END access -->
<p class="small ilWhiteSpaceNowrap"><b>{TXT_CREATED}</b>:
<p class="small ilWhiteSpaceNowrap"><strong>{TXT_CREATED}</strong>:
{VAL_CREATED}
</p>
<!-- BEGIN last_update -->
<p class="small ilWhiteSpaceNowrap"><b>{TXT_LAST_UPDATE}</b>:
<p class="small ilWhiteSpaceNowrap"><strong>{TXT_LAST_UPDATE}</strong>:
{VAL_LAST_UPDATE}
</p>
<!-- END last_update -->
<!-- BEGIN prop -->
<p class="small ilWhiteSpaceNowrap"><b>{TXT_PROP}</b>:
<p class="small ilWhiteSpaceNowrap"><strong>{TXT_PROP}</strong>:
{VAL_PROP}
</p>
<!-- END prop -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</td>
<!-- BEGIN text_outer_col -->
<!-- BEGIN text_col -->
<td style="width:{PERC}%;" class="nobackground{COLCLASS}" align="center"><label for="{QUESTION_ID}_{VALUE_SC}"><b>{TEXT_SC}</b></label></td>
<td style="width:{PERC}%;" class="nobackground{COLCLASS}" align="center"><label for="{QUESTION_ID}_{VALUE_SC}"><strong>{TEXT_SC}</strong></label></td>
<!-- END text_col -->
<!-- END text_outer_col -->
</tr>
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/PC/Paragraph/class.ilPCParagraphGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public function insertHelp(ilTemplate $a_tpl): void
$lng = $this->lng;

$a_tpl->setCurrentBlock("help_item");
$a_tpl->setVariable("TXT_HELP", "<b>" . $lng->txt("cont_syntax_help") . "</b>");
$a_tpl->setVariable("TXT_HELP", "<strong>" . $lng->txt("cont_syntax_help") . "</strong>");
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_item");
$a_tpl->setVariable("TXT_HELP", "* " . $lng->txt("cont_bullet_list"));
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/PC/SourceCode/class.ilPCSourceCodeGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function upload_source(): bool
$userfile = $_FILES['userfile']['tmp_name'];

if ($userfile == "" || !is_uploaded_file($userfile)) {
$error_str = "<b>Error(s):</b><br>Upload error: file name must not be empty!";
$error_str = "<strong>Error(s):</strong><br>Upload error: file name must not be empty!";
$this->tpl->setVariable("MESSAGE", $error_str);
$this->content_obj->setText(
$this->content_obj->input2xml(
Expand Down
4 changes: 2 additions & 2 deletions Services/COPage/classes/class.ilPageContentGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function delete(): void
public function displayValidationError(): void
{
if (is_array($this->updated)) {
$error_str = "<b>Error(s):</b><br>";
$error_str = "<strong>Error(s):</strong><br>";
foreach ($this->updated as $error) {
$err_mess = implode(" - ", $error);
if (!is_int(strpos($err_mess, ":0:"))) {
Expand All @@ -254,7 +254,7 @@ public function displayValidationError(): void
}
$this->tpl->setOnScreenMessage('failure', $error_str);
} elseif ($this->updated != "" && $this->updated !== true) {
$this->tpl->setOnScreenMessage('failure', "<b>Error(s):</b><br />" .
$this->tpl->setOnScreenMessage('failure', "<strong>Error(s):</strong><br />" .
$this->updated);
}
}
Expand Down
6 changes: 3 additions & 3 deletions Services/COPage/classes/class.ilPageObjectGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ public static function getTinyMenu(
"action" => $char_formats,
"aria-label" => $lng->txt("copg_more_character_formats")
];
$c_formats[] = ["text" => '<i><b><u>T</u></b><sub>x</sub></i>',
$c_formats[] = ["text" => '<i><strong><u>T</u></strong><sub>x</sub></i>',
"action" => "selection.removeFormat",
"data" => [],
"aria-label" => $lng->txt("copg_remove_formats")
Expand Down Expand Up @@ -2174,7 +2174,7 @@ public function displayMedia(bool $a_fullscreen = false): void
$mode = "fullscreen";
}

//echo "<b>XML:</b>".htmlentities($xml);
//echo "XML:".htmlentities($xml);
// determine target frames for internal links
$wb_path = ilFileUtils::getWebspaceDir("output") . "/";
$enlarge_path = ilUtil::getImagePath("media/enlarge.svg");
Expand Down Expand Up @@ -2581,7 +2581,7 @@ public function showMediaFullscreen(int $a_style_id = 0): void
public function displayValidationError($a_error): void
{
if (is_array($a_error)) {
$error_str = "<b>Error(s):</b><br>";
$error_str = "<strong>Error(s):</strong><br>";
foreach ($a_error as $error) {
$err_mess = implode(" - ", $error);
if (!is_int(strpos($err_mess, ":0:"))) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/xsl/page.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2903,7 +2903,7 @@
<xsl:if test="$mode = 'edit'">
<xsl:attribute name="style">border: 1px solid #000000; padding: 20px; margin-bottom:10px;</xsl:attribute>
<div style="margin-bottom:20px;">
<i><b><xsl:value-of select="@Title" /></b></i>
<i><strong><xsl:value-of select="@Title" /></strong></i>
<xsl:comment>Break</xsl:comment>
</div>
</xsl:if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<table class="fullwidth">
<!-- BEGIN row -->
<tr class="{ROWCOL}">
<td class="std"><b>{TYPE}</b><br />{TXT_LINK}
<td class="std"><strong>{TYPE}</strong><br />{TXT_LINK}
</td>
</tr>
<!-- END row -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- BEGIN position -->
<input type="text" class="form-control" name="position{POS_ID}" value="{POS_VAL}" size="3" maxlength="4" />
<!-- END position -->
<!-- BEGIN bold_title_start --><b><!-- END bold_title_start -->
<!-- BEGIN bold_title_start --><strong><!-- END bold_title_start -->
<!-- BEGIN item_title -->
<h3 class="il_ContainerItemTitle">{TXT_TITLE}</h3>
<!-- END item_title -->
Expand All @@ -20,7 +20,7 @@ <h3 class="il_ContainerItemTitle">
&nbsp;{PREVIEW_GLYPH}
<!-- END item_preview --></h3>
<!-- END item_title_linked -->
<!-- BEGIN bold_title_end --></b><!-- END bold_title_end -->
<!-- BEGIN bold_title_end --></strong><!-- END bold_title_end -->
</div>
<div style="float:right">
<!-- BEGIN item_progress -->
Expand Down
2 changes: 1 addition & 1 deletion Services/Feeds/templates/default/tpl.show_feed_item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="ilBlockContent">
<p><b>{VAL_TITLE}</b></p>
<p><strong>{VAL_TITLE}</strong></p>
<!-- BEGIN content -->
<p>{VAL_CONTENT}</p>
<!-- END content -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- BEGIN media_info -->
<div class="il_info">
<b>{TXT_PURPOSE}</b><br />
<strong>{TXT_PURPOSE}</strong><br />
{TXT_TYPE}: {VAL_LOCATION}{VAL_FILE_SIZE}, {TXT_FORMAT}: {VAL_FORMAT}<!-- BEGIN size -->,
{TXT_SIZE}: {VAL_SIZE}<!-- END size --><!-- BEGIN orig_size -->,
{TXT_ORIG_SIZE}: {ORIG_WIDTH}x{ORIG_HEIGHT}
Expand Down
2 changes: 1 addition & 1 deletion Services/News/templates/default/tpl.show_feed_url.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="ilBlockContent">
<p><b>{TXT_TITLE}</b></p>
<p><strong>{TXT_TITLE}</strong></p>
<p>{TXT_INFO}</p>
<p>{TXT_FEED_URL}:<br />
<a class="small" target="_blank" rel="noopener" href="{VAL_FEED_URL}">{VAL_FEED_URL_TXT}</a></p>
Expand Down
4 changes: 2 additions & 2 deletions Services/News/templates/default/tpl.show_priv_feed_url.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<tr class="tblrow1">
<td class="std">
<p><b>{TXT_TITLE}</b></p>
<p><strong>{TXT_TITLE}</strong></p>
<p>{TXT_INFO}</p>
<p>{TXT_FEED_URL}:<br />
<a class="small" target="_blank" href="{VAL_FEED_URL}">{VAL_FEED_URL_TXT}</a></p>
Expand All @@ -9,7 +9,7 @@
</tr>
<tr class="tblrow1">
<td class="std">
<p><b>{TXT_PRIV_TITLE}</b></p>
<p><strong>{TXT_PRIV_TITLE}</strong></p>
<p>{TXT_PRIV_INFO}</p>
<!-- BEGIN priv_url_bl -->
<p>{TXT_PRIV_FEED_URL}:<br />
Expand Down
4 changes: 2 additions & 2 deletions Services/Style/Content/classes/class.ilObjStyleSheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -1838,8 +1838,8 @@ public function exportXML(string $a_dir): void

// open file
if (!($fp = fopen($file, 'wb'))) {
die("<b>Error</b>: Could not open \"" . $file . "\" for writing" .
" in <b>" . __FILE__ . "</b> on line <b>" . __LINE__ . "</b><br />");
die("<strong>Error</strong>: Could not open \"" . $file . "\" for writing" .
" in <strong>" . __FILE__ . "</strong> on line <strong>" . __LINE__ . "</strong><br />");
}

// set file permissions
Expand Down

0 comments on commit e7bf09c

Please sign in to comment.