blob: eed804e906f4a23fc712751cf7659bd95301ba46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/**
* Form component for editing a single image
*
* @uses $vars['entity']
*
* @author Cash Costello
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
*/
$image = $vars['entity'];
echo '<div class="elgg-image-block">';
echo '<div class="elgg-image">';
echo elgg_view_entity_icon($image, 'small', array('href' => false));
echo '</div>';
echo '<div class="elgg-body"><fieldset class="mlm">';
echo '<div><label>' . elgg_echo('album:title') . '</label>';
echo elgg_view('input/text', array('name' => 'title[]', 'value' => $title,));
echo '</div>';
echo '<div><label>' . elgg_echo('caption') . '</label>';
echo elgg_view('input/longtext', array('name' => 'caption[]'));
echo '</div>';
echo '<div><label>' . elgg_echo("tags") . '</label>';
echo elgg_view('input/tags', array('name' => 'tags[]'));
echo '</div>';
echo elgg_view('input/hidden', array('name' => 'guid[]', 'value' => $image->getGUID()));
echo '<fieldset></div>';
echo '</div>';
|