array(
array(
'key' => 'label',
'type' => 'text',
'label' => __( 'Heading', '2ranq-forms' ),
),
array(
'key' => 'text',
'type' => 'textarea',
'label' => __( 'Text', '2ranq-forms' ),
),
),
'advanced' => array(
array(
'key' => 'css_class',
'type' => 'text',
'label' => __( 'CSS class', '2ranq-forms' ),
),
),
);
}
/**
* Prints the field.
*
* @param array $field The field settings.
* @param int $form_id The form id.
*
* @return void
*/
public function render( $field, $form_id ) {
unset( $form_id );
?>
array(
array(
'key' => 'label',
'type' => 'text',
'label' => __( 'Title above the line', '2ranq-forms' ),
'help' => __( 'Leave empty for a plain line.', '2ranq-forms' ),
),
),
'advanced' => array(
array(
'key' => 'css_class',
'type' => 'text',
'label' => __( 'CSS class', '2ranq-forms' ),
),
),
);
}
/**
* Prints the field.
*
* @param array $field The field settings.
* @param int $form_id The form id.
*
* @return void
*/
public function render( $field, $form_id ) {
unset( $form_id );
?>
array(
array(
'key' => 'label',
'type' => 'text',
'label' => __( 'Name in entries', '2ranq-forms' ),
),
array(
'key' => 'default_value',
'type' => 'text',
'label' => __( 'Value', '2ranq-forms' ),
'help' => __( 'Sent with every submission. Use it to tell forms apart.', '2ranq-forms' ),
),
),
'advanced' => array(),
);
}
/**
* Prints the field.
*
* @param array $field The field settings.
* @param int $form_id The form id.
*
* @return void
*/
public function render( $field, $form_id ) {
unset( $form_id );
?>