public function locatePath($path)
    {
        if (stripos($path, 'http') === 0) {
            return $path;
        }

        $url = $this->getMinkParameter('base_url');

        if (strpos($path, 'wp-admin') !== false || strpos($path, '.php') !== false) {
            $url = $this->getWordpressParameter('site_url');
        }

        return rtrim($url, '/') . '/' . ltrim($path, '/');
    }
public function locatePath($path)
    {
        if (stripos($path, 'http') === 0) {
            return $path;
        }

        $url = $this->getMinkParameter('base_url');

        if (strpos($path, 'wp-admin') !== false || strpos($path, '.php') !== false) {
            $url = $this->getWordpressParameter('site_url');
        }

        return rtrim($url, '/') . '/' . ltrim($path, '/');
    }
public function locatePath ( $ path ) { if ( stripos ( $ path , 'http' ) === 0 ) { return $ path ; } $ url = $ this -> getMinkParameter ( 'base_url' ) ; if ( strpos ( $ path , 'wp-admin' ) !== false || strpos ( $ path , '.php' ) !== false ) { $ url = $ this -> getWordpressParameter ( 'site_url' ) ; } return rtrim ( $ url , '/' ) . '/' . ltrim ( $ path , '/' ) ; }
Build URL, based on provided path.

@param string $path Relative or absolute URL.

@return string
Build URL based on provided path .