← All changes
|
includes/widgets/Pros_Cons_Box/Pros_Cons_Box.php
+10
-5
51.1.44
→
51.1.86
View file →
| @@ -52,9 +52,9 @@ | ||
| 52 | 52 | * Widget icon. |
| 53 | 53 | */ |
| 54 | 54 | public function get_icon(): string |
| 55 | 55 | { |
| 56 | - return 'eicon-editor-list-ul'; | |
| 56 | + return 'king-addons-icon king-addons-pros-cons-box'; | |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Styles used. |
| @@ -99,9 +99,14 @@ | ||
| 99 | 99 | { |
| 100 | 100 | return ['pros', 'cons', 'comparison', 'review', 'box']; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - /** | |
| 103 | + public function get_custom_help_url() | |
| 104 | + { | |
| 105 | + return 'mailto:[email protected]?subject=Bug Report - King Addons&body=Please describe the issue'; | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 104 | 109 | * Register controls. |
| 105 | 110 | */ |
| 106 | 111 | public function register_controls(): void |
| 107 | 112 | { |
| @@ -496,9 +501,9 @@ | ||
| 496 | 501 | 'label' => esc_html__('Pros Items', 'king-addons'), |
| 497 | 502 | 'type' => Controls_Manager::REPEATER, |
| 498 | 503 | 'fields' => $repeater->get_controls(), |
| 499 | 504 | 'default' => [], |
| 500 | - 'title_field' => '{{{ kng_item_text }}}', | |
| 505 | + 'title_field' => '{{ kng_item_text }}', | |
| 501 | 506 | ] |
| 502 | 507 | ); |
| 503 | 508 | |
| 504 | 509 | $this->add_control( |
| @@ -621,9 +626,9 @@ | ||
| 621 | 626 | 'label' => esc_html__('Cons Items', 'king-addons'), |
| 622 | 627 | 'type' => Controls_Manager::REPEATER, |
| 623 | 628 | 'fields' => $repeater->get_controls(), |
| 624 | 629 | 'default' => [], |
| 625 | - 'title_field' => '{{{ kng_item_text }}}', | |
| 630 | + 'title_field' => '{{ kng_item_text }}', | |
| 626 | 631 | ] |
| 627 | 632 | ); |
| 628 | 633 | |
| 629 | 634 | $this->add_control( |
| @@ -1701,9 +1706,9 @@ | ||
| 1701 | 1706 | <span class="king-addons-pros-cons__item-icon" aria-hidden="true"> |
| 1702 | 1707 | <?php Icons_Manager::render_icon($icon, ['aria-hidden' => 'true']); ?> |
| 1703 | 1708 | </span> |
| 1704 | 1709 | <?php endif; ?> |
| 1705 | - <span class="king-addons-pros-cons__item-text"><?php echo $item['text']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span> | |
| 1710 | + <span class="king-addons-pros-cons__item-text"><?php echo wp_kses_post($item['text']); ?></span> | |
| 1706 | 1711 | <?php if ($tooltip_html !== '') : ?> |
| 1707 | 1712 | <?php echo $tooltip_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 1708 | 1713 | <?php endif; ?> |
| 1709 | 1714 | </li> |