app/libraries/Jentil/Utilities/FileSystem.php
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;
    }
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;
    }
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 ; }
Get directory of theme under which Jentil is installed.

@param string $type 'url' or 'path'

@return string Path. Same as $this->dir() if Jentil is theme.
Get directory of theme under which Jentil is installed .