public function getAttributes(string $sectionId, bool $inside = false): Attributes
    {
        $attributes = new Attributes();

        if ($inside) {
            $attributes->addClass('inside');
        } else {
            $attributes->setId($sectionId);
        }

        if (in_array($sectionId, array(static::FOOTER, static::HEADER))) {
            $key = sprintf('bs_%sClass', $sectionId);

            if ($this->layout->$key) {
                $attributes->addClass($this->layout->$key);
            }
        } elseif (in_array($sectionId, array(static::CONTAINER, static::WRAPPER))) {
            $class = $this->layout->bs_containerClass;

            if ($class && $this->layout->bs_containerElement === $sectionId) {
                $attributes->addClass($class);
            }
        } elseif (static::isGridActive()) {
            $key = sprintf('%sClass', $sectionId);

            if ($this->$key) {
                $attributes->addClass($this->$key);
            }
        }

        $this->addSchemaAttributes($sectionId, $inside, $attributes);

        return $attributes;
    }