| @@ -10,35 +10,20 @@ | ||
| 10 | 10 | |
| 11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 12 | die( 'You are not allowed to call this page directly.' ); |
| 13 | 13 | } |
| 14 | - | |
| 15 | -if ( false === strpos( $attributes['class'], 'frm-gradient' ) ) { | |
| 16 | - $button_class = 'frm-button-primary'; | |
| 17 | -} else { | |
| 18 | - $button_class = 'frm-button-secondary'; | |
| 19 | -} | |
| 20 | 14 | ?> |
| 21 | 15 | <div <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>> |
| 22 | - <?php | |
| 23 | - if ( ! empty( $args['icon'] ) ) { | |
| 24 | - ?> | |
| 25 | - <div class="frm-cta-icon"> | |
| 26 | - <?php FrmAppHelper::icon_by_class( $args['icon'] ); ?> | |
| 27 | - </div> | |
| 28 | - <?php | |
| 29 | - } | |
| 30 | - ?> | |
| 31 | - <div class="frm-cta-content"> | |
| 16 | + <div> | |
| 32 | 17 | <h4> |
| 33 | - <?php FrmAppHelper::kses_echo( $args['title'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?> | |
| 18 | + <?php echo FrmAppHelper::kses( $args['title'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 34 | 19 | </h4> |
| 35 | 20 | |
| 36 | 21 | <p class="frm-m-0"> |
| 37 | - <?php FrmAppHelper::kses_echo( $args['description'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?> | |
| 22 | + <?php echo FrmAppHelper::kses( $args['description'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 38 | 23 | </p> |
| 39 | 24 | </div> |
| 40 | 25 | |
| 41 | - <a href="<?php echo esc_url( $args['link_url'] ); ?>" target="<?php echo esc_attr( $args['target'] ); ?>" class="frm-cta-link button button-primary <?php echo esc_attr( $button_class ); ?>"> | |
| 26 | + <a href="<?php echo esc_url( $args['link_url'] ); ?>" target="_blank" class="frm-cta-link button button-primary frm-button-primary"> | |
| 42 | 27 | <?php echo esc_html( $args['link_text'] ); ?> |
| 43 | 28 | </a> |
| 44 | 29 | </div> |