mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
b03862d08a
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.
20 lines
866 B
Handlebars
20 lines
866 B
Handlebars
<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}}
|
|
<a class="gh-btn" data-portal="signup" style="color:{{accentColor}}">Subscribe now</a>
|
|
<p><small>Already have an account? <a data-portal="signin">Sign in</a></small></p>
|
|
{{/if}}
|
|
</div>
|
|
</aside>
|