Learning PHP - can someone explain this if statement?
<p>So I'm learning PHP, well I'm learning more complex standards of php as per phpfox.
An issue I'm having is with a few lines of code - I get what they 'do'. But I don't understand why they are structured that way. Could someone explain?</p>

<p>In the following line of code the if statements are cornered by {} and not in the usual:</p>

<pre><code>if thing('condition') {
do stuff
}
</code></pre>

<p>Way that i'm familiar with. Why is this?</p>

<pre><code>{if Phpfox::isUser() &amp;&amp; !PHPFOX_IS_AJAX &amp;&amp; $sCustomViewType === null}
{if (Phpfox::getUserBy('profile_page_id') &gt; 0 &amp;&amp; defined('PHPFOX_IS_USER_PROFILE')) 
|| (isset($aFeedCallback.disable_share) &amp;&amp; $aFeedCallback.disable_share) 
|| (defined('PHPFOX_IS_USER_PROFILE') &amp;&amp; !Phpfox::getService('user.privacy')-&gt;hasAccess('' . $aUser.user_id . '', 'feed.share_on_wall'))
|| (defined('PHPFOX_IS_USER_PROFILE') &amp;&amp; !Phpfox::getUserParam('profile.can_post_comment_on_profile'))
}

{else}
</code></pre>

<p>Also what is the :: thing about? and when I see (not in this) a | by itself, what is that doing?</p>

<p>Thanks very much for any help :)</p>
