From 8b18459dda3845166cf301b924749ba277a319f6 Mon Sep 17 00:00:00 2001
From: unknown
+ +
max(20, min(160, (int) ($new_instance['top_band_height'] ?? 70))), 'cta_text' => sanitize_text_field((string) ($new_instance['cta_text'] ?? '')), 'go_link' => !empty($new_instance['go_link']) ? 1 : 0, + 'obs_animation' => sanitize_key((string) ($new_instance['obs_animation'] ?? '')), + 'animation_repeat'=> !empty($new_instance['animation_repeat']) ? 1 : 0, ]; } } diff --git a/src/AKSRT/Widgets/WidgetHighlights.php b/src/AKSRT/Widgets/WidgetHighlights.php index f9f1d12f..a87999a4 100644 --- a/src/AKSRT/Widgets/WidgetHighlights.php +++ b/src/AKSRT/Widgets/WidgetHighlights.php @@ -1,6 +1,6 @@ $args + * @param array+ +
$new_instance + * @param array
- - -
-- - -
-- - -
-- - -
- id_base); + if ($title !== '') { + echo $args['before_title'] . esc_html($title) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + } + $full_width = !empty($instance['full_width']); + $cls = 'widget-custom-html' . ($full_width ? ' is-full' : ''); + echo '+ + +
++ + +
++ + +
++ + +
++ + +
++ +
+ $new_instance + * @param array+ + +
++ + + +
++ +
++ + +
++ + +
++ +
++ +
+ '; - if ($first_link) { - echo '' . esc_html($first_text) . ''; - } else { - echo esc_html($first_text); - } - echo ''; - - echo '- - -
-- - - -
-- - -
-- - -
- $new_instance + * @param array