| @@ -103,8 +103,9 @@ | ||
| 103 | 103 | // } else { |
| 104 | 104 | // $column_size = ''; |
| 105 | 105 | // } |
| 106 | 106 | |
| 107 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration. | |
| 107 | 108 | $column_size = apply_filters('upk_column_size', ''); |
| 108 | 109 | |
| 109 | 110 | $this->add_responsive_control( |
| 110 | 111 | 'columns', |
| @@ -191,8 +192,12 @@ | ||
| 191 | 192 | 'min' => 200, |
| 192 | 193 | 'max' => 800, |
| 193 | 194 | ], |
| 194 | 195 | ], |
| 196 | + 'default' => [ | |
| 197 | + 'size' => 420, | |
| 198 | + 'unit' => 'px', | |
| 199 | + ], | |
| 195 | 200 | 'selectors' => [ |
| 196 | 201 | '{{WRAPPER}} .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+1), {{WRAPPER}} .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+2), {{WRAPPER}} .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2)' => 'height: {{SIZE}}{{UNIT}};', |
| 197 | 202 | ], |
| 198 | 203 | 'condition' => [ |
| @@ -211,8 +216,12 @@ | ||
| 211 | 216 | 'min' => 200, |
| 212 | 217 | 'max' => 800, |
| 213 | 218 | ], |
| 214 | 219 | ], |
| 220 | + 'default' => [ | |
| 221 | + 'size' => 280, | |
| 222 | + 'unit' => 'px', | |
| 223 | + ], | |
| 215 | 224 | 'selectors' => [ |
| 216 | 225 | '{{WRAPPER}} .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+3), {{WRAPPER}} .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+4), {{WRAPPER}} .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+5), {{WRAPPER}} .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+1), {{WRAPPER}} .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+3), {{WRAPPER}} .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+4), {{WRAPPER}} .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+5)' => 'height: {{SIZE}}{{UNIT}};', |
| 217 | 226 | ], |
| 218 | 227 | 'condition' => [ |
| @@ -244,8 +253,9 @@ | ||
| 244 | 253 | $this->add_group_control( |
| 245 | 254 | Group_Control_Image_Size::get_type(), |
| 246 | 255 | [ |
| 247 | 256 | 'name' => 'primary_thumbnail', |
| 257 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 248 | 258 | 'exclude' => ['custom'], |
| 249 | 259 | 'default' => 'medium', |
| 250 | 260 | ] |
| 251 | 261 | ); |
| @@ -469,9 +479,9 @@ | ||
| 469 | 479 | [ |
| 470 | 480 | 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'), |
| 471 | 481 | 'type' => Controls_Manager::SWITCHER, |
| 472 | 482 | // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag |
| 473 | - 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1s look here %2s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 483 | + 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1$s look here %2$s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 474 | 484 | 'default' => 'yes', |
| 475 | 485 | ] |
| 476 | 486 | ); |
| 477 | 487 | |
| @@ -1424,9 +1434,9 @@ | ||
| 1424 | 1434 | [ |
| 1425 | 1435 | 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'), |
| 1426 | 1436 | 'type' => Controls_Manager::SWITCHER, |
| 1427 | 1437 | // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag |
| 1428 | - 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1s look here %2s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 1438 | + 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1$s look here %2$s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 1429 | 1439 | 'default' => 'yes', |
| 1430 | 1440 | 'separator' => 'before' |
| 1431 | 1441 | ] |
| 1432 | 1442 | ); |
| @@ -1460,8 +1470,9 @@ | ||
| 1460 | 1470 | [ |
| 1461 | 1471 | 'name' => 'post_format_background', |
| 1462 | 1472 | 'label' => esc_html__('Background', 'ultimate-post-kit'), |
| 1463 | 1473 | 'types' => ['classic', 'gradient'], |
| 1474 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 1464 | 1475 | 'exclude' => ['image'], |
| 1465 | 1476 | 'selector' => '{{WRAPPER}} .upk-alex-grid .upk-post-format a', |
| 1466 | 1477 | 'fields_options' => [ |
| 1467 | 1478 | 'background' => [ |
| @@ -1615,16 +1626,14 @@ | ||
| 1615 | 1626 | <?php endif; ?> |
| 1616 | 1627 | |
| 1617 | 1628 | <div class="upk-flex upk-flex-middle upk-date-reading-wrap"> |
| 1618 | 1629 | <?php if ('yes' === $settings['show_date']) : ?> |
| 1619 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1620 | - <?php $this->render_date(); ?> | |
| 1621 | - </div> | |
| 1630 | + <?php $this->render_date(); ?> | |
| 1622 | 1631 | <?php endif; ?> |
| 1623 | 1632 | |
| 1624 | 1633 | <?php if (_is_upk_pro_activated()) : |
| 1625 | 1634 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1626 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1635 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1627 | 1636 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1628 | 1637 | </div> |
| 1629 | 1638 | <?php endif; ?> |
| 1630 | 1639 | <?php endif; ?> |