/** * Constructor * * @since 1.0.0 */ protected function __construct() { self::$model_sett = LeafletLayers_Model_Admin_Settings::get_instance(); $this->register_hook_callbacks(); self::$markers_js = LeafletLayers_Model::get_markers_json(); self::$leafletlayers_groups = LeafletLayers_Model::get_groups(false); }
/** * Define the core functionality of the plugin. * * Load the dependencies, define the locale, and set the hooks for the admin area and * the public-facing side of the site. * * @since 1.0.0 */ public function __construct() { self::$plugin_path = plugin_dir_path(dirname(__FILE__)); self::$plugin_url = plugin_dir_url(dirname(__FILE__)); require_once self::$plugin_path . 'includes/class-' . self::PLUGIN_PREFIX . 'loader.php'; self::$modules['LeafletLayers_Loader'] = LeafletLayers_Loader::get_instance(); self::$modules['LeafletLayers_Controller_Public'] = LeafletLayers_Controller_Public::get_instance(); self::$modules['LeafletLayers_Controller_Admin_Settings'] = LeafletLayers_Controller_Admin_Settings::get_instance(); self::$modules['LeafletLayers_Controller_Admin_Notices'] = LeafletLayers_Controller_Admin_Notices::get_instance(); self::$modules['LeafletLayers_Controller_Admin_Menu'] = LeafletLayers_Controller_Admin_Menu::get_instance(); LeafletLayers_Actions_Filters::init_actions_filters(); }