# depicter/1.3.2/app/src/Media/Uri.php

Depicter — Popup &amp; Slider Builder, version 1.3.2. 20 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.2/code/app/src/Media/Uri.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.2/raw/app/src/Media/Uri.php
- Modified: 2022-06-01T06:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.3.2/code/app/src/Media/Uri.php#L10-L20`.

```php
<?php

namespace Depicter\Media;


class Uri
{
	/**
	 * Convert path to url
	 *
	 * @param string $file  File path
	 *
	 * @return string
	 */
	public static function toUrl( $file ) {
		$siteUrl = trailingslashit( get_site_url() );
		return str_replace(ABSPATH, $siteUrl, $file );
	}
}

```
