diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-20 01:47:14 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-20 01:47:14 +0000 |
commit | 5dc1d61143b56b1b7e429bd248a81b93c2c11a59 (patch) | |
tree | 8a991a58cbf4ad4800d6be8550f15e44682fbd73 /views | |
parent | 1ccd2862bfb46b5785db59dbfdf2ce841934a1c7 (diff) | |
download | elgg-5dc1d61143b56b1b7e429bd248a81b93c2c11a59.tar.gz elgg-5dc1d61143b56b1b7e429bd248a81b93c2c11a59.tar.bz2 |
moved likes to end of metadata and added a links parameter
git-svn-id: http://code.elgg.org/elgg/trunk@7889 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/layout/objects/list/metadata.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php index f2038f88b..bb708b5ee 100644 --- a/views/default/layout/objects/list/metadata.php +++ b/views/default/layout/objects/list/metadata.php @@ -2,8 +2,9 @@ /** * List metadata for objects * - * @uses $vars['entity'] - * @uses $vars['handler'] + * @uses $vars['entity'] ElggEntity + * @uses $vars['handler'] Page handler identifier + * @uses $vars['links'] Array of extra links */ $entity = $vars['entity']; @@ -16,11 +17,14 @@ $handler = elgg_get_array_value('handler', $vars, ''); </li> <?php -$likes = elgg_view_likes($entity); -echo "<li>$likes</li>"; +if (isset($vars['links']) && is_array($vars['links'])) { + foreach ($vars['links'] as $link) { + echo "<li>$link</li>"; + } +} // pass <li>your data</li> back from the view -echo elgg_view("entity/metadata", array('entity' => $entity)); +echo elgg_view('entity/metadata', array('entity' => $entity)); // links to delete or edit. if ($entity->canEdit() && $handler) { @@ -42,5 +46,9 @@ if ($entity->canEdit() && $handler) { )); echo "<li>$delete_link</li>"; } + +$likes = elgg_view_likes($entity); +echo "<li>$likes</li>"; + ?> </ul> |