Plugin Directory

Changeset 2504318


Ignore:
Timestamp:
03/27/2021 05:53:30 AM (5 years ago)
Author:
jogesh_pi
Message:

Update - Minor Fixes and compatible with latest version

Location:
responsive-google-map
Files:
39 added
4 edited

Legend:

Unmodified
Added
Removed
  • responsive-google-map/trunk/includes/admin/class-wrgrgm-admin-init.php

    r2398384 r2504318  
    66class WRGRGM_Admin_Init {
    77
    8     public function __construct() {
     8    private static $instance;
     9
     10    public static function initialize() {
     11
     12        if ( empty( self::$instance ) ) {
     13            self::$instance = new self;
     14        }
     15
     16        return self::$instance;
     17    }
     18
     19    private function __construct() {
    920       
    1021        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    11         // add_action( 'admin_head', array( $this, 'admin_enqueue_style' ) );
    12     }
    13 
    14     public function admin_enqueue_style() {
    15         $screen = get_current_screen();
    16         if ( is_object( $screen ) && 'wrg_rgm' == $screen->post_type ) { ?>
    17             <style>
    18                 #wrg_rgm_settings .inside, #wrg_rgm_settings .postbox-header {display: none;}#wrg_rgm_settings.postbox{border: 0px !important;}
    19             </style>
    20             <?
    21         }
    2222    }
    2323
     
    3737                wp_enqueue_script( 'wrg_rgm_admin_script', WRG_RGM_PLUGIN_URL . 'dist/app.bundle.js', array(), WRG_RGM_VERSION, true );
    3838                wp_localize_script( 'wrg_rgm_admin_script', 'RGM', array(
    39                     'ajaxurl' => admin_url( 'admin-ajax.php' ),
    40                     'WRG_RGM_PLUGIN_URL' => WRG_RGM_PLUGIN_URL,
    41                     'GMAP_API_KEY' => RGM_Settings::get_key(),
    42                     'GMAP_STYLES_DATA' => $map_styles_data
     39                    'ajaxurl'               => admin_url( 'admin-ajax.php' ),
     40                    'WRG_RGM_PLUGIN_URL'    => WRG_RGM_PLUGIN_URL,
     41                    'GMAP_API_KEY'          => RGM_Settings::get_key(),
     42                    'GMAP_STYLES_DATA'      => $map_styles_data
    4343                ));
    4444            }
     
    4747}
    4848
    49 new WRGRGM_Admin_Init();
     49WRGRGM_Admin_Init::initialize();
  • responsive-google-map/trunk/includes/class-wrgrgm-notice.php

    r2393651 r2504318  
    7373        $notice['classes'] = implode( ' ', $classes );
    7474
    75         self::load_template( $notice );
     75        self::$instance->load_template( $notice );
    7676    }
    7777
  • responsive-google-map/trunk/readme.txt

    r2437847 r2504318  
    44Tags: responsive google map, google map, responsive map, wordpress map, google map styles, map styles, wordpress google map
    55Requires at least: 5.0
    6 Tested up to: 5.6
    7 Stable tag: 3.1.3
     6Tested up to: 5.7
     7Stable tag: 3.1.4
    88Requires PHP: 5.6
    99License: GPLv2 or later
  • responsive-google-map/trunk/responsive-google-map.php

    r2437847 r2504318  
    55 * Plugin URI: https://webomnizz.com
    66 * Description: Responsive Google MAP provides you an easiest way to add Google Map anywhere in your Website. You can easily customize your google map with custom markers, locations, descriptions, images and link.
    7  * Version: 3.1.3
     7 * Version: 3.1.4
    88 * Donate link: https://paypal.me/jogesh06
    99 * Author: Jogesh Sharma
     
    3737if( ! defined('WPINC') ) die;
    3838
    39 define( 'WRG_RGM_VERSION',       '3.1.3' );
     39define( 'WRG_RGM_VERSION',       '3.1.4' );
    4040define( 'WRG_RGM_PLUGIN_DIR',    plugin_dir_path( __FILE__ ) );
    4141define( 'WRG_RGM_PLUGIN_URL',    plugin_dir_url( __FILE__ ) );
     
    7979       
    8080        if ( is_admin() ) {
     81           
    8182            require WRG_RGM_PLUGIN_DIR . 'includes/admin/class-wrgrgm-menu.php';
    8283            require WRG_RGM_PLUGIN_DIR . 'includes/admin/class-wrgrgm-settings.php';
Note: See TracChangeset for help on using the changeset viewer.