[various] Convert addon_settings hook functions to the new data array format

- Add separate template files to several addons
- Remove superfluous addon settings CSS files
This commit is contained in:
Hypolite Petovan 2021-11-20 04:56:55 -05:00
parent f0522a998b
commit 779b38ec09
68 changed files with 444 additions and 953 deletions

View file

@ -68,17 +68,17 @@ function opmlexport(App $a)
}
function opmlexport_addon_settings(App $a, &$s)
function opmlexport_addon_settings(App $a, array &$data)
{
if (!local_user()) {
return;
}
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/opmlexport/');
$s .= Renderer::replaceMacros($t, [
'$title' => DI::l10n()->t('OPML Export'),
'$submit' => DI::l10n()->t('Export RSS/Atom contacts'),
]);
$data = [
'addon' => 'opmlexport',
'title' => DI::l10n()->t('OPML Export'),
'submit' => DI::l10n()->t('Export RSS/Atom contacts'),
];
}