PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.2.9
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.2.9
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 trunk 1.0.0 2.0.0 2.0.1 2.0.2 2.0.3 3.0 3.0.1 3.0.2 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1
superb-blocks / src / components / admin / class-premium-box-large.php
superb-blocks / src / components / admin Last commit date
class-content-box-large.php 2 years ago class-enhancement-settings-component.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
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