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:
parent
665c30f255
commit
b03862d08a
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue