aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/objects')
-rw-r--r--views/default/layout/objects/list.php4
-rw-r--r--views/default/layout/objects/list/metadata.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/views/default/layout/objects/list.php b/views/default/layout/objects/list.php
index 6d12c5e55..0ab3d5482 100644
--- a/views/default/layout/objects/list.php
+++ b/views/default/layout/objects/list.php
@@ -31,6 +31,10 @@ if (isset($vars['list_class'])) {
$list_class = "{$vars['list_class']} $list_class";
}
+if (elgg_in_context('gallery')) {
+ $list_class = "$list_class elgg-gallery";
+}
+
$item_class = 'elgg-list-item';
if (isset($vars['item_class'])) {
$item_class = "{$vars['item_class']} $item_class";
diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php
index 43bfaf50b..f2038f88b 100644
--- a/views/default/layout/objects/list/metadata.php
+++ b/views/default/layout/objects/list/metadata.php
@@ -38,7 +38,7 @@ if ($entity->canEdit() && $handler) {
'text' => '<span class="elgg-icon elgg-icon-delete"></span>',
'title' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
- 'encode' => false,
+ 'text_encode' => false,
));
echo "<li>$delete_link</li>";
}