You are here

function theme_advanced_forum_simple_author_pane in Advanced Forum 7.2

Same name and namespace in other branches
  1. 6.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
Preprocess comment.
_advanced_forum_preprocess_node in includes/advanced_forum_preprocess_node.inc
Preprocess node.

File

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

Code

function theme_advanced_forum_simple_author_pane(&$variables) {
  $context = $variables['context'];

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