This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aktiv-web/wp-content/plugins/google-calendar-events/views/admin/api-settings-notice.php
T
2014-11-20 21:01:19 +01:00

37 lines
1.2 KiB
PHP

<?php
/**
* Show notice for API Settings
*
* @package GCE
* @subpackage admin/views
* @author Phil Derksen <pderksen@gmail.com>, Nick Young <mycorpweb@gmail.com>
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<style>
/* #gce-install-notice .button-primary, */
#gce-install-notice .button-secondary {
margin-left: 15px;
}
</style>
<div id="gce-install-notice" class="updated">
<p>
<strong><?php echo __( 'GCal Events Important Update (Nov. 19, 2014):', 'gce' ); ?></strong><br/>
<?php echo __( 'GCal Events now uses the Google API version 3, which requires use of a public key.', 'gce' ); ?>
<?php echo __( 'By default a shared key is used across all plugin users, which is limited to 500,000 requests per day and 5 requests per second.', 'gce' ); ?>
<?php echo __( 'To avoid these limits you can use your own Google API key.', 'gce' ); ?>
</p>
<p>
<a href="<?php echo admin_url( 'edit.php?post_type=gce_feed&page=google-calendar-events_general_settings' ); ?>" class="button-primary"><?php _e( 'Update your API settings now', 'gce' ); ?></a>
<a href="<?php echo add_query_arg( 'gce-dismiss-install-nag', 1 ); ?>" class="button-secondary"><?php _e( 'Hide this', 'gce' ); ?></a>
</p>
</div>