sanitize_text_field($_POST['hot_key']), 'aphg_gif_bot' => sanitize_text_field($_POST['gif_bot']), 'aphg_client_id' => sanitize_text_field($_POST['client_id']), 'aphg_client_secret' => sanitize_text_field($_POST['client_secret']), 'aphg_gif_gpu' => isset($_POST['gif_gpu']) ? sanitize_text_field($_POST['gif_gpu']) : "off" ); update_option('aphg_settings', $aphg_settings); echo '

' . __('Settings Saved.', 'aparg-handygif') . '

'; } $aphg_settings = get_option('aphg_settings'); $aphg_client_id = $aphg_settings ? $aphg_settings['aphg_client_id'] : ''; $aphg_client_secret = $aphg_settings ? $aphg_settings['aphg_client_secret'] : ''; $aphg_hot_key = $aphg_settings ? $aphg_settings['aphg_hot_key'] : 'g'; $aphg_gif_bot = $aphg_settings ? $aphg_settings['aphg_gif_bot'] : 'gif'; $aphg_gif_gpu = $aphg_settings ? $aphg_settings['aphg_gif_gpu'] : 'off'; ?>



/>

, .