0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Updated content cta helper to use new tiers helper

refs https://github.com/TryGhost/Team/issues/1004

Replaces {{products}} helper usage with updated {{tiers}} helper. Default output for {{tiers}} helper is the same as {{products}} helper.
This commit is contained in:
Rishabh 2022-03-04 12:36:12 +05:30 committed by Rishabh Garg
parent 665c30f255
commit b03862d08a
2 changed files with 10 additions and 1 deletions

View file

@ -8,7 +8,7 @@
<h2>This post is for subscribers only</h2>
{{/has}}
{{#has visibility="tiers"}}
<h2>This post is for subscribers on the {{products}} only </h2>
<h2>This post is for subscribers on the {{tiers}} only </h2>
{{/has}}
{{#if @member}}
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Upgrade your account</a>

View file

@ -1,5 +1,14 @@
<aside class="custom-post-upgrade-cta">
<div class="custom-post-upgrade-cta-content" style="background-color: {{accentColor}}">
{{#has visibility="paid"}}
<h2>This post is for paying subscribers only</h2>
{{/has}}
{{#has visibility="members"}}
<h2>This post is for subscribers only</h2>
{{/has}}
{{#has visibility="tiers"}}
<h2>This post is for subscribers on the {{tiers}} only </h2>
{{/has}}
{{#if @member}}
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Account upgrade link</a>
{{else}}