Sid Gifari File Manager
🏠 Root
/
home2
/
iuywvcmy
/
public_html
/
aliki
/
wp-content
/
plugins
/
wp-google-maps
/
includes
/
open-layers
/
Editing: class.ol-loader.php
<?php namespace WPGMZA; if(!defined('ABSPATH')) return; /** * Loads the OpenLayers map engine */ class OLLoader { private static $olAPILoadCalled = false; /** * Enqueue scripts * @return void */ public function enqueueScripts() { global $wpgmza; $this->loadOpenLayers(); } /** * Loads the OpenLayers libraries and styles */ public function loadOpenLayers() { global $wpgmza; //if(Plugin::$settings->remove_api) //return; if(OLLoader::$olAPILoadCalled) return; wp_enqueue_style('wpgmza-ol-base-style', plugin_dir_url(dirname(__DIR__)) . 'lib/ol.css'); wp_enqueue_style('wpgmza-ol-style', plugin_dir_url(dirname(__DIR__)) . 'css/open-layers.css'); $scriptArgs = apply_filters('wpgmza-get-scripts-arguments', array()); wp_enqueue_script('wpgmza_ol_api_call', plugin_dir_url(dirname(__DIR__)) . 'lib/ol.js', false, false, $scriptArgs); } }
Save
Cancel