ListTable
2 days ago
AdminUrl.php
2 days ago
CouponCode.php
2 days ago
Documentation.php
2 days ago
Editor.php
2 days ago
EditorColumns.php
2 days ago
EditorNetwork.php
2 days ago
EditorNetworkColumns.php
2 days ago
External.php
2 days ago
ListTableNetwork.php
2 days ago
PluginSearch.php
2 days ago
Preview.php
2 days ago
Site.php
2 days ago
UtmTags.php
2 days ago
Site.php
65 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Type\Url; |
| 6 | |
| 7 | use AC\Type; |
| 8 | |
| 9 | class Site extends Type\Uri |
| 10 | { |
| 11 | public const PAGE_CHANGELOG = '/changelog'; |
| 12 | public const PAGE_PRICING = '/pricing-purchase'; |
| 13 | public const PAGE_ABOUT_PRO = '/admin-columns-pro'; |
| 14 | public const PAGE_ACCOUNT_SUBSCRIPTIONS = '/my-account/subscriptions'; |
| 15 | public const PAGE_ADDONS = '/add-ons'; |
| 16 | public const PAGE_ADDON_ACF = '/advanced-custom-fields'; |
| 17 | public const PAGE_ADDON_BUDDYPRESS = '/buddypress'; |
| 18 | public const PAGE_ADDON_GRAVITYFORMS = '/gravity-forms'; |
| 19 | public const PAGE_ADDON_EVENTS_CALENDAR = '/events-calendar'; |
| 20 | public const PAGE_ADDON_METABOX = '/meta-box-integration'; |
| 21 | public const PAGE_ADDON_JETENGINE = '/jetengine'; |
| 22 | public const PAGE_ADDON_PODS = '/pods'; |
| 23 | public const PAGE_ADDON_TOOLSET_TYPES = '/toolset-types'; |
| 24 | public const PAGE_ADDON_WOOCOMMERCE = '/woocommerce-columns'; |
| 25 | public const PAGE_ADDON_YOAST_SEO = '/yoast-seo'; |
| 26 | public const PAGE_ADDON_RANK_MATH = '/rank-math'; |
| 27 | public const PAGE_ADDON_SEOPRESS = '/seo-press'; |
| 28 | public const PAGE_SUPPORT = '/documentation'; |
| 29 | |
| 30 | public function __construct(?string $path = null) |
| 31 | { |
| 32 | parent::__construct('https://www.admincolumns.com'); |
| 33 | |
| 34 | if ($path) { |
| 35 | $this->add_path($path); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | public static function create_pricing(): self |
| 40 | { |
| 41 | return new self(self::PAGE_PRICING); |
| 42 | } |
| 43 | |
| 44 | public static function create_admin_columns_pro(): self |
| 45 | { |
| 46 | return new self(self::PAGE_ABOUT_PRO); |
| 47 | } |
| 48 | |
| 49 | public static function create_support(): self |
| 50 | { |
| 51 | return new self(self::PAGE_SUPPORT); |
| 52 | } |
| 53 | |
| 54 | public static function create_changelog(): self |
| 55 | { |
| 56 | return new self(self::PAGE_CHANGELOG); |
| 57 | } |
| 58 | |
| 59 | public static function create_account(): self |
| 60 | { |
| 61 | return new self(self::PAGE_ACCOUNT_SUBSCRIPTIONS); |
| 62 | } |
| 63 | |
| 64 | } |
| 65 |