/[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.19, Sun Mar 27 10:41:55 2005 UTC revision 1.20, Thu Mar 31 19:53:48 2005 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: goofy.theme,v 1.18 2005/03/27 09:45:57 tdobes Exp $  // $Id: goofy.theme,v 1.19 2005/03/27 10:41:55 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 28  function goofy_page($content) { Line 28  function goofy_page($content) {
28     <title>';     <title>';
29    
30    if ($title = drupal_get_title()) {    if ($title = drupal_get_title()) {
31      $output .= "$title - ". variable_get("site_name", "drupal");      $output .= strip_tags($title) .' - '. variable_get("site_name", "drupal");
32    }    }
33    else {    else {
34      $output .= variable_get("site_name", "drupal");      $output .= variable_get("site_name", "drupal");
# Line 68  function goofy_page($content) { Line 68  function goofy_page($content) {
68    $output .= '      <td style="vertical-align: top; width: ' . (($colspan == 1) ? '100%' : (($colspan == 2) ? '80%' : '60%')) . '">    $output .= '      <td style="vertical-align: top; width: ' . (($colspan == 1) ? '100%' : (($colspan == 2) ? '80%' : '60%')) . '">
69  ';  ';
70    
71    if ($title = drupal_get_title()) {    if ($title) {
72      $output .= theme("breadcrumb", drupal_get_breadcrumb());      $output .= theme("breadcrumb", drupal_get_breadcrumb());
73      $output .= "<h2 class=\"title\">$title</h2>";      $output .= "<h2 class=\"title\">$title</h2>";
74    }    }
# Line 132  function goofy_linksbar() { // helper fu Line 132  function goofy_linksbar() { // helper fu
132  } // close linksbar function  } // close linksbar function
133    
134  function goofy_node($node, $main = 0, $page = 0) {  function goofy_node($node, $main = 0, $page = 0) {
135    $output = "\n<!-- node: \"$node->title\" -->\n";    $output = "\n<!-- node: \"". check_plain($node->title) ."\" -->\n";
136    $title = l($node->title, "node/$node->nid");    $title = l($node->title, "node/$node->nid");
137    $subleft = theme_get_setting("toggle_node_info_$node->type") ? t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) : '';    $subleft = theme_get_setting("toggle_node_info_$node->type") ? t("Submitted by %a on %b", array("%a" => format_name($node), "%b" => format_date($node->created, "large"))) : '';
138    

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

  ViewVC Help
Powered by ViewVC 1.1.2