aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/admin/settings/thumbnails.php
blob: ec7a6d1b25f153e40a20cf0b1bd76873fecdedfa (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
<?php
/**
 * Thumbnail sizes
 */

$plugin = $vars['plugin'];

echo '<span class="elgg-text-help">' . elgg_echo('tidypics:settings:sizes:instructs') . '</span>';
$image_sizes = unserialize($plugin->image_sizes);
echo '<table>';
$sizes = array('large', 'small', 'tiny');
foreach ($sizes as $size) {
	echo '<tr>';
	echo '<td class="pas">';
	echo elgg_echo("tidypics:settings:{$size}size");
	echo '</td><td class="pas">';
	echo 'width: ';
	echo elgg_view('input/text', array(
		'name' => "{$size}_image_width",
		'value' => $image_sizes["{$size}_image_width"],
		'class' => 'tidypics-input-thin',
	));
	echo '</td><td class="pas">';
	echo 'height: ';
	echo elgg_view('input/text', array(
		'name' => "{$size}_image_height",
		'value' => $image_sizes["{$size}_image_height"],
		'class' => 'tidypics-input-thin',
	));
	echo '</td>';
	echo '</tr>';
}
echo '</table>';