| 1 |
<?php
|
| 2 |
// ; $Id: template.php,v 1.1 2007/10/29 22:29:40 bonvga Exp $
|
| 3 |
|
| 4 |
function fblike_regions() {
|
| 5 |
return array(
|
| 6 |
'left' => t('left sidebar'),
|
| 7 |
'content' => t('content'),
|
| 8 |
'header' => t('header'),
|
| 9 |
'footer' => t('footer')
|
| 10 |
);
|
| 11 |
}
|
| 12 |
|
| 13 |
function phptemplate_breadcrumb($breadcrumb) {
|
| 14 |
$home = variable_get('site_name', 'drupal');
|
| 15 |
$sep = ' » ';
|
| 16 |
if (count($breadcrumb) > 1) {
|
| 17 |
if ( (drupal_get_title() !== '') && (strstr(end($breadcrumb),drupal_get_title()) ) == FALSE) {
|
| 18 |
$breadcrumb[] = t(drupal_get_title(), '');
|
| 19 |
}
|
| 20 |
return implode($sep, $breadcrumb);
|
| 21 |
}
|
| 22 |
}
|
| 23 |
|
| 24 |
function fblike_menu_local_tasks() {
|
| 25 |
$output = '';
|
| 26 |
if ($primary = menu_primary_local_tasks()) {
|
| 27 |
$output .= "<ul class=\"clearfix\">\n". $primary ."</ul>\n";
|
| 28 |
}
|
| 29 |
return $output;
|
| 30 |
}
|
| 31 |
|
| 32 |
function fblike_comment_wrapper($content) {
|
| 33 |
if ($content!="") {
|
| 34 |
$content = '<div class="comment-header">'.t('Comments').'</div>'.$content;
|
| 35 |
}
|
| 36 |
return theme_comment_wrapper($content);
|
| 37 |
}
|
| 38 |
|
| 39 |
function _phptemplate_variables($hook, $vars) {
|
| 40 |
if ($hook == 'page') {
|
| 41 |
if ($secondary = menu_secondary_local_tasks()) {
|
| 42 |
$vars['tabs2'] = '<ul class="clearfix">'.$secondary.'</ul>';
|
| 43 |
}
|
| 44 |
return $vars;
|
| 45 |
}
|
| 46 |
return array();
|
| 47 |
}
|
| 48 |
?>
|