name = __( 'Custom HTML', 'weforms' ); $this->input_type = 'custom_html'; $this->icon = 'code'; } /** * Render the text field * * @param array $field_settings * @param integer $form_id * * @return void */ public function render( $field_settings, $form_id ) { ?>
  • print_list_attributes( $field_settings ); ?>>
  • 'html', 'title' => __( 'HTML Codes', 'weforms' ), 'type' => 'textarea', 'section' => 'basic', 'priority' => 11, 'help_text' => __( 'Paste your HTML codes, WordPress shortcodes will also work here', 'weforms' ), ), ); return $settings; } /** * Get the field props * * @return array */ public function get_field_props() { $props = array( 'template' => $this->get_type(), 'html' => sprintf( '

    %s

    ', __( 'Some description about this section', 'weforms' ) ), 'id' => 0, 'is_new' => true, 'wpuf_cond' => $this->default_conditional_prop() ); return $props; } }