| 1 |
<?php |
| 2 |
|
| 3 |
use YayMail\License\License; |
| 4 |
use YayMail\License\LicensingPlugin; |
| 5 |
use YayMail\License\CorePlugin; |
| 6 |
|
| 7 |
defined( 'ABSPATH' ) || exit; |
| 8 |
|
| 9 |
$licensing_plugins = $this->get_licensing_plugins(); |
| 10 |
?> |
| 11 |
<div class="yaycommerce-license-wrap"> |
| 12 |
<div id="yaycommerce-license-root"> |
| 13 |
<div class="yaycommerce-license-layout"> |
| 14 |
<div class="yaycommerce-license-layout-primary"> |
| 15 |
<div class="yaycommerce-license-layout-main"> |
| 16 |
<div class="yaycommerce-license-settings"> |
| 17 |
<?php |
| 18 |
foreach ( $licensing_plugins as $_plugin ) { |
| 19 |
$licensing_plugin = new LicensingPlugin( $_plugin['slug'] ); |
| 20 |
$license = $licensing_plugin->get_license(); |
| 21 |
if ( $license->is_active() ) { |
| 22 |
require CorePlugin::get( 'path' ) . 'views/license/information-card.php'; |
| 23 |
} else { |
| 24 |
require CorePlugin::get( 'path' ) . 'views/license/activate-card.php'; |
| 25 |
} |
| 26 |
} |
| 27 |
do_action( 'yaycommerce_extra_plugins' ); |
| 28 |
?> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
|