aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/admin/settings/main.php
blob: 349c951f9481f6145672f961d2f1dc5b5c832fd0 (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
<?php
/**
 * Primary settings for Elgg
 */

$plugin = $vars['plugin'];

$checkboxes = array('tagging', 'view_count', 'uploader', 'exif', 'download_link');
foreach ($checkboxes as $checkbox) {
	echo '<div>';
	$checked = $plugin->$checkbox ? 'checked' : false;
	echo elgg_view('input/checkbox', array(
		'name' => "params[$checkbox]",
		'value' => true,
		'checked' => (bool)$plugin->$checkbox,
	));
	echo ' ' . elgg_echo("tidypics:settings:$checkbox");
	echo '</div>';
}

// max image size
echo '<div>';
echo elgg_echo('tidypics:settings:maxfilesize');
echo elgg_view('input/text', array(
	'name' => 'params[maxfilesize]',
	'value' => $plugin->maxfilesize,
));
echo '</div>';