src/Theme.php
public static function setup($prefix = null)
    {
        $theme = self::name($prefix);
        $path  = self::find($theme);

        if ($path !== null) {
            $config = self::getData($theme, 'meta');
            if ($config->get('type') == 'theme') {
                return $theme;
            }
        }

        return null;
    }
public static function setup($prefix = null)
    {
        $theme = self::name($prefix);
        $path  = self::find($theme);

        if ($path !== null) {
            $config = self::getData($theme, 'meta');
            if ($config->get('type') == 'theme') {
                return $theme;
            }
        }

        return null;
    }
public static function setup ( $ prefix = null ) { $ theme = self :: name ( $ prefix ) ; $ path = self :: find ( $ theme ) ; if ( $ path !== null ) { $ config = self :: getData ( $ theme , 'meta' ) ; if ( $ config -> get ( 'type' ) == 'theme' ) { return $ theme ; } } return null ; }
Setup current theme.

@param null|string $prefix
@return null|string
Setup current theme .