| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
function phptemplate_comment_wrapper($content, $type = null) { |
function phptemplate_comment_wrapper($content, $node) { |
| 4 |
static $node_type; |
if (!$content || $node->type == 'forum') { |
| 5 |
if (isset($type)) $node_type = $type; |
return '<div id="comments">'. $content .'</div>'; |
|
|
|
|
if (!$content || $node_type == 'forum') { |
|
|
return '<div id="comments">'. $content . '</div>'; |
|
| 6 |
} |
} |
| 7 |
else { |
else { |
| 8 |
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; |
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; |
| 9 |
} |
} |
| 10 |
} |
} |
| 11 |
|
|
|
|
|
|
function addari_regions() { |
|
|
return array( |
|
|
'content_top' => t('content top'), |
|
|
'content_bottom' => t('content bottom'), |
|
|
'sidebar_left' => t('left sidebar'), |
|
|
'sidebar_right' => t('right sidebar'), |
|
|
'header' => t('header'), |
|
|
'footer' => t('footer'), |
|
|
|
|
|
|
|
|
); |
|
|
} |
|
|
|
|
|
|
|
| 12 |
?> |
?> |