summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-14 19:29:27 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-14 19:29:27 +0000
commitd32216f8b6cfca4901ad31f634bb6b846c832f48 (patch)
treed78d9863d13bf510b41e276a8edfc1d3ba45b20a /modules
parentd7fefa2a6b4722e4ecd6f9cde2d8e8832d750d86 (diff)
downloadbrdo-d32216f8b6cfca4901ad31f634bb6b846c832f48.tar.gz
brdo-d32216f8b6cfca4901ad31f634bb6b846c832f48.tar.bz2
- 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
Diffstat (limited to 'modules')
-rw-r--r--modules/settings.module16
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/settings.module b/modules/settings.module
index 3cdb70233..2dad1d72d 100644
--- a/modules/settings.module
+++ b/modules/settings.module
@@ -23,10 +23,6 @@ function settings_conf() {
$output .= "<INPUT NAME=\"edit[anonymous]\" MAXLENGTH=\"55\" SIZE=\"30\" VALUE=\"". variable_get(anonymous, "Anonymous") ."\"><BR>\n";
$output .= "<I><SMALL>The name displayed for anonymous users.</SMALL></I><P>\n";
- $output .= "<B>Default theme:</B><BR>\n";
- foreach ($themes as $key=>$value) $options1 .= "<OPTION VALUE=\"$key\"". (variable_get(default_theme, key($themes)) == $key ? " SELECTED" : "") .">$key</OPTION>\n";
- $output .= "<SELECT NAME=\"edit[default_theme]\">$options1</SELECT><BR>\n";
- $output .= "<I><SMALL>The default theme displayed for anonymous users.</SMALL></I><P>\n";
$output .= "<HR>\n";
$output .= "<H3>Comment settings</H3>\n";
@@ -69,6 +65,18 @@ function settings_conf() {
$output .= "<I><SMALL>The maximum submission rate for comments. Its purpose is to stop potential abuse or denial of service attacks.</SMALL></I><P>\n";
$output .= "<HR>\n";
+ $output .= "<H3>Theme settings</H3>\n";
+
+ $output .= "<B>Default theme:</B><BR>\n";
+ foreach ($themes as $key=>$value) $options1 .= "<OPTION VALUE=\"$key\"". (variable_get(theme_default, key($themes)) == $key ? " SELECTED" : "") .">$key</OPTION>\n";
+ $output .= "<SELECT NAME=\"edit[theme_default]\">$options1</SELECT><BR>\n";
+ $output .= "<I><SMALL>The default theme displayed for anonymous users.</SMALL></I><P>\n";
+
+ $output .= "<B>Footer message:</B><BR>\n";
+ $output .= "<TEXTAREA NAME=\"edit[theme_footer]\" COLS=\"35\" ROWS=\"5\" WRAP=\"virtual\">". variable_get(theme_footer, "") ."</TEXTAREA><BR>\n";
+ $output .= "<I><SMALL>This text will be displayed at the bottom of each page. Useful to add a copyright notice to your pages.</SMALL></I><P>\n";
+
+ $output .= "<HR>\n";
return $output;
}