* @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"); }