You are here

function theme_blockify_logo in Blockify 8

Same name and namespace in other branches
  1. 6 blockify.theme.inc \theme_blockify_logo()
  2. 7 blockify.theme.inc \theme_blockify_logo()

Returns the rendered logo.

1 theme call to theme_blockify_logo()
blockify_get_content in ./blockify.module
Provides individual block content.

File

./blockify.theme.inc, line 12
Theme functions for the Blockify module.

Code

function theme_blockify_logo($variables) {
  $site_name = filter_xss_admin(variable_get('site_name', 'Drupal'));

  // We only need the path.
  $path = file_create_url($variables['logo_path']);
  $image = array(
    '#theme' => 'image',
    '#path' => $path,
    '#alt' => t('!site_name logo', array(
      '!site_name' => $site_name,
    )),
  );
  return l(render($image), '<front>', array(
    'html' => TRUE,
    'attributes' => array(
      'id' => 'logo',
      'rel' => 'home',
      'title' => t('Return to the !site_name home page', array(
        '!site_name' => $site_name,
      )),
    ),
  ));
}