PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps
/
includes
<?php namespace WPGMZA; class Page extends Factory { protected $_document; public function __construct() { $this->_document = $document = new DOMDocument(); } protected function disableProFeatures() { global $wpgmza; if($wpgmza->isProVersion()) return; $this->document->querySelectorAll(' input.wpgmza-pro-feature, select.wpgmza-pro-feature, textarea.wpgmza-pro-feature, .wpgmza-pro-feature input, .wpgmza-pro-feature select, .wpgmza-pro-feature textarea') ->setAttribute('disabled', 'disabled') ->setAttribute('title', __('Get the Pro add-on to enable this feature')); foreach($this->document->querySelectorAll('a[href="#marker-filtering"]') as $el) $el->parentNode->remove(); $this->document->querySelectorAll('#heatmaps')->removeAttribute('data-wpgmza-feature-type'); $this->document->querySelectorAll('#imageoverlays')->removeAttribute('data-wpgmza-feature-type'); } protected function hideSelectedProFeatures() { global $wpgmza; if($wpgmza->isProVersion()) return; $this->document->querySelectorAll('.sidebar .item.hide-pro') ->setAttribute('style', 'display:none;'); $this->document->querySelectorAll('.wpgmza-pro-feature-hide') ->setAttribute('style', 'display:none;'); $this->document->querySelectorAll('.wpgmza-pro-feature-upsell') ->setAttribute('style', 'display:none;'); } protected function addFormNonces() { foreach($this->_document->querySelectorAll("form") as $form) { if(!$form->hasAttribute("action")) throw new \Exception("Form has no action to generate nonce with"); $action = $form->getAttribute("action"); $nonce = wp_create_nonce("wpgmza_$action"); $input = $this->_document->createElement("input"); $input->setAttribute("type", "hidden"); $input->setAttribute("name", "nonce"); $input->setAttribute("value", $nonce); $form->prepend($input); } /* Developer Hook (Action) - Add form nonces to Pages, or more speciically forms within pages, passes DOMDocument for mutation */ do_action("wpgmza_page_dom_add_form_nonces", $this->_document); } protected function isNonceValid($form, $nonce) { if(!($form instanceof DOMElement)) throw new \Exception("Expected a DOMElement"); if(!preg_match('/^form$/i', $form->nodeName)) throw new \Exception("Method only valid on forms"); $action = $form->getAttribute("action"); return wp_verify_nonce($nonce, "wpgmza_$action"); } public function __get($name) { switch($name) { case "document": return $this->{"_$name"}; break; case "html": return $this->_document->html; break; } } public static function hideChat() { update_user_meta( get_current_user_id(), 'wpgmza_hide_chat', 1 ); die(); } } add_action('wp_ajax_wpgmza_hide_chat', array('WPGMZA\\Page', 'hideChat'));
[-] class.admin-ui.php
[edit]
[+]
3rd-party-integration
[-] class.latlng.php
[edit]
[-] class.map.php
[edit]
[-] class.admin-notices.php
[edit]
[-] class.dom-query-results.php
[edit]
[-] class.pointlabel.php
[edit]
[-] class.upgrader.php
[edit]
[-] class.map-list-page.php
[edit]
[-] class.integrity-checker.php
[edit]
[-] class.dom-document.php
[edit]
[-] class.crud.php
[edit]
[+]
styling
[-] class.dynamic-translations.php
[edit]
[-] class.strings.php
[edit]
[-] class.library-script-panel.php
[edit]
[+]
open-layers
[-] class.maps-engine-dialog.php
[edit]
[+]
compat
[-] class.plugin.php
[edit]
[-] class.theme-panel.php
[edit]
[-] class.global-settings.php
[edit]
[+]
google-maps
[-] class.query.php
[edit]
[-] class.modal-dialog.php
[edit]
[-] class.script-loader.php
[edit]
[-] class.internal-engine.php
[edit]
[-] class.selector-to-xpath.php
[edit]
[-] class.polygon.php
[edit]
[-] class.rectangle.php
[edit]
[-] class.system-info.php
[edit]
[-] class.shortcodes.php
[edit]
[-] class.gdpr-compliance.php
[edit]
[+]
php8
[-] build.log
[edit]
[+]
tables
[-] class.polyline.php
[edit]
[-] class.settings.php
[edit]
[-] class.store-locator.php
[edit]
[-] class.country-select.php
[edit]
[-] class.settings-page.php
[edit]
[-] class.dom-element.php
[edit]
[+]
..
[-] class.elias-fano.php
[edit]
[-] class.distance.php
[edit]
[-] class.auto-loader.php
[edit]
[-] class.circle.php
[edit]
[-] class.page.php
[edit]
[-] class.component-anchor-control.php
[edit]
[+]
map-edit-page
[-] class.feature.php
[edit]
[-] class.marker.php
[edit]
[-] class.database.php
[edit]
[-] class.marker-filter.php
[edit]
[-] class.google-maps-api-loader.php
[edit]
[-] class.factory.php
[edit]
[+]
legacy
[-] class.installer-page.php
[edit]
[-] class.query-fragment.php
[edit]