| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/Ultimate_VC_Addons/admin/ |
Upload File : |
<?php
/**
* Map Settings Page
*
* @package Map Settings Page
*/
if ( isset( $_POST['submit-map-settings'] ) && isset( $_POST['map_settings_nonce'] ) && wp_verify_nonce( sanitize_text_field( $_POST['map_settings_nonce'] ), 'map_settings_nonce_action' ) ) {
if ( isset( $_POST['map_key'] ) ) {
$map_key = sanitize_text_field( $_POST['map_key'] );
$is_update = bsf_update_option( 'map_key', $map_key );
}
}
?>
<div class="wrap about-wrap bsf-page-wrapper ultimate-about bend">
<div class="wrap-container">
<div class="bend-heading-section ultimate-header">
<h1><?php esc_html_e( 'Google Maps', 'ultimate_vc' ); ?></h1>
<h3><?php esc_html_e( 'To use the advanced features our Google Maps element provides, an API key from Google is necessary.', 'ultimate_vc' ); ?></h3>
<div class="bend-head-logo">
<div class="bend-product-ver">
<?php
esc_html_e( 'Version', 'ultimate_vc' );
echo ' ' . ULTIMATE_VERSION; // PHPCS:ignore:WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</div>
</div>
</div><!-- bend-heading section -->
<div class="row ultimate-content">
<div class="col-md-12">
<div class="container bsf-grid-row bsf-grid-border-row">
<div class="bsf-wrap-content">
<form action="" method="post">
<p><label><?php echo esc_html__( 'API Key', 'ultimate_vc' ); ?></label>
<?php $map_key = bsf_get_option( 'map_key' ); ?>
<input type="text" name="map_key" value="<?php echo esc_attr( $map_key ); ?>"/></p>
<input type="hidden" name="map_settings_nonce" value="<?php echo esc_attr( wp_create_nonce( 'map_settings_nonce_action' ) ); ?>">
<p><?php echo esc_html__( 'Get your API Key ', 'ultimate_vc' ); ?><a href="https://developers.google.com/maps/documentation/javascript/get-api-key" target="_blank"><?php echo esc_html__( 'here', 'ultimate_vc' ); ?></a> or <?php echo esc_html__( 'read ', 'ultimate_vc' ); ?><a href="http://bsf.io/google-map-api-key" target="_blank"><?php echo esc_html__( 'this article', 'ultimate_vc' ); ?></a><?php echo esc_html__( ' for more information.', 'ultimate_vc' ); ?></p>
<p class="submit"><input type="submit" name="submit-map-settings" id="submit-map-settings" class="button button-primary" value="<?php echo esc_attr__( 'Save Changes', 'ultimate_vc' ); ?>"></p>
</form>
</div><!--bsf wrap content-->
</div><!--container end-->
</div><!--col-md-12-->
</div><!-- .ultimate-content -->
</div><!-- bend-content-wrap -->
</div><!-- .wrap-container -->
</div><!-- .bend -->