Skip to content

Instantly share code, notes, and snippets.

@christianhent
Last active December 16, 2017 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianhent/c321d7d70aab859b8daab0f6fd49286a to your computer and use it in GitHub Desktop.
Save christianhent/c321d7d70aab859b8daab0f6fd49286a to your computer and use it in GitHub Desktop.
includes the relevant JS and CSS references into your layout
<?php
// CSS, goes directly below leaflet.css
$doc->addStyleSheet('media/plg_content_zatracks/css/leaflet.zoomhome.css');
// JS, goes directly below leaflet.js
$doc->addScript('media/plg_content_zatracks/js/leaflet.zoomhome.min.js');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment