Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
12713bee
Commit
12713bee
authored
May 20, 2002
by
Kjartan
Browse files
- added taxonomy output to BaseTheme.
parent
59b9ebaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
12713bee
...
...
@@ -35,7 +35,16 @@ function image($name) {
}
function
node
(
$node
,
$main
)
{
$output
.
=
"<b>"
.
check_output
(
$node
->
title
)
.
"</b> by "
.
format_name
(
$node
)
.
"<br />"
;
if
(
function_exists
(
"taxonomy_node_get_terms"
))
{
foreach
(
taxonomy_node_get_terms
(
$node
->
nid
)
as
$term
)
{
$terms
[]
=
l
(
$term
->
name
,
array
(
"or"
=>
$term
->
tid
),
"index"
);
}
}
$output
=
"<b>"
.
check_output
(
$node
->
title
)
.
"</b> by "
.
format_name
(
$node
)
.
"<br />"
;
if
(
count
(
$terms
))
{
$output
.
=
"<small>("
.
$this
->
links
(
$terms
)
.
")</small><br />"
;
}
if
(
$main
&&
$node
->
teaser
)
{
$output
.
=
strip_tags
(
check_output
(
$node
->
teaser
,
1
));
}
...
...
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