PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.27
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.27
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / shared / admin-cta.php

admin-cta.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.27, at classes/views/shared/admin-cta.php

41 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 $button_class = ! str_contains( $attributes['class'], 'frm-gradient' ) ? 'frm-button-primary' : 'frm-button-secondary';
16 ?>
17 <div <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>>
18 <?php
19 if ( ! empty( $args['icon'] ) ) {
20 ?>
21 <div class="frm-cta-icon">
22 <?php FrmAppHelper::icon_by_class( $args['icon'] ); ?>
23 </div>
24 <?php
25 }
26 ?>
27 <div class="frm-cta-content">
28 <h4>
29 <?php FrmAppHelper::kses_echo( $args['title'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?>
30 </h4>
31
32 <p class="frm-m-0">
33 <?php FrmAppHelper::kses_echo( $args['description'], array( 'a', 'br', 'span', 'p', 'svg', 'use' ) ); ?>
34 </p>
35 </div>
36
37 <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 ); ?>">
38 <?php echo esc_html( $args['link_text'] ); ?>
39 </a>
40 </div>
41