class-content-box-large.php
2 years ago
class-input-checkbox.php
2 years ago
class-link-box.php
2 years ago
class-modal-feedback.php
2 years ago
class-modal.php
2 years ago
class-navigation.php
2 years ago
class-premium-box-large.php
2 years ago
class-premium-box.php
2 years ago
class-premium-feature-list.php
2 years ago
class-review-box.php
2 years ago
class-support-box.php
2 years ago
class-support-link-boxes.php
2 years ago
class-premium-box-large.php
51 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Components\Admin; |
| 4 | |
| 5 | defined('ABSPATH') || exit(); |
| 6 | |
| 7 | use SuperbAddons\Data\Controllers\KeyController; |
| 8 | |
| 9 | class PremiumBoxLarge |
| 10 | { |
| 11 | public function __construct() |
| 12 | { |
| 13 | if (KeyController::HasPremiumKey()) { |
| 14 | $this->RenderHasPremium(); |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | $this->Render(); |
| 19 | } |
| 20 | |
| 21 | private function Render() |
| 22 | { |
| 23 | ?> |
| 24 | <div class="superbaddons-admindashboard-content-box-large superbaddons-admindashboard-settings-premium-image-box-large superbaddons-admindashboard-content-box-large-connected-bottom" style="background-image:url(<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/asset-medium-pro.jpg'); ?>);"> |
| 25 | <div class="superbaddons-admindashboard-content-box-large-inner"> |
| 26 | <h3 class="superbaddons-element-text-md superbaddons-element-text-800 superbaddons-element-text-dark"><?= esc_html__("Premium Subscription", "superbaddons"); ?></h3> |
| 27 | <p class="superbaddons-element-text-xs superbaddons-element-text-gray"> |
| 28 | <?= esc_html__("You're currently on our free plan. Upgrade to premium and access all of the benefits for building top class websites.", "superbaddons"); ?> |
| 29 | </p> |
| 30 | <span class="superbaddons-element-text-xs superbaddons-element-text-800 superbaddons-element-text-dark"><?= esc_html__("All this included", "superbaddons"); ?><img src="<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/pointing_arrow.png'); ?>" /></span> |
| 31 | <?php new PremiumFeatureList(); ?> |
| 32 | <a class="superbaddons-element-button-pro" target="_blank" href="https://superbthemes.com/superb-addons/"><?= esc_html__("Upgrade to Premium", "superbaddons"); ?></a> |
| 33 | </div> |
| 34 | </div> |
| 35 | <?php |
| 36 | } |
| 37 | |
| 38 | private function RenderHasPremium() |
| 39 | { |
| 40 | new ContentBoxLarge( |
| 41 | array( |
| 42 | "title" => __("Superb Addons Premium", "superbaddons"), |
| 43 | "description" => __("You're currently on our premium plan. Please contact us if you're in need of assistance. Thank you for your support!", "superbaddons"), |
| 44 | "image" => "asset-medium-pro.jpg", |
| 45 | "connected_bottom" => true, |
| 46 | "class" => 'superbaddons-admindashboard-settings-premium-image-box-large' |
| 47 | ) |
| 48 | ); |
| 49 | } |
| 50 | } |
| 51 |