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-modal-editor-previews.php
141 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Components\Admin; |
| 4 | |
| 5 | defined('ABSPATH') || exit(); |
| 6 | |
| 7 | class EditorPreviewsModal |
| 8 | { |
| 9 | public function __construct() |
| 10 | { |
| 11 | $this->Render(); |
| 12 | } |
| 13 | |
| 14 | private function Render() |
| 15 | { |
| 16 | ?> |
| 17 | <div id="superbaddons-dashboard-editor-previews-modal" class="superbaddons-admindashboard-modal-wrapper" style="display:none;"> |
| 18 | <div class="superbaddons-admindashboard-modal-overlay"></div> |
| 19 | <div class="superbaddons-admindashboard-modal"> |
| 20 | <div class="superbaddons-admindashboard-modal-header"> |
| 21 | <span class="superbaddons-admindashboard-modal-title superbaddons-element-text-md superbaddons-element-text-800 superbaddons-element-flex-center superbaddons-element-flexwrap"><img class="superbaddons-element-mr1" src="<?= SUPERBADDONS_ASSETS_PATH . "/img/icon-superb.svg"; ?>" /><?= esc_html__("Blocks & WordPress Editor Enhancements", "superb-blocks"); ?></span> |
| 22 | <div class="superbaddons-admindashboard-modal-close-button" class="superb-addons-template-library-button superb-addons-template-library-button-secondary"><img src="<?= SUPERBADDONS_ASSETS_PATH . "/img/x.svg"; ?>" alt="<?= esc_attr__("Close", "superb-blocks"); ?>" /></div> |
| 23 | </div> |
| 24 | <div class="superbaddons-admindashboard-modal-content superbaddons-element-text-xs"> |
| 25 | <!-- Editor Highlights --> |
| 26 | <?php new ContentBoxLarge( |
| 27 | array( |
| 28 | "title" => __("Editor Highlights", "superb-blocks"), |
| 29 | "description" => __("Unlock the enhanced editor experience with grid systems, improved block control, and much more.", "superb-blocks"), |
| 30 | "image" => "editor-highlight.jpg", |
| 31 | "icon" => "purple-selection-plus.svg", |
| 32 | "class" => 'superbaddons-admindashboard-gutenberg-editor-highlights' |
| 33 | ) |
| 34 | ); |
| 35 | ?> |
| 36 | <!-- Block controls --> |
| 37 | <?php new ContentBoxLarge( |
| 38 | array( |
| 39 | "title" => __("Responsive Block Control", "superb-blocks"), |
| 40 | "description" => __("Our premium block control feature allows you to easily hide or show any blocks on desktop, tablet or mobile.", "superb-blocks"), |
| 41 | "image" => "block-control.jpg", |
| 42 | "icon" => "devices-duotone.svg", |
| 43 | "class" => 'superbaddons-admindashboard-gutenberg-block-control' |
| 44 | ) |
| 45 | ); |
| 46 | ?> |
| 47 | <!-- Rating Block --> |
| 48 | <?php new ContentBoxLarge( |
| 49 | array( |
| 50 | "title" => __("Rating Block", "superb-blocks"), |
| 51 | "description" => __("With this easy-to-use block, you can easily add your own ratings with bars and stars to your posts and pages. Simple to customize and style to match your website's look and feel.", "superb-blocks"), |
| 52 | "image" => "asset-medium-review.jpg", |
| 53 | "icon" => "purple-star.svg", |
| 54 | "class" => 'superbaddons-admindashboard-gutenberg-block-box' |
| 55 | ) |
| 56 | ); |
| 57 | ?> |
| 58 | <!-- About the Author Block --> |
| 59 | <?php new ContentBoxLarge( |
| 60 | array( |
| 61 | "title" => __("About the Author Block", "superb-blocks"), |
| 62 | "description" => __("Whether you're a blogger, journalist, or content creator, the Superb About the Author block is an essential tool for establishing your online presence and building a connection with your audience. Try it out and make your author bio stand out today!", "superb-blocks"), |
| 63 | "image" => "asset-medium-authorbox.jpg", |
| 64 | "icon" => "purple-identification-badge.svg", |
| 65 | "class" => 'superbaddons-admindashboard-gutenberg-block-box' |
| 66 | ) |
| 67 | ); |
| 68 | ?> |
| 69 | <!-- Table of Contents Block --> |
| 70 | <?php new ContentBoxLarge( |
| 71 | array( |
| 72 | "title" => __("Table of Contents Block", "superb-blocks"), |
| 73 | "description" => __("Automatically generates a list of headings and subheadings and makes it easy for your readers to navigate your content. Try it out and make your long-form content more accessible!", "superb-blocks"), |
| 74 | "image" => "asset-medium-tableofcontent.jpg", |
| 75 | "icon" => "purple-list-bullets.svg", |
| 76 | "class" => 'superbaddons-admindashboard-gutenberg-block-box' |
| 77 | ) |
| 78 | ); |
| 79 | ?> |
| 80 | <!-- Recent Posts Block --> |
| 81 | <?php |
| 82 | new ContentBoxLarge( |
| 83 | array( |
| 84 | "title" => __("Recent Posts Block", "superb-blocks"), |
| 85 | "description" => __("Quickly add a customizable list of your latest posts to any page, post or widget space. The Superb Recent Posts block is a great tool for keeping your readers up-to-date with your latest content and driving traffic to your website.", "superb-blocks"), |
| 86 | "image" => "asset-medium-recentposts.jpg", |
| 87 | "icon" => "purple-note.svg", |
| 88 | "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-recent-posts' |
| 89 | ) |
| 90 | ); |
| 91 | ?> |
| 92 | <!-- Google Maps Block --> |
| 93 | <?php new ContentBoxLarge( |
| 94 | array( |
| 95 | "title" => __("Google Maps Block", "superb-blocks"), |
| 96 | "description" => __("Easily integrate interactive Google Maps into any page, post, or widget space. Showcase your business location and beyond with this powerful and user-friendly tool.", "superb-blocks"), |
| 97 | "image" => "asset-large-superbmaps.jpg", |
| 98 | "icon" => "purple-pin.svg", |
| 99 | "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-maps' |
| 100 | ) |
| 101 | ); |
| 102 | ?> |
| 103 | <!-- Animated Heading Block --> |
| 104 | <?php new ContentBoxLarge( |
| 105 | array( |
| 106 | "title" => __("Animated Heading Block", "superb-blocks"), |
| 107 | "description" => __("Whether you're a blogger, business owner, or designer, this block is the perfect tool to enhance the visual appeal of your site. Elevate your content, boost user engagement, and make a lasting impression.", "superb-blocks"), |
| 108 | "image" => "asset-medium-animatedheading.jpg", |
| 109 | "icon" => "purple-heading.svg", |
| 110 | "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-animatedheading' |
| 111 | ) |
| 112 | ); |
| 113 | ?> |
| 114 | <!-- Cover Image Block --> |
| 115 | <?php new ContentBoxLarge( |
| 116 | array( |
| 117 | "title" => __("Cover Image Block", "superb-blocks"), |
| 118 | "description" => __("Create striking headers and hero sections effortlessly with this user-friendly block. Add captivating cover images to your pages and posts, grabbing your audience's attention from the get-go.", "superb-blocks"), |
| 119 | "image" => "asset-large-superbcover.jpg", |
| 120 | "icon" => "purple-image.svg", |
| 121 | "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-cover' |
| 122 | ) |
| 123 | ); |
| 124 | ?> |
| 125 | <!-- Reveal Buttons Block --> |
| 126 | <?php new ContentBoxLarge( |
| 127 | array( |
| 128 | "title" => __("Reveal Buttons Block", "superb-blocks"), |
| 129 | "description" => __("Quickly and effortlessly create reveal buttons, whether you're a seasoned pro or just starting out. Simply enter your button text, reveal text, and link. Users can then click the button to reveal the hidden text.", "superb-blocks"), |
| 130 | "image" => "asset-large-superbrevealbuttons.jpg", |
| 131 | "icon" => "purple-pointing.svg", |
| 132 | "class" => 'superbaddons-admindashboard-gutenberg-block-box superbaddons-admindashboard-gutenberg-block-box-reveal-buttons' |
| 133 | ) |
| 134 | ); |
| 135 | ?> |
| 136 | </div> |
| 137 | </div> |
| 138 | <?php |
| 139 | } |
| 140 | } |
| 141 |