-function remote_permissions_plugin_admin(&$a, &$o){
- $t = file_get_contents( $a->get_baseurl() . "/addon/remote_permissions/admin.tpl" );
- $o = replace_macros($t, array(
- '$submit' => t('Submit'),
- '$global' => array('remotepermschoice', t('Global'), 1, t('The posts of every user on this server show the post recipients'), get_config('remote_perms', 'global') == 1),
- '$individual' => array('remotepermschoice', t('Individual'), 2, t('Each user chooses whether his/her posts show the post recipients'), get_config('remote_perms', 'global') == 0)
- ));
+function remote_permissions_addon_admin(&$a, &$o){
+ $t = Renderer::getMarkupTemplate( "admin.tpl", "addon/remote_permissions/" );
+ $o = Renderer::replaceMacros($t, [
+ '$submit' => DI::l10n()->t('Save Settings'),
+ '$global' => ['remotepermschoice', DI::l10n()->t('Global'), 1, DI::l10n()->t('The posts of every user on this server show the post recipients'), DI::config()->get('remote_perms', 'global') == 1],
+ '$individual' => ['remotepermschoice', DI::l10n()->t('Individual'), 2, DI::l10n()->t('Each user chooses whether his/her posts show the post recipients'), DI::config()->get('remote_perms', 'global') == 0]
+ ]);