8 ) {
echo '
';
FrmAppHelper::show_search_box(
array(
'input_id' => 'field',
'placeholder' => __( 'Search', 'formidable' ),
'tosearch' => 'frm-customize-list',
)
);
echo '
';
}
?>
type ) ) {
continue;
}
// phpcs:ignore Universal.Operators.StrictComparisons
if ( $f->type === 'data' && ( ! isset( $f->field_options['data_type'] ) || $f->field_options['data_type'] === 'data' || $f->field_options['data_type'] == '' ) ) {
continue;
}
FrmFormsHelper::insert_opt_html(
array(
'id' => $f->id,
'key' => $f->field_key,
'name' => $f->name,
'type' => $f->type,
'class' => 'frm-customize-list dropdown-item',
)
);
do_action( 'frm_field_code_tab', array( 'field' => $f ) );
if ( $f->type === 'user_id' ) {
$uid = $f->id;
}
unset( $f );
}//end foreach
}//end if
?>
:
'advanced',
'placeholder' => __( 'Search', 'formidable' ),
'tosearch' => 'frm-advanced-list',
)
);
?>
$sname ) {
if ( ! $skey ) {
echo '';
continue;
}
$classes = 'frm-advanced-list';
$classes .= in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ), true ) ? ' show_before_content show_after_content' : '';
$classes .= str_starts_with( $skey, 'default-' ) ? ' hide_frm_not_email_subject' : '';
if ( array_key_exists( $skey, $contextual_codes ) ) {
$classes .= ' frm_hidden';
}
FrmFormsHelper::insert_code_html(
array(
'code' => $skey,
'label' => $sname,
'class' => $classes,
)
);
unset( $skey, $sname, $classes );
}//end foreach
foreach ( $advanced_helpers as $helper_type => $helper ) {
if ( 'user_id' === $helper_type && ! isset( $uid ) ) {
continue;
}
if ( ! empty( $helper['heading'] ) ) {
?>
-
$code_label ) {
$code = isset( $uid ) ? str_replace( '|user_id|', $uid, $code ) : str_replace( '|user_id|', 'x', $code );
$include_x = strpos( $code, ' ' ) ? '' : 'x ';
if ( ! is_array( $code_label ) ) {
$code_label = array(
'label' => $code_label,
);
}
FrmFormsHelper::insert_code_html(
array(
'code' => $include_x . $code,
'label' => $code_label['label'],
'title' => $code_label['title'] ?? '',
'class' => 'frm-advanced-list',
)
);
unset( $code );
}//end foreach
}//end foreach
?>