| 1 |
<?php |
<?php |
| 2 |
function burnt_regions() { |
|
|
return array( |
|
|
'left' => t('left sidebar'), |
|
|
'right' => t('right sidebar'), |
|
|
'content' => t('content'), |
|
|
'header' => t('header'), |
|
|
'footer' => t('footer') |
|
|
); |
|
|
} |
|
|
function phptemplate_menu_tree($pid = 1) { |
|
|
if ($tree = menu_tree($pid)) { |
|
|
$output .= "\n<ul class=\"navlist\">\n"; |
|
|
if ($pid == 1) { |
|
|
$output .= "<li><a href=\"node\">home</a></li>"; |
|
|
}; |
|
|
$output .= $tree; |
|
|
$output .= "\n</ul>\n"; |
|
|
return $output; |
|
|
} |
|
|
} |
|
|
function phptemplate_menu_item($mid, $children = '', $leaf = TRUE) { |
|
|
//return '<li class="'. ($leaf ? 'leaf' : ($children ? 'expanded' : 'collapsed')) .'">'. menu_item_link($mid) . $children ."</li>\n"; |
|
|
return '<li>'. menu_item_link($mid) . $children ."</li>\n"; |
|
|
} |
|
| 3 |
function burnt_block($block) { |
function burnt_block($block) { |
| 4 |
$output = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n"; |
$output = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n"; |
| 5 |
//don't print the header if it's the navigation block |
//don't print the header if it's the navigation block |