PluginProbe
CBX Map for Google Map & OpenStreetMap / trunk
CBX Map for Google Map & OpenStreetMap vtrunk
trunk 1.1.10 1.1.11 1.1.12 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5
cbxgooglemap / templates / admin / settings.php

settings.php in CBX Map for Google Map & OpenStreetMap trunk, at templates/admin/settings.php

99 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // If this file is called directly, abort.
4 if ( ! defined( 'WPINC' ) ) {
5 die;
6 }
7 ?>
8
9 <?php
10 $cbxgooglemap_save_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_save' ) );
11 $cbxgooglemap_more_v_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_more_v' ) );
12 $cbxgooglemap_import_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_import' ) );
13 $cbxgooglemap_export_svg_icon = cbxgooglemap_esc_svg( cbxgooglemap_load_svg( 'icon_export' ) );
14
15 ?>
16 <div class="wrap cbx-chota cbxchota-setting-common cbxgooglemap-page-wrapper cbxgooglemap-setting-wrapper"
17 id="cbxgooglemap-setting">
18 <div class="container">
19 <div class="row">
20 <div class="col-12">
21 <h2></h2>
22 <?php do_action( 'cbxgooglemap_wpheading_wrap_before', 'settings' ); ?>
23 <div class="wp-heading-wrap">
24 <div class="wp-heading-wrap-left pull-left">
25 <?php do_action( 'cbxgooglemap_wpheading_wrap_left_before', 'settings' ); ?>
26 <h1 class="wp-heading-inline wp-heading-inline-cbxgooglemap">
27 <?php esc_html_e( 'CBX Map: Global Settings', 'cbxgooglemap' ); ?>
28 </h1>
29 <?php do_action( 'cbxgooglemap_wpheading_wrap_left_before', 'settings' ); ?>
30 </div>
31 <div class="wp-heading-wrap-right pull-right">
32 <?php do_action( 'cbxgooglemap_wpheading_wrap_right_before', 'settings' ); ?>
33 <button class="button secondary"
34 id="cbx-export-import"><?php esc_html_e( 'Export/Import', 'cbxgooglemap' ) ?></button>
35 <a href="<?php echo esc_url(admin_url( 'edit.php?post_type=cbxgooglemap&page=cbxgooglemap_support' )); ?>"
36 class="button outline primary"><?php esc_html_e( 'Support & Docs', 'cbxgooglemap' ); ?></a>
37 <a href="#" id="save_settings"
38 class="button primary icon icon-inline icon-right mr-5">
39 <i class="cbx-icon"><?php echo $cbxgooglemap_save_svg_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped?></i>
40 <span class="button-label"><?php esc_html_e( 'Save Settings', 'cbxgooglemap' ); ?></span>
41 </a>
42 <?php do_action( 'cbxgooglemap_wpheading_wrap_right_after', 'settings' ); ?>
43 </div>
44 </div>
45 <?php do_action( 'cbxgooglemap_wpheading_wrap_after', 'settings' ); ?>
46 </div>
47 </div>
48 </div>
49 <div class="container">
50 <div class="row">
51 <div class="col-12">
52 <?php do_action( 'cbxgooglemap_settings_form_before', 'settings' );
53
54 $cbxgooglemap_nonce = wp_create_nonce( 'cbxgooglemap_settings_nonce' );
55
56 $cbxgooglemap_settings_export_url = add_query_arg( [
57 'cbxgooglemap_settings_export' => 1,
58 'security' => $cbxgooglemap_nonce,
59 ], site_url() );
60 ?>
61
62 <div class="cbx-export-import-wrapper">
63 <div class="inside cbx-export-import-inner">
64 <h2><?php esc_html_e( 'Export/Import', 'cbxgooglemap' ); ?></h2>
65 <div class="cbx-export-import-button-wrap">
66 <a href="<?php echo esc_url( $cbxgooglemap_settings_export_url ); ?>" class="button secondary icon icon-right icon-inline"
67 id="cbx-export">
68 <i class="cbx-icon"><?php echo $cbxgooglemap_export_svg_icon;//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></i>
69 <span class="button-label"><?php esc_html_e( 'Export', 'cbxgooglemap' ) ?></span>
70 </a>
71 <a class="button primary icon icon-right icon-inline" id="cbxgooglemap_settings_import">
72 <i class="cbx-icon"><?php echo $cbxgooglemap_import_svg_icon;//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></i>
73 <span class="button-label"><?php esc_html_e( 'Import', 'cbxgooglemap' ) ?></span>
74 </a>
75 </div>
76 </div>
77 </div>
78
79 <div class="postbox">
80 <div class="clear clearfix"></div>
81 <div class="inside setting-form-wrap">
82 <div class="clear clearfix"></div>
83 <?php do_action( 'cbxgooglemap_settings_form_start', 'settings' ); ?>
84 <?php
85 settings_errors();
86
87 $settings->show_navigation();
88 $settings->show_forms();
89 ?>
90 <?php do_action( 'cbxgooglemap_settings_form_end', 'settings' ); ?>
91 <div class="clear clearfix"></div>
92 </div>
93 <div class="clear clearfix"></div>
94 </div>
95 <?php do_action( 'cbxgooglemap_settings_form_after', 'settings' ); ?>
96 </div>
97 </div>
98 </div>
99 </div>