PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / trunk
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets vtrunk
4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 All 146 releases
ultimate-post-kit / includes / setup-wizard / views / features.php

features.php in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets trunk, at includes/setup-wizard/views/features.php

101 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Integration Step
4 */
5
6 namespace UltimatePostKit\SetupWizard;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template partial included within a method; variables are method-scoped, not global.
13
14
15 $widget_map = \UltimatePostKit\Includes\Setup_Wizard::get_widget_map();
16 $active_modules = get_option( 'ultimate_post_kit_active_modules', array() );
17
18
19 ?>
20
21 <div class="bdt-wizard-step bdt-setup-wizard-features" data-step="features">
22 <!-- <h2>Choose your features</h2>
23 <p>You may enable the widgets and extensions you need for your current project while keeping others turned off.</p> -->
24 <form method="post" action="admin-ajax.php?action=ultimate_post_kit_settings_save" id="upk_setup_wizard_modules">
25 <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=ultimate_post_kit_options">
26 <input type="hidden" name="id" value="ultimate_post_kit_active_modules">
27 <input type="hidden" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( 'ultimate-post-kit-settings-save-nonce' ) ); ?>">
28 <input type="hidden" name="action" value="ultimate_post_kit_settings_save">
29
30 <div class="bdt-features-list">
31 <div class="widget-filter bdt-flex bdt-flex-wrap bdt-flex-between bdt-flex-middle">
32 <div class="category-dropdown">
33 <label for="category-select"><?php esc_html_e('Filter by:', 'ultimate-post-kit'); ?></label>
34 <select id="category-select">
35 <option value="all"><?php esc_html_e('All', 'ultimate-post-kit'); ?></option>
36 <option value="new"><?php esc_html_e('New', 'ultimate-post-kit'); ?></option>
37 <option value="grid"><?php esc_html_e('Grid', 'ultimate-post-kit'); ?></option>
38 <option value="list"><?php esc_html_e('List', 'ultimate-post-kit'); ?></option>
39 <option value="carousel"><?php esc_html_e('Carousel', 'ultimate-post-kit'); ?></option>
40 <option value="slider"><?php esc_html_e('Slider', 'ultimate-post-kit'); ?></option>
41 <option value="tabs"><?php esc_html_e('Tabs', 'ultimate-post-kit'); ?></option>
42 <option value="timeline"><?php esc_html_e('Timeline', 'ultimate-post-kit'); ?></option>
43 <option value="template-builder"><?php esc_html_e('Template Builder', 'ultimate-post-kit'); ?></option>
44 <option value="loop"><?php esc_html_e('Loop Builder', 'ultimate-post-kit'); ?></option>
45 <option value="others"><?php esc_html_e('Others', 'ultimate-post-kit'); ?></option>
46 </select>
47 </div>
48 <div class="input-btn-wrap bdt-flex bdt-flex-wrap bdt-flex-between">
49 <input type="text" placeholder="<?php esc_attr_e('Search widgets...', 'ultimate-post-kit'); ?>" class="widget-search" value="">
50 <div class="bulk-action-buttons bdt-flex">
51 <button class="bulk-action activate"><?php esc_html_e('Activate All', 'ultimate-post-kit'); ?></button>
52 <button class="bulk-action deactivate"><?php esc_html_e('Deactivate All', 'ultimate-post-kit'); ?></button>
53 </div>
54 </div>
55 </div>
56
57 <div class="widget-list-container">
58 <ul class="widget-list">
59 <?php foreach ( $widget_map as $widget ) : ?>
60 <?php
61 $is_checked = isset( $active_modules[ $widget['name'] ] ) && 'on' === $active_modules[ $widget['name'] ] ? 'checked' : '';
62
63 $pro_class = '';
64 if (!empty($widget['widget_type']) && 'pro' == $widget['widget_type'] && true !== _is_upk_pro_activated()) {
65 $pro_class = ' upk-setup-wizard-pro-widget';
66 }
67 ?>
68 <li class="<?php echo esc_attr( $widget['widget_type'] . $pro_class ); ?>"
69 data-type="<?php echo isset( $widget['content_type'] ) ? esc_attr( $widget['content_type'] ) : ''; ?>"
70 data-label="<?php echo esc_attr( strtolower( $widget['label'] ) ); ?>">
71 <div class="widget-item-clickable bdt-flex bdt-flex-middle bdt-flex-between">
72 <span class="bdt-flex bdt-text-left"><?php echo esc_html( $widget['label'] ); ?></span>
73 <label class="switch">
74 <input type="hidden" name="ultimate_post_kit_active_modules[<?php echo esc_attr( $widget['name'] ); ?>]" value="off">
75 <input type="checkbox" name="ultimate_post_kit_active_modules[<?php echo esc_attr( $widget['name'] ); ?>]" <?php echo esc_html( $is_checked ); ?> value="on" class="checkbox" id="bdt_upk_ultimate_post_kit_active_modules[<?php echo esc_attr( $widget['name'] ); ?>]">
76 <span class="slider"></span>
77 </label>
78 </div>
79 </li>
80 <?php endforeach; ?>
81 </ul>
82 </div>
83 </div>
84
85 <div class="wizard-navigation bdt-margin-top">
86 <button class="bdt-button bdt-button-primary" type="submit" id="save-and-continue">
87 <?php esc_html_e('Save and Continue', 'ultimate-post-kit'); ?>
88 </button>
89 <div class="bdt-close-button bdt-margin-left bdt-wizard-next" data-step="integration"><?php esc_html_e('Skip', 'ultimate-post-kit'); ?></div>
90 </div>
91 </form>
92
93 <div class="bdt-wizard-navigation">
94 <button class="bdt-button bdt-button-secondary bdt-wizard-prev" data-step="welcome">
95 <span><i class="dashicons dashicons-arrow-left-alt"></i></span>
96 <?php esc_html_e( 'Previous Step', 'ultimate-post-kit' ); ?>
97 </button>
98 </div>
99 </div>
100
101