Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b505b5ab
Commit
b505b5ab
authored
Apr 21, 2003
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Committed Gordon's htmlarea patch.
parent
cfb4d31f
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
includes/theme.inc
+28
-1
28 additions, 1 deletion
includes/theme.inc
modules/admin.module
+3
-1
3 additions, 1 deletion
modules/admin.module
themes/marvin/marvin.theme
+2
-1
2 additions, 1 deletion
themes/marvin/marvin.theme
themes/unconed/unconed.theme
+2
-1
2 additions, 1 deletion
themes/unconed/unconed.theme
with
35 additions
and
4 deletions
includes/theme.inc
+
28
−
1
View file @
b505b5ab
...
...
@@ -22,7 +22,7 @@ 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>"
;
$output
.
=
theme_head
(
$main
);
$output
.
=
"</head><body bgcolor=
\"
$this->background
\"
text=
\"
$this->foreground
\"
>"
;
$output
.
=
"</head><body bgcolor=
\"
$this->background
\"
text=
\"
$this->foreground
"
.
theme_onload_attribute
()
.
"
\"
>"
;
$output
.
=
"<table border=
\"
0
\"
cellspacing=
\"
4
\"
cellpadding=
\"
4
\"
><tr><td valign=
\"
top
\"
width=
\"
170
\"
>"
;
print
$output
;
...
...
@@ -77,6 +77,7 @@ function block($subject, $content, $region = "main") {
function
footer
()
{
$output
=
"</td></tr></table>"
;
$output
.
=
theme_footer
();
$output
.
=
"</body></html>"
;
print
$output
;
}
...
...
@@ -141,6 +142,15 @@ function theme_head($main = 0) {
return
implode
(
$head
,
"
\n
"
);
}
/*
* Execute hook _footer() which is run at the end of the page right before
* the </body> tag
*/
function
theme_footer
(
$main
=
0
)
{
$footer
=
module_invoke_all
(
"footer"
,
$main
);
return
implode
(
$footer
,
"
\n
"
);
}
function
theme_init
()
{
global
$user
;
...
...
@@ -194,4 +204,21 @@ function theme() {
}
}
/*
* Call _onload hook in all modules to enable modules to insert javascript
* that will get run once the page has been loaded by the browser
*/
function
theme_onload_attribute
(
$theme_onloads
=
array
())
{
if
(
!
is_array
(
$theme_onloads
))
{
$theme_onloads
=
array
(
$theme_onloads
);
}
// Merge theme onloads (javascript rollovers, image preloads, etc.)
// with module onloads (htmlarea, etc.)
$onloads
=
array_merge
(
module_invoke_all
(
"onload"
),
$theme_onloads
);
if
(
count
(
$onloads
))
{
return
" onload=
\"
"
.
implode
(
"; "
,
$onloads
)
.
"
\"
"
;
}
return
;
}
?>
This diff is collapsed.
Click to expand it.
modules/admin.module
+
3
−
1
View file @
b505b5ab
...
...
@@ -40,8 +40,9 @@ function admin_page() {
<style
type=
"text/css"
title=
"layout"
media=
"Screen"
>
@import
url
(
"misc/admin.css"
);
</style>
<?php
print
theme_head
();
?>
</head>
<body>
<body
<?php
print
theme_onload_attribute
();
?>
>
<?php
// NOTE: we include a dummy "print.css" to remove the "flash of unstyled content" (FUOC) problems in IE.
...
...
@@ -87,6 +88,7 @@ function admin_page() {
echo
"<h1><a href=
\"
index.php
\"
>"
.
variable_get
(
"site_name"
,
"drupal"
)
.
"</a></h1>"
;
print
menu_tree
(
"admin"
)
;
print
"</div>"
;
print
theme_footer
();
?>
</body>
</html>
...
...
This diff is collapsed.
Click to expand it.
themes/marvin/marvin.theme
+
2
−
1
View file @
b505b5ab
...
...
@@ -64,7 +64,7 @@ function header($title = "") {
--
>
</style>
</head>
<body
text=
"#000000"
bgcolor=
"#ffffff"
alink=
"#cccccc"
link=
"#665566"
vlink=
"#665566"
>
<body
text=
"#000000"
bgcolor=
"#ffffff"
alink=
"#cccccc"
link=
"#665566"
vlink=
"#665566"
<?
php
print
theme_onload_attribute
();
?
>
>
<table
border=
"0"
cellpadding=
"8"
cellspacing=
"0"
>
<tr>
<td><a
href=
"index.php"
><img
src=
"<?php print $this->path; ?>/images/logo.png"
alt=
""
border=
"0"
/></a></td>
...
...
@@ -195,6 +195,7 @@ function footer() {
</td>
</tr>
</table>
<?php print theme_footer(); ?>
</body>
</html>
<?php
...
...
This diff is collapsed.
Click to expand it.
themes/unconed/unconed.theme
+
2
−
1
View file @
b505b5ab
...
...
@@ -65,7 +65,7 @@ function header($title = "") {
-->
</STYLE>
</HEAD>
<BODY
TEXT=
"#000000"
BGCOLOR=
"
<?php
print
$this
->
clc0
;
?>
"
ALINK=
"#000000"
LINK=
"#404040"
VLINK=
"#404040"
MARGINHEIGHT=
"10"
MARGINWIDTH=
"10"
>
<BODY
TEXT=
"#000000"
BGCOLOR=
"
<?php
print
$this
->
clc0
;
?>
"
ALINK=
"#000000"
LINK=
"#404040"
VLINK=
"#404040"
MARGINHEIGHT=
"10"
MARGINWIDTH=
"10"
<?php
print
theme_onload_attribute
();
?>
>
<TABLE
BORDER=
"0"
CELLPADDING=
"0"
CELLSPACING=
"0"
ALIGN=
"CENTER"
WIDTH=
"100%"
>
<TR><TD
BGCOLOR=
"
<?php
print
$this
->
cl00
;
?>
"
><IMG
SRC=
"
<?php
print
$this
->
path
;
?>
/images/null.gif"
WIDTH=
"10"
></TD><TD
BGCOLOR=
"
<?php
print
$this
->
clc0
;
?>
"
><IMG
SRC=
"
<?php
print
$this
->
path
;
?>
/images/null.gif"
WIDTH=
"4"
></TD>
<TD
BGCOLOR=
"
<?php
print
$this
->
cl80
;
?>
"
>
...
...
@@ -218,6 +218,7 @@ function footer() {
</TABLE>
</TD><TD
BGCOLOR=
"
<?php
print
$this
->
clc0
;
?>
"
><IMG
SRC=
"
<?php
print
$this
->
path
;
?>
/images/null.gif"
WIDTH=
"4"
></TD><TD
BGCOLOR=
"
<?php
print
$this
->
cl00
;
?>
"
><IMG
SRC=
"
<?php
print
$this
->
path
;
?>
/images/null.gif"
WIDTH=
"10"
></TD></TR>
</TABLE>
<?php
print
theme_footer
();
?>
</BODY>
</HTML>
<?php
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment