<?php
/**
* _attach_file_form
*/
?>
<?php if (isset($form['attach_files'])) { ?>
<?php foreach (element_children($form['attach_files']) as $key) { ?>
<div class="share-view share-view-file">
<a class="share-close" href="#">Close</a>
<p><span class="inline-icon document-default-icon"></span> <?php print $form['attach_files'][$key]['name']['#value'] ?></p>
<?php print render($form['attach_files'][$key]['name']) ?>
<?php print render($form['attach_files'][$key]['fid']) ?>
</div>
<?php } ?>
<?php } ?>
<div class="share-attach share-attach-file">
<a class="share-close share-close-attach" href="#">Close</a>
<h4><?php print t('Upload a file from your computer') ?>:</h4>
<p><?php print render($form['share_attach_file']) . render($form['attach_file_submit']) ?></p>
</div>
<?php print render($form) ?>