From 3e44ab82c6e25d2ffe00cd23efffb32adffa2f78 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 6 Oct 2012 15:38:08 +0200 Subject: Added an unitary view to watch all videos. --- views/default/object/videolist_item.php | 2 +- views/default/videolist/watch.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 views/default/videolist/watch.php diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php index a1943216d..474394288 100644 --- a/views/default/object/videolist_item.php +++ b/views/default/object/videolist_item.php @@ -62,7 +62,7 @@ if (elgg_in_context('widgets')) { if ($full && !elgg_in_context('gallery')) { $dimensions = elgg_get_config('videolist_dimensions'); - $content = elgg_view("videolist/watch/{$entity->videotype}", array( + $content = elgg_view("videolist/watch", array( 'entity' => $entity, 'width' => (int) $dimensions['width'], 'height' => (int) $dimensions['height'], diff --git a/views/default/videolist/watch.php b/views/default/videolist/watch.php new file mode 100644 index 000000000..2e1dbacec --- /dev/null +++ b/views/default/videolist/watch.php @@ -0,0 +1,8 @@ +videotype")) { + echo elgg_view("videolist/watch/$entity->videotype", $vars); +} else { + echo elgg_view("videolist/watch/default", $vars); +} -- cgit v1.2.3