PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.5.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.5.0
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-enhancement-settings-component.php
superb-blocks / src / components / admin Last commit date
class-content-box-large.php 1 year ago class-enhancement-settings-component.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-enhancement-settings-component.php
39 lines
1 <?php
2
3 namespace SuperbAddons\Components\Admin;
4
5 defined('ABSPATH') || exit();
6
7 use SuperbAddons\Gutenberg\Controllers\GutenbergEnhancementsController;
8
9 class EnhancementSettingsComponent
10 {
11 private $Settings;
12
13 public function __construct()
14 {
15 $this->Settings = GutenbergEnhancementsController::GetEnhancementsOptions(get_current_user_id());
16 $this->Render();
17 }
18
19 private function Render()
20 {
21 ?>
22 <h4 class="superbaddons-element-text-sm superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0"><?php echo esc_html__("WordPress Editor Settings", "superb-blocks"); ?></h4>
23 <p class="superbaddons-element-text-xs superbaddons-element-text-gray"><?php echo esc_html__("Manage your Superb Addons settings for the WordPress editor.", "superb-blocks"); ?></p>
24
25 <div class="superbaddons-editor-settings-highlights-wrapper">
26 <h5 class="superbaddons-element-flex-center superbaddons-element-text-xs superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0 superbaddons-element-mb1"><img class="superbaddons-admindashboard-content-icon superbaddons-element-mr1" src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/purple-selection-plus.svg'); ?>" /><?php echo esc_html__("Editor Highlights", "superb-blocks"); ?></h5>
27 <?php new InputCheckbox('superbaddons-enhancement-highlights-input', GutenbergEnhancementsController::HIGHLIGHTS_KEY, __("Enable Highlights", "superb-blocks"), __("When this setting is enabled, related block and editable text will be highlighted with an outline whenever you hover over a block with your mouse.", "superb-blocks"), $this->Settings[GutenbergEnhancementsController::HIGHLIGHTS_KEY], '/img/selection-plus.svg'); ?>
28 <?php new InputCheckbox('superbaddons-enhancement-highlights-quickoptions-input', GutenbergEnhancementsController::HIGHLIGHTS_QUICKOPTIONS_KEY, __("Quick Options", "superb-blocks"), __("Enables a quick options panel at the top of the highlighted or selected block.", "superb-blocks"), $this->Settings[GutenbergEnhancementsController::HIGHLIGHTS_QUICKOPTIONS_KEY]); ?>
29 <?php new InputCheckbox('superbaddons-enhancement-highlights-quickoptions-bottom-input', GutenbergEnhancementsController::HIGHLIGHTS_QUICKOPTIONS_BOTTOM_KEY, __("Position Quick Options at Bottom", "superb-blocks"), __("Moves the quick options panel to the bottom of the highlighted or selected block instead of the top.", "superb-blocks"), $this->Settings[GutenbergEnhancementsController::HIGHLIGHTS_QUICKOPTIONS_BOTTOM_KEY]); ?>
30 </div>
31 <div class="superbaddons-editor-settings-enhancements-wrapper">
32 <h5 class="superbaddons-element-flex-center superbaddons-element-text-xs superbaddons-element-text-dark superbaddons-element-text-800 superbaddons-element-m0 superbaddons-element-mb1"><img class="superbaddons-admindashboard-content-icon superbaddons-element-mr1" src="<?php echo esc_url(SUPERBADDONS_ASSETS_PATH . '/img/purple-gauge.svg'); ?>" /><?php echo esc_html__("Enhancements", "superb-blocks"); ?></h5>
33 <?php new InputCheckbox('superbaddons-enhancement-hiders-input', GutenbergEnhancementsController::HIDERS_KEY, __("\"Hide Block on Device\" Settings", "superb-blocks"), __("When this setting is enabled, all blocks will receive a \"hide block on device\" settings panel where you can decide whether or not certain blocks should be hidden on specific screens and devices.", "superb-blocks"), $this->Settings[GutenbergEnhancementsController::HIDERS_KEY]); ?>
34 <?php new InputCheckbox('superbaddons-enhancement-animations-input', GutenbergEnhancementsController::ANIMATIONS_KEY, __("\"Animations\" Settings", "superb-blocks"), __("When this setting is enabled, all blocks will receive a \"animations\" settings panel where you can decide whether or not certain blocks should be animated.", "superb-blocks"), $this->Settings[GutenbergEnhancementsController::ANIMATIONS_KEY]); ?>
35 </div>
36 <?php
37 }
38 }
39