| @@ -1,15 +1,9 @@ | ||
| 1 | 1 | <div |
| 2 | - <?php | |
| 3 | -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 4 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | - exit; | |
| 6 | -} | |
| 7 | -echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- contains attriutes and values together which are required here ?>> | |
| 8 | - <?php | |
| 9 | - $section_tag = betterdocs()->template_helper->is_valid_tag( $faq_section_title_tag ); | |
| 10 | - echo wp_kses_post( '<' . $section_tag . ' class="' . esc_attr( $faq_heading_class ) . ' betterdocs-faq-section-title">' . esc_html( $faq_heading ) . '</' . $section_tag . '>' ); | |
| 11 | - ?> | |
| 2 | + <?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- contains attriutes and values together which are required here ?>> | |
| 3 | + <h2 class="<?php echo esc_attr( $faq_heading_class ); ?> betterdocs-faq-section-title"> | |
| 4 | + <?php echo esc_html( $faq_heading ); ?> | |
| 5 | + </h2> | |
| 12 | 6 | |
| 13 | 7 | <div class="betterdocs-faq-inner-wrapper"> |
| 14 | 8 | <?php |
| 15 | 9 | $terms = get_terms( $terms_query_args ); |
| @@ -33,9 +27,9 @@ | ||
| 33 | 27 | continue; |
| 34 | 28 | } |
| 35 | 29 | $faq_icon_url = get_term_meta($term->term_id, 'faq_group_icon', true); |
| 36 | 30 | echo '<div class="betterdocs-faq-tab" data-term-id="' . esc_attr( $term->term_id ) . '">'; |
| 37 | - echo ( ! empty( $faq_icon_url ) ) ? '<img src="' . esc_url( $faq_icon_url ) . '" width="24" height="24" class="faq-group-image" />' : ''; | |
| 31 | + echo ( ! empty( $faq_icon_url ) ) ? '<img src="'.$faq_icon_url.'" width="24" height="24" class="faq-group-image" />' : ''; | |
| 38 | 32 | echo '<span class="faq-tab-title">' . esc_html( $term->name ) . '</span>'; |
| 39 | 33 | echo '</div>'; |
| 40 | 34 | } |
| 41 | 35 | echo '</div>'; |
| @@ -47,9 +41,9 @@ | ||
| 47 | 41 | } |
| 48 | 42 | |
| 49 | 43 | $faq_icon_url = get_term_meta($term->term_id, 'faq_group_icon', true); |
| 50 | 44 | echo '<div class="betterdocs-faq-tab" data-term-id="' . esc_attr( $term->term_id ) . '">'; |
| 51 | - echo ( ! empty( $faq_icon_url ) ) ? '<img src="' . esc_url( $faq_icon_url ) . '" width="24" height="24" class="faq-group-image" />' : ''; | |
| 45 | + echo ( ! empty( $faq_icon_url ) ) ? '<img src="'.$faq_icon_url.'" width="24" height="24" class="faq-group-image" />' : ''; | |
| 52 | 46 | echo '<span class="faq-tab-title">' . esc_html( $term->name ) . '</span>'; |
| 53 | 47 | |
| 54 | 48 | $faq_markup = '<svg class="betterdocs-faq-iconplus" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 55 | 49 | <g clip-path="url(#clip0_8028_2975)"> |