/[drupal]/contributions/themes/addari/template.php
ViewVC logotype

Diff of /contributions/themes/addari/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by sakib000, Fri Jan 2 10:57:38 2009 UTC revision 1.2 by sakib000, Sat Jan 3 11:52:29 2009 UTC
# Line 1  Line 1 
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  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3