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
bf2b4f0b
Commit
bf2b4f0b
authored
May 20, 2002
by
Steven Wittens
Browse files
Added taxonomy support to themes Goofy and UnConeD
parent
6d3be31e
Changes
2
Hide whitespace changes
Inline
Side-by-side
themes/goofy/goofy.theme
View file @
bf2b4f0b
...
...
@@ -116,7 +116,15 @@ function node($node, $main = 0) {
echo "\n<!-- node: \"$node->title\" -->\n";
$title = check_output($node->title);
$subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_name($node), "%b" => format_date($node->created, "large")));
$subright = node_index($node);
if (function_exists("taxonomy_node_get_terms")) {
if ($terms = taxonomy_node_get_terms($node->nid)) {
$taxlinks = array();
foreach ($terms as $term) {
$taxlinks[] = "<a href=\"index.php?or=$term->tid\">". check_output($term->name) ."</a>";
}
$subright = $this->links($taxlinks);
}
}
if ($main && $node->teaser) {
$body = check_output($node->teaser, 1);
...
...
themes/unconed/unconed.theme
View file @
bf2b4f0b
...
...
@@ -101,7 +101,16 @@ function node($node, $main = 0) {
<TR><TD
COLSPAN=
"2"
BGCOLOR=
"
<?php
echo
$this
->
bgcolor1
;
?>
"
WIDTH=
"100%"
><table
width=
"100%"
cellpadding=
"0"
cellspacing=
"0"
><tr><td
width=
"100%"
><FONT
COLOR=
"
<?php
echo
$this
->
fgcolor1
;
?>
"
><B>
<?php
echo
""
.
check_output
(
$node
->
title
)
.
""
;
?>
</B></FONT></td><td
valign=
"middle"
align=
"center"
><IMG
SRC=
"themes/
<?php
print
$this
->
themename
;
?>
/images/icon.gif"
valign=
"middle"
></td></tr></table></TD></TR>
<TR
BGCOLOR=
"
<?php
echo
$this
->
bgcolor2
;
?>
"
>
<?php
print
"<TD WIDTH=
\"
70%
\"
BGCOLOR=
\"
$this->bgcolor2
\"
><SMALL>"
.
t
(
"Submitted by %a on %b"
,
array
(
"%a"
=>
format_name
(
$node
),
"%b"
=>
format_date
(
$node
->
created
,
"large"
)))
.
"</TD><TD WIDTH=
\"
30%
\"
BGCOLOR=
\"
$this->bgcolor2
\"
ALIGN=
\"
center
\"
NOWRAP><B>"
.
node_index
(
$node
)
.
"</B>"
;
if
(
function_exists
(
"taxonomy_node_get_terms"
))
{
if
(
$terms
=
taxonomy_node_get_terms
(
$node
->
nid
))
{
$taxlinks
=
array
();
foreach
(
$terms
as
$term
)
{
$taxlinks
[]
=
"<a href=
\"
index.php?or=
$term->tid
\"
>"
.
check_output
(
$term
->
name
)
.
"</a>"
;
}
$taxo
=
$this
->
links
(
$taxlinks
);
}
}
print
"<TD WIDTH=
\"
70%
\"
BGCOLOR=
\"
$this->bgcolor2
\"
><SMALL>"
.
t
(
"Submitted by %a on %b"
,
array
(
"%a"
=>
format_name
(
$node
),
"%b"
=>
format_date
(
$node
->
created
,
"large"
)))
.
"</TD><TD WIDTH=
\"
30%
\"
BGCOLOR=
\"
$this->bgcolor2
\"
ALIGN=
\"
center
\"
NOWRAP><B>"
.
$taxo
.
"</B>"
;
?>
</TD>
</TR>
...
...
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