PluginProbe
CBX Map for Google Map & OpenStreetMap / 1.1.12
CBX Map for Google Map & OpenStreetMap v1.1.12
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 / dashboard.php

dashboard.php in CBX Map for Google Map & OpenStreetMap 1.1.12, at templates/admin/dashboard.php

289 lines 19.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If this file is called directly, abort.
3 if ( ! defined( 'WPINC' ) ) {
4 die;
5 }
6 ?>
7 <?php
8 $plugin_url = CBXGooglemapHelper::url_utmy( 'https://codeboxr.com/product/cbx-google-map-for-wordpress/' );
9 $doc_url = CBXGooglemapHelper::url_utmy( 'https://codeboxr.com/doc/cbxmap-doc/' );
10 ?>
11 <div class="wrap">
12 <div class="cbx-backend_container_header">
13 <div class="cbx-backend_wrapper cbx-backend_header_wrapper">
14 <div class="menu-heading">
15 <img title="CBX Maps - Helps & Updates"
16 src="<?php echo CBXGOOGLEMAP_ROOT_URL . 'assets/img/icon_log.svg'
17 ?>" alt="CBX Maps - Helps & Updates" width="32" height="32">
18 <h2 class="wp-heading-inline wp-heading-inline-setting">
19 <?php esc_html_e( 'CBX Maps - Helps & Updates', 'cbxgooglemap' ); ?>
20 </h2>
21 </div>
22 <a href="<?php echo admin_url() . 'edit.php?post_type=cbxgooglemap&page=cbxgooglemapsettings' ?>" class="button button-primary
23 save-settings"> <?php esc_html_e( 'Go to Settings', 'cbxgooglemap' ); ?><img
24 src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAARUlEQVRIie3PoQoAIBRD0eGPa3x/bJxF0GLbgrBThd0nEBFSJMsdoDXCo14PSgUAzfYdYMoXr+u7fPwKeMZ3YNjGIz62APJohRdPxDxbAAAAAElFTkSuQmCC"/></a>
25 </div>
26 </div>
27
28 <div class="cbx-backend_container" style="background: transparent">
29 <div class="cbx-backend_wrapper cbx-backend_dashboard_wrapper">
30 <div class="cbx-backend-row">
31 <div class="cbx-backend-col col-xs-12 col-md-6 text-xs-left">
32 <!--Get Free & Pro Addons-->
33 <div class="cbx-backend-card">
34 <div class="header">
35 <div class="text">
36 <h2><?php esc_html_e( 'Get Free & Pro Addons', 'cbxgooglemap' ); ?></h2>
37 </div>
38 <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
39 class="aioseo-caret">
40 <path d="M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z"
41 fill="currentColor"></path>
42 </svg>
43 </div>
44 <div class="content">
45 <div class="cbx-backend-row">
46 <div class="cbx-backend-col col-xs-12 col-md-6 text-xs-left">
47 <div class="cbx-backend-feature-card">
48 <div class="feature-card-body static">
49 <div class="feature-card-header">
50 <a href="<?php echo esc_url( $plugin_url ); ?>"
51 target="_blank"> <img
52 src="https://codeboxr.com/wp-content/uploads/productshots/10560-profile.png"
53 alt="CBX Maps for WordPress"/> </a>
54
55 </div>
56 <div class="feature-card-description">
57 <h3>
58 <a href="<?php echo esc_url( $plugin_url ); ?>"
59 target="_blank">CBX Maps Pro Addon</a></h3>
60 <p>Pro features for CBX Maps plugin.</p>
61 </div>
62 </div>
63 </div>
64
65 </div>
66 </div>
67
68 </div>
69 </div><!--EndGet Free & Pro Addons-->
70 <!--Changelog-->
71 <div class="cbx-backend-card dashboard-changelog">
72 <div class="header">
73 <div class="text">
74 <h2><?php esc_html_e( 'Changelog', 'cbxgooglemap' ); ?></h2>
75 </div>
76 </div>
77 <div class="content">
78 <div class="cbx-backend-settings-row">
79 <p>
80 Version - 1.1.12
81 </p>
82 <ul>
83 <li>[improvement] Backend UI improved.</li>
84 <li>[fixed] Sanitization and escaping improved</li>
85 <li>[improvement] PHP 8.2 compatible</li>
86 <li>[improvement] WordPress 6.4.3 compatible</li>
87 <li>[improvement] Frontend & Backend style improvement for settings and map</li>
88 </ul>
89 </div>
90 <div class="cbx-backend-settings-row">
91 <p>
92 Version - 1.1.11
93 </p>
94 <ul>
95 <li>[improvement] Backend UI improved</li>
96 <li>[new] Hide leaflet branding yes/no globally from setting - default show as was
97 before
98 </li>
99 </ul>
100 </div>
101 <div class="cbx-backend-settings-row">
102 <p>
103 Version - 1.1.10
104 </p>
105 <ul>
106 <li><strong>[improvement]</strong> Backend UI improved.</li>
107 <li><strong>[improvement]</strong> Add new menu Helps & Update.</li>
108 </ul>
109 </div>
110 <div class="cbx-backend-settings-row">
111 <p>
112 Version - 1.1.9
113 </p>
114 <ul>
115 <li><strong>[fixed]</strong> Gutenberg block register compatibility fix for old
116 sites.
117 </li>
118 <li><strong>[fixed]</strong> WPBakery Latest version compatibility fix.</li>
119 </ul>
120 </div>
121 <div class="cbx-backend-settings-row">
122 <p>
123 Version - 1.1.8
124 </p>
125 <ul>
126 <li><strong>[new]</strong> Openstreep map now has location search for quick lat, lng
127 </li>
128 </ul>
129 </div>
130 </div>
131 </div><!--End Changelog-->
132 <!--Other WP Plugin-->
133 <div class="cbx-backend-card dashboard-wp-plugin">
134 <div class="header">
135 <div class="text">
136 <h2><?php esc_html_e( 'Other WordPress Plugins', 'cbxgooglemap' ); ?></h2>
137 </div>
138 </div>
139 <div class="content">
140 <?php
141
142 include_once( ABSPATH . WPINC . '/feed.php' );
143 if ( function_exists( 'fetch_feed' ) ) {
144 //$feed = fetch_feed( 'https://codeboxr.com/feed?post_type=product' );
145 $feed = fetch_feed( 'https://codeboxr.com/product_cat/wordpress/feed/' );
146 if ( ! is_wp_error( $feed ) ) : $feed->init();
147 $feed->set_output_encoding( 'UTF-8' ); // this is the encoding parameter, and can be left unchanged in almost every case
148 $feed->handle_content_type(); // this double-checks the encoding type
149 $feed->set_cache_duration( 21600 ); // 21,600 seconds is six hours
150 $limit = $feed->get_item_quantity( 10 ); // fetches the 18 most recent RSS feed stories
151 $items = $feed->get_items( 0, $limit ); // this sets the limit and array for parsing the feed
152
153 $blocks = array_slice( $items, 0, 10 );
154
155 //echo '<ul>';
156
157 foreach ( $blocks as $block ) {
158 $url = $block->get_permalink();
159 $url = CBXGooglemapHelper::url_utmy( $url ); ?>
160 <div class="cbx-backend-settings-row">
161 <a href="<?php echo $url ?>" target="_blank">
162 <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
163 <defs/>
164 <path d="M16.4 9.1L12.2 5c-.3-.3-.7-.3-1-.2s-.6.5-.6.9v1.7H4.2c-.5 0-.9.4-.9.9v3.4c0 .2.1.5.3.7.2.2.4.3.7.3h6.4v1.7c0 .4.2.7.6.9.4.1.8.1 1-.2l4.1-4.2c.4-.5.4-1.3 0-1.8z"
165 fill="currentColor"/>
166 </svg>
167 <?php echo $block->get_title() ?></a>
168 </div>
169 <?php
170 }//end foreach
171 endif;
172 }
173 ?>
174 </div>
175 </div><!--ENd Other WP Plugin-->
176 </div>
177 <div class="cbx-backend-col col-xs-12 col-md-6 text-xs-left">
178 <!--Help & Supports-->
179 <div class="cbx-backend-card dashboard-support">
180 <div class="header">
181 <div class="text">
182 <h2><?php esc_html_e( 'Help & Supports', 'cbxgooglemap' ); ?></h2>
183 </div>
184 </div>
185 <div class="content">
186 <div class="cbx-backend-settings-row">
187 <a href="https://codeboxr.com/contact-us" target="_blank">
188 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 22 22">
189 <defs/>
190 <path fill="currentColor" fill-rule="evenodd"
191 d="M16 2H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 2v7H5.17L4 12.17V4h11zm4 2h2c.55 0 1 .45 1 1v15l-4-4H7c-.55 0-1-.45-1-1v-2h13V6z"
192 clip-rule="evenodd"/>
193 </svg>
194 <?php esc_html_e( 'Access our Premium Support', 'cbxgooglemap' ); ?></a>
195 </div>
196 <div class="cbx-backend-settings-row">
197 <a href="mailto:info@codeboxr.com&subject=Need%20support%20for%20CBX%20Maps"
198 target="_blank">
199 <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
200 <defs/>
201 <path d="M18.2 4.3h-16c-.7 0-1.2.5-1.2 1.1v.7l9.2 3.9 9.2-3.9v-.7c-.1-.6-.6-1.1-1.2-1.1z"
202 fill="currentColor"/>
203 <path d="M10.4 11.1H10L1 7.3v8.4c0 .6.5 1.1 1.1 1.1h16c.6 0 1.1-.5 1.1-1.1V7.3l-8.8 3.8z"
204 fill="currentColor"/>
205 </svg>
206 <?php esc_html_e( 'Quick Support (Email)', 'cbxgooglemap' ); ?></a>
207 </div>
208 <div class="cbx-backend-settings-row">
209 <a href="<?php echo esc_url( $plugin_url ); ?>" target="_blank">
210 <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
211 <defs/>
212 <path d="M10 2.6c-4.4 0-7.9 3.6-7.9 7.9s3.6 7.9 7.9 7.9 7.9-3.6 7.9-7.9-3.5-7.9-7.9-7.9zm1.7 12.3c-.4.2-.7.3-1 .4-.2.1-.5.1-.8.1-.5 0-.9-.1-1.2-.4-.3-.2-.4-.5-.4-.9v-.4c0-.2.1-.3.1-.5l.5-1.8c0-.2.1-.4.1-.5v-.4c0-.2 0-.4-.1-.5-.1-.1-.3-.2-.5-.2-.1 0-.3 0-.4.1-.2 0-.3.1-.4.1l.1-.6c.3-.1.7-.3 1-.3.3-.1.6-.2.9-.2.5 0 .9.1 1.1.4.3.2.4.5.4.9v.4c0 .2-.1.4-.1.5l-.5 1.9c0 .1-.1.3-.1.5v.4c0 .2.1.4.2.5.1.1.3.1.6.1.1 0 .3 0 .4-.1.2 0 .3-.1.3-.1l-.2.6zm-.1-7.3c-.2.2-.5.3-.9.3-.3 0-.6-.1-.9-.3-.2-.2-.3-.5-.3-.8 0-.3.1-.6.4-.8.2-.2.5-.3.9-.3.3 0 .6.1.9.3.2.2.4.5.4.8-.2.3-.3.6-.5.8z"
213 fill="currentColor"/>
214 </svg>
215 <?php esc_html_e( 'CBX Maps Plugin Information', 'cbxgooglemap' ); ?> </a>
216 </div>
217 <div class="cbx-backend-settings-row">
218 <a href="<?php echo esc_url( $doc_url ); ?>" target="_blank">
219 <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
220 <path d="M14.5834 3.75C12.9584 3.75 11.2084 4.08333 10 5C8.79171 4.08333 7.04171 3.75 5.41671 3.75C4.20837 3.75 2.92504 3.93333 1.85004 4.40833C1.24171 4.68333 0.833374 5.275 0.833374 5.95V15.35C0.833374 16.4333 1.85004 17.2333 2.90004 16.9667C3.71671 16.7583 4.58337 16.6667 5.41671 16.6667C6.71671 16.6667 8.10004 16.8833 9.21671 17.4333C9.71671 17.6833 10.2834 17.6833 10.775 17.4333C11.8917 16.875 13.275 16.6667 14.575 16.6667C15.4084 16.6667 16.275 16.7583 17.0917 16.9667C18.1417 17.2417 19.1584 16.4417 19.1584 15.35V5.95C19.1584 5.275 18.75 4.68333 18.1417 4.40833C17.075 3.93333 15.7917 3.75 14.5834 3.75ZM17.5 14.3583C17.5 14.8833 17.0167 15.2667 16.5 15.175C15.875 15.0583 15.225 15.0083 14.5834 15.0083C13.1667 15.0083 11.125 15.55 10 16.2583V6.66667C11.125 5.95833 13.1667 5.41667 14.5834 5.41667C15.35 5.41667 16.1084 5.49167 16.8334 5.65C17.2167 5.73333 17.5 6.075 17.5 6.46667V14.3583Z"
221 fill="currentColor"></path>
222 <path d="M11.65 9.17504C11.3833 9.17504 11.1416 9.00837 11.0583 8.74171C10.95 8.41671 11.1333 8.05838 11.4583 7.95838C12.7416 7.54171 14.4 7.40838 15.925 7.58338C16.2666 7.62504 16.5166 7.93338 16.475 8.27504C16.4333 8.61671 16.125 8.86671 15.7833 8.82504C14.4333 8.66671 12.9583 8.79171 11.8416 9.15004C11.775 9.15837 11.7083 9.17504 11.65 9.17504ZM11.65 11.3917C11.3833 11.3917 11.1416 11.225 11.0583 10.9584C10.95 10.6334 11.1333 10.275 11.4583 10.175C12.7333 9.75837 14.4 9.62504 15.925 9.80004C16.2666 9.84171 16.5166 10.15 16.475 10.4917C16.4333 10.8334 16.125 11.0834 15.7833 11.0417C14.4333 10.8834 12.9583 11.0084 11.8416 11.3667C11.779 11.3827 11.7146 11.3911 11.65 11.3917ZM11.65 13.6084C11.3833 13.6084 11.1416 13.4417 11.0583 13.175C10.95 12.85 11.1333 12.4917 11.4583 12.3917C12.7333 11.975 14.4 11.8417 15.925 12.0167C16.2666 12.0584 16.5166 12.3667 16.475 12.7084C16.4333 13.05 16.125 13.2917 15.7833 13.2584C14.4333 13.1 12.9583 13.225 11.8416 13.5834C11.779 13.5993 11.7146 13.6077 11.65 13.6084Z"
223 fill="currentColor"></path>
224 </svg>
225 <?php esc_html_e( 'Read the CBX Maps User Guide', 'cbxgooglemap' ); ?> </a>
226 </div>
227 <div class="cbx-backend-settings-row">
228 <a href="https://wordpress.org/support/plugin/cbxgooglemap/reviews/#new-post"
229 target="_blank">
230 <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
231 <path d="M18.3 8.1c-.1-.3-.3-.5-.6-.5l-4.8-.7-2.2-4.4c-.1-.3-.4-.4-.7-.4-.3 0-.5.2-.7.4L7.2 6.9l-4.9.7c-.3 0-.5.2-.6.5-.1.3 0 .6.2.8l3.5 3.4-.8 4.7c0 .3.1.6.3.7.1.1.3.1.4.1.1 0 .2 0 .4-.1l4.3-2.3 4.3 2.3c.1.1.2.1.4.1.4 0 .8-.3.8-.8v-.2l-.8-4.8 3.5-3.4c.1 0 .2-.3.1-.5z"
232 fill="currentColor"/>
233 </svg>
234 <?php esc_html_e( 'Rate Our Plugin', 'cbxgooglemap' ); ?> </a>
235 </div>
236 </div>
237 </div><!--End Help & Supports-->
238
239
240 <!--Codeboxr News-->
241 <div class="cbx-backend-card dashboard-wp-plugin">
242 <div class="header">
243 <div class="text">
244 <h2><?php esc_html_e( 'Codeboxr News Updates', 'cbxgooglemap' ); ?></h2>
245 </div>
246 </div>
247 <div class="content">
248 <?php
249
250 include_once( ABSPATH . WPINC . '/feed.php' );
251 if ( function_exists( 'fetch_feed' ) ) {
252 //$feed = fetch_feed( 'https://codeboxr.com/feed?post_type=product' );
253 $feed = fetch_feed( 'https://codeboxr.com/feed?post_type=post' );
254 if ( ! is_wp_error( $feed ) ) : $feed->init();
255 $feed->set_output_encoding( 'UTF-8' ); // this is the encoding parameter, and can be left unchanged in almost every case
256 $feed->handle_content_type(); // this double-checks the encoding type
257 $feed->set_cache_duration( 21600 ); // 21,600 seconds is six hours
258 $limit = $feed->get_item_quantity( 20 ); // fetches the 18 most recent RSS feed stories
259 $items = $feed->get_items( 0, $limit ); // this sets the limit and array for parsing the feed
260
261 $blocks = array_slice( $items, 0, 20 );
262
263 //echo '<ul>';
264
265 foreach ( $blocks as $block ) {
266 $url = $block->get_permalink();
267 $url = CBXGooglemapHelper::url_utmy( $url ); ?>
268 <div class="cbx-backend-settings-row">
269 <a href="<?php echo $url ?>" target="_blank">
270 <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
271 <defs/>
272 <path d="M16.4 9.1L12.2 5c-.3-.3-.7-.3-1-.2s-.6.5-.6.9v1.7H4.2c-.5 0-.9.4-.9.9v3.4c0 .2.1.5.3.7.2.2.4.3.7.3h6.4v1.7c0 .4.2.7.6.9.4.1.8.1 1-.2l4.1-4.2c.4-.5.4-1.3 0-1.8z"
273 fill="currentColor"/>
274 </svg>
275 <?php echo $block->get_title() ?></a>
276 </div>
277 <?php
278 }//end foreach
279 endif;
280 }
281 ?>
282 </div>
283 </div><!--Codeboxr News-->
284 </div>
285 </div>
286
287 </div>
288 </div>
289 </div>