| 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 |
}
|