With XMLGoogleMaps plugin I wanted to show different KML maps depending of the loaded page.
I then created some Divs (containings IFrames to GMaps) which are switched on and off via the CSS (CSS Inserts section), as shown here below.
Code:
body div#intestazione_mappa_siti {display:none;} body.page-id-352 div#imagecontainer {display:none;} body.page-id-352 div#intestazione_mappa_siti {display:inline;} body div#intestazione_mappa_musei {display:none;} body.page-id-353 div#imagecontainer {display:none;} body.page-id-353 div#intestazione_mappa_musei {display:inline;}
I then add some PHP code (below) in the "Style and Edit Header Area" thinking that this would have completely hided the unwanted code, but it didn't happen.
When loading the page, it still makes some kind of reference to Google Maps, as I see in the status bar.
Code:
%logo %image <?php $url = sprintf(“%s%s%s”,”http://”,$HTTP_HOST,$REQUEST_URI ); if $url == "http://www.archeoveneto.lettere.unipd.it/portale/?page_id=352" { ?> <div id="intestazione_mappa_siti"> <iframe id="xmlgm_6" src="http://www.archeoveneto.lettere.unipd.it/portale/wp-content/plugins/xml-google-maps/xmlgooglemaps_show.php?kmlid=6" style="border: 0px; width: 960px; height: 430px;" name="Google_KML_Maps" frameborder="0"></iframe> </div> <?php elseif $url == "http://www.archeoveneto.lettere.unipd.it/portale/?page_id=353" { ?> <div id="intestazione_mappa_musei"> <iframe id="xmlgm_7" src="http://www.archeoveneto.lettere.unipd.it/portale/wp-content/plugins/xml-google-maps/xmlgooglemaps_show.php?kmlid=7" style="border: 0px; width: 960px; height: 430px;" name="Google_KML_Maps" frameborder="0"></iframe> </div> <?php } else { ?> <div id="intestazione_mappa_siti"> </div> <div id="intestazione_mappa_musei"> </div> <?php } ?> %pages %bar1
Thank you in advance for any hints!
PHK