You are here

function theme_blockify_logo in Blockify 6

Same name and namespace in other branches
  1. 8 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 8

Code

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

  // Strip the base_path from the beginning of the logo path.
  $path = preg_replace('|^' . base_path() . '|', '', $logo_path);
  $image = theme('image', $path, t('!site_name logo', array(
    '!site_name' => $site_name,
  )));
  return l($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,
      )),
    ),
  ));
}