PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.5.4
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.5.4
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 / admin / pages / wizard / class-page-wizard-incompatible.php
superb-blocks / src / admin / pages / wizard Last commit date
class-page-wizard-complete.php 1 year ago class-page-wizard-incompatible.php 1 year ago class-page-wizard-intro.php 1 year ago class-page-wizard-main.php 1 year ago class-page-wizard-stages.php 1 year ago
class-page-wizard-incompatible.php
65 lines
1 <?php
2
3 namespace SuperbAddons\Admin\Pages\Wizard;
4
5 use SuperbAddons\Admin\Controllers\Wizard\WizardController;
6 use SuperbAddons\Components\Admin\Modal;
7
8 defined('ABSPATH') || exit();
9
10 class PageWizardIncompatiblePage
11 {
12 private $themes;
13 private $current_theme;
14 private $theme_name;
15
16 public function __construct()
17 {
18 $this->current_theme = wp_get_theme();
19 $this->theme_name = $this->current_theme->get('Name');
20 $this->themes = WizardController::GetRecommendedBlockThemes();
21 $this->Render();
22 }
23
24 private function Render()
25 {
26 ?>
27 <div class="superbaddons-template-stage" data-stageid="theme-stage" data-type="single-selection">
28 <div class="superbaddons-wizard-wrapper-small">
29 <div class="superbaddons-admindashboard-content-box-large">
30 <p class="superbaddons-element-text-sm superbaddons-wizard-tagline"><?php echo esc_html(sprintf(/* translators: %s: a theme name */__("Unfortunately, this feature is currently exclusive to block themes. The theme you're using, \"%s\", is not a block theme or does not support block theme templates.", "superb-blocks"), $this->theme_name)); ?></p>
31 <br>
32 <p class="superbaddons-element-text-sm superbaddons-wizard-tagline"><strong><?php echo esc_html__("Choose a Block theme to use the theme designer:", "superb-blocks"); ?> </strong></p>
33 </div>
34 </div>
35 <div class="superbaddons-theme-template-container superbaddons-element-mt1">
36 <?php foreach ($this->themes->themes as $theme) :
37 if ($theme->slug == $this->current_theme->stylesheet) continue; // skip current theme
38 ?>
39 <div class="superbaddons-theme-page-template superbaddons-element-text-dark" style="height:auto !important;" data-title="<?php echo esc_attr($theme->name); ?>" data-slug="<?php echo esc_attr($theme->slug); ?>" data-package="free">
40 <div class="superbaddons-template-content-wrapper">
41 <img class="superbaddons-preview-image" src="<?php echo esc_url($theme->screenshot_url); ?>" width="100%" height="auto" style="user-select:none;" />
42 </div>
43 <div class="superbaddons-template-information">
44 <div class="superbaddons-template-information-inner superbaddons-element-flex-center">
45 <div class="superbaddons-template-information-title superbaddons-element-text-sm">
46 <?php echo esc_html($theme->name); ?>
47 </div>
48 <div class="superbaddons-template-information-package superbaddons-element-text-xs superbaddons-element-text-gray">
49 <?php echo esc_html__("Free", "superb-blocks"); ?>
50 </div>
51 </div>
52 </div>
53 </div>
54 <?php endforeach; ?>
55 </div>
56 </div>
57 <div class="superbaddons-theme-template-menu superbadd superbaddons-element-flex-center superbaddons-element-flex-gap1" style="display:none;">
58 <p class="superbaddons-element-text-sm superbaddons-element-m0 superbaddons-wizard-tagline"><?php echo esc_html__("Install", "superb-blocks"); ?> <strong id="superbaddons-selected-theme-name"></strong> <?php echo esc_html__("and get started?", "superb-blocks"); ?></p>
59 <button id="superbaddons-theme-install-button" class="superbthemes-module-cta superbthemes-module-cta-green" style="display:block;"><?php echo esc_html__("Install", "superb-blocks"); ?></button>
60 </div>
61 <?php
62 new Modal();
63 }
64 }
65