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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Feb 23 05:17:12 2008 UTC (21 months ago) by chrisada
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Changes since 1.1: +0 -8 lines
File MIME type: text/x-php
Porting to 6.x
1 <?php
2 /**
3 * Return a themed breadcrumb trail.
4 *
5 * @param $breadcrumb
6 * An array containing the breadcrumb links.
7 * @return a string containing the breadcrumb output.
8 */
9 function phptemplate_breadcrumb($breadcrumb) {
10 if (!empty($breadcrumb)) {
11 return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>';
12 }
13 }
14
15 /**
16 * Allow themable wrapping of all comments.
17 */
18 function phptemplate_comment_wrapper($content, $type = null) {
19 static $node_type;
20 if (isset($type)) $node_type = $type;
21
22 if (!$content || $node_type == 'forum') {
23 return '<div id="comments">'. $content . '</div>';
24 }
25 else {
26 return '<h3 id="comments">'. t('Comments') .'</h3><ol class="commentlist">'. $content .'</ol>';
27 }
28 }

  ViewVC Help
Powered by ViewVC 1.1.2