You are here

function theme_panels_layout_link in Panels 8.3

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

Theme the layout link image @layout

@todo Why isn't this a template at this point? @todo Why does this take 4 arguments but only makes use of two?

Related topics

1 theme call to theme_panels_layout_link()
panels_print_layout_link in ./panels.module
Print the layout link. Sends out to a theme function. @layout

File

./panels.module, line 908
panels.module

Code

function theme_panels_layout_link($vars) {
  $title = $vars['title'];
  $image = $vars['image'];
  $class = $vars['class'];
  $output = '<div class="' . implode(' ', $class) . '">';
  $output .= $vars['image'];
  $output .= '<div>' . $vars['title'] . '</div>';
  $output .= '</div>';
  return $output;
}