'.esc_html( $settings['title'] ).''; } } protected static function icon() { $settings = self::getSettings(); $iconType = $settings['icon_type'] != 'img' ? ' counter-icon' : ' counter-img'; $altText = \Elementor\Control_Media::get_image_alt( $settings['image'] ); if( !empty( $settings['icon_show'] ) && $settings['icon_show'] == 'yes' ){ echo '
'; if( $settings['icon_type'] != 'img' ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo \Enteraddons\Classes\Helper::getElementorIcon( $settings['icon'] ); }else { echo ''.esc_attr( $altText ).''; } echo '
'; } } protected static function number() { $settings = self::getSettings(); if( !empty( $settings['number'] ) ) { $tag = $settings['number_tag']; $tag = 'h1'; // Default tag if ( ! empty( $settings['number_tag'] ) ) { // Check if the tag is allowed, case-insensitive if ( in_array( strtolower( $settings['number_tag'] ), [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'span', 'p' ], true ) ) { $tag = $settings['number_tag']; } } echo '<'.tag_escape( $tag ).' class="enteraddons-counter-number">'.esc_html( $settings['number'] ).''.esc_html( $settings['number_unit'] ).''; } } }