summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-14 19:34:04 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-14 19:34:04 +0000
commit559276162095e907db21dd3da3c1bea13b4b7c62 (patch)
treeeaa3a34b8261c88e0dffd48059ceb0cd0577251b /themes
parent3ffe07f57c6fd177e2693d1e4b60178644036a4b (diff)
downloadbrdo-559276162095e907db21dd3da3c1bea13b4b7c62.tar.gz
brdo-559276162095e907db21dd3da3c1bea13b4b7c62.tar.bz2
This is a major change to the system, needs more testing!
Committing Changes by Moshe Weitzman: - admin_user_account(), user_edit(), and user_view() no longer have any hard code for authentication modules. instead authentication modules implement the _user hook. - fixed a couple 'help' typos. - linked the 'REGISTER' text in the login block to the register page. this page now advertises DA better if site employs DA. - admins may now edit everything about a user account (was a feature request). - user #1 may now login immediately, in addition to receiving his password via email. Other changes: - modules and themes are now enabled/disabled in the administrative / settings / modules | themes pages. Requires SQL update and things must be enabled before your site returns to normal. TODO: enable all functionality. (For now just do UPDATE system SET status = 1;) - removed $themes from conf.php. - added a $theme->system() function where theme can specify settings. All themes in the Drupal CVS have been updated to use this. - added _system hook to modules. TODO: update modules to use this. - changed strange use of sprintf to the usual strtr. The disadvantage of sprintf is that it requires translations to keep the string order, which may not be possible in all languages. - an invalid/nonexisting theme in a user profile will now fallback to the BaseTheme instead of crashing.
Diffstat (limited to 'themes')
-rw-r--r--themes/example/example.theme10
-rw-r--r--themes/goofy/goofy.theme8
-rw-r--r--themes/marvin/marvin.theme8
-rw-r--r--themes/unconed/unconed.theme8
4 files changed, 33 insertions, 1 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index 90c22e5cd..aca89d1ae 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -1,8 +1,16 @@
<?php
// $Id$
- class Theme_example extends BaseTheme {
+class Theme_example extends BaseTheme {
+ function system($field) {
+ $system["name"] = "Stone Age";
+ $system["author"] = "Dries Buytaerts";
+ $system["description"] = "Internet explorer, Netscape, Opera, Lynx";
+
+ return $system[$field];
}
+}
+
?> \ No newline at end of file
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index b0562c068..786e06646 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -17,6 +17,14 @@
var $foreground = "#000000";
var $background = "#FFFFFF";
+ function system($field) {
+ $system["name"] = "Goofy";
+ $system["author"] = "Steven Wittens";
+ $system["description"] = "Internet explorer, Netscape, Opera";
+
+ return $system[$field];
+ }
+
function header($title = "") {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index bfed08274..4978acaaf 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -18,6 +18,14 @@
var $foreground = "#000000";
var $background = "#EAEAEA";
+ function system($field) {
+ $system["name"] = "Marvin";
+ $system["author"] = "Dries Buytaerts";
+ $system["description"] = "Internet explorer, Netscape, Opera";
+
+ return $system[$field];
+ }
+
function header($title = "") {
global $HTTP_USER_AGENT;
?>
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme
index 78f4b3f46..2ffaf7e29 100644
--- a/themes/unconed/unconed.theme
+++ b/themes/unconed/unconed.theme
@@ -37,6 +37,14 @@
var $bgcolor3 = "#D7D7D7";
var $fgcolor3 = "#000000";
+ function system($field) {
+ $system["name"] = "UnConeD";
+ $system["author"] = "Steven Wittens";
+ $system["description"] = "Internet explorer, Netscape, Opera";
+
+ return $system[$field];
+ }
+
function header($title = "") {
srand((double)microtime()*1000000);
?>