-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#870 Add Me section, based on profile
- Loading branch information
Yannick
committed
Sep 25, 2014
1 parent
796a768
commit 6fa0025
Showing
3 changed files
with
853 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright (C) 2013-2014 Luna | ||
* License: http://opensource.org/licenses/MIT MIT | ||
*/ | ||
|
||
// Display the me navigation | ||
function load_me_nav($page = '') { | ||
global $lang, $luna_config, $luna_user, $id; | ||
|
||
?> | ||
<div class="list-group"> | ||
<a class="<?php if ($page == 'view') echo 'active'; ?> list-group-item" href="profile.php?section=view&id=<?php echo $id ?>"><?php echo $lang['Profile'] ?></a> | ||
<?php if ($luna_user['id'] == $id && !$luna_user['is_guest'] || ($luna_user['g_id'] == FORUM_ADMIN || ($luna_user['g_moderator'] == '1' && $luna_user['g_mod_ban_users'] == '1'))): ?> | ||
<a class="<?php if ($page == 'personality') echo 'active'; ?> list-group-item" href="profile.php?section=personality&id=<?php echo $id ?>"><?php echo $lang['Section personality'] ?></a> | ||
<a class="<?php if ($page == 'settings') echo 'active'; ?> list-group-item" href="profile.php?section=settings&id=<?php echo $id ?>"><?php echo $lang['Settings'] ?></a> | ||
<?php if ($luna_user['g_id'] == FORUM_ADMIN || ($luna_user['g_moderator'] == '1' && $luna_user['g_mod_ban_users'] == '1')): ?> | ||
<a class="<?php if ($page == 'admin') echo 'active'; ?> list-group-item" href="profile.php?section=admin&id=<?php echo $id ?>"><?php echo $lang['Section admin'] ?></a> | ||
<?php endif; ?> | ||
<?php endif; ?> | ||
</div> | ||
<?php | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.