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 |