summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/example/example.theme4
-rw-r--r--themes/goofy/goofy.theme7
-rw-r--r--themes/jeroen/jeroen.theme6
-rw-r--r--themes/marvin/marvin.theme3
-rw-r--r--themes/unconed/unconed.theme9
5 files changed, 10 insertions, 19 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index e6ee46cf0..e78ce60d5 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -12,13 +12,11 @@
class Theme {
function header() {
- global $site_name;
-
?>
<HTML>
<HEAD>
- <TITLE><? echo $site_name; ?></TITLE>
+ <TITLE><? echo variable_get(site_name, "drupal"); ?></TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1">
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index e145362b7..8acde2ae8 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -14,12 +14,11 @@
class Theme {
function header() {
- global $site_name;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
- <title><?php echo $site_name; ?></title>
+ <title><?php echo variable_get(site_name, "drupal"); ?></title>
<style type="text/css">
<!--
body { background-color: #FFFFFF; font-size: 10pt; font-family: tahoma,helvetica,arial; }
@@ -57,7 +56,7 @@
<body>
<table border="0" cellspacing="3" cellpadding="0" width="100%">
<tr>
- <td colspan="2" width="100%"><img src="themes/goofy/images/logo.png" alt="<?php echo $site_name; ?> logo"><br>
+ <td colspan="2" width="100%"><img src="themes/goofy/images/logo.png" alt=""><br>
<?php $this->linksbar(); ?>
</td>
</tr>
@@ -173,7 +172,7 @@
// Author:
echo " <tr>";
echo " <td valign=\"top\"><div align=\"right\">" . t("Author") . ":&nbsp;</div></td><td><b>" . format_username($comment->userid) . "</b>";
- if ($comment->userid != $anonymous) {
+ if ($comment->userid) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info .= ($info?" | ":"") . format_url($comment->url);
diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme
index ae54f04b3..e4d695fa6 100644
--- a/themes/jeroen/jeroen.theme
+++ b/themes/jeroen/jeroen.theme
@@ -22,15 +22,13 @@
*/
function header() {
- global $site_name;
-
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
- <title><?php echo $site_name; ?> - Tears of technology</title>
+ <title><?php echo variable_get(site_name, "drupal"); ?> - Tears of technology</title>
<style type="text/css">
<!--
BODY,P,DIV,LI,UL,td,EM,FONT,BLOCKQUOTE,FORM{font-size: 10pt; font-family:Helvetica,Lucida,sans-serif;}
@@ -207,7 +205,7 @@
// Author:
echo " <tr>";
echo " <td align=\"right\"><FONT COLOR=\"#FEFEFE\">". t("Author") .":</FONT></td><td><B>". format_username($comment->userid) ."</B> ";
- if ($comment->userid != $anonymous) {
+ if ($comment->userid) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info .= " | " . format_url($comment->url);
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index 1bd4d7cf9..05e761e59 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -14,12 +14,11 @@
var $link = "#666699";
function header() {
- global $site_name;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
- <TITLE><?php print $site_name; ?></TITLE>
+ <TITLE><?php print variable_get(site_name, "drupal"); ?></TITLE>
</HEAD>
<STYLE type="text/css">
<!--
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme
index a0c32fec4..c7533dcdc 100644
--- a/themes/unconed/unconed.theme
+++ b/themes/unconed/unconed.theme
@@ -34,12 +34,11 @@
var $fgcolor3 = "#000000";
function header() {
- global $site_name;
srand((double)microtime()*1000000);
?>
<HTML>
<HEAD>
- <TITLE><?php echo $site_name; ?></TITLE>
+ <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>
@@ -92,9 +91,7 @@
<?php
if ($story->section) { print "<TD WIDTH=\"70%\" BGCOLOR=\"$this->bgcolor2\">"; }
else { print "<TD COLSPAN=\"2\" BGCOLOR=\"$this->bgcolor2\">"; }
- if ($story->userid) { print "<SMALL>Posted by " . format_username($story->userid) . " on $timestamp"; }
- else { print "<SMALL>Posted by $anonymous on $timestamp"; }
-
+ print "<SMALL>Posted by " . format_username($story->userid) . " on $timestamp";
if ($story->section) { print "</TD><TD WIDTH=\"30%\" BGCOLOR=\"$this->bgcolor2\" ALIGN=\"center\"><B><A HREF=\"index.php?section=" . urlencode($story->section) . "\"><FONT COLOR=\"$this->sectioncolor\">". check_output($story->section) ."</FONT></A></B>"; }
?>
</TD>
@@ -149,7 +146,7 @@
// Author:
echo " <TR>";
echo " <TD ALIGN=\"right\" VALIGN=\"top\">Author:</TD><TD><B>" . format_username($comment->userid) . "</B> ";
- if ($comment->userid != $anonymous) {
+ if ($comment->userid) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info .= ($info?" | ":"") . format_url($comment->url);