Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3f61d1a3
Commit
3f61d1a3
authored
Sep 11, 2002
by
Kjartan Mannes
Browse files
- adding doctype to basic theme.
- some minor changes to clean up var initialization.
parent
d164384e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
3f61d1a3
...
...
@@ -19,6 +19,7 @@ function system($field) {
}
function
header
(
$title
=
""
)
{
$output
=
"<!DOCTYPE html PUBLIC
\"
-//W3C//DTD XHTML 1.0 Transitional//EN
\"
\"
DTD/xhtml1-transitional.dtd
\"
>
\n
"
;
$output
.
=
"<html><head><title>"
.
variable_get
(
site_name
,
"drupal"
)
.
"</title></head><body bgcolor=
\"
$this->background
\"
text=
\"
$this->foreground
\"
>"
;
$output
.
=
"<table border=
\"
0
\"
cellspacing=
\"
4
\"
cellpadding=
\"
4
\"
><tr><td valign=
\"
top
\"
width=
\"
170
\"
>"
;
...
...
@@ -67,7 +68,7 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1) {
}
function
comment
(
$comment
,
$link
=
0
)
{
$output
.
=
"<a name=
\"
$comment->cid
\"
></a>"
;
$output
=
"<a name=
\"
$comment->cid
\"
></a>"
;
$output
.
=
"<div style=
\"
border: 1px solid; padding: 10px;
\"
>"
;
$output
.
=
"<table border=
\"
0
\"
cellpadding=
\"
0
\"
cellspacing=
\"
0
\"
width=
\"
100%
\"
>"
;
$output
.
=
" <tr><td><div style=
\"
font-size: 110%; font-weight: bold;
\"
>"
.
check_output
(
$comment
->
subject
)
.
"</div></td><td align=
\"
right
\"
rowspan=
\"
2
\"
valign=
\"
top
\"
>"
.
comment_moderation
(
$comment
)
.
"</td></tr>"
;
...
...
@@ -80,12 +81,12 @@ function comment($comment, $link = 0) {
}
function
box
(
$subject
,
$content
,
$region
=
"main"
)
{
$output
.
=
"<b>"
.
check_output
(
$subject
)
.
"</b><br />"
.
check_output
(
$content
)
.
"<p />"
;
$output
=
"<b>"
.
check_output
(
$subject
)
.
"</b><br />"
.
check_output
(
$content
)
.
"<p />"
;
print
$output
;
}
function
footer
()
{
$output
.
=
"</td></tr></table>"
;
$output
=
"</td></tr></table>"
;
$output
.
=
"</body></html>"
;
print
$output
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment