| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin CTA banner view. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @var array $attributes HTML attributes for the wrapper element. |
| 8 |
* @var array $args Arguments used in FrmTipsHelper::show_admin_cta. |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
die( 'You are not allowed to call this page directly.' ); |
| 13 |
} |
| 14 |
?> |
| 15 |
<div <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>> |
| 16 |
<div> |
| 17 |
<h4> |
| 18 |
<?php echo FrmAppHelper::kses( $args['title'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 19 |
</h4> |
| 20 |
|
| 21 |
<p class="frm-m-0"> |
| 22 |
<?php echo FrmAppHelper::kses( $args['description'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 23 |
</p> |
| 24 |
</div> |
| 25 |
|
| 26 |
<a href="<?php echo esc_url( $args['link_url'] ); ?>" target="_blank" class="frm-cta-link button button-primary frm-button-primary"> |
| 27 |
<?php echo esc_html( $args['link_text'] ); ?> |
| 28 |
</a> |
| 29 |
</div> |
| 30 |
|