From a6eb3bf8d0f49e9b20fa8153ddca7b9d551f950d Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 15 Dec 2010 12:56:01 +0000 Subject: moving friends views into core git-svn-id: http://code.elgg.org/elgg/trunk@7633 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/picker.php | 329 --------------------------------------- 1 file changed, 329 deletions(-) delete mode 100644 views/default/friends/picker.php (limited to 'views/default/friends/picker.php') diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php deleted file mode 100644 index 3bbe4ffe2..000000000 --- a/views/default/friends/picker.php +++ /dev/null @@ -1,329 +0,0 @@ -name,0,1)); - } else { - $letter = strtoupper(substr($user->name,0,1)); - } - - if (!substr_count($chararray,$letter)) { - $letter = "*"; - } - if (!isset($users[$letter])) { - $users[$letter] = array(); - } - $users[$letter][$user->guid] = $user; - } -} - -// sort users in letters alphabetically -foreach ($users as $letter => $letter_users) { - usort($letter_users, create_function('$a, $b', ' - return strcasecmp($a->name, $b->name); - ')); - $users[$letter] = $letter_users; -} - -if (!$callback) { - ?> - -
- - - -
- - - - - - -
- - - -
-
-
- -
-
-

- "; - $col = 0; - - foreach($users[$letter] as $friend) { - if ($col == 0) { - echo ""; - } - - //echo "

" . $user->name . "

"; - $label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny', 'override' => true)); - $options[$label] = $friend->getGUID(); - - if ($vars['highlight'] == 'all' - && !in_array($letter,$activeletters)) { - - $activeletters[] = $letter; - } - - - if (in_array($friend->getGUID(),$vars['value'])) { - $checked = "checked = \"checked\""; - if (!in_array($letter,$activeletters) && $vars['highlight'] == 'default') { - $activeletters[] = $letter; - } - } else { - $checked = ""; - } - ?> - - - - name="[]" value="" /> - - - - - -
- -
- - - name; ?> - - "; - $col = 0; - } - } - if ($col < 3) { - echo ""; - } - - echo ""; - } - -?> - -
-
- -
- - -
-
- - -
- - - - -
-
- - - -
-
- - - - - - - -