aboutsummaryrefslogtreecommitdiff
path: root/mod/tabbed_profile/views/default/profile/tab_navigation.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:37:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:37:18 +0000
commit3c8180095c81d4eee82ed7088b378161cee29298 (patch)
tree834f34e3b6786b6fbd1688807d343a0f6e52c8e0 /mod/tabbed_profile/views/default/profile/tab_navigation.php
parentb6f99468651309e0b58dbe000958540809df5dcc (diff)
downloadelgg-3c8180095c81d4eee82ed7088b378161cee29298.tar.gz
elgg-3c8180095c81d4eee82ed7088b378161cee29298.tar.bz2
Fixes #2481 - moving tabbed_profile plugin into the plugins repo from core - it needs some updates to reflect changes to the core profile plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7751 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tabbed_profile/views/default/profile/tab_navigation.php')
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tab_navigation.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/mod/tabbed_profile/views/default/profile/tab_navigation.php b/mod/tabbed_profile/views/default/profile/tab_navigation.php
deleted file mode 100755
index ca0873ebd..000000000
--- a/mod/tabbed_profile/views/default/profile/tab_navigation.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-$section = 'activity';
-if (isset($vars['section'])) {
- $section = $vars['section'];
-}
-
-$user = $vars['entity'];
-if (!$user) {
- // no user so no profile
- echo elgg_echo('viewfailure', array(__FILE__));
- return TRUE;
-}
-
-
-$activity = '';
-$friends = '';
-$extend = '';
-$twitter = '';
-
-$url = "{$user->getURL()}/";
-
-//select section
-switch($section){
- case 'friends':
- $friends = 'class="selected"';
- break;
-
- case 'details':
- $details = 'class="selected"';
- break;
- case 'groups':
- $groups = 'class="selected"';
- break;
- case 'twitter':
- $twitter = 'class="selected"';
- break;
-
- case 'commentwall':
- $commentwall = 'class="selected"';
- break;
- case 'activity':
- default:
- $activity = 'class="selected"';
- break;
-}
-?>
-<div class="elgg-horizontal-tabbed-nav profile">
-<div class="profile_name"><h2><?php echo $user->name; ?></h2></div>
-<ul>
- <li <?php echo $activity; ?>><a href="<?php echo $url; ?>"><?php echo elgg_echo('activity'); ?></a></li>
- <li <?php echo $details; ?>><a href="<?php echo $url . 'details'; ?>"><?php echo elgg_echo('Details'); ?></a></li>
- <li <?php echo $friends; ?>><a href="<?php echo $url . 'friends'; ?>"><?php echo elgg_echo('friends'); ?></a></li>
- <li <?php echo $groups; ?>><a href="<?php echo $url . 'groups'; ?>"><?php echo elgg_echo('groups'); ?></a></li>
- <li <?php echo $commentwall; ?>><a href="<?php echo $url . 'commentwall'; ?>"><?php echo elgg_echo('profile:commentwall'); ?></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
- }
-
- //insert a view which others can extend
- echo elgg_view('profile_navigation/extend', array('entity' => $user));
- ?>
-</ul>
-</div> \ No newline at end of file