<?php
/**
* @version 2.1.2
* @since 2.0 Aug 19, 2008
* @package kwalbum
*/
$extended_url = $URLP->GetExtendedURL();
$id = $URLP->GetId();
?>
<a href="<?=PAGE_URL.'">'.MAIN_TITLE?></a> - <a href="<?=$URLP->GetExtendedURL('Dates')?>p=Dates">Dates</a> - <a href="<?=$URLP->GetExtendedURL('Locations')?>p=Locations">Locations</a> - <a href="<?=$URLP->GetExtendedURL()?>p=Tags">Tags</a> - <a href="<?=$URLP->GetExtendedURL('Users')?>p=Contributors">Contributors</a>
|
<?php
echo (USER_ID
? (USER_CAN_ADD
? "<a href='" . $extended_url . "p=UploadItems'>Upload</a> - " ."<a href='" . $extended_url .
(EDIT_MODE
? "m=View".(($pageName = $URLP->GetPageName() and $pageName != 'Item') ? '&p='.$pageName : null) . ($id ? '&i='.$id : null)."'>View"
: "m=Edit".(($pageName = $URLP->GetPageName() and $pageName != 'Item') ? '&p='.$pageName : null) . ($id ? '&i='.$id : null)."'>Edit"
)."</a> - "
: '') .
(USER_IS_ADMIN
? "<a href='" . $extended_url . "p=Admin'>Admin</a> - "
: '') .
"<a href='" . $extended_url . "p=MyStuff'>My Stuff</a> - <a href='" . $extended_url . "p=Logout'>Logout</a>"
: "<a href='" . $extended_url . "p=Login'>Login</a> - <a href='" . $extended_url . "p=Register'>Register</a>") .
"<br/>";
?>