'; if ($context['SPortal']['sides'][1]['active']) echo ' ', sp_embed_image($context['SPortal']['sides'][1]['collapsed'] ? 'expand' : 'collapse', '', null, null, true, 'sp_collapse_side1'), ''; if ($context['SPortal']['sides'][4]['active']) echo ' ', sp_embed_image($context['SPortal']['sides'][4]['collapsed'] ? 'expand' : 'collapse', '', null, null, true, 'sp_collapse_side4'), ''; echo ' '; } if (!empty($context['SPortal']['blocks'][5])) { echo '
';
if (!empty($context['SPortal']['blocks'][2]))
{
foreach ($context['SPortal']['blocks'][2] as $block)
template_block($block);
if (empty($context['SPortal']['on_portal']))
echo '
'; } } function template_portal_below() { global $context, $modSettings, $smcFunc; if (!empty($context['SPortal']['blocks'][3])) { if (empty($context['SPortal']['on_portal']) || !empty($context['SPortal']['blocks'][2]) || !empty($modSettings['articleactive'])) echo ' '; foreach ($context['SPortal']['blocks'][3] as $block) template_block($block); } echo ' | ';
if (!empty($modSettings['showright']) && !empty($context['SPortal']['blocks'][4]))
{
$currentURI = "$_SERVER[REQUEST_URI]";
$customAction = !empty($_REQUEST['action']) ? $smcFunc['strtolower']($_REQUEST['action']) : '';
$customAction = (!empty($currentURI)) && substr($currentURI, -16) === '/forum/index.php' ? 'forum' : $customAction;
$customAction = !empty($_SESSION['smf_no_action']) ? 'forum' : $customAction;
$customAction = !empty($_REQUEST['sa']) && $smcFunc['strtolower']($_REQUEST['sa']) === 'send' && $customAction === 'pm' ? 'pm;sa=send;' : $customAction;
switch ($customAction)
{
case 'forum':
$customStyle = 'style="padding-top:17px;"';
break;
case 'search':
$customStyle = 'style="padding-top:21px;"';
break;
case 'download':
$customStyle = 'style="padding-top:17px;"';
break;
case 'contact':
$customStyle = 'style="padding-top:17px;"';
break;
case 'pm':
$customStyle = 'style="padding-top:16px;"';
break;
case 'pm;sa=send;':
$customStyle = 'style="padding-top:15px;"';
break;
default:
$customStyle = '';
}
echo '
';
}
echo '