Esempio n. 1
0
/**
 * Outputs (echo) the My Maps page
 * 
 * @return void
 */
function wpgmza_map_page()
{
    if (isset($_GET['action2']) && $_GET['action2'] == "close_review") {
        update_option("wpgmza_review_nag", time());
    }
    wpgmza_review_nag();
    google_maps_api_key_warning();
    if (function_exists('wpgmza_register_pro_version')) {
        wpgmza_stats("list_maps_pro");
        echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("My Maps", "wp-google-maps") . " <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">" . __("Add New", "wp-google-maps") . "</a>" . (function_exists("wpgmaps_wizard_layout") ? " <a href=\"admin.php?page=wp-google-maps-menu&action=wizard\" class=\"add-new-h2\">" . __("Wizard", "wp-google-maps") . "</a>" : "") . "</h2>";
        $my_theme = wp_get_theme();
        $name = $my_theme->get('Name');
        $version = $my_theme->get('Version');
        $modified_version = str_replace('.', '', $version);
        $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
        if ($name == 'Avada' && intval($modified_version) <= 393 && !isset($wpgmza_settings['wpgmza_settings_force_jquery'])) {
            echo "<div class='error'><p>" . __("We have detected a conflict between your current theme's version and our plugin. Should you be experiencing issues with your maps displaying, please update Avada to version 3.9.4 or go to <a href='" . admin_url('/admin.php?page=wp-google-maps-menu-settings#wpgmza_settings_force_jquery') . "'>settings page</a> and check the highlighted checkbox.", "wp-google-maps") . "</p></div>";
        }
        wpgmaps_check_versions();
        wpgmaps_list_maps();
    } else {
        wpgmza_stats("list_maps_basic");
        echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("My Maps", "wp-google-maps") . "</h2>";
        echo "<p class='wpgmza_upgrade_nag'><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_1' target=\"_BLANK\" title='" . __("Pro Version", "wp-google-maps") . "'>" . __("Create unlimited maps", "wp-google-maps") . "</a> " . __("with the", "wp-google-maps") . " <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_2' title='Pro Version'  target=\"_BLANK\">" . __("Pro Version", "wp-google-maps") . "</a> " . __("of WP Google Maps for only", "wp-google-maps") . " <strong>\$39.99!</strong></i></p>";
        $my_theme = wp_get_theme();
        $name = $my_theme->get('Name');
        $version = $my_theme->get('Version');
        $modified_version = str_replace('.', '', $version);
        $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
        if ($name == 'Avada' && intval($modified_version) <= 393 && !isset($wpgmza_settings['wpgmza_settings_force_jquery'])) {
            echo "<div class='error'><p>" . __("We have detected a conflict between your current theme's version and our plugin. Should you be experiencing issues with your maps displaying, please update Avada to version 3.9.4 or go to <a href='" . admin_url('/admin.php?page=wp-google-maps-menu-settings#wpgmza_settings_force_jquery') . "'>settings page</a> and check the highlighted checkbox.", "wp-google-maps") . "</p></div>";
        }
        wpgmaps_list_maps();
    }
    echo "</div>";
    echo "<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/'  target='_BLANK' title='WP Google Maps Troubleshooting Section'>" . __("Problems with the plugin? See the troubleshooting manual.", "wp-google-maps") . "</a></div>";
}
Esempio n. 2
0
function wpgmza_map_page()
{
    if (isset($_GET['action2']) && $_GET['action2'] == "close_review") {
        update_option("wpgmza_review_nag", time());
    }
    wpgmza_review_nag();
    if (function_exists('wpgmza_register_pro_version')) {
        wpgmza_stats("list_maps_pro");
        echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("My Maps", "wp-google-maps") . " <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">" . __("Add New", "wp-google-maps") . "</a></h2>";
        wpgmaps_check_versions();
        wpgmaps_list_maps();
    } else {
        wpgmza_stats("list_maps_basic");
        echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("My Maps", "wp-google-maps") . "</h2>";
        echo "<p class='wpgmza_upgrade_nag'><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_1' target=\"_BLANK\" title='" . __("Pro Version", "wp-google-maps") . "'>" . __("Create unlimited maps", "wp-google-maps") . "</a> " . __("with the", "wp-google-maps") . " <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_2' title='Pro Version'  target=\"_BLANK\">" . __("Pro Version", "wp-google-maps") . "</a> " . __("of WP Google Maps for only", "wp-google-maps") . " <strong>\$19.99!</strong></i></p>";
        wpgmaps_list_maps();
    }
    echo "</div>";
    echo "<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/'  target='_BLANK' title='WP Google Maps Troubleshooting Section'>" . __("Problems with the plugin? See the troubleshooting manual.", "wp-google-maps") . "</a></div>";
}