name = __( 'Section Break', 'weforms' );
$this->input_type = 'section_break';
$this->icon = 'columns';
}
/**
* Render the text field
*
* @param array $field_settings
* @param integer $form_id
*
* @return void
*/
public function render( $field_settings, $form_id ) {
$field_settings['description'] = isset( $field_settings['description'] ) ? $field_settings['description'] : '';
?>
print_list_attributes( $field_settings ); ?>>
'label',
'title' => __( 'Title', 'weforms' ),
'type' => 'text',
'section' => 'basic',
'priority' => 10,
'help_text' => __( 'Title of the section', 'weforms' ),
),
array(
'name' => 'description',
'title' => __( 'Description', 'weforms' ),
'type' => 'textarea',
'section' => 'basic',
'priority' => 11,
'help_text' => __( 'Some details text about the section', 'weforms' ),
),
);
return $options;
}
/**
* Get the field props
*
* @return array
*/
public function get_field_props() {
$props = array(
'template' => $this->get_type(),
'label' => $this->get_name(),
'description' => __( 'Some description about this section', 'weforms' ),
'id' => 0,
'is_new' => true,
'wpuf_cond' => null
);
return $props;
}
}