mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
2272f84cc9
refs https://github.com/TryGhost/Team/issues/1004 - adds new `{{products}}` helper behind `multipleProducts` flag - `{{products}}` outputs a string with list of products that have access to specific post when used in a post context in theme - outputs empty string when used out of a post context and without access to `visibility` property - uses all available posts for a site via the global products data - updates {{content}} helper cta to use this new helper to show list of tiers with access to post
21 lines
873 B
Handlebars
21 lines
873 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}}
|
|
{{#has visibility="filter"}}
|
|
<h2>This post is for subscribers on the {{products}} 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>
|