# cbxgooglemap/trunk/templates/admin/settings.php

CBX Map for Google Map &amp; OpenStreetMap, version trunk. 99 lines.

- Page: https://pluginprobe.com/plugins/cbxgooglemap/trunk/code/templates/admin/settings.php
- Raw: https://pluginprobe.com/plugins/cbxgooglemap/trunk/raw/templates/admin/settings.php
- Modified: 2025-11-10T07:07:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cbxgooglemap/trunk/code/templates/admin/settings.php#L10-L20`.

```php
<?php

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}
?>

<?php
$cbxgooglemap_save_svg_icon   = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_save' ) );
$cbxgooglemap_more_v_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_more_v' ) );
$cbxgooglemap_import_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_import' ) );
$cbxgooglemap_export_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_export' ) );

?>
<div class="wrap cbx-chota cbxchota-setting-common cbxgooglemap-page-wrapper cbxgooglemap-setting-wrapper"
     id="cbxgooglemap-setting">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <h2></h2>
				<?php do_action( 'cbxgooglemap_wpheading_wrap_before', 'settings' ); ?>
                <div class="wp-heading-wrap">
                    <div class="wp-heading-wrap-left pull-left">
						<?php do_action( 'cbxgooglemap_wpheading_wrap_left_before', 'settings' ); ?>
                        <h1 class="wp-heading-inline wp-heading-inline-cbxgooglemap">
							<?php esc_html_e( 'CBX Map: Global Settings', 'cbxgooglemap' ); ?>
                        </h1>
						<?php do_action( 'cbxgooglemap_wpheading_wrap_left_before', 'settings' ); ?>
                    </div>
                    <div class="wp-heading-wrap-right  pull-right">
						<?php do_action( 'cbxgooglemap_wpheading_wrap_right_before', 'settings' ); ?>
                        <button class="button secondary"
                                id="cbx-export-import"><?php esc_html_e( 'Export/Import', 'cbxgooglemap' ) ?></button>
                        <a href="<?php echo esc_url(admin_url( 'edit.php?post_type=cbxgooglemap&page=cbxgooglemap_support' )); ?>"
                           class="button outline primary"><?php esc_html_e( 'Support & Docs', 'cbxgooglemap' ); ?></a>
                        <a href="#" id="save_settings"
                           class="button primary icon icon-inline icon-right mr-5">
                            <i class="cbx-icon"><?php echo $cbxgooglemap_save_svg_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped?></i>
                            <span class="button-label"><?php esc_html_e( 'Save Settings', 'cbxgooglemap' ); ?></span>
                        </a>
						<?php do_action( 'cbxgooglemap_wpheading_wrap_right_after', 'settings' ); ?>
                    </div>
                </div>
				<?php do_action( 'cbxgooglemap_wpheading_wrap_after', 'settings' ); ?>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-12">
				<?php do_action( 'cbxgooglemap_settings_form_before', 'settings' );

                $cbxgooglemap_nonce = wp_create_nonce( 'cbxgooglemap_settings_nonce' );

                $cbxgooglemap_settings_export_url = add_query_arg( [
                'cbxgooglemap_settings_export' => 1,
                'security'                     => $cbxgooglemap_nonce,
                ], site_url() );
                ?>

                <div class="cbx-export-import-wrapper">
                    <div class="inside cbx-export-import-inner">
                        <h2><?php esc_html_e( 'Export/Import', 'cbxgooglemap' ); ?></h2>
                        <div class="cbx-export-import-button-wrap">
                            <a href="<?php echo esc_url( $cbxgooglemap_settings_export_url ); ?>" class="button secondary icon icon-right icon-inline"
                               id="cbx-export">
                                <i class="cbx-icon"><?php echo $cbxgooglemap_export_svg_icon;//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></i>
                                <span class="button-label"><?php esc_html_e( 'Export', 'cbxgooglemap' ) ?></span>
                            </a>
                            <a class="button primary  icon icon-right icon-inline" id="cbxgooglemap_settings_import">
                                <i class="cbx-icon"><?php echo $cbxgooglemap_import_svg_icon;//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></i>
                                <span class="button-label"><?php esc_html_e( 'Import', 'cbxgooglemap' ) ?></span>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="postbox">
                    <div class="clear clearfix"></div>
                    <div class="inside setting-form-wrap">
                        <div class="clear clearfix"></div>
						<?php do_action( 'cbxgooglemap_settings_form_start', 'settings' ); ?>
						<?php
						settings_errors();

						$settings->show_navigation();
						$settings->show_forms();
						?>
						<?php do_action( 'cbxgooglemap_settings_form_end', 'settings' ); ?>
                        <div class="clear clearfix"></div>
                    </div>
                    <div class="clear clearfix"></div>
                </div>
				<?php do_action( 'cbxgooglemap_settings_form_after', 'settings' ); ?>
            </div>
        </div>
    </div>
</div>
```
