You are here

function theme_panels_layout_icon in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \theme_panels_layout_icon()
  2. 5.2 panels.module \theme_panels_layout_icon()
  3. 6.3 panels.module \theme_panels_layout_icon()
  4. 6.2 panels.module \theme_panels_layout_icon()

Theme the layout icon image.

@todo move to theme.inc

1 theme call to theme_panels_layout_icon()
panels_print_layout_icon in ./panels.module
Panels layout icon function.

File

./panels.module, line 1358
Core functionality for the Panels engine.

Code

function theme_panels_layout_icon($vars) {
  $id = $vars['id'];
  $image = $vars['image'];
  $title = $vars['title'];
  $output = '<div class="layout-icon">';
  $output .= $image;
  if ($title) {
    $output .= '<div class="caption">' . $title . '</div>';
  }
  $output .= '</div>';
  return $output;
}