8 ) {
FrmAppHelper::show_search_box(
array(
'input_id' => 'field',
'placeholder' => __( 'Search', 'formidable' ),
'tosearch' => 'frm-customize-list',
)
);
}
?>
type ) ) {
continue;
}
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',
)
);
do_action( 'frm_field_code_tab', array( 'field' => $f ) );
if ( $f->type == 'user_id' ) {
$uid = $f->id;
}
unset( $f );
}
}
?>
'advanced',
'placeholder' => __( 'Search', 'formidable' ),
'tosearch' => 'frm-advanced-list',
)
);
?>
$sname ) {
if ( empty( $skey ) ) {
echo '';
continue;
}
$classes = 'frm-advanced-list';
$classes .= ( in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ) ) ) ? ' show_before_content show_after_content' : '';
$classes .= ( strpos( $skey, 'default-' ) === 0 ) ? ' hide_frm_not_email_subject' : '';
FrmFormsHelper::insert_code_html(
array(
'code' => $skey,
'label' => $sname,
'class' => $classes,
)
);
unset( $skey, $sname, $classes );
}
foreach ( $advanced_helpers as $helper_type => $helper ) {
if ( 'user_id' === $helper_type && ! isset( $uid ) ) {
continue;
}
if ( isset( $helper['heading'] ) && ! empty( $helper['heading'] ) ) {
?>
-
$code_label ) {
if ( isset( $uid ) ) {
$code = str_replace( '|user_id|', $uid, $code );
} else {
$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' => isset( $code_label['title'] ) ? $code_label['title'] : '',
'class' => 'frm-advanced-list',
)
);
unset( $code );
}
}
?>