- /* Get the current state of our config variable */
-
- $gnot = intval(DI::pConfig()->get(local_user(),'gnot','enable'));
-
- $gnot_checked = (($gnot) ? ' checked="checked" ' : '' );
-
- $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/gnot/');
- /* Add some HTML to the existing form */
-
- $s .= Renderer::replaceMacros($t, [
- '$title' => DI::l10n()->t('Gnot Settings') ,
- '$submit' => DI::l10n()->t('Save Settings'),
- '$enable' => DI::l10n()->t('Enable this addon?'),
- '$enabled' => $gnot_checked,
- '$text' => DI::l10n()->t("Allows threading of email comment notifications on Gmail and anonymising the subject line.")
+ $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/gnot/');
+ $html = Renderer::replaceMacros($t, [
+ '$text' => DI::l10n()->t("Allows threading of email comment notifications on Gmail and anonymising the subject line."),
+ '$enabled' => ['gnot', DI::l10n()->t('Enable this addon?'), $gnot],