AdminPageFramework_WPUtility_URL::getSRCFromPath PHP Method

getSRCFromPath() public static method

public static getSRCFromPath ( $sFilePath )
    public static function getSRCFromPath($sFilePath)
    {
        $_oWPStyles = new WP_Styles();
        $_sRelativePath = AdminPageFramework_Utility::getRelativePath(ABSPATH, $sFilePath);
        $_sRelativePath = preg_replace("/^\\.[\\/\\\\]/", '', $_sRelativePath, 1);
        $_sHref = trailingslashit($_oWPStyles->base_url) . $_sRelativePath;
        unset($_oWPStyles);
        return $_sHref;
    }