ACF.php
1 year ago
AdvancedMathCaptcha.php
1 year ago
AeliaCurrencySwitcher.php
11 months ago
BeaverBuilder.php
1 year ago
CF_Helper.php
5 months ago
CURCY_MultiCurrency.php
1 year ago
Cloudflare.php
5 months ago
CommonHelpers.php
1 year ago
CookieNotice.php
1 year ago
DownloadManager.php
1 year ago
Elementor.php
5 months ago
Ezoic.php
1 year ago
FusionBuilder.php
1 year ago
GeoTargetingWP.php
1 year ago
GravityForms.php
1 year ago
JetPackNP.php
1 year ago
MPG.php
11 months ago
NginxHelper.php
1 year ago
RC.php
11 months ago
RankMathNP.php
1 year ago
ShortPixel.php
1 year ago
SquirrlySEO.php
1 year ago
TheEventsCalendar.php
1 year ago
ThriveTheme.php
1 year ago
WCML.php
1 year ago
WPBakeryNP.php
1 year ago
WPCacheHelper.php
1 year ago
WPForms.php
1 year ago
WPML.php
1 year ago
WPRocket.php
1 year ago
WooCommerce.php
11 months ago
WoocommerceCacheHandler.php
1 year ago
YoastSEO.php
1 year ago
DownloadManager.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | namespace NitroPack\Integration\Plugin; |
| 4 | |
| 5 | class DownloadManager { |
| 6 | const STAGE = NULL; // Don't run init |
| 7 | |
| 8 | public static function isActive() { |
| 9 | return defined('DLM_VERSION'); |
| 10 | } |
| 11 | |
| 12 | public static function downloadingUrl() { |
| 13 | $downloadingPage = get_option("dlm_dp_downloading_page"); |
| 14 | return $downloadingPage ? strtolower(get_permalink($downloadingPage)) : NULL; |
| 15 | } |
| 16 | |
| 17 | public static function downloadEndpoint() { |
| 18 | $downloadEndpoint = get_option("dlm_download_endpoint"); |
| 19 | return $downloadEndpoint ? strtolower(nitropack_trailingslashit(get_home_url()) . $downloadEndpoint) : NULL; |
| 20 | } |
| 21 | } |
| 22 |