You are here

function theme_advanced_forum_simple_author_pane in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 includes/theme.inc \theme_advanced_forum_simple_author_pane()

Theme function to show simple author pane when not using Author Pane.

2 theme calls to theme_advanced_forum_simple_author_pane()
_advanced_forum_preprocess_comment in includes/advanced_forum_preprocess_comment.inc
@file Holds the contents of a preprocess function moved into its own file to ease memory requirements and having too much code in one file.
_advanced_forum_preprocess_node in includes/advanced_forum_preprocess_node.inc
@file Holds the contents of a preprocess function moved into its own file to ease memory requirements and having too much code in one file.

File

includes/theme.inc, line 72
Holds theme functions and template preprocesses. Other style related functions are in style.inc

Code

function theme_advanced_forum_simple_author_pane($context) {

  // Sending the context rather than the account makes it work for anon comments.
  $name = theme('username', $context);
  $account = user_load($context->uid);
  $picture = theme('user_picture', $account);
  return '<div class="author-pane">' . $name . $picture . '</div>';
}