aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/friends/tablelist.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/views/default/friends/tablelist.php b/views/default/friends/tablelist.php
new file mode 100644
index 000000000..716e1cb35
--- /dev/null
+++ b/views/default/friends/tablelist.php
@@ -0,0 +1,60 @@
+<?php
+
+ /**
+ * Elgg friends picker
+ * Lists the friends picker
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['entities'] The array of ElggUser objects
+ */
+
+ if (is_array($vars['entities'])) {
+
+?>
+
+ <table>
+ <tr>
+<?php
+
+ $column = 0;
+ foreach($vars['entities'] as $entity) {
+
+?>
+
+ <td style="width:25px">
+ <?php echo elgg_view("profile/icon",array('entity' => $entity, 'size' => 'tiny')); ?>
+ </td>
+ <td style="width: 300px; padding: 5px;">
+<?php
+
+ echo $entity->name;
+
+?>
+ </td>
+
+<?php
+
+ $column++;
+ if ($column > 1) {
+ echo "</tr><tr>";
+ $column = 0;
+ }
+
+ }
+ if ($column > 0) echo "</tr>";
+
+?>
+
+ </table>
+
+<?php
+
+ }
+
+?> \ No newline at end of file