[geeklog-cvs] geeklog: Add topic name in the <title> when not "All"
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Feb 22 08:03:24 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/00df2e53c8cf
changeset: 6796:00df2e53c8cf
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 22 12:27:17 2009 +0100
description:
Add topic name in the <title> when not "All"
diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
public_html/directory.php | 13 +++++++++++--
diffs (37 lines):
diff -r 1d2197278654 -r 00df2e53c8cf public_html/directory.php
--- a/public_html/directory.php Sun Feb 22 12:21:35 2009 +0100
+++ b/public_html/directory.php Sun Feb 22 12:27:17 2009 +0100
@@ -473,22 +473,31 @@
$month = 0;
}
+$topicName = '';
+if ($topic != 'all') {
+ $topicName = DB_getItem($_TABLES['topics'], 'topic',
+ "tid = '" . addslashes($topic) . "'");
+}
if (($year != 0) && ($month != 0)) {
$title = sprintf ($LANG_DIR['title_month_year'],
$LANG_MONTH[$month], $year);
+ if ($topic != 'all') {
+ $title .= ': ' . $topicName;
+ }
$display .= COM_siteHeader ('menu', $title);
$display .= DIR_displayMonth ($topic, $year, $month, true);
$display .= DIR_navBar ($topic, $year, $month);
} else if ($year != 0) {
$title = sprintf ($LANG_DIR['title_year'], $year);
+ if ($topic != 'all') {
+ $title .= ': ' . $topicName;
+ }
$display .= COM_siteHeader ('menu', $title);
$display .= DIR_displayYear ($topic, $year, true);
$display .= DIR_navBar ($topic, $year);
} else {
$title = $LANG_DIR['title'];
if ($topic != 'all') {
- $topicName = DB_getItem($_TABLES['topics'], 'topic',
- "tid = '" . addslashes($topic) . "'");
$title .= ': ' . $topicName;
}
$display .= COM_siteHeader('menu', $title);
More information about the geeklog-cvs
mailing list