diff options
Diffstat (limited to 'views/default/object')
-rw-r--r-- | views/default/object/videolist_item.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php index 63f3e6334..bda333a2d 100644 --- a/views/default/object/videolist_item.php +++ b/views/default/object/videolist_item.php @@ -16,8 +16,6 @@ $owner = $entity->getOwnerEntity(); $container = $entity->getContainerEntity(); $categories = elgg_view('output/categories', $vars); $excerpt = elgg_get_excerpt($entity->description); -$mime = $entity->mimetype; -$base_type = substr($mime, 0, strpos($mime,'/')); $body = elgg_view('output/longtext', array('value' => $entity->description)); @@ -88,9 +86,12 @@ HTML; } elseif (elgg_in_context('gallery')) { echo '<div class="videolist-gallery-item">'; - echo "<h3>" . $entity->title . "</h3>"; - echo elgg_view_entity_icon($entity, 'medium'); - echo "<p class='subtitle'>$owner_link $date</p>"; + $content = elgg_view('output/url', array( + 'text' => elgg_get_excerpt($entity->title, 25), + 'href' => $entity->getURL(), + )); + $content .= "<p class='subtitle'>$owner_link $date</p>"; + echo elgg_view_image_block($entity_icon, $content); echo '</div>'; } else { // brief view |