You are here

function theme_profile_fields_pane in Panels 5.2

Theme the profile fields retrieved in panels_profile_fields_content

1 theme call to theme_profile_fields_pane()
panels_profile_fields_content in content_types/profile_fields.inc
'Render' callback for the 'profile fields' content type.

File

content_types/profile_fields.inc, line 72

Code

function theme_profile_fields_pane($category, $vars) {
  if (is_array($vars)) {
    foreach ($vars as $class => $field) {
      $output .= '<dl class="profile-category">';
      $output .= '<dt class="profile-' . $class . '">' . $field['title'] . '</dt>';
      $output .= '<dd class="profile-' . $class . '">' . $field['value'] . '</dd>';
      $output .= '</dl>';
    }
  }
  return $output;
}