From d32216f8b6cfca4901ad31f634bb6b846c832f48 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Apr 2001 19:29:27 +0000 Subject: [PATCH] - added new variable: theme_footer which can be used to provide a footer message like a copyright notice. Themes should use this! - small improvement to example theme - added theme_footer to theme marvin - small improvement to database.inc --- includes/database.inc | 4 ++-- modules/settings.module | 16 ++++++++++++---- themes/example/example.theme | 7 +++---- themes/marvin/marvin.theme | 2 +- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/includes/database.inc b/includes/database.inc index 139dee1b49b..634ec55efc4 100644 --- a/includes/database.inc +++ b/includes/database.inc @@ -8,9 +8,9 @@ function db_connect($host, $user, $pass, $name) { function db_query($query, $debug = 0) { $result = mysql_query($query); - if ($debug) print "

query: $query
error". mysql_error() ."

"; + if ($debug) print "

query: $query
error:". mysql_error() ."

"; if ($result) return $result; - else watchdog("error", "database: ". mysql_error() ."
query: ". htmlspecialchars($query)); + else watchdog("error", "database: ". mysql_error() ."\nquery: ". htmlspecialchars($query)); } function db_fetch_object($qid) { diff --git a/modules/settings.module b/modules/settings.module index 3cdb7023306..2dad1d72d95 100644 --- a/modules/settings.module +++ b/modules/settings.module @@ -23,10 +23,6 @@ function settings_conf() { $output .= "
\n"; $output .= "The name displayed for anonymous users.

\n"; - $output .= "Default theme:
\n"; - foreach ($themes as $key=>$value) $options1 .= "\n"; - $output .= "
\n"; - $output .= "The default theme displayed for anonymous users.

\n"; $output .= "


\n"; $output .= "

Comment settings

\n"; @@ -68,6 +64,18 @@ function settings_conf() { $output .= "$options1
\n"; + $output .= "The default theme displayed for anonymous users.

\n"; + + $output .= "Footer message:
\n"; + $output .= "
\n"; + $output .= "This text will be displayed at the bottom of each page. Useful to add a copyright notice to your pages.

\n"; + $output .= "


\n"; return $output; diff --git a/themes/example/example.theme b/themes/example/example.theme index e78ce60d517..a1984fb4f90 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -22,7 +22,7 @@
- Logo? + @@ -191,9 +191,8 @@
- +

+

diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 05e761e5900..4bab35078a5 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -145,7 +145,7 @@ [ ". theme_link(" | ") ." ]

\n"; + print "

[ ". theme_link(" | ") ." ]

". varaible_get(theme_footer, "") ."

\n"; ?>