Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
22d3f6bd
Commit
22d3f6bd
authored
Nov 10, 2003
by
Kjartan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Spell checked the comments.
parent
36da307e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
includes/theme.inc
includes/theme.inc
+20
-20
No files found.
includes/theme.inc
View file @
22d3f6bd
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
@param $title (optional) override the page title.
@param $title (optional) override the page title.
@return a string cont
r
aining the \a header output.
@return a string containing the \a header output.
**/
**/
function
theme_header
(
$title
=
""
)
{
function
theme_header
(
$title
=
""
)
{
global
$base_url
;
global
$base_url
;
...
@@ -47,9 +47,9 @@ function theme_header($title = "") {
...
@@ -47,9 +47,9 @@ function theme_header($title = "") {
Returns themed set of links.
Returns themed set of links.
@param $links an array of \a links to be themed.
@param $links an array of \a links to be themed.
@param $delimiter (optional) \a delimiter used to sep
e
rate the links.
@param $delimiter (optional) \a delimiter used to sep
a
rate the links.
@return a string cont
r
aining the \a links output.
@return a string containing the \a links output.
**/
**/
function
theme_links
(
$links
,
$delimiter
=
" | "
)
{
function
theme_links
(
$links
,
$delimiter
=
" | "
)
{
return
implode
(
$delimiter
,
$links
);
return
implode
(
$delimiter
,
$links
);
...
@@ -60,7 +60,7 @@ function theme_links($links, $delimiter = " | ") {
...
@@ -60,7 +60,7 @@ function theme_links($links, $delimiter = " | ") {
@param $name the \a name of the image file.
@param $name the \a name of the image file.
@return a string cont
r
aining the \a image output.
@return a string containing the \a image output.
**/
**/
function
theme_image
(
$name
)
{
function
theme_image
(
$name
)
{
return
"misc/
$name
"
;
return
"misc/
$name
"
;
...
@@ -71,7 +71,7 @@ function theme_image($name) {
...
@@ -71,7 +71,7 @@ function theme_image($name) {
@param $breadcrumb an array containing the breadcrumb links.
@param $breadcrumb an array containing the breadcrumb links.
@return a string cont
r
aining the \a breadcrumb output.
@return a string containing the \a breadcrumb output.
**/
**/
function
theme_breadcrumb
(
$breadcrumb
)
{
function
theme_breadcrumb
(
$breadcrumb
)
{
return
"<div class=
\"
breadcrumb
\"
>"
.
implode
(
$breadcrumb
,
" » "
)
.
"</div>"
;
return
"<div class=
\"
breadcrumb
\"
>"
.
implode
(
$breadcrumb
,
" » "
)
.
"</div>"
;
...
@@ -94,7 +94,7 @@ function theme_breadcrumb($breadcrumb) {
...
@@ -94,7 +94,7 @@ function theme_breadcrumb($breadcrumb) {
@param $node the \a node to be themed.
@param $node the \a node to be themed.
@param $main
@param $main
@return a string cont
r
aining the \a node output.
@return a string containing the \a node output.
**/
**/
function
theme_node
(
$node
,
$main
)
{
function
theme_node
(
$node
,
$main
)
{
if
(
module_exist
(
"taxonomy"
))
{
if
(
module_exist
(
"taxonomy"
))
{
...
@@ -127,9 +127,9 @@ function theme_node($node, $main) {
...
@@ -127,9 +127,9 @@ function theme_node($node, $main) {
@param $subject the \a subject of the box.
@param $subject the \a subject of the box.
@param $content the \a content of the box.
@param $content the \a content of the box.
@param $re
qu
ion the \a region of the box.
@param $re
g
ion the \a region of the box.
@return a string cont
r
aining the \a box output.
@return a string containing the \a box output.
**/
**/
function
theme_box
(
$subject
,
$content
,
$region
=
"main"
)
{
function
theme_box
(
$subject
,
$content
,
$region
=
"main"
)
{
$output
=
"<h2>
$subject
</h2><p>
$content
</p>"
;
$output
=
"<h2>
$subject
</h2><p>
$content
</p>"
;
...
@@ -147,7 +147,7 @@ function theme_box($subject, $content, $region = "main") {
...
@@ -147,7 +147,7 @@ function theme_box($subject, $content, $region = "main") {
@param $block object "indexed with" fields from database table 'blocks' ($block->module, $block->delta, $block->region, ...) and fields returned by <i>module</i>_block("view") ($block->subject, $block->content, ...).
@param $block object "indexed with" fields from database table 'blocks' ($block->module, $block->delta, $block->region, ...) and fields returned by <i>module</i>_block("view") ($block->subject, $block->content, ...).
@return a string cont
r
aining the \a box output.
@return a string containing the \a box output.
**/
**/
function
theme_block
(
$block
)
{
function
theme_block
(
$block
)
{
$output
=
"<div class=
\"
block block-
$block->module
\"
id=
\"
block-
$block->module
-
$block->delta
\"
>"
;
$output
=
"<div class=
\"
block block-
$block->module
\"
id=
\"
block-
$block->module
-
$block->delta
\"
>"
;
...
@@ -160,7 +160,7 @@ function theme_block($block) {
...
@@ -160,7 +160,7 @@ function theme_block($block) {
/**
/**
Returns themed page footer.
Returns themed page footer.
@return a string cont
r
aining the \a footer output.
@return a string containing the \a footer output.
**/
**/
function
theme_footer
()
{
function
theme_footer
()
{
$output
=
"</td></tr></table>"
;
$output
=
"</td></tr></table>"
;
...
@@ -172,7 +172,7 @@ function theme_footer() {
...
@@ -172,7 +172,7 @@ function theme_footer() {
/**
/**
Returns themed marker, useful for marking new comments or required form elements.
Returns themed marker, useful for marking new comments or required form elements.
@return a string cont
r
aining the \a mark output.
@return a string containing the \a mark output.
**/
**/
function
theme_mark
()
{
function
theme_mark
()
{
return
"<span class=
\"
marker
\"
>*</span>"
;
return
"<span class=
\"
marker
\"
>*</span>"
;
...
@@ -184,7 +184,7 @@ function theme_mark() {
...
@@ -184,7 +184,7 @@ function theme_mark() {
@param $items (optional) an array of the items to be displayed in a list.
@param $items (optional) an array of the items to be displayed in a list.
@param $title (optional) the title of the list.
@param $title (optional) the title of the list.
@return a string cont
r
aining the \a list output.
@return a string containing the \a list output.
**/
**/
function
theme_item_list
(
$items
=
array
(),
$title
=
NULL
)
{
function
theme_item_list
(
$items
=
array
(),
$title
=
NULL
)
{
$output
.
=
"<div class=
\"
item-list
\"
>"
;
$output
.
=
"<div class=
\"
item-list
\"
>"
;
...
@@ -208,7 +208,7 @@ function theme_item_list($items = array(), $title = NULL) {
...
@@ -208,7 +208,7 @@ function theme_item_list($items = array(), $title = NULL) {
@param $message the error message to be themed.
@param $message the error message to be themed.
@return a string cont
r
aining the \a error output.
@return a string containing the \a error output.
**/
**/
function
theme_error
(
$message
)
{
function
theme_error
(
$message
)
{
return
"<div class=
\"
error
\"
>
$message
</div>"
;
return
"<div class=
\"
error
\"
>
$message
</div>"
;
...
@@ -219,7 +219,7 @@ function theme_error($message) {
...
@@ -219,7 +219,7 @@ function theme_error($message) {
@param $main (optional)
@param $main (optional)
@return a string cont
r
aining the \a error output.
@return a string containing the \a error output.
**/
**/
function
theme_head
(
$main
=
0
)
{
function
theme_head
(
$main
=
0
)
{
global
$base_url
;
global
$base_url
;
...
@@ -239,7 +239,7 @@ function theme_head($main = 0) {
...
@@ -239,7 +239,7 @@ function theme_head($main = 0) {
@param $main (optional)
@param $main (optional)
@return a string cont
r
aining the \a clo
a
sure output.
@return a string containing the \a closure output.
**/
**/
function
theme_closure
(
$main
=
0
)
{
function
theme_closure
(
$main
=
0
)
{
$footer
=
module_invoke_all
(
"footer"
,
$main
);
$footer
=
module_invoke_all
(
"footer"
,
$main
);
...
@@ -252,7 +252,7 @@ function theme_closure($main = 0) {
...
@@ -252,7 +252,7 @@ function theme_closure($main = 0) {
@param $theme_onloads (optional) addition onload directives.
@param $theme_onloads (optional) addition onload directives.
@return a string cont
r
aining the \a onload output.
@return a string containing the \a onload output.
**/
**/
function
theme_onload_attribute
(
$theme_onloads
=
array
())
{
function
theme_onload_attribute
(
$theme_onloads
=
array
())
{
if
(
!
is_array
(
$theme_onloads
))
{
if
(
!
is_array
(
$theme_onloads
))
{
...
@@ -272,7 +272,7 @@ function theme_onload_attribute($theme_onloads = array()) {
...
@@ -272,7 +272,7 @@ function theme_onload_attribute($theme_onloads = array()) {
@param $region main|left|right
@param $region main|left|right
@return a string cont
r
aining the \a blocks output.
@return a string containing the \a blocks output.
**/
**/
function
render_blocks
(
$region
)
{
function
render_blocks
(
$region
)
{
global
$user
;
global
$user
;
...
@@ -296,7 +296,7 @@ function render_blocks($region) {
...
@@ -296,7 +296,7 @@ function render_blocks($region) {
@param section defines the \a section of the help to be returned.
@param section defines the \a section of the help to be returned.
@return a string cont
r
aining the help output.
@return a string containing the help output.
**/
**/
function
theme_help
(
$section
)
{
function
theme_help
(
$section
)
{
$ouptout
=
""
;
$ouptout
=
""
;
...
@@ -310,11 +310,11 @@ function theme_help($section) {
...
@@ -310,11 +310,11 @@ function theme_help($section) {
}
}
/**
/**
Provides a list of currently ava
l
ible themes.
Provides a list of currently avai
la
ble themes.
@param $refresh
@param $refresh
@return an array of the currently ava
l
ible themes.
@return an array of the currently avai
la
ble themes.
**/
**/
function
list_themes
(
$refresh
=
0
)
{
function
list_themes
(
$refresh
=
0
)
{
static
$list
;
static
$list
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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