From e8123c694c232509ea0c96ab19edf7cb1168b571 Mon Sep 17 00:00:00 2001 From: Pete Harris Date: Mon, 29 Mar 2010 16:51:01 +0000 Subject: Updated VideoList to be consistent with v1.8 mods and so the new generic page header works. --- views/default/widgets/videolist_view/edit.php | 23 ---------- views/default/widgets/videolist_view/view.php | 60 --------------------------- 2 files changed, 83 deletions(-) delete mode 100644 views/default/widgets/videolist_view/edit.php delete mode 100644 views/default/widgets/videolist_view/view.php (limited to 'views/default/widgets') diff --git a/views/default/widgets/videolist_view/edit.php b/views/default/widgets/videolist_view/edit.php deleted file mode 100644 index 10ba89af9..000000000 --- a/views/default/widgets/videolist_view/edit.php +++ /dev/null @@ -1,23 +0,0 @@ -

-: - -num_display == '') { - $vars['entity']->num_display = 6; - } -?> - -

diff --git a/views/default/widgets/videolist_view/view.php b/views/default/widgets/videolist_view/view.php deleted file mode 100644 index cd2aa37a3..000000000 --- a/views/default/widgets/videolist_view/view.php +++ /dev/null @@ -1,60 +0,0 @@ - - * @copyright Prateek Choudhary - */ - - -//the number of files to display -$number = (int) $vars['entity']->num_display; -if (!$number) { - $number = 5; -} - -$owner = page_owner_entity(); -$owner_videos = get_entities("object", "videolist", page_owner(), $order_by="time_created desc", $limit=$number); -//echo "
"; -if ($owner_videos) { - echo '
'; - foreach($owner_videos as $videos) { - $url = $videos->url; - $title = $videos->title; - $video_id = $videos->video_id; - $videothumbnail = $videos->thumbnail; - echo '
'; - //get video cover image - echo '
'; - echo "guid."'>"; - echo ""; - echo ''; - echo '
'; - echo '
'; - echo "guid."'>"; - echo $title; - echo ''; - - $numcomments = elgg_count_comments($videos); - if ($numcomments) { - echo "
guid."\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; - } - - echo '
'; - echo '
'; - } - - echo "
"; - echo "
"; - //get a link to the users videos - $users_video_url = $vars['url'] . "pg/videolist/owned/" . $owner->username; - echo "
"; - echo "" . elgg_echo('video:more') . ""; - echo "
"; - echo "
"; -} else { - echo elgg_echo("album:none"); -} \ No newline at end of file -- cgit v1.2.3