<?php
/**
 * @version 7.9 [rev.7.9.01]
 */
/** @var \Ppb\Db\Table\Row\BlockedUser $blockedUser */
/** @var bool $canPost */
?>
<h4 class="headline">
    <span><?php echo $this->form->getTitle(); ?></span>
</h4>

<?php if (!$canPost) { ?>
<div class="alert alert-danger">
    <?php echo $this->_('Your account is inactive. The message posting capability is disabled.'); ?>
</div>
    <?php }
    else if ($blockedUser !== null) { ?>
    <div class="alert alert-danger">
        <?php echo $this->blockStatus($blockedUser)->blockMessage(); ?>
    </div>
<?php }
else { ?>
    <?php echo $this->form; ?>
<?php } ?>
