public function themeDir(string $type, string $append = ''): string
    {
        $stylesheet = $type === 'path'
            ? \get_stylesheet_directory()
            : \get_stylesheet_directory_uri();

        if (0 === strpos($this->{'dir'.\ucfirst($type)}, $stylesheet)) {
            return $stylesheet.$append;
        }

        $template = $type === 'path'
            ? \get_template_directory()
            : \get_template_directory_uri();

        return $template.$append;
    }