aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/friends')
-rw-r--r--views/default/friends/tablelist.php90
-rw-r--r--views/default/friends/tablelistcountupdate.php27
2 files changed, 51 insertions, 66 deletions
diff --git a/views/default/friends/tablelist.php b/views/default/friends/tablelist.php
index af37ff4ed..4581c04f7 100644
--- a/views/default/friends/tablelist.php
+++ b/views/default/friends/tablelist.php
@@ -1,64 +1,52 @@
<?php
+/**
+ * Elgg friends picker
+ * Lists the friends picker
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ * @uses $vars['entities'] The array of ElggUser objects
+ */
+
+if (is_array($vars['entities'])) {
- /**
- * Elgg friends picker
- * Lists the friends picker
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- * @uses $vars['entities'] The array of ElggUser objects
- */
-
- if (is_array($vars['entities'])) {
-
-?>
-
- <table cellspacing="0" id="collectionMembersTable">
- <tr>
-<?php
- $column = 0;
- foreach($vars['entities'] as $entity) {
- if (!($entity instanceof ElggEntity)) $entity = get_entity($entity);
- if ($entity instanceof ElggEntity) {
?>
- <td style="width:25px;">
- <div style="width: 25px; margin-bottom: 15px;">
- <?php echo elgg_view("profile/icon",array('entity' => $entity, 'size' => 'tiny')); ?>
- </div>
- </td>
- <td style="width: 200px; padding: 5px;">
-<?php
-
- echo $entity->name;
-
-?>
- </td>
+<table cellspacing="0" id="collectionMembersTable">
+ <tr>
+ <?php
+ $column = 0;
+ foreach($vars['entities'] as $entity) {
+ if (!($entity instanceof ElggEntity)) {
+ $entity = get_entity($entity);
+ }
-<?php
-
+ if ($entity instanceof ElggEntity) {
+ ?>
+ <td style="width:25px;">
+ <div style="width: 25px; margin-bottom: 15px;">
+ <?php echo elgg_view("profile/icon",array('entity' => $entity, 'size' => 'tiny')); ?>
+ </div>
+ </td>
+ <td style="width: 200px; padding: 5px;">
+ <?php echo $entity->name; ?>
+ </td>
+ <?php
$column++;
if ($column == 3) {
echo "</tr><tr>";
$column = 0;
}
-
}
-
-
-?>
-
-
-
-<?php
- }
- if ($column < 3 && $column != 0) echo "</tr>";
- echo "</table>";
}
-
- if (isset($vars['content'])) echo $vars['content'];
-?> \ No newline at end of file
+if ($column < 3 && $column != 0) echo "</tr>";
+ echo "</table>";
+}
+
+if (isset($vars['content'])) {
+ echo $vars['content'];
+} \ No newline at end of file
diff --git a/views/default/friends/tablelistcountupdate.php b/views/default/friends/tablelistcountupdate.php
index 4c4e26c80..81a061439 100644
--- a/views/default/friends/tablelistcountupdate.php
+++ b/views/default/friends/tablelistcountupdate.php
@@ -1,19 +1,16 @@
<?php
-
- /**
- * Elgg friends picker count updater
- * Updates the friends count on a collection
- *
- * @package Elgg
- * @subpackage Core
-
- * @author Curverider Ltd
-
- * @link http://elgg.org/
- *
- * @uses $vars['count'] The count
- * @uses $vars['friendspicker'] The friendspicker counter number
- */
+/**
+ * Elgg friends picker count updater
+ * Updates the friends count on a collection
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ * @uses $vars['count'] The count
+ * @uses $vars['friendspicker'] The friendspicker counter number
+ */
?>