class-content-box-large.php
1 year ago
class-enhancement-settings-component.php
1 year ago
class-feature-request-box.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
56 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Components\Admin; |
| 4 | |
| 5 | defined('ABSPATH') || exit(); |
| 6 | |
| 7 | use SuperbAddons\Admin\Utils\AdminLinkUtil; |
| 8 | use SuperbAddons\Data\Controllers\KeyController; |
| 9 | |
| 10 | class PremiumBoxLarge |
| 11 | { |
| 12 | private $source; |
| 13 | |
| 14 | public function __construct($source) |
| 15 | { |
| 16 | $this->source = $source; |
| 17 | if (KeyController::HasValidPremiumKey()) { |
| 18 | $this->RenderHasPremium(); |
| 19 | return; |
| 20 | } |
| 21 | |
| 22 | $this->Render(); |
| 23 | } |
| 24 | |
| 25 | private function Render() |
| 26 | { |
| 27 | $has_standard_plan = KeyController::HasValidStandardKey(); |
| 28 | ?> |
| 29 | <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(<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/asset-medium-pro.jpg'); ?>);"> |
| 30 | <div class="superbaddons-admindashboard-content-box-large-inner"> |
| 31 | <h3 class="superbaddons-element-text-md superbaddons-element-text-800 superbaddons-element-text-dark"><?php echo esc_html__("Premium Subscription", "superb-blocks"); ?></h3> |
| 32 | <p class="superbaddons-element-text-xs superbaddons-element-text-gray"> |
| 33 | <?php echo esc_html(sprintf(/* translators: 1: a name of a plan */__('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"))); ?> |
| 34 | </p> |
| 35 | <span class="superbaddons-element-text-xs superbaddons-element-text-800 superbaddons-element-text-dark"><?php echo esc_html__("All this included", "superb-blocks"); ?><img src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/pointing_arrow.png'); ?>" /></span> |
| 36 | <?php new PremiumFeatureList(); ?> |
| 37 | <a class="superbaddons-element-button-pro" target="_blank" href="<?php echo esc_url(AdminLinkUtil::GetLink($this->source)); ?>"><?php echo esc_html__("Upgrade to Premium", "superb-blocks"); ?></a> |
| 38 | </div> |
| 39 | </div> |
| 40 | <?php |
| 41 | } |
| 42 | |
| 43 | private function RenderHasPremium() |
| 44 | { |
| 45 | new ContentBoxLarge( |
| 46 | array( |
| 47 | "title" => __("Superb Addons Premium", "superb-blocks"), |
| 48 | "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"), |
| 49 | "image" => "asset-medium-pro.jpg", |
| 50 | "connected_bottom" => true, |
| 51 | "class" => 'superbaddons-admindashboard-settings-premium-image-box-large' |
| 52 | ) |
| 53 | ); |
| 54 | } |
| 55 | } |
| 56 |