aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/page_elements/elgg_header.php16
-rw-r--r--views/default/page_elements/elgg_header_logo.php10
2 files changed, 15 insertions, 11 deletions
diff --git a/views/default/page_elements/elgg_header.php b/views/default/page_elements/elgg_header.php
index d036fcf46..7cd52a32b 100644
--- a/views/default/page_elements/elgg_header.php
+++ b/views/default/page_elements/elgg_header.php
@@ -7,24 +7,18 @@
?>
<div id="elgg_header">
<div id="elgg_header_contents">
- <!-- 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='network_title'>".$vars['config']->sitename ."</span>";
- } else {
- echo "<img class='custom_logo' src=\"{$vars['url']}pg/csseditor/{$logo_time}.jpg\" alt=\"". htmlentities($vars['config']->sitename) ."\" />";
- }
- ?></a></h1>
<?php
+ // link back to main site.
+ echo elgg_view('page_elements/elgg_header_logo', $vars);
+
// drop-down login
echo elgg_view('account/forms/login_dropdown');
// insert site-wide navigation
echo elgg_view('navigation/site_nav');
+
// insert a view which can be extended
echo elgg_view('header/extend');
?>
</div>
-</div> \ No newline at end of file
+</div>
diff --git a/views/default/page_elements/elgg_header_logo.php b/views/default/page_elements/elgg_header_logo.php
new file mode 100644
index 000000000..4449c9644
--- /dev/null
+++ b/views/default/page_elements/elgg_header_logo.php
@@ -0,0 +1,10 @@
+<?php
+/**
+ * Elgg header logo
+ * The logo to display in elgg_header.
+ **/
+?>
+
+<h1><a href="<?php echo $vars['url']; ?>">
+<span class='network_title'><?php echo $vars['config']->sitename; ?></span>
+</a></h1>