vendor/con4gis/maps/Resources/contao/templates/c4g_maps.html5 line 9

Open in your IDE?
  1. <!-- indexer::stop -->
  2. <div class="<?php echo $this->class?> block"<?php echo $this->cssID?><?php if ($this->style): ?> style="<?php echo $this->style?>"<?php endif; ?>>
  3. <?php if ($this->headline) {
  4.     echo '<' $this->hl '>' $this->headline '</' $this->hl '>';
  5. ?>
  6. <?php if (!$this->mapData['mapDiv']): ?>
  7. <div id="<?php echo 'c4g_map_' $this->mapData['mapId'?>" class="c4g_map"></div>
  8. <?php  endif; ?>
  9. <?php if (\Environment::get('isAjaxRequest')): ?>
  10. <script>
  11. jQuery(document).ready(function()
  12. {
  13.     c4g.maps.mapController_<?php echo $this->mapData['mapId'?> = new c4g.maps.MapController(
  14.              <?php echo json_encode($this->mapData?>
  15.         );
  16. });
  17. </script>
  18. <?php else: ?>
  19. <?php
  20.     $GLOBALS['TL_BODY']['c4gMaps' $this->id] = \Template::generateInlineScript('jQuery(document).ready(function(){c4g.maps.mapController_' $this->mapData['mapId'] . '=new c4g.maps.MapController(' json_encode($this->mapData) . ');});'false);
  21. ?>
  22. <?php endif; ?>
  23. <noscript>
  24.     <p>NO_JS_WARNING</p>
  25. </noscript>
  26. </div>
  27. <!-- indexer::continue -->