/[drupal]/contributions/themes/warped/template.php
ViewVC logotype

Contents of /contributions/themes/warped/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Wed Jan 17 16:54:35 2007 UTC (2 years, 10 months ago) by jhuckabee
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -2 lines
File MIME type: text/x-php
Updates for 5.0
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 }

  ViewVC Help
Powered by ViewVC 1.1.2