PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps
/
includes
<?php namespace WPGMZA; class MapListPage extends Page { public function __construct() { global $wpgmza; $this->_document = new \WPGMZA\DOMDocument(); $this->_document->loadPHPFile($wpgmza->internalEngine->getTemplate('map-list-page.html.php')); // Review nag if(isset($_GET['wpgmza-close-review-nag'])) update_option('wpgmza-review-nag-closed', true); $daysSinceFirstRun = 0; if($str = get_option('wpgmza-first-run')) { $datetime = \DateTime::createFromFormat(\DateTime::ISO8601, $str); $now = new \DateTime(); $diff = $now->diff($datetime); $daysSinceFirstRun = $diff->days; } if($wpgmza->isProVersion() || get_option('wpgmza-review-nag-closed') || $daysSinceFirstRun < 10) { $this->document->querySelectorAll(".wpgmza-review-nag")->remove(); if($wpgmza->isProVersion()) { ProPage::enableProFeatures($this->document); ProPage::removeUpsells($this->document); } } $notices = $wpgmza->adminNotices->displayNext(); $noticeWrapper = $this->document->querySelector('.wpgmza-persistent-notice-container'); if(!empty($notices)){ $noticeWrapper->import($notices); if($wpgmza->isProVersion()){ /* Using Pro, but Pre V9 needs to hide persistent notices as they become unfunctional */ if(method_exists($wpgmza, 'getProVersion')){ if(version_compare($wpgmza->getProVersion(), '9.0.0', '<')){ $noticeWrapper->remove(); } } } } else { $noticeWrapper->remove(); } // The map table $adminMapDataTableOptions = array( "pageLength" => 25, "order" => [[ 1, "desc" ]] ); $adminMapDataTable = new \WPGMZA\AdminMapDataTable(null, $adminMapDataTableOptions); $this->hideSelectedProFeatures(); $this->_document->querySelector("#wpgmza-admin-map-table-container")->import($adminMapDataTable->document->html); /* Developer Hook (Action) - Alter output of the map list page, passes DOMDocument for mutation */ do_action("wpgmza_map_list_page_created", $this->_document); } public function __get($name) { switch($name) { case "document": return $this->{"_$name"}; break; case "html": return $this->document->html; break; } } }
[-] 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]