Add analytics
[bus.git] / busui / owa / modules / base / templates / header.tpl
blob:a/busui/owa/modules/base/templates/header.tpl -> blob:b/busui/owa/modules/base/templates/header.tpl
--- a/busui/owa/modules/base/templates/header.tpl
+++ b/busui/owa/modules/base/templates/header.tpl
@@ -1,1 +1,34 @@
-
+<div id="owa_header">

+

+	<span class="owa_logo"><img src="<?php echo $this->makeImageLink('base/i/owa-logo-100w.png'); ?>" alt="Open Web Analytics"></span>

+	 &nbsp

+	<span class="owa_navigation">

+		<UL>

+			<LI><a href="<?php echo $this->makeLink(array('do' => 'base.reportDashboard'), true);?>">Reports</a></LI>

+			<LI><a href="<?php echo $this->makeLink(array('do' => 'base.optionsGeneral'));?>">Administration</a></LI>

+			<LI><a href="http://wiki.openwebanalytics.com">Help</a></LI>

+			<LI><a href="http://trac.openwebanalytics.com">Report a Bug</a></LI>

+			

+		</UL>

+	</span>

+	<?php $cu = $this->getCurrentUser(); ?>

+	<span class="user-greating" style="">

+		Hi, <?php $this->out( $cu->getUserData('user_id') );?> ! &bull;

+		<?php if ( ! owa_coreAPI::getSetting( 'base', 'is_embedded' ) ):?>

+			

+				<?php if (owa_coreAPI::isCurrentUserAuthenticated()):?>

+				<a class="login" href="<?php echo $this->makeLink(array('do' => 'base.logout'), false);?>">Logout</a>

+				<?php else:?>

+				<a class="login" href="<?php echo $this->makeLink(array('do' => 'base.loginForm'), false);?>">Login</a>

+				<?php endif;?>

+			

+			<?php endif;?>	

+	</span>

+	<div class="post-nav"></div>

+	<?php if (!empty($service_msg)): ?>

+	<div class="owa_headerServiceMsg"><?php echo $service_msg; ?></div>

+	<?php endif;?>

+				

+	<?php $this->headerActions(); ?>

+	

+</div>