This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/* | |
Squarespace Age Gate. | |
- Create a "Cover Page" under Pages > Not Linked. | |
- Click the gear icon, go to Advanced tab in the popup, paste this code. | |
- This sets the cookie and handles the redirect back to the requested content. | |
- On the age gate page, you have to create a button that has "#legal" as the link or href. It is what turns off the age gate. | |
- Elsewhere on the site, you can test for the cookie (legal), and if not set, rediret to the age gate Cover Page (example at the bottom). | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var cookies; | |
/** | |
* Returns the value of the cookie name. | |
* @param {string} name | |
* @returns {string} | |
*/ | |
function readCookie(name,c,C,i){ | |
if (cookies && cookies[name]) { return cookies[name]; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout the repository from .org (must use “https”!) | |
svn co https://plugins.svn.wordpress.org/sewn-in-xml-sitemap . | |
# Change directory to the trunk | |
cd trunk | |
# Clone the plugin files from Github | |
git clone [email protected]:jupitercow/sewn-in-xml-sitemap.git . | |
# Change back to parent directory | |
cd ../ |