Skip to content

Commit

Permalink
1.4.0 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Mar 3, 2016
1 parent 8c426b3 commit 745fc09
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENCE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ follows:

----- begin license block -----

Copyright 2012, 2014 Deux Huit Huit
Copyright 2012-2016 Deux Huit Huit

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ XSL template and Regular Expression combined to help fight old browsers.
- You must call the block-user-agent template directly under the `<body>` tag. Parameters are optional
- `<xsl:call-template name="block-user-agent" />`
- Default parameters are:

- `<xsl:param name="title" select="'This website uses technologies your browser does not support.'" />`
- `<xsl:param name="subtitle" select="'Please upgrade now usign the links below.'" />`
- `<xsl:param name="close" select="'Click here if you still want to access the site.'" />`
- `<xsl:param name="firefox" select="true()" />`
- `<xsl:param name="chrome" select="true()" />`
- `<xsl:param name="opera" select="true()" />`
- `<xsl:param name="ie" select="true()" />`
- `<xsl:param name="client-side-detection" select="false()" />`
- ```xslt
<xsl:param name="title" select="'This website uses technologies your browser does not support.'" />`
<xsl:param name="subtitle" select="'Please upgrade now usign the links below.'" />`
<xsl:param name="close" select="'Click here if you still want to access the site.'" />`
<xsl:param name="firefox" select="true()" />`
<xsl:param name="chrome" select="true()" />`
<xsl:param name="opera" select="true()" />`
<xsl:param name="ie" select="true()" />`
<xsl:param name="client-side-detection" select="false()" />
```
- You can also call the light template
- `<xsl:call-template name="block-user-agent-light" />`
- Default parameters are:
- ```xslt
<xsl:param name="text" select="'This website uses technologies your browser does not support.'" />
<xsl:param name="client-side-detection" select="false()" />
```

*Voila !*

Expand Down
6 changes: 5 additions & 1 deletion extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@
</description>
<repo type="github">https://github.com/DeuxHuitHuit/block_user_agent</repo>
<url type="discuss">https://github.com/DeuxHuitHuit/block_user_agent/issues</url>
<url type="issues">https://github.com/DeuxHuitHuit/block_user_agent/issues</url>
<types>
<type>User agent</type>
<type>Template</type>
</types>
<authors>
<author>
<name github="DeuxHuitHuit" symphony="nitriques" twitter="DeuxHuitHuit">Deux Huit Huit</name>
<website>http://deuxhuithuit.com/</website>
<website>https://deuxhuithuit.com/</website>
</author>
</authors>
<dependencies>
<!-- None -->
</dependencies>
<releases>
<release version="1.4.0" date="2016-03-03" min="2.4" max="2.x.x">
- Added lighter less invasive template
</release>
<release version="1.3.3" date="2015-02-13" min="2.4" max="2.x">
- Make the javascript more cross-browser
- Compatibility for Symphony 2.6
Expand Down

0 comments on commit 745fc09

Please sign in to comment.