<?php
if ( isset( $_GET['save_css'] ) ) {
	update_option( 'anps_google_maps', $_POST['anps_google_maps'] );
	header( 'Location: themes.php?page=theme_options&sub_page=google_maps' );
}
?>
<form action="themes.php?page=theme_options&sub_page=google_maps&save_css" method="post">
    <div class="content-inner">
        <h3><?php _e( 'Google Maps', 'accounting' ); ?></h3>

        <div class="input">
            <label for="anps_google_maps"><?php _e( 'Google Maps API key', 'accounting' ); ?></label>
            <input class="fullwidth" type="text" name="anps_google_maps"
                value="<?php echo esc_attr( get_option( 'anps_google_maps', '' ) ); ?>" id="anps_google_maps">
            <p><?php printf( esc_html__( 'All Google Maps applications require authentication. Go to %s and follow the described steps to retrieve an API key. Please read it carefully as there are different methods for Standard users and Premium users. Input your Google Maps API code in the above input field.', 'accounting' ), '<a target="_blank" href="https://developers.google.com/maps/documentation/javascript/get-api-key">https://developers.google.com/maps/documentation/javascript/get-api-key</a>' ); ?>
            </p>
        </div>
    </div>
    <div class="content-top" style="border-style: solid none; margin-top: 70px">
        <input type="submit" value="<?php _e( 'Save all changes', 'accounting' ); ?>">
        <div class="clear"></div>
    </div>

    <div class="submit-right">
        <button type="submit" class="fixsave fixed fontawesome"><i class="fas fa-save"></i></button>
        <div class="clear"></div>
</form>