function ctools_page_site_name_content_type_render

Output function for the 'page_site_name' content type.

Outputs the site_name for the current page.

File

plugins/content_types/page/page_site_name.inc, line 57

Code

function ctools_page_site_name_content_type_render($subtype, $conf, $panel_args) {
  $block = new stdClass();
  $block->content = filter_xss_admin(variable_get('site_name', 'Drupal'));
  // Optionally link the site name to the homepage.
  if (!empty($conf['linked'])) {
    $block->content = l($block->content, '<front>', array(
      'html' => TRUE,
    ));
  }
  return $block;
}