| 1 |
<?php |
<?php |
| 2 |
// $Id: goofy.theme,v 1.19 2005/03/27 10:41:55 tdobes Exp $ |
// $Id: goofy.theme,v 1.20 2005/03/31 19:53:48 tdobes Exp $ |
| 3 |
|
|
| 4 |
function goofy_features() { |
function goofy_features() { |
| 5 |
return array('logo', 'toggle_primary_links', 'toggle_node_user_picture', 'toggle_comment_user_picture'); |
return array('logo', 'toggle_primary_links', 'toggle_node_user_picture', 'toggle_comment_user_picture'); |
| 77 |
$output .= $tabs; |
$output .= $tabs; |
| 78 |
} |
} |
| 79 |
|
|
| 80 |
if ($help = menu_get_active_help()) { |
$output .= theme('help'); |
|
$output .= "<div id=\"help\">$help</div><hr />"; |
|
|
} |
|
| 81 |
|
|
| 82 |
$output .= theme_status_messages(); |
$output .= theme('status_messages'); |
| 83 |
|
|
| 84 |
$output .= "\n<!-- begin content -->\n"; |
$output .= "\n<!-- begin content -->\n"; |
| 85 |
$output .= $content; |
$output .= $content; |
| 127 |
<td><img src="' . path_to_theme() . '/images/lg-dr.png" alt="" style="display: block;" /></td> |
<td><img src="' . path_to_theme() . '/images/lg-dr.png" alt="" style="display: block;" /></td> |
| 128 |
</tr> |
</tr> |
| 129 |
</table>'; |
</table>'; |
| 130 |
} // close linksbar function |
} |
| 131 |
|
|
| 132 |
function goofy_node($node, $main = 0, $page = 0) { |
function goofy_node($node, $main = 0, $page = 0) { |
| 133 |
$output = "\n<!-- node: \"". check_plain($node->title) ."\" -->\n"; |
$output = "\n<!-- node: \"". check_plain($node->title) ."\" -->\n"; |
| 202 |
'; |
'; |
| 203 |
|
|
| 204 |
return $output; |
return $output; |
| 205 |
} // close node function |
} |
| 206 |
|
|
| 207 |
|
|
| 208 |
function goofy_comment($comment, $link = '') { |
function goofy_comment($comment, $link = '') { |
| 265 |
<br /> |
<br /> |
| 266 |
'; |
'; |
| 267 |
return $output; |
return $output; |
| 268 |
} // close comment function |
} |
| 269 |
|
|
| 270 |
function goofy_box($subject, $content, $region = 'main') { |
function goofy_box($subject, $content, $region = 'main') { |
| 271 |
return ' |
return ' |
| 303 |
</table> |
</table> |
| 304 |
<br /> |
<br /> |
| 305 |
'; |
'; |
| 306 |
} // close box function |
} |
| 307 |
|
|
| 308 |
function goofy_block($block) { |
function goofy_block($block) { |
| 309 |
$output = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n"; |
$output = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n"; |
| 310 |
$output .= goofy_box($block->subject, $block->content); |
$output .= goofy_box($block->subject, $block->content); |
| 311 |
$output .= "</div>\n"; |
$output .= "</div>\n"; |
| 312 |
return $output; |
return $output; |
| 313 |
} // close block function |
} |
| 314 |
|
|
| 315 |
|
function goofy_help() { |
| 316 |
|
if ($help = menu_get_active_help()) { |
| 317 |
|
return '<div class="help">'. $help .'</div><hr />'; |
| 318 |
|
} |
| 319 |
|
} |
| 320 |
|
|
| 321 |
?> |
?> |