Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (20 sloc) 1.149 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php
/* Hitchwiki Maps - Header - Navi area
* Called with AJAX from the frontpage
*/
if(!$naviRefreshArea) {
require_once("../config.php");
$user = current_user();
}
?>
<?php if($user["logged_in"]===true): ?>
<li><a href="<?= $settings["base_url"]; ?>/users/" id="users" class="icon user" onclick="open_page('users'); return false;"><?php echo _("Members"); ?></a></li>
<?php else: ?>
<li><a href="<?= $settings["base_url"]; ?>/about/" id="about" class="icon help" onclick="open_page('about'); return false;"><?php echo _("About"); ?></a></li>
<?php endif; ?>

<?php // Visible only for admins
if($user["admin"]===true): ?>
<!--<li><a href="#" id="streetview" class="icon eye cardlink"><?php echo _("Street view"); ?></a></li>-->
<li><a href="./?page=trips" id="trips" class="icon flag_green" onclick="open_page('trips'); return false;"><?php echo _("My trips"); ?></a></li>
<?php endif; ?>

<li><a href="<?= $settings["base_url"]; ?>/log_all/" id="log_all" class="icon page_white_text" onclick="open_page('log_all'); return false;"><?php echo _("Log"); ?></a></li>
Something went wrong with that request. Please try again.