' . $desc . ''; if (! ( local_channel() && Apps::system_app_installed(local_channel(),'Expire Posts'))) { return $text; } $setting_fields .= replace_macros(get_markup_template('field_input.tpl'), [ '$field' => array('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(get_markup_template('generic_app_settings.tpl'), [ '$addon' => array('expire', t('Automatic Expiration Settings'), '', t('Submit')), '$content' => $setting_fields ]); } }