' . 'https://booster.io/category/shortcodes/' . '' ); $settings = array(); $invoice_types = ( 'yes' === get_option( 'wcj_invoicing_hide_disabled_docs_settings', 'no' ) ) ? wcj_get_enabled_invoice_types() : wcj_get_invoice_types(); foreach ( $invoice_types as $invoice_type ) { $settings = array_merge( $settings, array( array( 'title' => $invoice_type['title'], 'type' => 'title', 'id' => 'wcj_invoicing_' . $invoice_type['id'] . '_templates_options', ), array( 'title' => __( 'HTML Template', 'woocommerce-jetpack' ), 'desc' => $tip, 'id' => 'wcj_invoicing_' . $invoice_type['id'] . '_template', 'default' => $this->get_default_template( $invoice_type['id'] ), 'type' => 'textarea', 'css' => 'width:100%;height:500px;', ), array( 'title' => __( 'Save all templates', 'woocommerce-jetpack' ), 'id' => 'wcj_invoicing_template_save_all', 'type' => 'wcj_save_settings_button', ), array( 'type' => 'sectionend', 'id' => 'wcj_invoicing_' . $invoice_type['id'] . '_templates_options', ), ) ); } return $settings;