aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/elgg_header.php
blob: abc29e001acba87f2ec062d159e0078cd787d635 (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='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');
			// insert a view which can be extended
			echo elgg_view('header/extend');
		?>
	</div>
</div>