Releases: Browndog-Agency/gated-resources
Release list
v0.2.6
v0.2.5
Automated release. Download gated-resources.zip below to install/update.
v0.2.4 — Form button immune to Elementor kit styles
Elementor kit rules (.elementor-kit-N button) were zeroing out the form button's padding, radius and colours (and forcing line-height 14px). The button's properties now carry !important with explicit font-size/line-height, so the purple button renders as designed regardless of theme/Elementor globals.
Install/update with the gated-resources.zip asset below, then hard-refresh (CSS changed).
v0.2.3 — New-tab resource opening, explicit Turnstile render, button + layout styling
Behaviour: after a successful submit the clicked resource opens in a new tab (opened during the submit gesture so popup blockers allow it, with a 'Preparing your resource…' holding page). The popup closes on the original tab and the grid there is fully unlocked. Failed submissions close the pre-opened tab again; blocked popups fall back to same-tab navigation.
Fix: Turnstile now renders explicitly when the popup opens. Auto-rendering inside the hidden popup made the widget time out and re-render in a loop, flooding the console with sandboxed-frame errors.
Styling: purple (#662483) 'Access resource' button with white/purple hover swap; horizontal page padding moved from .gr-container to .gr-archive.
Docs: README covers the required Varnish cookie exclusion for gr_access (Cloudways) and Test Mode.
Install/update with the gated-resources.zip asset below, then hard-refresh (JS + CSS changed).
v0.2.2 — Test Mode toggle in Settings + card title CSS guards
Test Mode toggle: Resources → Settings now has a 'Test Mode' checkbox that skips the HubSpot submission so the full gate flow (Turnstile → unlock → download) can be tested before HubSpot is connected. While enabled, leads are NOT recorded and a site-wide admin warning is shown — turn it off before go-live. (The gr_skip_hubspot filter from v0.2.1 still works as a code-level override.)
Styling: card title colour/size now carry !important so Elementor heading/link styles can't override them.
Install/update with the gated-resources.zip asset below, then hard-refresh.
v0.2.1 — Test mode: gr_skip_hubspot filter
Adds a gr_skip_hubspot filter for QA on sites where HubSpot isn't configured yet. When enabled, the HubSpot submission is skipped (the lead is not recorded anywhere) but everything else — Turnstile, validation, the 30-day unlock, protected file access — runs normally.
Enable while testing (Code Snippets plugin or theme functions.php):
add_filter( 'gr_skip_hubspot', '__return_true' );Remove it before go-live or no leads will be captured.
Install/update with the gated-resources.zip asset below.
v0.2.0 — Gate popup on the grid (no more single pages)
New UX flow:
- Locked visitors: clicking any card opens the gate form in a popup; after a successful submit the clicked resource opens immediately, and the whole library is unlocked for 30 days as before.
- Unlocked visitors: cards link straight to the PDF (new tab) via the protected endpoint.
- Single resource URLs now 301-redirect to the /resources/ archive.
- Works on the archive and on pages using the [gated_resources] shortcode.
Also includes the styling batch: #E9E8F0 page background, 25px card titles, container/header spacing updates.
Security model unchanged — access is enforced server-side at the file endpoint.
Install/update with the gated-resources.zip asset below, then hard-refresh (new CSS/JS).
v0.1.5 — Centered archive title in rounded purple band
Styling: the Resources archive title is now centered and white in a #662483 band that is min-height 300px with a 20px border-radius. Install/update with the gated-resources.zip asset below, then hard-refresh to clear cached CSS.
v0.1.4 — Layout container + purple archive title band
Styling:
- All plugin-rendered views (archive, single) sit in a centred container, max-width 1400px, with 30px padding on desktop (>=1025px) and 20px below.
- The Resources archive title now sits in a #662483 band (white Avenir, 60px/700 on desktop; scaled down on tablet/mobile).
Install/update with the gated-resources.zip asset below (then a hard refresh to clear cached CSS).
v0.1.3 — Resources URLs at /resources/ (drop permalink front)
Fix: the site's permalink front (e.g. /insights/news/) was being prepended to resources URLs, giving /insights/news/resources. Resources now live at:
- Archive:
/resources/ - Single:
/resources/{slug}/
Also adds a one-time automatic rewrite-rule flush after a version change (plugin updates don't run the activation hook), so the new URLs take effect without manually re-saving Settings → Permalinks.
Install/update with the gated-resources.zip asset below.