| 1 |
<?php
|
| 2 |
|
| 3 |
function phptemplate_search_theme_form($form) {
|
| 4 |
return _phptemplate_callback('search-box', array('form' => $form));
|
| 5 |
}
|
| 6 |
|
| 7 |
function warped_primary_links() {
|
| 8 |
$output = ''
|
| 9 |
$links = menu_primary_links();
|
| 10 |
if ($links) {
|
| 11 |
foreach ($links as $link) {
|
| 12 |
$output .= '<li>'. l($link['title'], $link['href'],
|
| 13 |
$link['attributes'], $link['query'],
|
| 14 |
$link['fragment'], FALSE, $link['html']) .'</li>';
|
| 15 |
}
|
| 16 |
}
|
| 17 |
return $output;
|
| 18 |
}
|
| 19 |
|
| 20 |
function phptemplate_comment_thread_collapsed($comment) {
|
| 21 |
if ($comment->depth) {
|
| 22 |
$output = '<div style="padding-left:'. ($comment->depth * 25) ."px;\">\n";
|
| 23 |
$output .= theme('comment_view', $comment, '', 0);
|
| 24 |
$output .= "</div>\n";
|
| 25 |
}
|
| 26 |
else {
|
| 27 |
$output .= theme('comment_view', $comment, '', 0);
|
| 28 |
}
|
| 29 |
return $output;
|
| 30 |
}
|
| 31 |
|
| 32 |
function phptemplate_comment_thread_expanded($comment) {
|
| 33 |
$output = '';
|
| 34 |
if ($comment->depth) {
|
| 35 |
$output .= '<div style="padding-left:'. ($comment->depth * 25) ."px;\">\n";
|
| 36 |
}
|
| 37 |
|
| 38 |
$output .= theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0));
|
| 39 |
|
| 40 |
if ($comment->depth) {
|
| 41 |
$output .= "</div>\n";
|
| 42 |
}
|
| 43 |
return $output;
|
| 44 |
}
|