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

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

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


Revision 1.1 - (show annotations) (download) (as text)
Sun Mar 18 05:45:28 2007 UTC (2 years, 8 months ago) by vadbarsdrupalorg
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, HEAD
File MIME type: text/x-php
first release
1 <?php
2 function garamond_regions() {
3 return array(
4 'right' => t('right sidebar'),
5 'content' => t('content'),
6 'footer' => t('footer')
7 );
8 }
9
10 /**
11 * Return a themed breadcrumb trail.
12 *
13 * @param $breadcrumb
14 * An array containing the breadcrumb links.
15 * @return a string containing the breadcrumb output.
16 */
17 function phptemplate_breadcrumb($breadcrumb) {
18 if (!empty($breadcrumb)) {
19 return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>';
20 }
21 }
22
23 /**
24 * Allow themable wrapping of all comments.
25 */
26 function phptemplate_comment_wrapper($content, $type = null) {
27 static $node_type;
28 if (isset($type)) $node_type = $type;
29
30 if (!$content || $node_type == 'forum') {
31 return '<div id="comments">'. $content . '</div>';
32 }
33 else {
34 return '<h3 id="comments">'. t('Comments') .'</h3><ol class="commentlist">'. $content .'</ol>';
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.2