summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-02 20:16:45 +0100
committerAndrew Dolgov <[email protected]>2007-03-02 20:16:45 +0100
commit0d32b41e36fffa800991267b637d9344cb88fd2e (patch)
tree645e10ade87573dca2149b18a1c4a3973984c55a /functions.php
parentb05d782d90348a1c1a4d16b0e39695cbdf663629 (diff)
interface tweaks, add info/question/exclamation pics
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 10b45d299..973374701 100644
--- a/functions.php
+++ b/functions.php
@@ -2619,9 +2619,9 @@
if (version_compare(VERSION, $latest_version) == -1) {
if ($brief_fmt) {
- return "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">
+ return format_notice("<a href=\"javascript:showBlockElement('milestoneDetails')\">
New version of Tiny-Tiny RSS ($latest_version) is available (click for details)</a>
- <div id=\"milestoneDetails\">$content</div></div>";
+ <div id=\"milestoneDetails\">$content</div>");
} else {
return "New version of Tiny-Tiny RSS ($latest_version) is available:
<div class='milestoneDetails'>$content</div>
@@ -3174,4 +3174,14 @@
header("Pragma: no-cache"); // HTTP/1.0
}
+ function format_warning($msg) {
+ return "<div class=\"warning\">
+ <img src=\"images/sign_excl.png\">$msg</div>";
+ }
+
+ function format_notice($msg) {
+ return "<div class=\"notice\">
+ <img src=\"images/sign_info.png\">$msg</div>";
+ }
+
?>