1 layout.theme.inc theme_layout_template_info($variables)

Outputs information about a layout template . Used in the layout template listing page.

Parameters

$variables: An array with a single value: "template_info", which contains information about the layout template.

Return value

string:

File

core/modules/layout/layout.theme.inc, line 127
Theme functions for the Layout module.

Code

function theme_layout_template_info($variables) {
  $template_info = $variables['template_info'];

  // Build template thumbnail preview
  $preview_path = $template_info['path'] . '/' . $template_info['preview'];
  $preview_img = theme('image', array('path' => $preview_path));

  $output = '';
  $output .= '<div class="layout-info">';
  $output .= $preview_img;
  $output .= '<div class="layout-detail">';
  $output .= '  <div class="layout-title">' . check_plain($template_info['title']) . '</div>';
  $output .= '  <div class="layout-template description">' . t('<span class="priority-low">Machine name: </span>!title', array('!title' => $template_info['name'])) . '</div>';
  $output .= '</div></div>';

  return $output;
}