@@ -18,24 +18,24 @@ discard block |
||
18 | 18 | |
19 | 19 | <?php global $current_user; |
20 | 20 | $user_id = $current_user->ID; |
21 | - delete_user_meta($user_id, 'gmb_hide_welcome' ); //ONLY FOR TESTING |
|
21 | + delete_user_meta($user_id, 'gmb_hide_welcome'); //ONLY FOR TESTING |
|
22 | 22 | // Check that the user hasn't already clicked to ignore the welcome message and that they have appropriate permissions |
23 | - if ( ! get_user_meta( $user_id, 'gmb_hide_welcome' ) && current_user_can( 'install_plugins' ) ) { |
|
23 | + if ( ! get_user_meta($user_id, 'gmb_hide_welcome') && current_user_can('install_plugins')) { |
|
24 | 24 | ?> |
25 | 25 | <div class="gmb-container welcome-header clear"> |
26 | 26 | <div class="row"> |
27 | 27 | |
28 | 28 | <div class="gmb-col-md-9"> |
29 | - <h1 class="main-heading"><?php _e( 'Welcome to Maps Builder', $this->plugin_slug ); ?> - <?php echo Google_Maps_Builder()->meta['Version']; ?></h1> |
|
29 | + <h1 class="main-heading"><?php _e('Welcome to Maps Builder', $this->plugin_slug); ?> - <?php echo Google_Maps_Builder()->meta['Version']; ?></h1> |
|
30 | 30 | |
31 | - <p class="main-subheading"><?php _e( 'Thanks for using Maps Builder', $this->plugin_slug ); ?> <?php echo Google_Maps_Builder()->meta['Version']; ?>. <?php echo sprintf( __( 'To get started, read over the %1$sdocumentation%2$s, take a gander at the settings, and build yourself some maps! If you enjoy this plugin please consider telling a friend, rating it %3$s5-stars%2$s, or purchasing the %4$sPro%2$s edition.', $this->plugin_slug ), '<a href="https://wordimpress.com/documentation/maps-builder-pro/" target="_blank">', '</a>', '<a href="https://wordpress.org/support/view/plugin-reviews/google-maps-builder?filter=5#postform" target="_blank">', '<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank">' ); ?></p> |
|
32 | - <?php include( 'social-media.php' ); ?> |
|
31 | + <p class="main-subheading"><?php _e('Thanks for using Maps Builder', $this->plugin_slug); ?> <?php echo Google_Maps_Builder()->meta['Version']; ?>. <?php echo sprintf(__('To get started, read over the %1$sdocumentation%2$s, take a gander at the settings, and build yourself some maps! If you enjoy this plugin please consider telling a friend, rating it %3$s5-stars%2$s, or purchasing the %4$sPro%2$s edition.', $this->plugin_slug), '<a href="https://wordimpress.com/documentation/maps-builder-pro/" target="_blank">', '</a>', '<a href="https://wordpress.org/support/view/plugin-reviews/google-maps-builder?filter=5#postform" target="_blank">', '<a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank">'); ?></p> |
|
32 | + <?php include('social-media.php'); ?> |
|
33 | 33 | |
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="gmb-col-md-3"> |
37 | 37 | <div class="logo-svg"> |
38 | - <?php include( 'mascot-svg.php' ); ?> |
|
38 | + <?php include('mascot-svg.php'); ?> |
|
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 | </div> |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | |
44 | 44 | <?php } ?> |
45 | 45 | |
46 | - <div class="logo-svg logo-svg-small pull-right" <?php echo( ! get_user_meta( $user_id, 'gmb_hide_welcome' ) ? |
|
47 | - 'style="display:none;"' : '' ); ?>> |
|
48 | - <div class="gmb-plugin-heading"><?php _e( 'Maps Builder - Free Edition', $this->plugin_slug ); ?></div> |
|
49 | - <?php include( 'logo-svg.php' ); ?> |
|
50 | - <a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank" class="button button-primary gmb-orange-btn gmb-settings-header-btn"><?php _e( 'Upgrade to Pro', $this->plugin_slug ); ?></a> |
|
46 | + <div class="logo-svg logo-svg-small pull-right" <?php echo( ! get_user_meta($user_id, 'gmb_hide_welcome') ? |
|
47 | + 'style="display:none;"' : ''); ?>> |
|
48 | + <div class="gmb-plugin-heading"><?php _e('Maps Builder - Free Edition', $this->plugin_slug); ?></div> |
|
49 | + <?php include('logo-svg.php'); ?> |
|
50 | + <a href="https://wordimpress.com/plugins/maps-builder-pro?utm_source=MBF&utm_medium=BANNER&utm_content=SETTINGS&utm_campaign=MBF%20Settings" target="_blank" class="button button-primary gmb-orange-btn gmb-settings-header-btn"><?php _e('Upgrade to Pro', $this->plugin_slug); ?></a> |
|
51 | 51 | </div> |
52 | 52 | |
53 | 53 | |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @see: http://code.tutsplus.com/tutorials/the-complete-guide-to-the-wordpress-settings-api-part-5-tabbed-navigation-for-your-settings-page--wp-24971 |
61 | 61 | */ |
62 | - $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'map_options'; |
|
62 | + $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'map_options'; |
|
63 | 63 | ?> |
64 | 64 | <h2 class="nav-tab-wrapper"> |
65 | - <a href="?post_type=google_maps&page=<?php echo self::$key; ?>" class="nav-tab <?php echo $active_tab == 'map_options' ? 'nav-tab-active' : ''; ?>"><?php _e( 'Map Options', $this->plugin_slug ); ?></a> |
|
66 | - <a href="?post_type=google_maps&page=<?php echo self::$key; ?>&tab=general_settings" class="nav-tab <?php echo $active_tab == 'general_settings' ? 'nav-tab-active' : ''; ?>"><?php _e( 'General Options', $this->plugin_slug ); ?></a> |
|
67 | - <a href="?post_type=google_maps&page=<?php echo self::$key; ?>&tab=system_info" class="nav-tab <?php echo $active_tab == 'system_info' ? 'nav-tab-active' : ''; ?>"><?php _e( 'System Info', $this->plugin_slug ); ?></a> |
|
65 | + <a href="?post_type=google_maps&page=<?php echo self::$key; ?>" class="nav-tab <?php echo $active_tab == 'map_options' ? 'nav-tab-active' : ''; ?>"><?php _e('Map Options', $this->plugin_slug); ?></a> |
|
66 | + <a href="?post_type=google_maps&page=<?php echo self::$key; ?>&tab=general_settings" class="nav-tab <?php echo $active_tab == 'general_settings' ? 'nav-tab-active' : ''; ?>"><?php _e('General Options', $this->plugin_slug); ?></a> |
|
67 | + <a href="?post_type=google_maps&page=<?php echo self::$key; ?>&tab=system_info" class="nav-tab <?php echo $active_tab == 'system_info' ? 'nav-tab-active' : ''; ?>"><?php _e('System Info', $this->plugin_slug); ?></a> |
|
68 | 68 | </h2> |
69 | 69 | |
70 | 70 | |
@@ -72,18 +72,18 @@ discard block |
||
72 | 72 | /** |
73 | 73 | * Get the appropriate tab |
74 | 74 | */ |
75 | - switch ( $active_tab ) { |
|
75 | + switch ($active_tab) { |
|
76 | 76 | case 'map_options': |
77 | - include( 'tab-map-options.php' ); |
|
77 | + include('tab-map-options.php'); |
|
78 | 78 | break; |
79 | 79 | case 'general_settings': |
80 | - include( 'tab-general-settings.php' ); |
|
80 | + include('tab-general-settings.php'); |
|
81 | 81 | break; |
82 | 82 | case 'system_info': |
83 | - include( 'tab-system-info.php' ); |
|
83 | + include('tab-system-info.php'); |
|
84 | 84 | break; |
85 | 85 | default : |
86 | - include( 'tab-map-options.php' ); |
|
86 | + include('tab-map-options.php'); |
|
87 | 87 | break; |
88 | 88 | } |
89 | 89 | ?> |