{'html_' . $field}( $data ); } else { // For custom field. do_action_ref_array( 'learn-press/filter-courses/sections/field/html', [ &$sections, $field, $data, ] ); } } // Add button Done for mobile if not has btn submit. if ( ! in_array( 'btn_submit', $data['fields'] ) ) { $sections['btn_done'] = $this->html_btn_done( $data ); } $class_wrapper_form = $data['class_wrapper_form'] ?? 'lp-form-course-filter'; $wrapper = apply_filters( 'lp/filter-courses/sections/wrapper', [ 'wrapper' => sprintf( '
', ], $data ); echo Template::combine_components( $wrapper ); } catch ( Throwable $e ) { error_log( __METHOD__ . ': ' . $e->getMessage() ); } } /** * Get html item. * * @param string $title * @param string $content * * @return string */ public function html_item( string $title = '', string $content = '' ): string { try { $title_html = sprintf( '