<?php

/**
 * @var string $title
 * @var string $message
 * @var bool   $error
 */

?>
<div class="section">
    <h2><?php echo $title; ?></h2>

    <?php if ($error): ?>
        <div class="box error"><?php echo $message; ?></div>
    <?php else: ?>
        <div class="panel">
            <p><?php echo $message; ?></p>
        </div>
    <?php endif; ?>
</div>
