Library/Documentation.php
public function findThemePathByName($name)
    {
        // check the theme from the config
        $path = null;

        foreach ($this->themesDirectories as $themeDir) {
            $path = rtrim($themeDir, '\\/').\DIRECTORY_SEPARATOR.$name;
            if (0 !== strpos($path, 'phar://')) {
                $path = realpath($path);
            }

            if (is_dir($path)) {
                break;
            }
        }

        return $path;
    }
public function findThemePathByName($name)
    {
        // check the theme from the config
        $path = null;

        foreach ($this->themesDirectories as $themeDir) {
            $path = rtrim($themeDir, '\\/').\DIRECTORY_SEPARATOR.$name;
            if (0 !== strpos($path, 'phar://')) {
                $path = realpath($path);
            }

            if (is_dir($path)) {
                break;
            }
        }

        return $path;
    }
public function findThemePathByName ( $ name ) { // check the theme from the config $ path = null ; foreach ( $ this -> themesDirectories as $ themeDir ) { $ path = rtrim ( $ themeDir , '\\/' ) . \ DIRECTORY_SEPARATOR . $ name ; if ( 0 !== strpos ( $ path , 'phar://' ) ) { $ path = realpath ( $ path ) ; } if ( is_dir ( $ path ) ) { break ; } } return $ path ; }
Search a theme by its name.

Return the path to it if it exists. Otherwise NULL.

@param string $name

@return string|null
Search a theme by its name .