| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
function phptemplate_comment_wrapper($content, $node) { |
function phptemplate_comment_wrapper($content, $type = null) { |
| 4 |
if (!$content || $node->type == 'forum') { |
static $node_type; |
| 5 |
return '<div id="comments">'. $content .'</div>'; |
if (isset($type)) $node_type = $type; |
| 6 |
|
|
| 7 |
|
if (!$content || $node_type == 'forum') { |
| 8 |
|
return '<div id="comments">'. $content . '</div>'; |
| 9 |
} |
} |
| 10 |
else { |
else { |
| 11 |
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; |
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>'; |
| 12 |
} |
} |
| 13 |
} |
} |
| 14 |
|
|
| 15 |
|
|
| 16 |
|
function addari_regions() { |
| 17 |
|
return array( |
| 18 |
|
'content_top' => t('content top'), |
| 19 |
|
'content_bottom' => t('content bottom'), |
| 20 |
|
'sidebar_left' => t('left sidebar'), |
| 21 |
|
'sidebar_right' => t('right sidebar'), |
| 22 |
|
'header' => t('header'), |
| 23 |
|
'footer' => t('footer'), |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
|
| 30 |
?> |
?> |