summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-10 15:01:20 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-10 15:01:20 +0000
commitd397bbe93587f015cd8db0dbf16ef6d1c1aef78b (patch)
tree82b3b8dc63b04c11aeadd5b18cee796e4da43144 /themes
parent6b34310626b960a18646259d8d7caa1b6b2da1da (diff)
downloadbrdo-d397bbe93587f015cd8db0dbf16ef6d1c1aef78b.tar.gz
brdo-d397bbe93587f015cd8db0dbf16ef6d1c1aef78b.tar.bz2
This a rather large commit that needs a lot of fine-tuning. If you
update, you'll break your site as you need switching from structure to index.module: so this can be considered an intermediate commit. If you upgrade, and you are welcome to, just create a collection called "section" (for now) and assign your nodes some attributes in the described format. Feedback and bugreports are welcomed. Questions will be answered. CHANGES: - comment system: + when replying to a node (rather then to a comment), that node is displayed above the reply form. + when replying to a comment (rather then to a node), that comment is displayd above the reply form. - removed structure.inc, removed structure.module. - node.inc: + added 2 new node functions called 'node_attribute_edit()' and 'node_attribute_save()' used to 'hook in' any indexing system including your home-brewed stuff if you'd want to. Currently, index.module is the facto default index system. See story.module for usage. - book.module, story.module, poll.module, page.module, forum.module: + added preview functionality to administration section (via node module). + removed all references to structure.inc (category, topic). - moderate.module: + removed all references to structure.inc (category, topic). - book.module, story.module, page.module, forum.module: + increased the sizes of some textareas. - submit.php: + removed all references to structure.inc (category, topic). - marvin.theme: + removed dead code: function story() was depricated. - unconed.theme: + removed hardcoded references to drop.org. - marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme: + removed all references to structure.inc (category, topic). TODO: - file.module, trip_link.module: + update preview functionality: see story.module for example. + remove references to 'cid' and 'tid', use 'attribute' instead: see story.module for example. - extend and build upon index.module as well as making it configurable
Diffstat (limited to 'themes')
-rw-r--r--themes/example/example.theme4
-rw-r--r--themes/goofy/goofy.theme9
-rw-r--r--themes/jeroen/jeroen.theme6
-rw-r--r--themes/marvin/marvin.theme27
-rw-r--r--themes/unconed/unconed.theme4
-rw-r--r--themes/yaroon/yaroon.theme4
6 files changed, 12 insertions, 42 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index ad8a92cff..caa3c9518 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -10,7 +10,7 @@
*********************************************************************/
class Theme extends BaseTheme {
- // General colorset that can be used for this theme
+ // General colorset that can be used for this theme
var $foreground = "#000000";
var $background = "#FFFFFF";
@@ -69,7 +69,7 @@
</TD>
<TD ALIGN="right">
<?php
- echo category_name($node->cid) ." / ". topic_name($node->tid);
+ echo node_index($node->attribute);
?>
</TD>
</TR>
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index c51d438a7..56c28dd78 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -12,7 +12,7 @@
*********************************************************************/
class Theme extends BaseTheme {
- // General colorset that can be used for this theme
+ // General colorset that can be used for this theme
var $foreground = "#000000";
var $background = "#FFFFFF";
@@ -103,13 +103,12 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
echo "\n<!-- node: \"$node->title\" -->\n";
$title = check_output($node->title);
$subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large")));
- $subright = category_name($node->cid) ." / ". topic_name($node->tid);
+ $subright = node_index($node->attribute);
$body = check_output($node->body, 1) . ($main || $links ? "<hr color=\"#404040\" size=\"1\"><div align=\"right\">" . $this->links($links, $main, $node) . "</div>" : "");
print "<script language=\"JavaScript\"><!--\ns(\"". $this->stripbreaks(addslashes($title)) ."\",\"". $this->stripbreaks(addslashes($subleft)) ."\",\"". $this->stripbreaks(addslashes($subright)) ."\",\"". $this->stripbreaks(addslashes($body)) ."\"); // -->\n</script>\n";
} // close node function
-
function comment($comment, $link = "") {
echo "<A NAME=\"$comment->cid\"></A>\n";
@@ -125,7 +124,6 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
} // close comment function
-
function stripbreaks($a) { // helper function for generating the javascripted boxes
return str_replace("\n","\\n",str_replace("\r","\\r",$a));
} // close stripbreaks function
@@ -136,9 +134,6 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
} // close box function
-
-
-
function footer() {
?>
</td>
diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme
index 56eea6346..26bb678b5 100644
--- a/themes/jeroen/jeroen.theme
+++ b/themes/jeroen/jeroen.theme
@@ -10,10 +10,10 @@
*********************************************************************/
class Theme extends BaseTheme {
- // General colorset that can be used for this theme
+ // General colorset that can be used for this theme
var $foreground = "#000000";
var $background = "#E7E7E7";
-
+
/*
I am going to use some colors throughout this theme:
#000000 : black used for all links and the table in every box you'll see, I use it to create the thin black border around each.
@@ -122,7 +122,7 @@
</FONT>
</td>
<?php
- echo "<td align=\"right\" background=\"themes/jeroen/images/menutitle.gif\" nowrap><b>". category_name($node->cid) ." / ". topic_name($node->tid) ."</b>";
+ echo "<td align=\"right\" background=\"themes/jeroen/images/menutitle.gif\" nowrap><b>". node_index($node->attribute) ."</b>";
?>
</td>
</tr>
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index ab76f8fe1..108f4acfc 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -13,7 +13,7 @@
class Theme extends BaseTheme {
var $link = "#666699";
- // General colorset that can be used for this theme
+ // General colorset that can be used for this theme
var $foreground = "#000000";
var $background = "#EAEAEA";
@@ -48,29 +48,6 @@
<?php
}
- function story($story, $main = 0) {
- print "\n<!-- story: \"$story->title\" -->\n";
- print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
- print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> &nbsp; <B>". check_output($story->title) ."</B></TD></TR>\n";
- print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
- print " <TR>\n";
- print " <TD>\n";
- print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><?php print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL>". category_name($story->cid) ." / ". topic_name($story->tid) ."</SMALL>\n";
- print " </TD>\n";
- print " </TR>\n";
- print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
- print " <TR>\n";
- print " <TD COLSPAN=\"2\">\n";
- if ($story->abstract) print "<P>". check_output($story->abstract, 1) ."</P>\n";
- if (!$main && $story->body) print " <P>". check_output($story->body, 1) ."</P>\n";
- print " </TD>\n";
- print " </TR>\n";
- print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
- if ($main || $links) print " <TR><TD COLSPAN=\"2\">". $this->links($links, $main, $node) ."</TD></TR>\n";
- print "</TABLE>\n";
- print "<BR><BR>\n\n";
- }
-
function node($node, $main = 0, $links = 0) {
print "\n<!-- node: \"$node->title\" -->\n";
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
@@ -78,7 +55,7 @@
print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
print " <TR>\n";
print " <TD>\n";
- print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))); ?><?php print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL>". category_name($node->cid) ." / ". topic_name($node->tid) ."</SMALL>\n";
+ print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))); ?><?php print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL>". node_index($node->attribute) ."</SMALL>\n";
print " </TD>\n";
print " </TR>\n";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme
index 54c938dd5..cd20fe3ab 100644
--- a/themes/unconed/unconed.theme
+++ b/themes/unconed/unconed.theme
@@ -42,8 +42,6 @@
<HTML>
<HEAD>
<TITLE><?php echo variable_get(site_name, "drupal"); ?></TITLE>
- <META NAME="description" CONTENT="drop.org">
- <META NAME="keywords" CONTENT="drop, weblog, portal, community, news, article, announcements, stories, story, computer, science, space, hype, cult, geek, nerd, foo, bar">
</HEAD>
<STYLE type="text/css">
<!--
@@ -91,7 +89,7 @@
<TR><TD COLSPAN="2" BGCOLOR="<?php echo $this->bgcolor1; ?>" WIDTH="100%"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="100%"><FONT COLOR="<?php echo $this->fgcolor1; ?>"><B><?php echo "". check_output($node->title) .""; ?></B></FONT></td><td valign="middle" align="center"><IMG SRC="themes/<?php print $this->themename; ?>/images/icon.gif" valign="middle"></td></tr></table></TD></TR>
<TR BGCOLOR="<?php echo $this->bgcolor2; ?>">
<?php
- print "<TD WIDTH=\"70%\" BGCOLOR=\"$this->bgcolor2\"><SMALL>" . strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))) . "</TD><TD WIDTH=\"30%\" BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\" NOWRAP><B>". category_name($node->cid) ." / ". topic_name($node->tid) ."</B>";
+ print "<TD WIDTH=\"70%\" BGCOLOR=\"$this->bgcolor2\"><SMALL>" . strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large"))) . "</TD><TD WIDTH=\"30%\" BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\" NOWRAP><B>". node_index($node->attribute) ."</B>";
?>
</TD>
</TR>
diff --git a/themes/yaroon/yaroon.theme b/themes/yaroon/yaroon.theme
index d509606bf..4aefd8a1a 100644
--- a/themes/yaroon/yaroon.theme
+++ b/themes/yaroon/yaroon.theme
@@ -12,7 +12,7 @@
class Theme extends BaseTheme {
var $foreground = "#000000";
var $background = "#F0F0F0";
-
+
function header() {
global $PHP_SELF, $REQUEST_URI, $cid, $id;
@@ -110,7 +110,7 @@
<?php
} // close header function
-
+
function node($node, $main = 0, $links = 0) {