PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.33.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.33.1
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 / _action_icon.php

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

67 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 $limit = $action_control->action_options['limit'];
7
8 if ( 'paypal' === $action_control->id_base ) {
9 // The PayPal add-on may overwrite this so change it back.
10 $limit = 1;
11 }
12
13 // Remove limit for Stripe action when Stripe add-on is active
14 if ( 'stripe' === $action_control->id_base && class_exists( 'FrmStrpAppHelper' ) ) {
15 $limit = 99;
16 }
17
18 $single_action_attrs = array_merge(
19 $data,
20 array(
21 'href' => 'javascript:void(0)',
22 'class' => $classes . ' button frm-button-secondary frm-button-sm frm-with-icon frm-ml-auto-force frm-fadein-down-short',
23 'data-limit' => $limit,
24 'data-actiontype' => $action_control->id_base,
25 )
26 );
27
28 if ( 'paypal' === $action_control->id_base ) {
29 $action_control->name = 'PayPal Commerce';
30 }
31 ?>
32 <li class="frm-card-item frm-card-item--outlined frm-action<?php echo esc_attr( $group_class . ( isset( $data['data-upgrade'] ) ? ' frm-not-installed' : '' ) ); ?>" tabindex="0">
33 <div class="frm-h-stack-xs frm-w-full">
34 <span class="frm-border-icon frm-shrink-0">
35 <?php FrmAppHelper::icon_by_class( $action_control->action_options['classes'], FrmFormActionsController::get_action_icon_atts( $action_control ) ); ?>
36 </span>
37
38 <div class="frm-flex-col frm-min-w-0">
39 <h3 class="frm-h-stack-xs frm-capitalize">
40 <?php
41 if ( isset( $data['data-upgrade'] ) && ! isset( $data['data-oneclick'] ) ) {
42 FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon frm_svg15', array( 'aria-label' => __( 'Lock icon', 'formidable' ) ) );
43 }
44 ?>
45 <span class="frm-font-medium frm-white-space-nowrap"><?php echo esc_html( str_replace( 'Add to ', '', $action_control->name ) ); ?></span>
46 <?php if ( ! empty( $action_control->action_options['is_new'] ) ) { ?>
47 <?php FrmAppHelper::show_pill_text(); ?>
48 <?php } elseif ( ! empty( $action_control->action_options['is_beta'] ) ) { ?>
49 <?php FrmAppHelper::show_pill_text( __( 'BETA', 'formidable' ) ); ?>
50 <?php } ?>
51 </h3>
52 <?php if ( ! empty( $action_control->action_options['description'] ) ) { ?>
53 <p class="frm-truncate"><?php echo esc_html( $action_control->action_options['description'] ); ?></p>
54 <?php } ?>
55 </div>
56
57 <a <?php FrmAppHelper::array_to_html_params( $single_action_attrs, true ); ?>>
58 <?php FrmAppHelper::icon_by_class( 'frmfont frm_plus_icon' ); ?>
59 <span><?php echo esc_html_x( 'Add', 'form action', 'formidable' ); ?></span>
60 </a>
61
62 <?php if ( ! empty( $action_control->action_options['keywords'] ) ) { ?>
63 <span class="frm_hidden"><?php echo esc_html( $action_control->action_options['keywords'] ); ?></span>
64 <?php } ?>
65 </div>
66 </li>
67