2014-08-18 20:17:49 +00:00
|
|
|
<?php
|
|
|
|
use Blossom\Classes\View;
|
|
|
|
?>
|
|
|
|
<header>
|
|
|
|
<ul id="utilityBar">
|
|
|
|
<?php
|
|
|
|
$li = '<li><a href="%s">%s</a></li>';
|
|
|
|
|
|
|
|
if (isset($_SESSION['USER'])) {
|
2014-08-18 20:26:14 +00:00
|
|
|
echo sprintf($li, BASE_URI.'/login/logout', $this->translate('logout'));
|
2014-08-18 20:17:49 +00:00
|
|
|
|
|
|
|
$name = View::escape($_SESSION['USER']->getFullname());
|
|
|
|
echo sprintf('<li>'.sprintf($this->translate('messages.signed_in_as'), $name).'</li>');
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$return_url = View::escape($_SERVER['REQUEST_URI']);
|
2014-08-18 20:26:14 +00:00
|
|
|
echo sprintf($li, BASE_URI.'/login?return_url='.$return_url, $this->translate('login'));
|
2014-08-18 20:17:49 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
<h1>
|
|
|
|
<a href="<?php echo BASE_URI; ?>">Rose Hill & White Oak Cemeteries</a>
|
|
|
|
</h1>
|
2009-12-18 12:56:12 +00:00
|
|
|
<div id="location_name">
|
2014-08-18 20:17:49 +00:00
|
|
|
<a href="<?php echo BASE_URI; ?>">City of Bloomington, Mark Kruzan, Mayor</a>
|
2009-12-18 15:45:40 +00:00
|
|
|
</div>
|
2014-08-18 20:17:49 +00:00
|
|
|
<?php
|
|
|
|
if (isset($_SESSION['USER'])) {
|
|
|
|
include __DIR__.'/menubar.inc';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</header>
|