PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.3.1
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.3.1
4.2.0 4.1.0 4.0.9 4.0.8 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 / slots / class-premium-slot.php
superb-blocks / src / components / slots Last commit date
class-css-blocks-base-slot.php 2 years ago class-css-blocks-export-selected-slot.php 2 years ago class-css-blocks-export-single-slot.php 2 years ago class-css-blocks-target-slot.php 2 years ago class-premium-option-wrapper.php 2 years ago class-premium-slot.php 2 years ago class-slot-render-utility.php 2 years ago
class-premium-slot.php
32 lines
1 <?php
2
3 namespace SuperbAddons\Components\Slots;
4
5 defined('ABSPATH') || exit();
6
7 use SuperbAddons\Data\Controllers\KeyController;
8
9 class PremiumSlot
10 {
11 protected static $RenderFill;
12
13 public function __construct()
14 {
15 if (KeyController::HasValidPremiumKey() && static::$RenderFill) {
16 SlotRenderUtility::Render(static::$RenderFill);
17 return;
18 }
19 $this->RenderSlot();
20 }
21
22 protected function RenderSlot()
23 {
24 echo "<!-- Premium Slot -->";
25 }
26
27 public static function SetRenderFill($renderFill)
28 {
29 static::$RenderFill = $renderFill;
30 }
31 }
32