class-content-box-large.php
1 year ago
class-enhancement-settings-component.php
1 year ago
class-input-checkbox.php
1 year ago
class-link-box.php
1 year ago
class-modal-editor-previews.php
1 year ago
class-modal-feedback.php
1 year ago
class-modal.php
1 year ago
class-navigation.php
1 year ago
class-newsletter-form.php
1 year ago
class-outdated-browser-warning.php
1 year ago
class-premium-box-large.php
1 year ago
class-premium-box.php
1 year ago
class-premium-feature-list.php
1 year ago
class-review-box.php
1 year ago
class-support-box.php
1 year ago
class-support-link-boxes.php
1 year ago
class-premium-box-large.php
52 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::HasValidPremiumKey()) { |
| 14 | $this->RenderHasPremium(); |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | $this->Render(); |
| 19 | } |
| 20 | |
| 21 | private function Render() |
| 22 | { |
| 23 | $has_standard_plan = KeyController::HasValidStandardKey(); |
| 24 | ?> |
| 25 | <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'); ?>);"> |
| 26 | <div class="superbaddons-admindashboard-content-box-large-inner"> |
| 27 | <h3 class="superbaddons-element-text-md superbaddons-element-text-800 superbaddons-element-text-dark"><?= esc_html__("Premium Subscription", "superb-blocks"); ?></h3> |
| 28 | <p class="superbaddons-element-text-xs superbaddons-element-text-gray"> |
| 29 | <?= esc_html(sprintf(__('You\'re currently on our %1$s plan. Upgrade to premium and access all of the benefits for building top class websites.', "superb-blocks"), $has_standard_plan ? __("theme license", "superb-blocks") : __("free", "superb-blocks"))); ?> |
| 30 | </p> |
| 31 | <span class="superbaddons-element-text-xs superbaddons-element-text-800 superbaddons-element-text-dark"><?= esc_html__("All this included", "superb-blocks"); ?><img src="<?= esc_url(SUPERBADDONS_ASSETS_PATH . '/img/pointing_arrow.png'); ?>" /></span> |
| 32 | <?php new PremiumFeatureList(); ?> |
| 33 | <a class="superbaddons-element-button-pro" target="_blank" href="https://superbthemes.com/superb-addons/"><?= esc_html__("Upgrade to Premium", "superb-blocks"); ?></a> |
| 34 | </div> |
| 35 | </div> |
| 36 | <?php |
| 37 | } |
| 38 | |
| 39 | private function RenderHasPremium() |
| 40 | { |
| 41 | new ContentBoxLarge( |
| 42 | array( |
| 43 | "title" => __("Superb Addons Premium", "superb-blocks"), |
| 44 | "description" => __("You're currently on our premium plan. Please contact us if you're in need of assistance. Thank you for your support!", "superb-blocks"), |
| 45 | "image" => "asset-medium-pro.jpg", |
| 46 | "connected_bottom" => true, |
| 47 | "class" => 'superbaddons-admindashboard-settings-premium-image-box-large' |
| 48 | ) |
| 49 | ); |
| 50 | } |
| 51 | } |
| 52 |