Skip to content

Commit

Permalink
add announcement banner setting (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPaglusch authored Dec 2, 2021
1 parent c92766d commit 19df043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions html/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@
document.write('<div style="padding-top: 1%" class="container"><div class="alert alert-danger"><strong>Danger!</strong> This site is not being accessed over an encrypted connection. Do NOT input any sensitive information!</div></div>');
}
</script>
<?php
if ( $settings['announcement'] != '' ) {
echo '<div style="padding-top: 1%" class="container"><div class="alert alert-warning"><strong>Announcement:</strong> ' . $settings['announcement'] . '</div></div>';
}
?>
1 change: 1 addition & 0 deletions settings.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'site_title' => 'FlashPaper :: Self-Destructing Message',
'return_full_url' => true,
'max_secret_length' => 3000,
'announcement' => '',
'messages' => [
'error_secret_too_long' => 'Input length too long',

Expand Down

0 comments on commit 19df043

Please sign in to comment.