Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit a031b1c

Browse files
Merge pull request #31 from silinternational/develop
non-trivial HTML was not rendering properly in a `<p>`
2 parents 723d7fa + 92f80d4 commit a031b1c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

development/idp3/announcement.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
22
$citation = '<a href="http://www.lipsum.com" target="_blank">lipsum.com</a>';
33

4-
return "On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains. More info at $citation";
4+
return [
5+
'announcement_text' => "<h4>Warning</h4><p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains. More info at $citation</p>",
6+
];

themes/material/common-announcement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
if (! empty($announcementHtml)) {
55
?>
6-
<p class="mdl-typography--subhead mdl-typography--text-center alert margin">
6+
<div class="mdl-typography--subhead mdl-typography--text-center alert margin">
77
<?= $announcementHtml ?>
8-
</p>
8+
</div>
99
<?php
1010
}
1111
?>

0 commit comments

Comments
 (0)