aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/elgg_header.php
blob: e03ebabdcd17886fa7f2d4bae9a7b84d7bcabe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * Elgg header contents
 * This file holds the header output that a user will see
 **/

?>
<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
			// insert site-wide navigation
			echo elgg_view('navigation/site_nav');
			// insert a view which can be extended
			echo elgg_view('header/extend');
		?>
	</div>
</div>