<?php if ($this->sPortalTerms != '' and $this->sPortalPrivacy != ''): // if we have both available?>
    <p>
        <div style="display:flex; align-items:center">
            <input name="terms" id="terms" type="checkbox" value="1">
            <label style="margin-left: 5px;" for="terms" class="datalabel"><?php echo sprintf(lg_portal_agree_terms_privacy, $this->sPortalTerms, $this->sPortalPrivacy); ?></label><br>
        </div>
        <?php echo $this->helper->showError('terms', '<br />') ?>
    </p>
<?php elseif ($this->sPortalTerms != '' and $this->sPortalPrivacy == ''): // if we only have terms?>
    <p>
        <div style="display:flex; align-items:center">
            <input name="terms" id="terms" type="checkbox" value="1">
            <label style="margin-left: 5px;" for="terms" class="datalabel"><?php echo sprintf(lg_portal_agree_terms, $this->sPortalTerms); ?></label><br>
        </div>
        <?php echo $this->helper->showError('terms', '<br />') ?>
    </p>
<?php elseif ($this->sPortalTerms == '' and $this->sPortalPrivacy != ''): // if we only have privacy?>
    <p>
        <div style="display:flex; align-items:center">
            <input name="terms" id="terms" type="checkbox" value="1">
            <label style="margin-left: 5px;" for="terms" class="datalabel"><?php echo sprintf(lg_portal_agree_privacy, $this->sPortalPrivacy); ?></label><br>
        </div>
        <?php echo $this->helper->showError('terms', '<br />') ?>
    </p>
<?php endif; ?>
