← All changes
|
includes/widgets/Dynamic_Posts_Grid/Dynamic_Posts_Grid.php
+5
-1
51.1.79
→
51.1.87
View file →
| @@ -511,8 +511,12 @@ | ||
| 511 | 511 | |
| 512 | 512 | // PRO: Meta Fields Control |
| 513 | 513 | $this->add_control_meta_fields(); |
| 514 | 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 | + | |
| 515 | 519 | $this->end_controls_section(); |
| 516 | 520 | |
| 517 | 521 | // Category Colors Section |
| 518 | 522 | $this->start_controls_section( |
| @@ -4264,9 +4268,9 @@ | ||
| 4264 | 4268 | </div> |
| 4265 | 4269 | <?php endif; ?> |
| 4266 | 4270 | |
| 4267 | 4271 | <!-- Grid Container --> |
| 4268 | - <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'); ?>"> | |
| 4269 | 4273 | <?php $this->render_posts($posts_query, $settings); ?> |
| 4270 | 4274 | </div> |
| 4271 | 4275 | |
| 4272 | 4276 | <?php if ($settings['kng_dynamic_posts_enable_load_more'] === 'yes'): ?> |