';
- $s .= '';
-
- $field_checkbox = Renderer::getMarkupTemplate('field_checkbox.tpl');
-
- $s .= Renderer::replaceMacros($field_checkbox, [
- '$field' => ['enabled', L10n::t('Enable processing of Discourse mailing list mails'), $enabled, L10n::t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')]
+ $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/discourse/');
+ $s .= Renderer::replaceMacros($t, [
+ '$title' => L10n::t('Discourse'),
+ '$css' => ($enabled ? '' : '-disabled'),
+ '$enabled' => ['enabled', L10n::t('Enable processing of Discourse mailing list mails'), $enabled, L10n::t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
+ '$submit' => L10n::t('Save Settings'),
]);
-
- $s .= '';
- $s .= '';
- $s .= '
';
}
function discourse_settings_post(App $a)
diff --git a/discourse/templates/settings.tpl b/discourse/templates/settings.tpl
new file mode 100644
index 000000000..dc6ef2f0e
--- /dev/null
+++ b/discourse/templates/settings.tpl
@@ -0,0 +1,15 @@
+
+