From 18a29060b2516e78da833108e92e3c0469ab7c00 Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Wed, 4 Feb 2009 19:13:00 +0000 Subject: [PATCH] Web: Add a "Bookmark on Delicious" link --- Web/engine/css/print.css | 4 ++++ Web/engine/css/screen.css | 4 ++++ Web/page.inc | 14 +++++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Web/engine/css/print.css b/Web/engine/css/print.css index cbd742a2d..036bd0694 100644 --- a/Web/engine/css/print.css +++ b/Web/engine/css/print.css @@ -59,6 +59,10 @@ a[name]:hover { color:black; text-decoration:none; } padding: 5px; } +#bookmarks { + display: none; +} + #poweredby { display: none; } diff --git a/Web/engine/css/screen.css b/Web/engine/css/screen.css index 0da6d56c2..0d6e6f4a3 100644 --- a/Web/engine/css/screen.css +++ b/Web/engine/css/screen.css @@ -139,6 +139,10 @@ a[name]:hover { color:black; text-decoration:none; } margin-top: 0; } +#bookmarks { + text-align: right; +} + #poweredby { margin: 0; margin-top: 1em; diff --git a/Web/page.inc b/Web/page.inc index 4825c7449..7f4d215b2 100644 --- a/Web/page.inc +++ b/Web/page.inc @@ -141,7 +141,8 @@ * print the foot from the page */ function printFoot() { - $temp = " \n"; + $temp = $this->getSocialBookmarks(); + $temp .= " \n"; $temp .= "

\n"; $temp .= " \"SourceForge\"\n"; $temp .= " \"Donate\"\n"; @@ -303,6 +304,17 @@ } /** + * get the social bookmarks code + */ + function getSocialBookmarks() { + $temp = "

\n"; + $temp .= "\"Delicious\"\n"; + $temp .= " Bookmark this on Delicious\n"; + $temp .= "
\n"; + return $temp; + } + + /** * get the Piwik java script code */ function getPiwikCode() { -- 2.11.0