' . $desc . ''; if (!(local_channel() && Apps::system_app_installed(local_channel(), 'Expire Posts'))) { return $text; } $setting_fields = replace_macros(Theme::get_template('field_input.tpl'), [ '$field' => ['selfexpiredays', t('Expire and delete all my posts after this many days'), intval(get_pconfig(local_channel(), 'system', 'selfexpiredays', 0)), t('Leave at 0 if you wish to manually control expiration of specific posts.')] ]); return replace_macros(Theme::get_template('generic_app_settings.tpl'), [ '$addon' => ['expire', t('Automatic Expiration Settings'), '', t('Submit')], '$content' => $setting_fields ]); } }