# sendwp/1.1/assets/class.assets.php

SendWP, version 1.1. 24 lines.

- Page: https://pluginprobe.com/plugins/sendwp/1.1/code/assets/class.assets.php
- Raw: https://pluginprobe.com/plugins/sendwp/1.1/raw/assets/class.assets.php
- Modified: 2019-11-22T15:03:32+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/sendwp/1.1/code/assets/class.assets.php#L10-L20`.

```php
<?php

namespace SendWP;

class Assets
{
    public static $base_url;
    public static $base_path;

    public static function set_base_url( $base_url )
    {
        self::$base_url = $base_url;
    }

    public static function set_base_path( $base_path )
    {
        self::$base_path = $base_path;
    }

    public static function image_url($filename)
    {
        return self::$base_url . "img/$filename";
    }
}
```
