PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.83
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.83
51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 51.1.46 All 39 releases
← All changes | includes/widgets/Dynamic_Posts_Grid/Dynamic_Posts_Grid.php +9 -14 51.1.4451.1.83 View file →
@@ -83,9 +83,12 @@
83 83 * @return array Script dependencies.
84 84 */
85 85 public function get_script_depends(): array
86 86 {
87 - return [KING_ADDONS_ASSETS_UNIQUE_KEY . '-dynamic-posts-grid-script'];
87 + return [
88 + KING_ADDONS_ASSETS_UNIQUE_KEY . '-dompurify-purify.min',
89 + KING_ADDONS_ASSETS_UNIQUE_KEY . '-dynamic-posts-grid-script'
90 + ];
88 91 }
89 92
90 93 /**
91 94 * Get widget categories.
@@ -508,8 +511,12 @@
508 511
509 512 // PRO: Meta Fields Control
510 513 $this->add_control_meta_fields();
511 514
515 + // Both controls above are Pro-only, so without this the free build shows
516 + // a section header that expands onto an empty panel.
517 + Core::renderUpgradeProSection($this, Controls_Manager::RAW_HTML, 'dynamic-posts-grid', 'kng_dynamic_posts_meta_fields_pro_notice_');
518 +
512 519 $this->end_controls_section();
513 520
514 521 // Category Colors Section
515 522 $this->start_controls_section(
@@ -3877,20 +3884,8 @@
3877 3884 ],
3878 3885 ]
3879 3886 );
3880 3887
3881 - $this->add_control(
3882 - 'kng_dynamic_posts_default_button_border_color',
3883 - [
3884 - 'label' => esc_html__('Default Button Border Color', 'king-addons'),
3885 - 'type' => Controls_Manager::COLOR,
3886 - 'default' => 'rgba(0, 0, 0, 0.1)',
3887 - 'selectors' => [
3888 - '{{WRAPPER}} .king-addons-dpg-button' => 'border-color: {{VALUE}};',
3889 - ],
3890 - ]
3891 - );
3892 -
3893 3888 // Category-specific colors
3894 3889 $default_colors = [
3895 3890 ['color' => '#FFFFFF', 'bg' => '#EF4444', 'hover_color' => '#FFFFFF', 'hover_bg' => '#DC2626', 'border' => '#EF4444'], // Red
3896 3891 ['color' => '#FFFFFF', 'bg' => '#3B82F6', 'hover_color' => '#FFFFFF', 'hover_bg' => '#2563EB', 'border' => '#3B82F6'], // Blue
@@ -4273,9 +4268,9 @@
4273 4268 </div>
4274 4269 <?php endif; ?>
4275 4270
4276 4271 <!-- Grid Container -->
4277 - <div class="king-addons-dpg-grid" data-columns="<?php echo esc_attr($settings['kng_dynamic_posts_columns']); ?>">
4272 + <div class="king-addons-dpg-grid" data-columns="<?php echo esc_attr($settings['kng_dynamic_posts_columns'] ?? '3'); ?>">
4278 4273 <?php $this->render_posts($posts_query, $settings); ?>
4279 4274 </div>
4280 4275
4281 4276 <?php if ($settings['kng_dynamic_posts_enable_load_more'] === 'yes'): ?>