'string', 'description' => ADRAM_PLUGIN_NAME.' service placement ID', 'sanitize_callback' => 'sanitize_text_field', 'default' => NULL, 'show_in_rest' => false, ]); register_setting('adram-options', 'adram-placement-cache-lifetime', [ 'type' => 'integer', 'description' => ADRAM_PLUGIN_NAME.' placement cache lifetime in seconds', 'sanitize_callback' => 'sanitize_text_field', 'default' => 86400 * 7, // 1 week 'show_in_rest' => false, ]); register_setting('adram-options', 'adram-api-key', [ 'type' => 'string', 'description' => ADRAM_PLUGIN_NAME.' API Key', 'sanitize_callback' => 'sanitize_text_field', 'default' => '', 'show_in_rest' => false, ]); register_setting('adram-options', 'adram-debug-mode', [ 'type' => 'boolean', 'description' => ADRAM_PLUGIN_NAME.' debug mode', 'sanitize_callback' => 'sanitize_text_field', 'default' => 0, 'show_in_rest' => false, ]); register_setting('adram-options', 'adram-testing-server', [ 'type' => 'string', 'description' => ADRAM_PLUGIN_NAME.' server', 'sanitize_callback' => 'sanitize_text_field', 'default' => ADRAM_HOSTNAME, 'show_in_rest' => false, ]); } } if (!function_exists('adram_admin_init')) { function adram_admin_init () { ?>
adram

:  
:
: >
:

".__('Debug output', 'adram').":

"; echo "

".__('Cache', 'adram').":

"; foreach ($files as $f) { $filename = basename($f); if (preg_match('/.*[^(php)]$/', $filename)) echo '' . $filename . '
'; } echo "

".__('Log', 'adram').":

"; echo 'adram.log
'; } }