| 1 |
<?php |
| 2 |
namespace Kibo\PhastPlugins\PhastPress; |
| 3 |
|
| 4 |
use Kibo\Phast\ValueObjects\URL; |
| 5 |
use Kibo\PhastPlugins\SDK\HostURLs; |
| 6 |
|
| 7 |
class HostURLsImplementation implements HostURLs { |
| 8 |
public function getServicesURL() { |
| 9 |
return URL::fromString(plugins_url('phast.php', PHASTPRESS_PLUGIN_FILE)); |
| 10 |
} |
| 11 |
|
| 12 |
public function getSiteURL() { |
| 13 |
return URL::fromString(site_url()); |
| 14 |
} |
| 15 |
|
| 16 |
public function getCDNURL(URL $url) { |
| 17 |
return URL::fromString(apply_filters('phastpress_cdn_url', $url->toString())); |
| 18 |
} |
| 19 |
|
| 20 |
public function getSettingsURL() { |
| 21 |
return URL::fromString(admin_url('options-general.php?page=phast-press')); |
| 22 |
} |
| 23 |
|
| 24 |
public function getAJAXEndPoint() { |
| 25 |
return URL::fromString('admin-ajax.php?action=phastpress_ajax_dispatch'); |
| 26 |
} |
| 27 |
|
| 28 |
public function getTestImageURL() { |
| 29 |
return URL::fromString(plugins_url('logo.png', PHASTPRESS_PLUGIN_FILE)); |
| 30 |
} |
| 31 |
} |
| 32 |
|