src/Theme.php
public static function find($theme)
    {
        $paths = App::path('Plugin');
        foreach ($paths as $path) {
            $path = FS::clean($path . '/', DS);
            $themeFolder = $path . $theme;

            if (FS::isDir($themeFolder)) {
                return $themeFolder;
            }
        }

        return Configure::read('plugins.' . $theme);
    }
public static function find($theme)
    {
        $paths = App::path('Plugin');
        foreach ($paths as $path) {
            $path = FS::clean($path . '/', DS);
            $themeFolder = $path . $theme;

            if (FS::isDir($themeFolder)) {
                return $themeFolder;
            }
        }

        return Configure::read('plugins.' . $theme);
    }
public static function find ( $ theme ) { $ paths = App :: path ( 'Plugin' ) ; foreach ( $ paths as $ path ) { $ path = FS :: clean ( $ path . '/' , DS ) ; $ themeFolder = $ path . $ theme ; if ( FS :: isDir ( $ themeFolder ) ) { return $ themeFolder ; } } return Configure :: read ( 'plugins.' . $ theme ) ; }
Find theme plugin in path.

@param string $theme
@return null|string
Find theme plugin in path .