<?php
/**
 * BIS Campaign - slim admin sub-navigation.
 */
?>
<link rel="stylesheet" href="<?=$SiteURL?>public/css/master-admin.css">
<span class="breadcrumb_head" style="height:37px;padding:9px 16px">Email Administration</span>
<div class="submenu-panel" style="margin-top:37px">
<ul style="padding-left:0">
<?php
    $email_sms_template = base64_encode('email_sms_template');
    $view_imap_smtp     = base64_encode('view_imap_smtp');
    $view_web_mail_sign = base64_encode('mail_sign');
    $spam_mail          = base64_encode('spam_mail');
    $reply_template     = base64_encode('reply_template');
    $current_page_token = $_GET['token'] ?? '';
?>
    <li><a href="admin_index.php?token=<?php echo $email_sms_template; ?>"
           class="<?php echo ($current_page_token === $email_sms_template) ? 'active-link' : ''; ?>">
        Bulk Email Templates</a></li>
    <li><a href="admin_index.php?token=<?php echo $view_imap_smtp; ?>"
           class="<?php echo ($current_page_token === $view_imap_smtp) ? 'active-link' : ''; ?>">
        IMAP / SMTP Settings</a></li>
    <li><a href="admin_index.php?token=<?php echo $view_web_mail_sign; ?>"
           class="<?php echo ($current_page_token === $view_web_mail_sign) ? 'active-link' : ''; ?>">
        Email Signatures</a></li>
    <li><a href="admin_index.php?token=<?php echo $spam_mail; ?>"
           class="<?php echo ($current_page_token === $spam_mail) ? 'active-link' : ''; ?>">
        Spam Rules</a></li>
    <li><a href="admin_index.php?token=<?php echo $reply_template; ?>"
           class="<?php echo ($current_page_token === $reply_template) ? 'active-link' : ''; ?>">
        Reply Templates</a></li>
</ul>
</div>
