'; if (!empty($titleShownInTooltip)) { echo ''.esc_attr($titleShownInTooltip).''; } echo esc_attr($textShownInTooltip); echo ''; if (!empty($link)) { echo ''; } echo wp_kses( $hoveredText, [ 'button' => [ 'class' => true, 'data-task' => true, 'type' => true, 'id' => true, ], 'span' => [ 'class' => true, ], 'i' => [ 'class' => true, 'id' => true, 'aria-hidden' => true, 'data-acyc-action' => true, 'data-acyc-elementid' => true, ], 'img' => [ 'src' => true, ], ] ); if (!empty($link)) { echo ''; } echo ''; } public static function info( string $tooltipText, string $class = '', string $containerClass = '', string $classText = '', bool $warningInfo = false ): void { $classWarning = $warningInfo ? 'acyc__tooltip__info__warning' : ''; self::tooltip( ' ', $tooltipText, 'acyc__tooltip__info '.$containerClass, '', '', $classText ); } }