aboutsummaryrefslogtreecommitdiff
path: root/views/default/plugins/translation_editor
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:58:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:58:52 -0300
commit2d9b20157957a55bd83875775085ed31c9062577 (patch)
treef051d6d805a3448ea243379a2457be8d67dcfa5f /views/default/plugins/translation_editor
downloadelgg-2d9b20157957a55bd83875775085ed31c9062577.tar.gz
elgg-2d9b20157957a55bd83875775085ed31c9062577.tar.bz2
Squashed 'mod/translation_editor/' content from commit 9d86955
git-subtree-dir: mod/translation_editor git-subtree-split: 9d86955e6d8b6807578f5a9da0346ac1a146881c
Diffstat (limited to 'views/default/plugins/translation_editor')
-rw-r--r--views/default/plugins/translation_editor/settings.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/plugins/translation_editor/settings.php b/views/default/plugins/translation_editor/settings.php
new file mode 100644
index 000000000..4dfe4b7c9
--- /dev/null
+++ b/views/default/plugins/translation_editor/settings.php
@@ -0,0 +1,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;