aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/page_elements/elgg_header.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/views/default/page_elements/elgg_header.php b/views/default/page_elements/elgg_header.php
index 0733268f4..abc29e001 100644
--- a/views/default/page_elements/elgg_header.php
+++ b/views/default/page_elements/elgg_header.php
@@ -7,8 +7,16 @@
?>
<div id="elgg_header">
<div id="elgg_header_contents">
- <!-- display site name -->
- <h1><a href="<?php echo $vars['url']; ?>"><?php echo $vars['config']->sitename; ?></a></h1>
+ <!-- site name -->
+ <h1><a href="<?php echo $vars['url']; ?>"><?php
+ $logo = $vars['config']->site->customlogo;
+ $logo_time = $vars['config']->site->customlogo_time;
+ if (empty($logo)) {
+ echo "<span class='default_site_logo'>".$vars['config']->sitename ."</span>";
+ } else {
+ echo "<img src=\"{$vars['url']}pg/csseditor/{$logo_time}.jpg\" alt=\"". htmlentities($vars['config']->sitename) ."\" style=\"max-width: 270px; max-height: 70px\" />";
+ }
+ ?></a></h1>
<?php
// insert site-wide navigation
echo elgg_view('navigation/site_nav');