You are here

function theme_delta_blocks_logo in Delta 7.3

Returns the rendered logo.

2 theme calls to theme_delta_blocks_logo()
delta_blocks_get_content in delta_blocks/delta_blocks.module
Provides individual block content.
theme_delta_blocks_branding in delta_blocks/includes/delta_blocks.theme.inc
Returns the rendered branding.

File

delta_blocks/includes/delta_blocks.theme.inc, line 31
Theme functions for the Delta blocks module.

Code

function theme_delta_blocks_logo($variables) {
  if ($variables['logo']) {
    $image = array(
      '#theme' => 'image',
      '#path' => $variables['logo'],
      '#alt' => $variables['site_name'],
    );
    $image = render($image);
    if ($variables['logo_linked']) {
      $options['html'] = TRUE;
      $options['attributes']['id'] = 'logo';
      $options['attributes']['title'] = t('Return to the @name home page', array(
        '@name' => $variables['site_name'],
      ));
      $image = l($image, '<front>', $options);
    }
    return '<div class="logo-img">' . $image . '</div>';
  }
}