| 1 |
<?php |
| 2 |
/** |
| 3 |
* Credit card field form builder view. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @var array $field Field data including 'form_id'. |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
die( 'You are not allowed to call this page directly.' ); |
| 12 |
} |
| 13 |
|
| 14 |
if ( ( ! FrmStrpLiteConnectHelper::at_least_one_mode_is_setup() && ! FrmSquareLiteConnectHelper::at_least_one_mode_is_setup() ) || ! FrmTransLiteActionsController::get_actions_for_form( $field['form_id'] ) ) { |
| 15 |
?> |
| 16 |
<span class="frm-with-icon frm-not-set frm_note_style"> |
| 17 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_report_problem_solid_icon' ); ?> |
| 18 |
<?php esc_attr_e( 'This field is not set up yet.', 'formidable' ); ?> |
| 19 |
</span> |
| 20 |
<?php |
| 21 |
return; |
| 22 |
} |
| 23 |
?> |
| 24 |
<div class="frm-lite-credit-card-element"> |
| 25 |
<input type="text" placeholder="1234 1234 1234 1234" disabled /> |
| 26 |
<div> |
| 27 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_credit_card_icon' ); ?> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
|