owner_guid; //the number of files to display $number = (int) $vars['entity']->num_display; if (!$number) { $number = 4; } //get the layout view which is set by the user in the edit panel $get_view = (int) $vars['entity']->gallery_list; if (!$get_view || $get_view == 1) { $view = "list"; }else{ $view = "gallery"; } //get the user's files $files = get_user_objects($vars['entity']->owner_guid, "file", $number, 0); //if there are some files, go get them if ($files) { echo "
" . elgg_echo("file:none") . "
"; } ?>