mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
2c96df42ac
closes https://github.com/TryGhost/Team/issues/466 - upgraded kg-default-cards to include paywall card - extracted `htmlToPlaintext` from post model to shared util for re-use - updated post-gating to set html+plaintext to the free preview if a paywall card has been used - re-generates plaintext from the truncated html using `htmlToPlaintext` util - display free content in the `{{content}}` helper via the default CTA template
18 lines
743 B
Handlebars
18 lines
743 B
Handlebars
{{{html}}}
|
|
<aside class="gh-post-upgrade-cta">
|
|
<div class="gh-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}}
|
|
{{#if @member}}
|
|
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Upgrade your account</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>
|