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

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

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

revision 1.1, Sat Nov 10 08:29:13 2007 UTC revision 1.2, Sat Nov 10 16:03:56 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
   
 function dark_comment_submitted($comment) {  
   return t('<span class="post-author">!username</span><span class="post-date">@datetime</span>',  
     array(  
       '!username' => theme('username', $comment),  
       '@datetime' => format_date($comment->created, 'custom', 'M d,Y')  
     ));  
 }  
   
2  /**  /**
3   * Allow themable wrapping of all comments.   * Allow themable wrapping of all comments.
4   */   */
# Line 68  function dark_node($node, $teaser = 0, $ Line 59  function dark_node($node, $teaser = 0, $
59    
60    return _phptemplate_callback('node', $variables, array('node-' . $node->type));    return _phptemplate_callback('node', $variables, array('node-' . $node->type));
61  }  }
62    /**
63     * Prepare the values passed to the theme_comment function to be passed
64     * into a pluggable template engine.
65     */
66    function dark_comment($comment, $links = 0) {
67      return _phptemplate_callback('comment', array(
68        'author'    => theme('username', $comment),
69        'comment'   => $comment,
70        'content'   => $comment->comment,
71        'date'      => format_date($comment->timestamp),
72        'links'     => isset($links) ? theme('links', $links) : '',
73        'new'       => $comment->new ? t('new') : '',
74        'picture'   => theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '',
75        'submitted' => t('<span class="cmt-author">!username</span><span class="post-date">@datetime</span>', array('!username' => theme('username', $comment), '@datetime' => format_date($comment->timestamp, 'custom', 'M d,Y'))),
76        'title'     => l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid")
77      ));
78    }
79    
80  /**  /**
81   * Format an individual feed item for display on the aggregator page.   * Format an individual feed item for display on the aggregator page.

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

  ViewVC Help
Powered by ViewVC 1.1.2