PluginProbe
Maps Plugin using Google Maps for WordPress – WP Google Map / 1.9.6
Maps Plugin using Google Maps for WordPress – WP Google Map v1.9.6
1.9.7 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 All 96 releases
gmap-embed / admin / includes / wpgmap_setup_wizard.php

wpgmap_setup_wizard.php in Maps Plugin using Google Maps for WordPress – WP Google Map 1.9.6, at admin/includes/wpgmap_setup_wizard.php

157 lines 9.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit;
4 }
5 ?>
6 <div class="wgm_setup_wizard_container">
7 <div class="wgm_setup_wizard_wrap">
8
9 <div class="wgm_setup_wizard_header">
10 <img class="wgm_logo"
11 src="<?php echo esc_url(plugins_url('../assets/images/gmap_embed_logo.jpg', __FILE__)); ?>"
12 alt="<?php esc_attr_e('WP Google Map Logo', 'gmap-embed'); ?>" />
13 <span class="wgm_plugin_name"><?php esc_html_e('Quick Setup Wizard', 'gmap-embed'); ?></span>
14 </div>
15
16 <ul class="wgm_setup_wizard_steps wgm_four" data-step="0">
17 <li class="wgm_step">
18 <div class="wgm_icon">
19 <i class="fas fa-key"></i>
20 </div>
21 <div class="wgm_step_name"><?php esc_html_e('CREATE YOUR API KEY', 'gmap-embed'); ?></div>
22 </li>
23 <li class="wgm_step">
24 <div class="wgm_icon">
25 <i class="fas fa-language"></i>
26 </div>
27 <div class="wgm_step_name"><?php esc_html_e('MAP LANGUAGE & REGION', 'gmap-embed'); ?></div>
28 </li>
29 </ul>
30
31 <div class="wgm_setup_body">
32 <form class="wgm_setup_wizard_form" method="post" action="#">
33 <!--Get API key-->
34 <div class="wgm_setup_content wgm_box">
35 <div class="wgm_row">
36 <div class="wgm-col-full">
37 <span
38 class="wgm_heading"><?php esc_html_e('Create an API Key from Google Maps Platform', 'gmap-embed'); ?></span>
39 <p class="wgm_text_center" style="margin-top: 20px;">
40 <?php esc_html_e('Just click on the following button and follow steps, once done copy the API key', 'gmap-embed'); ?>
41 </p>
42 </div>
43
44 <div class="wgm-col-full" style="text-align: center;margin-top: 30px;margin-bottom: 20px;">
45 <div class="button button-secondary wgm_api_create_gplatform"
46 title="<?php esc_attr_e('Powered by Google Maps Platform', 'gmap-embed'); ?>"
47 style="height: 40px;line-height: 40px;">
48 <?php //phpscs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?>
49 <img src="<?php echo esc_url(plugins_url('../assets/images/wgmp-platform-icon.png', __FILE__)); ?>"
50 style="max-width: 30px; vertical-align: middle;"
51 alt="<?php esc_attr_e('Google Maps Platform', 'gmap-embed'); ?>">
52 <?php esc_html_e(' Get an API Key', 'gmap-embed'); ?>
53 </div>
54 </div>
55
56 <div class="wgm-col-full" style="margin-bottom: 20px;margin-top: 20px;">
57 <span class="wgm_heading"
58 style="font-size: 20px;"><?php esc_html_e('Once done, enter your API key below', 'gmap-embed'); ?></span>
59 </div>
60
61 <div class="wgm-col-full" style="text-align: center">
62 <div class="wgm_w_60">
63 <input type="text" name="wgm_key"
64 style=" text-align: center;width: 400px;padding: 3px 0;" autofocus
65 placeholder="<?php esc_attr_e('Enter your API KEY here', 'gmap-embed'); ?>"
66 value="<?php echo esc_html(get_option('wpgmap_api_key')); ?>" size="60"
67 id="wgm_key" />
68 </div>
69
70 <p class="wgm_text_center" style="margin-top: 20px;">
71 <?php esc_html_e('This process managed by Google Cloud Platform and takes few minutes only!', 'gmap-embed'); ?>
72 </p>
73 </div>
74 </div>
75 <div class="wgm-col-full" style="text-align: center">
76 &nbsp;&nbsp;<?php esc_html_e('If you face any issues, please review our', 'gmap-embed'); ?> <a
77 href="<?php echo esc_url('https://wpgooglemap.com/documentation/wp-google-map-quick-installation?utm_source=gmap-embed&utm_medium=wordpress-plugin&utm_campaign=documentation&utm_content=setup-wizard-quick-install-link'); ?>"
78 target="_blank"><i class="fas fa-external-link-alt"></i>
79 <?php esc_html_e('Documentation', 'gmap-embed'); ?>
80 </a>
81 </div>
82 </div>
83 <!-- Language and Regional Setup-->
84 <div id="wpgmap_lang_regional" class="wgm_setup_content wgm_box">
85 <div class="wgm_row">
86 <div class="wgm-col-full">
87 <span
88 class="wgm_heading"><?php esc_html_e('Language and Regional Setup', 'gmap-embed'); ?></span>
89 <p class="wgm_text_center wgm_mb_40">
90 <?php esc_html_e('You can customize your Google Map title & contents by setting up Language and Regional setup', 'gmap-embed'); ?>
91 </p>
92 </div>
93 <div class="wgm-col-full wgm_d_flex wgm_mb_15">
94 <label><?php esc_html_e('Map Language:', 'gmap-embed'); ?></label>
95 <div class="wgm_w_60">
96 <select id="wgm_gmap_lng" name="srm_gmap_lng" class="regular-text">
97 <?php
98 $gmap_embed_languages = gmap_embed_get_languages();
99 if (count($gmap_embed_languages) > 0) {
100 foreach ($gmap_embed_languages as $gmap_embed_lng_key => $gmap_embed_language) {
101 $gmap_embed_selected = '';
102 if (get_option('srm_gmap_lng', 'en') === $gmap_embed_lng_key) {
103 $gmap_embed_selected = 'selected';
104 }
105 echo "<option value='" . esc_attr($gmap_embed_lng_key) . "' " . esc_attr($gmap_embed_selected) . '>' . esc_html($gmap_embed_language) . '</option>';
106 }
107 }
108 ?>
109 </select>
110 <p class="description" id="tagline-description" style="font-style: italic;">
111 <?php esc_html_e('Choose your desired map language', 'gmap-embed'); ?>
112 </p>
113 </div>
114 </div>
115 <br>
116 <div class="wgm-col-full wgm_d_flex">
117 <label><?php esc_html_e('Regional Area:', 'gmap-embed'); ?></label>
118 <div class="wgm_w_60">
119 <select id="wgm_region" name="wgm_region" class="regular-text">
120 <?php
121 $gmap_embed_regions = gmap_embed_get_regions();
122 if (count($gmap_embed_regions) > 0) {
123 foreach ($gmap_embed_regions as $gmap_embed_region_key => $gmap_embed_region) {
124 $gmap_embed_selected = '';
125 if (get_option('srm_gmap_region', 'US') === $gmap_embed_region_key) {
126 $gmap_embed_selected = 'selected';
127 }
128 echo "<option value='" . esc_attr($gmap_embed_region_key) . "' " . esc_attr($gmap_embed_selected) . '>' . esc_html($gmap_embed_region) . '</option>';
129 }
130 }
131 ?>
132 </select>
133 <p class="description" id="tagline-description" style="font-style: italic;">
134 <?php esc_html_e('Choose your regional area', 'gmap-embed'); ?>
135 </p>
136 </div>
137 </div>
138 </div>
139 </div>
140 </form>
141 </div>
142
143 <div class="wgm_setup_footer">
144 <button id="wgm_prev" class="button wgm_btn" style="display: none;">
145 &lt; <?php esc_html_e('Previous', 'gmap-embed'); ?></button>
146 <button id="wgm_next" class="button wgm_btn"
147 style="display: inline;"><?php esc_html_e('Next', 'gmap-embed'); ?> &gt;
148 </button>
149 <button id="wgm_save" style="display: none"
150 class="button wgm_btn wpgmap-setup-wizard-save"><?php esc_html_e('Finish', 'gmap-embed'); ?></button>
151 <div class="wgm-col-full wgm_d_flex">
152 <a
153 href="<?php echo esc_url(admin_url() . 'admin.php?page=wpgmapembed'); ?>"><?php esc_html_e('Skip Setup Wizard', 'gmap-embed'); ?></a>
154 </div>
155 </div>
156 </div>
157 </div>