PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.4
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-form-actions / settings.php

settings.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.4, at classes/views/frm-form-actions/settings.php

93 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <p class="howto">
7 <?php esc_html_e( 'Add form actions to your form to perform tasks when an entry is created, updated, imported, and more.', 'formidable' ); ?>
8 </p>
9
10 <div id="frm_email_addon_menu" class="frm-limited-actions">
11 <?php
12 FrmAppHelper::show_search_box(
13 array(
14 'input_id' => 'actions',
15 'placeholder' => __( 'Search Form Actions', 'formidable' ),
16 'tosearch' => 'frm-action',
17 )
18 );
19 ?>
20 <h3 class="frm-no-border">
21 <?php esc_html_e( 'Form Actions', 'formidable' ); ?>
22 <span class="frm-sub-label">
23 <?php esc_html_e( '(click an action to add it to your form)', 'formidable' ); ?>
24 </span>
25 </h3>
26 <?php
27 $displayed_actions = array();
28 foreach ( $groups as $group_name => $group ) {
29 if ( ! empty( $group['name'] ) ) {
30 ?>
31 <h3 class="frm-group-heading"><?php echo esc_html( $group['name'] ); ?></h3>
32 <?php
33 }
34
35 if ( ! isset( $group['actions'] ) ) {
36 $group['actions'] = array();
37 }
38 ?>
39 <ul class="frm_actions_list">
40 <?php
41 foreach ( $action_controls as $action_control ) {
42 if ( in_array( $action_control->id_base, $displayed_actions ) || ! in_array( $action_control->id_base, $group['actions'] ) ) {
43 continue;
44 }
45
46 $displayed_actions[] = $action_control->id_base;
47 FrmFormActionsController::show_action_icon_link( $action_control, $allowed );
48 unset( $actions_icon, $classes );
49 }
50
51 foreach ( $group['actions'] as $action ) {
52 if ( in_array( $action, $displayed_actions ) ) {
53 continue;
54 }
55 ?>
56 <li class="frm-action frm-not-installed">
57 <a href="javascript:void(0)" class="frm-single-action frm_show_upgrade">
58 <span class="frm-outer-circle">
59 <span class="frm-inner-circle" <?php FrmAppHelper::array_to_html_params( $icon_atts, true ); ?>>
60 <?php
61 $icon_atts = array();
62 if ( isset( $group['color'] ) ) {
63 $icon_atts = array(
64 'style' => '--primary-700:' . $group['color'],
65 );
66 }
67 FrmAppHelper::icon_by_class( 'frmfont frm_plus_icon', $icon_atts );
68 ?>
69 </span>
70 </span>
71 <?php echo esc_html( $action ); ?>
72 </a>
73 </li>
74 <?php
75 }
76 ?>
77 </ul>
78 <?php
79 }
80 ?>
81 <div class="clear"></div>
82 <a href="#" id="frm-show-groups">
83 <?php esc_html_e( 'Show all form actions', 'formidable' ); ?>
84 </a>
85 <a href="#" id="frm-hide-groups">
86 <?php esc_html_e( 'Hide extra form actions', 'formidable' ); ?>
87 </a>
88 <div class="clear"></div>
89 </div>
90
91 <?php FrmFormActionsController::list_actions( $form, $values ); ?>
92 <?php FrmTipsHelper::pro_tip( 'get_form_action_tip', 'p' ); ?>
93