1 filter.theme.inc theme_filter_caption($variables)

Returns HTML for a captioned item, usually an image.

File

core/modules/filter/filter.theme.inc, line 31
Theme functions for the Filter module.

Code

function theme_filter_caption($variables) {
  $output = '';
  $output .= '<figure' . backdrop_attributes($variables['attributes']) . '>';
  $output .= $variables['item'];
  $output .= '<figcaption>' . $variables['caption'] . '</figcaption>';
  $output .= '</figure>';
  return $output;
}