aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/admin/settings.php
blob: 2b6399a677457bf7fb592650fdd8820265910bb4 (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
40
41
42
<?php
/**
 * Tidypics admin settings form body
 *
 * @todo watermark, quota, remove original image, group only upload not delete
 */

$plugin = elgg_get_plugin_from_id('tidypics');

$title = elgg_echo('tidypics:settings:main');
$content = elgg_view('forms/photos/admin/settings/main', array('plugin' => $plugin));
echo elgg_view_module('inline', $title, $content);

$title = elgg_echo('tidypics:settings:heading:img_lib');
$content = elgg_view('forms/photos/admin/settings/image_lib', array('plugin' => $plugin));
echo elgg_view_module('inline', $title, $content);

$title = elgg_echo('tidypics:settings:heading:river');
$content = elgg_view('forms/photos/admin/settings/activity', array('plugin' => $plugin));
echo elgg_view_module('inline', $title, $content);

$title = elgg_echo('tidypics:settings:heading:sizes');
$content = elgg_view('forms/photos/admin/settings/thumbnails', array('plugin' => $plugin));
echo elgg_view_module('inline', $title, $content);

echo elgg_view('input/submit', array('value' => elgg_echo("save")));

return true;


// Watermark Text
$form_body .= "<p>" . elgg_echo('tidypics:settings:watermark') . "<br />";
$form_body .= elgg_view("input/text",array('internalname' => 'params[watermark_text]', 'value' => $plugin->watermark_text)) . "</p>";

// Quota Size
$quota = $plugin->quota;
if (!$quota) {
	$quota = 0;
}
$form_body .= "<p>" . elgg_echo('tidypics:settings:quota') . "<br />";
$form_body .= elgg_view("input/text",array('internalname' => 'params[quota]', 'value' => $quota)) . "</p>";