aboutsummaryrefslogtreecommitdiff
path: root/views/default/plugins/translation_editor/settings.php
blob: 4dfe4b7c95b2723fcfaba39790a73e0cde389a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Translation Editor plugin settings
 */

$everybody_translate_string = elgg_echo('translation_editor:settings:everybody_translate');
$everybody_translate_view = elgg_view('input/dropdown', array(
	'name' => 'params[everybody_translate]',
	'options_values' => array(
		'yes' => elgg_echo('option:yes'),
		'no' => elgg_echo('option:no'),
	),
	'value' => $vars['entity']->everybody_translate ? $vars['entity']->everybody_translate : 'no',
));

$settings = <<<__HTML
<div>$everybody_translate_string $everybody_translate_view</div>
__HTML;

echo $settings;