src/AssetContainer.php
protected function evaluatePath($source)
    {
        static $theme;

        // Make theme to use few features.
        if ( ! $theme)
        {
            $theme = \App::make('theme');
        }

        // Switch path to another theme.
        if ( ! is_bool($this->usePath) and $theme->exists($this->usePath))
        {
            $currentTheme = $theme->getThemeName();

            $source = str_replace($currentTheme, $this->usePath, $source);
        }

        return $source;
    }
protected function evaluatePath($source)
    {
        static $theme;

        // Make theme to use few features.
        if ( ! $theme)
        {
            $theme = \App::make('theme');
        }

        // Switch path to another theme.
        if ( ! is_bool($this->usePath) and $theme->exists($this->usePath))
        {
            $currentTheme = $theme->getThemeName();

            $source = str_replace($currentTheme, $this->usePath, $source);
        }

        return $source;
    }
protected function evaluatePath ( $ source ) { static $ theme ; // Make theme to use few features. if ( ! $ theme ) { $ theme = \ App :: make ( 'theme' ) ; } // Switch path to another theme. if ( ! is_bool ( $ this -> usePath ) and $ theme -> exists ( $ this -> usePath ) ) { $ currentTheme = $ theme -> getThemeName ( ) ; $ source = str_replace ( $ currentTheme , $ this -> usePath , $ source ) ; } return $ source ; }
Evaluate path to current theme or force use theme.

@param  string $source
@return string
Evaluate path to current theme or force use theme .