cover) $no_cover = true; foreach($file_array as $key => $file_guid){ $entity = get_entity($file_guid); $guid = $entity->guid; $body = $entity->description; $tags = $entity->tags; $container_guid = $entity->container_guid; if($no_cover && !$cover) $cover = $guid; echo '
'; echo '' . $title . ''; echo '
'; echo '

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

'; echo '

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

"; echo '

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

'; echo '' . "\n"; echo ''; echo elgg_view("input/multi_radio", array( "internalname" => "cover", "value" => $guid, 'options' => array(elgg_echo('album:cover:yes')), 'set' => $cover)); echo '
'; echo '
'; } echo elgg_echo('image:access:note'); ?>