aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/batch/edit/image.php
blob: bf982ed84e11f282e2f980d8345841771d73e75d (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
36
37
38
39
<?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('output/img', array(
	'src' => $image->getSrcURL(),
	'alt' => $image->getTitle(),
	'class' => 'elgg-photo',
));
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>';