cover) { $no_cover = true; } foreach ($file_array as $key => $file_guid) { $entity = get_entity($file_guid); $guid = $entity->guid; $body = $entity->description; $title = $entity->title; $tags = $entity->tags; $container_guid = $entity->container_guid; // first one is default cover if there isn't one already if ($no_cover) { $val = $guid; $no_cover = false; } echo '
'; echo '' . $title . ''; echo '
'; echo '

'; echo elgg_view("input/text", array("internalname" => "title[$key]", "value" => $title,)) . "\n"; echo '

'; echo '

"; echo elgg_view("input/longtext",array("internalname" => "caption[$key]", "value" => $body, "class" => 'tidypics_caption_input',)) . "\n"; echo "

"; echo '

\n"; echo elgg_view("input/tags", array( "internalname" => "tags[$key]","value" => $tags)) . "\n"; echo '

'; echo '' . "\n"; echo elgg_view('input/securitytoken'); echo elgg_view("input/radio", array("internalname" => "cover", "value" => $val, 'options' => array( elgg_echo('album:cover') => $guid, ), )); echo '
'; echo '
'; } ?>