You are here

function theme_panels_layout_link in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \theme_panels_layout_link()
  2. 5.2 panels.module \theme_panels_layout_link()
  3. 6.3 panels.module \theme_panels_layout_link()
  4. 6.2 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?

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.

File

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

Code

function theme_panels_layout_link($vars) {
  $options = !empty($vars['options']) ? $vars['options'] : array();
  if (!isset($options['attributes']['class'])) {
    $options['attributes']['class'] = array();
  }
  $options['attributes']['class'] = array_merge($options['attributes']['class'], $vars['class']);
  $content = $vars['image'] . '<span>' . $vars['title'] . '</span>';
  return l($content, $vars['link'], $options + array(
    'html' => TRUE,
  ));
}