/[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.2 by sakib000, Sat Jan 3 11:52:29 2009 UTC revision 1.3 by sakib000, Mon Jan 26 14:13:39 2009 UTC
# Line 1  Line 1 
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  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.3