mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Add conditions to check if members feature is enabled
This commit is contained in:
parent
c205947374
commit
e27f2190d6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1490,6 +1490,10 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.read-more-wrap {
|
.read-more-wrap {
|
||||||
|
margin-top: 2.4vmin;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-cta + .read-more-wrap {
|
||||||
margin-top: max(12vmin, 72px);
|
margin-top: max(12vmin, 72px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
default.hbs
12
default.hbs
@ -50,11 +50,13 @@
|
|||||||
<a class="gh-social-link gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
<a class="gh-social-link gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{#unless @member}}
|
{{#if @site.members_enabled}}
|
||||||
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
|
{{#unless @member}}
|
||||||
{{else}}
|
<a class="gh-head-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
|
||||||
<a class="gh-head-button" href="#/portal/account" data-portal="account">Account</a>
|
{{else}}
|
||||||
{{/unless}}
|
<a class="gh-head-button" href="#/portal/account" data-portal="account">Account</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
8
post.hbs
8
post.hbs
@ -96,7 +96,9 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{!-- A signup call to action is displayed here, unless viewed as a logged-in member --}}
|
{{!-- A signup call to action is displayed here, unless viewed as a logged-in member --}}
|
||||||
{{#unless @member}}{{#if access}}
|
{{#if @site.members_enabled}}
|
||||||
|
{{#unless @member}}
|
||||||
|
{{#if access}}
|
||||||
<section class="footer-cta outer">
|
<section class="footer-cta outer">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
{{#if @custom.email_signup_text}}<h2 class="footer-cta-title">{{@custom.email_signup_text}}</h2>{{/if}}
|
{{#if @custom.email_signup_text}}<h2 class="footer-cta-title">{{@custom.email_signup_text}}</h2>{{/if}}
|
||||||
@ -108,7 +110,9 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
making the form validation and submission much simpler. --}}
|
making the form validation and submission much simpler. --}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{/if}}{{/unless}}
|
{{/if}}
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
{{!-- Read more links, just above the footer --}}
|
{{!-- Read more links, just above the footer --}}
|
||||||
|
Loading…
Reference in New Issue
Block a user