Last active
September 22, 2015 11:16
-
-
Save fastnetwebdesign/2cf0955d7d059aae4355 to your computer and use it in GitHub Desktop.
custom_html map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$templateName = JFactory::getApplication()->getTemplate(); | |
if ( !file_exists(JPATH_SITE.'/templates/'.$templateName.'/images/Map_marker.png') ) | |
StarTekHelper::getInstance()->addScriptDelayed('window.__noMarkers = true;'); | |
$location = JRequest::getVar('location'); | |
//$location = count($location) ? $location[0] : 'London'; | |
// Search results variables | |
//$resultsWord = ($this->pagination->total == 1) ? 'Result' : 'Results'; | |
//$templateName = JFactory::getApplication()->getTemplate(); | |
?> | |
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<?php | |
StarTekHelper::getInstance()->addScriptDelayed(JUri::root(true) .'/components/com_startek/assets/infobox.js'); | |
StarTekHelper::getInstance()->addScriptDelayed(JUri::root(true) .'/templates/'. $templateName .'/js/map.js'); | |
StarTekHelper::getInstance()->addScriptDelayed("jQuery(function($) { starTekMap('Dublin', 12); });"); | |
?> | |
<div class="search-results-map search-map"> | |
<div id="map_canvas" style="height: 500px;"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment