PluginProbe
PhastPress / 1.89
PhastPress v1.89
3.12 3.11 1.75 1.76 1.77 1.78 1.79 1.80 1.81 1.82 1.83 1.84 1.85 1.86 1.87 1.88 1.89 1.90 1.91 1.92 1.93 1.94 1.95 1.96 1.97 All 119 releases
phastpress / classes / HostURLsImplementation.php

HostURLsImplementation.php in PhastPress 1.89, at classes/HostURLsImplementation.php

32 lines 905 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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