diff --git a/README.md b/README.md index 362bfc3..a3de170 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,15 @@ Alternatively, you can include `$WomensRefugeShieldButton` anywhere in your temp ![Button in the footer](img/screenshots/button_in_footer.PNG?raw=true) +## Versioning + +- version 1.x is for SilverStripe 3 +- version 2.x is for SilverStripe 4 + # Options You can view all the options on the [Women's Refuge Shielded Site website](https://shielded.co.nz/). - # TODO - responsiveness diff --git a/_config.php b/_config.php index cfb4525..b3d9bbc 100644 --- a/_config.php +++ b/_config.php @@ -1,3 +1 @@ ShieldCode) { case 1: Requirements::javascript('https://d3f5l8ze0o4j2m.cloudfront.net/m87/k33spt.js'); - Requirements::javascript($jsDir.'large_tab.js'); + Requirements::javascript('andrewandante/womens-refuge-shield: javascript/large_tab.js'); break; case 2: Requirements::javascript('https://d3f5l8ze0o4j2m.cloudfront.net/m87/k33spt.js'); - Requirements::javascript($jsDir.'small_tab.js'); + Requirements::javascript('andrewandante/womens-refuge-shield: javascript/small_tab.js'); break; } } diff --git a/code/WomensRefugeShieldSiteConfigExtension.php b/code/SiteConfigExtension.php similarity index 63% rename from code/WomensRefugeShieldSiteConfigExtension.php rename to code/SiteConfigExtension.php index 98c3b3f..73e905a 100644 --- a/code/WomensRefugeShieldSiteConfigExtension.php +++ b/code/SiteConfigExtension.php @@ -1,12 +1,19 @@ -<% require javascript("womens-refuge-shield/javascript/button.js") %> -<% require css("womens-refuge-shield/css/button.css") %> +<% require javascript("andrewandante/womens-refuge-shield: javascript/button.js") %> +<% require css("andrewandante/womens-refuge-shield: css/button.css") %> - +