I’m trying to show this content if a specific page is visible:
<?php if $site->page('resources')->isVisible(): ?>
<div class="widget widget-cta--secondary">
<h4 class="widget__title">Resources</h4>
<p class="widget__text">Get my hand-selected collection of resources that will jumpstart your online marketing today.</p>
<a href="<?php echo page('resources')->url(); ?>" class="widget__cta btn btn--secondary">Resources</a>
</div>
<?php endif: ?>
However, I’m getting a debugge rmessage: “syntax error, unexpected ‘$site’ (T_VARIABLE), expecting ‘(’”
How do I fix this?