owner_guid; $number = $vars['entity']->num_display; //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 $options = array( 'type' => 'object', 'subtype' => 'file', 'limit' => $number, 'container_guid' => $owner_guid ); $files = elgg_get_entities($options); //if there are some files, go get them if ($files) { echo "
" . elgg_echo("file:none") . "
"; } ?>