aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-10 12:04:42 -0400
committerSteve Clay <steve@mrclay.org>2012-04-10 12:04:42 -0400
commit4af120de2bd0fe2046795346a40102f00fbe5479 (patch)
tree5022ba0160427bec07cf9fdf337ef8161e4071b9 /views/default/object
parent4a447a9cfe118373f3b5e7ec35382239455d1541 (diff)
downloadelgg-4af120de2bd0fe2046795346a40102f00fbe5479.tar.gz
elgg-4af120de2bd0fe2046795346a40102f00fbe5479.tar.bz2
Allow plugins to alter video dimensions.
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/videolist_item.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php
index e30d9d95b..5e0db00ce 100644
--- a/views/default/object/videolist_item.php
+++ b/views/default/object/videolist_item.php
@@ -60,11 +60,12 @@ if (elgg_in_context('widgets')) {
}
if ($full && !elgg_in_context('gallery')) {
-
+
+ $dimensions = videolist_get_video_dimensions($entity);
$content = elgg_view("videolist/watch/{$entity->videotype}", array(
'entity' => $entity,
- 'width' => 600,
- 'height' => 400,
+ 'width' => $dimensions['width'],
+ 'height' => $dimensions['height'],
));
$content = "<div class=\"videolist-watch\">$content</div>";