"; } } function acobot_menu() { add_submenu_page( 'options-general.php', __( 'Acobot Settings', 'acobot' ), __( 'Acobot', 'acobot' ), 'manage_options', 'acobot', 'acobot_settings' ); } function acobot_register_settings() { register_setting( 'acobot', ACOBOT_SLUG . 'api' ); add_settings_section( 'acobot', __( 'Acobot', 'acobot' ), 'acbobot_settings_section', 'acobot' ); add_settings_field( ACOBOT_SLUG . 'api', __( 'API Key', 'acobot' ), 'acbobot_settings_api', 'acobot', 'acobot' ); } function acbobot_settings_section() { echo '
' . __( 'Aco, the AI, engages your website visitors, answers their questions and turns them into sales leads, all by itself! ', 'acobot' ) . '
'; echo '' . __( 'No coding. No scripting. All you need to do is sign up and create an AI by providing your home URL. ', 'acobot' ) . '
'; echo '' . __( 'It couldn\'t be easier. Try it or you\'ll never know!', 'acobot' ) . '
'; } function acbobot_settings_api() { echo ''; $key = get_option( ACOBOT_SLUG . 'api' ); if ( empty( $key ) ) { echo '' . sprintf( __( '%1$sSign up%2$s for API key.', 'acobot' ), '', '' ) . '
'; } } function acobot_settings() { ?>