function delta_blocks_logo in Delta 7.3
@todo
1 call to delta_blocks_logo()
- delta_blocks_get_content in delta_blocks/
delta_blocks.module - Provides individual block content.
File
- delta_blocks/
delta_blocks.module, line 376 - Exposes a number of core Drupal elements as blocks.
Code
function delta_blocks_logo() {
$theme = $GLOBALS['theme_key'];
if (theme_get_setting('default_logo', $theme)) {
$themes = list_themes();
$theme_object = $themes[$theme];
return file_create_url(dirname($theme_object->filename) . '/logo.png');
}
else {
if ($path = theme_get_setting('logo_path', $theme)) {
return file_create_url($path);
}
}
}