def theme_node_submitted(node): """ Format the 'Submitted by username on date/time' for each node. """ return lib_common.t('not datetime — not username', { 'not username' : lib_theme.theme('username', node), 'not datetime' : php.format_date(node.created), })
def theme_comment_wrapper(content, node): """ Allow themable wrapping of all comments. """ if (not content or node.type_ == 'forum'): return '<div id="comments">' + content + '</div>' else: return '<div id="comments"><h2 class="comments">' + \ lib_common.t('Comments') + '</h2>' + content + '</div>'
def drupytemplate_comment_submitted(comment): """ Format the Submitted by username on date/time' for each comment. """ return lib_common.t('not datetime — not username', { 'not username' : lib_theme.theme('username', comment), 'not datetime' : php.format_date(comment.timestamp) })