PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps
/
includes
/
map-edit-page
<?php namespace WPGMZA; class MapSelectDialog extends DOMDocument { public function __construct(){ global $wpgmza; DOMDocument::__construct(); $this->loadPHPFile($wpgmza->internalEngine->getTemplate("map-edit-page/map-select-dialog.html.php")); $this->populateSelectOptions(); } public function populateSelectOptions(){ global $wpdb; global $WPGMZA_TABLE_NAME_MAPS; $maps = $wpdb->get_results("SELECT id, map_title FROM $WPGMZA_TABLE_NAME_MAPS WHERE active = 0 ORDER BY id ASC"); if(!empty($maps)){ $select = $this->querySelector('select[data-ajax-name="map_id"]'); if($select){ foreach($maps as $map){ $li = $this->createElement("option"); $li->setAttribute("value", intval($map->id)); $li->appendText($map->map_title); if(!empty($_GET['map_id'])){ if(intval($map->id) === intval($_GET['map_id'])){ $li->setAttribute("selected", "selected"); $li->appendText(" " . __("(Current)", "wp-google-maps")); } } $select->appendChild($li); } } } } }
[-] class.map-select-dialog.php
[edit]
[-] class.circle-panel.php
[edit]
[-] class.map-editor-tour.php
[edit]
[-] class.polygon-panel.php
[edit]
[-] class.marker-panel.php
[edit]
[-] class.imageoverlay-panel.php
[edit]
[-] class.point-label-panel.php
[edit]
[-] class.heatmap-panel.php
[edit]
[-] class.bulk-marker-editor-dialog.php
[edit]
[+]
..
[-] class.rectangle-panel.php
[edit]
[-] class.feature-panel.php
[edit]
[-] class.map-edit-page.php
[edit]
[-] class.polyline-panel.php
[edit]