get_list(); $widgets_active = \ElementsKit_Lite\Config\Widget_List::instance()->get_list( 'active' ); $widgets_categorized = array(); foreach ( $widgets_all as $key => $row ) { $widgets_categorized[ ( $row['widget-category'] ?? 'general' ) ][ $key ] = $row; } // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Checking current page type. The page only can access admin. So nonce verification is not required. $widget_css_class = isset( $_GET['ekit-onboard-steps'] ) && $_GET['ekit-onboard-steps'] == 'loaded' ? 'ekit-admin-widgets-container' : 'ekit-admin-widget-list'; ?>
$widgets ) : ?>

$widget_config ) : ?>
> utils->input( array( 'type' => 'switch', 'name' => 'widget_list[]', 'label' => esc_html( $widget_config['title'] ), 'value' => $widget, 'attr' => ( $widget_config['package'] != 'pro-disabled' ? array() : array( 'disabled' => 'disabled' ) ), 'class' => 'ekit-content-type-' . esc_attr( $widget_config['package'] ), 'options' => array( 'checked' => ( isset( $widgets_active[ $widget ] ) ? true : false ), ), ) ); ?>