aboutsummaryrefslogtreecommitdiff
path: root/views/default/settings/tidypics/edit.php
blob: 57c63683f6b200a9bcefd3bb30148682b192d6d1 (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
<?php
	$image_lib = $vars['entity']->image_lib;
	if (!$image_lib) $image_lib = 'GD';
?>
<p>
	<?php echo elgg_echo('tidypics:image_lib'); ?>
	
	<?php
		echo elgg_view('input/pulldown', array(
			'internalname' => 'params[image_lib]',
			'options_values' => array(
				'GD' => 'GD',
				'ImageMagick' => 'ImageMagick',
			),
			'value' => $image_lib
		));
	?>
</p>

<?php
	$maxfilesize = $vars['entity']->maxfilesize;
	if (!$maxfilesize) $maxfilesize = (int) 10240; //set the default maximum file size to 10MB (1024KB * 10 = 10240KB = 10MB)
		
?>
<p>
	<?php echo elgg_echo('tidypics:settings:maxfilesize'); ?>
	
	<?php echo elgg_view('input/text', array('internalname' => 'params[maxfilesize]', 'value' => $maxfilesize)); ?>
</p>