final protected function getMessages($data_only = false, $container = 'container')
    {
        $messages = $this->page->message->getAll();

        if ($data_only) {
            return $messages;
        }

        ob_start();

        echo '<div id="core-message"', ($container ? ' class="' . $container . '"' : ''), '>';

        /* @var $msg \Core\Message\Message */
        foreach ($messages as $msg) {

            echo PHP_EOL, '
            <div class="alert alert-', $msg->getType(), $msg->getDismissable() ? ' alert-dismissable' : '';

            // Fadeout message?
            #if ($this->config->get('Core', 'js.style.fadeout_time') > 0 && $msg->getFadeout()) {
            #    echo ' fadeout';
            #}

            echo '">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                ', $msg->getMessage(), '
            </div>';
        }

        echo '</div>';

        return ob_get_clean();
    }