/[drupal]/contributions/themes/goofy/goofy.theme
ViewVC logotype

Diff of /contributions/themes/goofy/goofy.theme

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

revision 1.20, Thu Mar 31 19:53:48 2005 UTC revision 1.21, Sat Apr 30 18:42:47 2005 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: goofy.theme,v 1.19 2005/03/27 10:41:55 tdobes Exp $  // $Id: goofy.theme,v 1.20 2005/03/31 19:53:48 tdobes Exp $
3    
4  function goofy_features() {  function goofy_features() {
5    return array('logo', 'toggle_primary_links', 'toggle_node_user_picture', 'toggle_comment_user_picture');    return array('logo', 'toggle_primary_links', 'toggle_node_user_picture', 'toggle_comment_user_picture');
# Line 77  function goofy_page($content) { Line 77  function goofy_page($content) {
77      $output .= $tabs;      $output .= $tabs;
78    }    }
79    
80    if ($help = menu_get_active_help()) {    $output .= theme('help');
     $output .= "<div id=\"help\">$help</div><hr />";  
   }  
81    
82    $output .= theme_status_messages();    $output .= theme('status_messages');
83    
84    $output .= "\n<!-- begin content -->\n";    $output .= "\n<!-- begin content -->\n";
85    $output .= $content;    $output .= $content;
# Line 129  function goofy_linksbar() { // helper fu Line 127  function goofy_linksbar() { // helper fu
127           <td><img src="' . path_to_theme() . '/images/lg-dr.png" alt="" style="display: block;" /></td>           <td><img src="' . path_to_theme() . '/images/lg-dr.png" alt="" style="display: block;" /></td>
128          </tr>          </tr>
129         </table>';         </table>';
130  } // close linksbar function  }
131    
132  function goofy_node($node, $main = 0, $page = 0) {  function goofy_node($node, $main = 0, $page = 0) {
133    $output = "\n<!-- node: \"". check_plain($node->title) ."\" -->\n";    $output = "\n<!-- node: \"". check_plain($node->title) ."\" -->\n";
# Line 204  function goofy_node($node, $main = 0, $p Line 202  function goofy_node($node, $main = 0, $p
202  ';  ';
203    
204    return $output;    return $output;
205  } // close node function  }
206    
207    
208  function goofy_comment($comment, $link = '') {  function goofy_comment($comment, $link = '') {
# Line 267  $output .= ' Line 265  $output .= '
265  <br />  <br />
266  ';  ';
267    return $output;    return $output;
268  } // close comment function  }
269    
270  function goofy_box($subject, $content, $region = 'main') {  function goofy_box($subject, $content, $region = 'main') {
271    return '    return '
# Line 305  function goofy_box($subject, $content, $ Line 303  function goofy_box($subject, $content, $
303  </table>  </table>
304  <br />  <br />
305  ';  ';
306  } // close box function  }
307    
308  function goofy_block($block) {  function goofy_block($block) {
309    $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";
310    $output .= goofy_box($block->subject, $block->content);    $output .= goofy_box($block->subject, $block->content);
311    $output .= "</div>\n";    $output .= "</div>\n";
312    return $output;    return $output;
313  } // close block function  }
314    
315    function goofy_help() {
316      if ($help = menu_get_active_help()) {
317        return '<div class="help">'. $help .'</div><hr />';
318      }
319    }
320    
321  ?>  ?>

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.2