PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 / frm-fields / back-end / generate-options-with-ai.php

generate-options-with-ai.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/frm-fields/back-end/generate-options-with-ai.php

22 lines 787 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Generate options with AI button.
4 *
5 * @package Formidable
6 *
7 * @var array $args Arguments including 'button_text' and 'show_pill'.
8 * @var array $attributes HTML attributes for the button.
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 die( 'You are not allowed to call this page directly.' );
13 }
14 ?>
15 <button <?php FrmAppHelper::array_to_html_params( $attributes, true ); ?>>
16 <?php FrmAppHelper::icon_by_class( 'frmfont frm-ai-form-icon frm_svg15', array( 'aria-label' => __( 'Generate options with AI', 'formidable' ) ) ); ?>
17 <span><?php echo esc_html( $args['button_text'] ?? __( 'Generate with AI', 'formidable' ) ); ?></span>
18 <?php if ( isset( $args['show_pill'] ) ) : ?>
19 <?php FrmAppHelper::show_pill_text( __( 'BETA', 'formidable' ) ); ?>
20 <?php endif; ?>
21 </button>
22