| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/*
|
| 5 |
* Declare the available regions implemented by this engine.
|
| 6 |
*
|
| 7 |
* @return
|
| 8 |
* An array of regions. The first array element will be used as the default region for themes.
|
| 9 |
* Each array element takes the format: variable_name => t('human readable name')
|
| 10 |
*/
|
| 11 |
function moleskine_regions() {
|
| 12 |
return array(
|
| 13 |
'sidebar_right' => t('right sidebar'),
|
| 14 |
'content_top' => t('content top'),
|
| 15 |
'content_bottom' => t('content bottom'),
|
| 16 |
);
|
| 17 |
}
|
| 18 |
|
| 19 |
/**
|
| 20 |
* Adding a title to the comment section.
|
| 21 |
*/
|
| 22 |
|
| 23 |
function phptemplate_comment_wrapper($content, $type = null) {
|
| 24 |
static $node_type;
|
| 25 |
if (isset($type)) $node_type = $type;
|
| 26 |
return '<h2 id="comments">'. t('Comments') .'</h2>'. $content ;
|
| 27 |
|
| 28 |
}
|
| 29 |
|
| 30 |
/**
|
| 31 |
* Adding a span tag in tabs for theming purposes
|
| 32 |
*/
|
| 33 |
function phptemplate_menu_item_link($item, $link_item) {
|
| 34 |
// If an item is a LOCAL TASK, render it as a tab
|
| 35 |
$tab = ($item['type'] & MENU_IS_LOCAL_TASK) ? TRUE : FALSE;
|
| 36 |
return l(
|
| 37 |
$tab ? '<span class="tab">'. check_plain($item['title']) .'</span>' : $item['title'],
|
| 38 |
$link_item['path'],
|
| 39 |
!empty($item['description']) ? array('title' => $item['description']) : array(),
|
| 40 |
!empty($item['query']) ? $item['query'] : NULL,
|
| 41 |
!empty($link_item['fragment']) ? $link_item['fragment'] : NULL,
|
| 42 |
FALSE,
|
| 43 |
$tab
|
| 44 |
);
|
| 45 |
}
|