ConnectionIcon.php
4 weeks ago
ManualScheduling.php
4 weeks ago
SaveSchedulingButton.php
4 weeks ago
SchedulingActiveSitesLimitUI.php
4 weeks ago
SchedulingSubscribeUI.php
4 weeks ago
SchedulingUI.php
4 weeks ago
ConnectionIcon.php
37 lines
| 1 | <?php |
| 2 | if(!defined('ABSPATH')) { |
| 3 | die(); |
| 4 | } |
| 5 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope |
| 6 | $scheduling = \Wpae\Scheduling\Scheduling::create(); |
| 7 | $licenseCheckResult = $scheduling->checkLicense()['success'] ?? false; |
| 8 | ?> |
| 9 | <span class="wpai-no-license" <?php if ($licenseCheckResult) { ?> style="display: none;" <?php } ?> > |
| 10 | |
| 11 | <a href="javascript:void(0)" style="z-index: 1000;" class="wpallexport-help help_scheduling" |
| 12 | title="Automatic Scheduling is a paid service from Soflyy. Click for more info." |
| 13 | onclick="handleHelpSchedulingClick();"> |
| 14 | |
| 15 | </a> |
| 16 | </span> |
| 17 | |
| 18 | <?php if ($licenseCheckResult) { ?> |
| 19 | <span class="wpai-license"> |
| 20 | <?php if ( $scheduling->checkConnection() ) { |
| 21 | ?> |
| 22 | <span class="wpallexport-help" title="Connection to WP All Export servers is stable and confirmed" |
| 23 | style="background-image: none; width: 20px; height: 20px;"> |
| 24 | <img src="<?php echo esc_url(PMXE_ROOT_URL); ?>/static/img/s-check.png" style="width: 16px; height:16px;"/> |
| 25 | </span> |
| 26 | <?php |
| 27 | } else { ?> |
| 28 | <img src="<?php echo esc_url(PMXE_ROOT_URL); ?>/static/img/s-exclamation.png" style="width: 16px; height:16px;"/> |
| 29 | <span class="wpai-license" style="margin-left: 8px; font-weight: normal;"><span class="unable-to-connect">Unable to connect, please contact support.</span></span> |
| 30 | <?php |
| 31 | } |
| 32 | ?> |
| 33 | </span> |
| 34 | <?php |
| 35 | } |
| 36 | |
| 37 | ?> |