aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/profile_navigation.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/profile_navigation.php')
-rwxr-xr-xmod/profile/views/default/profile/profile_navigation.php57
1 files changed, 57 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/profile_navigation.php b/mod/profile/views/default/profile/profile_navigation.php
new file mode 100755
index 000000000..0ab00746c
--- /dev/null
+++ b/mod/profile/views/default/profile/profile_navigation.php
@@ -0,0 +1,57 @@
+<?php
+
+$section = 'activity';
+if (isset($vars['section'])) {
+ $section = $vars['section'];
+}
+
+$profile = $vars['entity'];
+$activity = '';
+$widgets = '';
+$friends = '';
+$extend = '';
+$twitter = '';
+
+$url = "{$profile->getURL()}/";
+
+//select section
+switch($section){
+ case 'friends':
+ $friends = 'class="selected"';
+ break;
+
+ case 'widgets':
+ $widgets = 'class="selected"';
+ break;
+
+ case 'details':
+ $details = 'class="selected"';
+ break;
+
+ case 'twitter':
+ $twitter = 'class="selected"';
+ break;
+
+ case 'activity':
+ default:
+ $activity = 'class="selected"';
+ break;
+}
+?>
+<div class="elgg_horizontal_tabbed_nav profile">
+<div class="profile_name"><h2><?php echo $profile->name; ?></h2></div>
+<ul>
+ <li <?php echo $activity; ?>><a href="<?php echo $url; ?>">Activity</a></li>
+ <li <?php echo $details; ?>><a href="<?php echo $url . 'details'; ?>">Details</a></li>
+ <li <?php echo $widgets; ?>><a href="<?php echo $url . 'widgets'; ?>">Widgets</a></li>
+ <li <?php echo $friends; ?>><a href="<?php echo $url . 'friends'; ?>">Friends</a></li>
+ <?php
+ //check to see if the twitter username is set
+ if($vars['entity']->twitter){
+ ?>
+ <li <?php echo $twitter; ?>><a href="<?php echo $url . 'twitter'; ?>">Twitter</a></li>
+ <?php
+ }
+ ?>
+</ul>
+</div>