root / htmltest / sites / all / themes / journalcrunch / template.php @ 6c38d829
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * Return a themed breadcrumb trail.
|
||
5 | *
|
||
6 | * @param $breadcrumb
|
||
7 | * An array containing the breadcrumb links.
|
||
8 | * @return a string containing the breadcrumb output.
|
||
9 | */
|
||
10 | function phptemplate_breadcrumb($breadcrumb) { |
||
11 | if (!empty($breadcrumb)) { |
||
12 | return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>'; |
||
13 | } |
||
14 | } |
||
15 | |||
16 | /**
|
||
17 | * Returns the rendered local tasks. The default implementation renders
|
||
18 | * them as tabs.
|
||
19 | *
|
||
20 | * @ingroup themeable
|
||
21 | */
|
||
22 | function phptemplate_menu_local_tasks() { |
||
23 | $output = ''; |
||
24 | |||
25 | if ($primary = menu_primary_local_tasks()) { |
||
26 | $output .= "<ul class=\"tabs primary\">\n". $primary ."</ul>\n"; |
||
27 | } |
||
28 | |||
29 | return $output; |
||
30 | } |
||
31 | |||
32 | /**
|
||
33 | * Allow themable wrapping of all comments.
|
||
34 | */
|
||
35 | function phptemplate_comment_wrapper($content, $type = null) { |
||
36 | static $node_type; |
||
37 | if (isset($type)) $node_type = $type; |
||
38 | |||
39 | if (!$content || $node_type == 'forum') { |
||
40 | return '<div id="comments">'. $content . '</div>'; |
||
41 | } |
||
42 | else {
|
||
43 | return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; |
||
44 | } |
||
45 | } |
||
46 | |||
47 | /**
|
||
48 | * Define JournalCrunch variables
|
||
49 | */
|
||
50 | variable_set('isFirstNoStickyNode', false); |