diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:37:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:37:18 +0000 |
commit | 3c8180095c81d4eee82ed7088b378161cee29298 (patch) | |
tree | 834f34e3b6786b6fbd1688807d343a0f6e52c8e0 /mod/tabbed_profile/views/default/profile/tabs | |
parent | b6f99468651309e0b58dbe000958540809df5dcc (diff) | |
download | elgg-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/tabs')
6 files changed, 0 insertions, 108 deletions
diff --git a/mod/tabbed_profile/views/default/profile/tabs/activity.php b/mod/tabbed_profile/views/default/profile/tabs/activity.php deleted file mode 100755 index 7a7bffb94..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/activity.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Elgg user display (details) - * @uses $vars['entity'] The user entity - */ - -echo elgg_view('profile/status', array("entity" => $vars['entity'])); - -$params = array( - 'subject_guid' => $vars['entity']->guid, - 'limit' => 5, -); -echo elgg_list_river($params); diff --git a/mod/tabbed_profile/views/default/profile/tabs/commentwall.php b/mod/tabbed_profile/views/default/profile/tabs/commentwall.php deleted file mode 100644 index bf54bd7e7..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/commentwall.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Elgg profile comment wall - */ - -$user = elgg_get_page_owner(); -$comments = $user->getAnnotations('commentwall', 200, 0, 'desc'); - -if (isloggedin()) { - echo elgg_view("profile/commentwall/commentwalladd"); -} - -echo elgg_view("profile/commentwall/commentwall", array('annotation' => $comments)); diff --git a/mod/tabbed_profile/views/default/profile/tabs/details.php b/mod/tabbed_profile/views/default/profile/tabs/details.php deleted file mode 100755 index 27b0f943b..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/details.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Elgg user display (details) - * @uses $vars['entity'] The user entity - */ - -$even_odd = null; -if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) { - foreach($vars['config']->profile as $shortname => $valtype) { - if ($shortname != "description") { - $value = $vars['entity']->$shortname; - if (!empty($value)) { - //This function controls the alternating class - $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; - ?> - <p class="<?php echo $even_odd; ?>"> - <b><?php - echo elgg_echo("profile:{$shortname}"); - ?>: </b> - <?php - echo elgg_view("output/{$valtype}", array('value' => $vars['entity']->$shortname)); - ?> - </p> - <?php - } - } - } -} - -if (!get_plugin_setting('user_defined_fields', 'profile')) { - if ($vars['entity']->isBanned()) { - echo "<div class='banned_user'>"; - echo elgg_echo('profile:banned'); - echo "</div>"; - } else { - if ($vars['entity']->description) { - echo "<p class='aboutme_title'><b>" . elgg_echo("profile:aboutme") . "</b></p>"; - echo "<div class='aboutme_contents'>" . elgg_view('output/longtext', array('value' => $vars['entity']->description)) . "</div>"; - } - } -} diff --git a/mod/tabbed_profile/views/default/profile/tabs/friends.php b/mod/tabbed_profile/views/default/profile/tabs/friends.php deleted file mode 100755 index 0871d3e3a..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/friends.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php -/** - * Profile friends - */ - -$friends = $vars['entity']->listFriends(); - -if (!$friends) { - $friends = '<p>' . elgg_echo('profile:no_friends') . '</p>'; -} - -echo $friends;
\ No newline at end of file diff --git a/mod/tabbed_profile/views/default/profile/tabs/groups.php b/mod/tabbed_profile/views/default/profile/tabs/groups.php deleted file mode 100644 index bb5467a17..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/groups.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php
-/**
- * Profile groups
- */
-
-$groups = $vars['entity']->listGroups();
-
-if (!$groups) {
- $groups = '<p>' . elgg_echo('profile:no_groups') . '</p>';
-}
-
-echo $groups;
\ No newline at end of file diff --git a/mod/tabbed_profile/views/default/profile/tabs/twitter.php b/mod/tabbed_profile/views/default/profile/tabs/twitter.php deleted file mode 100755 index 06a0551d4..000000000 --- a/mod/tabbed_profile/views/default/profile/tabs/twitter.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * Elgg twitter view page - */ - -$twitter_username = $vars['entity']->twitter; - -// if the twitter username is empty, then do not show -if($twitter_username){ -?> -<ul id="twitter_update_list"></ul> -<p class="visit_twitter"><a href="http://twitter.com/<?php echo $twitter_username; ?>" target="_blank"><?php echo elgg_echo("twitter:visit"); ?></a></p> -<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> -<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo $twitter_username; ?>.json?callback=twitterCallback2&count=10"></script> - -<?php -}
\ No newline at end of file |