diff options
author | Sem <sembrestels@riseup.net> | 2011-11-09 03:10:35 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-11-09 03:10:35 +0100 |
commit | b0f15fbebe3781626ba6b086d63ed364f6822209 (patch) | |
tree | c0b9358920ac777d6a0a5125f5cf528b7ca52643 /views/default/object/videolist_item.php | |
parent | 6b16fa9b322ae12a54c66ba5160cc7547d6e7667 (diff) | |
download | elgg-b0f15fbebe3781626ba6b086d63ed364f6822209.tar.gz elgg-b0f15fbebe3781626ba6b086d63ed364f6822209.tar.bz2 |
Sidebar.
Diffstat (limited to 'views/default/object/videolist_item.php')
-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 |