class-css-blocks-base-slot.php
5 months ago
class-css-blocks-export-selected-slot.php
5 months ago
class-css-blocks-export-single-slot.php
5 months ago
class-css-blocks-target-slot.php
5 months ago
class-premium-option-wrapper.php
5 months ago
class-premium-slot.php
5 months ago
class-slot-render-utility.php
5 months 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 |