Skip to content

Instantly share code, notes, and snippets.

@fastnetwebdesign
Last active September 22, 2015 11:16
Show Gist options
  • Save fastnetwebdesign/2cf0955d7d059aae4355 to your computer and use it in GitHub Desktop.
Save fastnetwebdesign/2cf0955d7d059aae4355 to your computer and use it in GitHub Desktop.
custom_html map
<?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