10 if ( ! defined(
'GRAVITYVIEW_MAPS_VERSION' ) || version_compare( GRAVITYVIEW_MAPS_VERSION,
'1.8',
'>=' ) ) {
19 add_filter(
'gravityview/maps/render/google_api_key',
function( $api_key ) {
21 if ( ! empty( $api_key ) ) {
25 $legacy_options = (array) get_option(
'gravityformsaddon_gravityview_app_settings' );
27 return \GV\Utils::get( $legacy_options,
'googlemaps-api-key',
'' );
35 add_filter(
'gravityview/admin/notices',
function ( $notices ) {
37 $message =
'<h3>' . esc_html__(
'Plugin update required.',
'gk-gravityview' ) .
'</h3>';
38 $message .= esc_html_x(
'You are using [plugin] [version] that is incompatible with the current version of GravityView. Please [link]update [plugin][/link] to the latest version.',
'Placeholders inside [] are not to be translated.',
'gk-gravityview' );
40 $message = strtr( $message, array(
41 '[version]' => GRAVITYVIEW_MAPS_VERSION,
42 '[link]' =>
'<a href="' . esc_url( GravityKitFoundation::licenses()->get_link_to_product_search( 27 ) ) .
'">',
43 '[plugin]' =>
'GravityView Maps',
49 'message' => $message,
new GravityView_Plugin_Hooks_GravityMaps
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...