# formidable/trunk/classes/views/shared/admin-cta.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 41 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/shared/admin-cta.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/shared/admin-cta.php
- Modified: 2026-02-12T17:50:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/shared/admin-cta.php#L10-L20`.

```php
<?php
/**
 * Admin CTA banner view.
 *
 * @package Formidable
 *
 * @var array $attributes HTML attributes for the wrapper element.
 * @var array $args       Arguments used in FrmTipsHelper::show_admin_cta.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

$button_class = str_contains( $attributes['class'], 'frm-gradient' ) ? 'frm-button-secondary' : 'frm-button-primary';
?>
<div <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>>
	<?php
	if ( ! empty( $args['icon'] ) ) {
		?>
		<div class="frm-cta-icon">
			<?php FrmAppHelper::icon_by_class( $args['icon'] ); ?>
		</div>
		<?php
	}
	?>
	<div class="frm-cta-content">
		<h4>
			<?php FrmAppHelper::kses_echo( $args['title'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?>
		</h4>

		<p class="frm-m-0">
			<?php FrmAppHelper::kses_echo( $args['description'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?>
		</p>
	</div>

	<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 ); ?>">
		<?php echo esc_html( $args['link_text'] ); ?>
	</a>
</div>

```
