public static function notice($slug, $type = null)
    {
        ob_start();
        self::template($slug, 'notice');

        $result = null;
        if ($type == null) {
            $result = ob_get_flush();
        } else {
            $result = array(
                'message' => ob_get_flush(),
                'type'    => $type,
            );
        }

        return $result;
    }