'title',
'title' => __( 'Advanced Options', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_advanced_options',
),
array(
'title' => __( 'Hide Disabled Docs Settings', 'woocommerce-jetpack' ),
'desc' => __( 'Hide', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_hide_disabled_docs_settings',
'default' => 'no',
'type' => 'checkbox',
),
array(
'title' => __( 'Replace Admin Order Search with Invoice Search', 'woocommerce-jetpack' ),
'desc' => __( 'Enable', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_admin_search_by_invoice',
'default' => 'no',
'type' => 'checkbox',
),
array(
'title' => __( 'Advanced', 'woocommerce-jetpack' ) . ': ' . __( 'Default Images Directory', 'woocommerce-jetpack' ),
'desc' => '
' . __( 'Default images directory in TCPDF library (K_PATH_IMAGES).', 'woocommerce-jetpack' ),
'desc_tip' => __( 'Try changing this if you have issues displaying images in page background or header.', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_general_header_images_path', // mislabelled, should be `wcj_invoicing_general_images_path`
'default' => 'document_root',
'type' => 'select',
'options' => array(
'empty' => __( 'Empty', 'woocommerce-jetpack' ),
'tcpdf_default' => __( 'TCPDF Default', 'woocommerce-jetpack' ),
'abspath' => __( 'ABSPATH', 'woocommerce-jetpack' ), // . ': ' . ABSPATH,
'document_root' => __( 'DOCUMENT_ROOT', 'woocommerce-jetpack' ), // . ': ' . $_SERVER['DOCUMENT_ROOT'],
),
),
array(
'title' => __( 'Advanced', 'woocommerce-jetpack' ) . ': ' . __( 'Temp Directory', 'woocommerce-jetpack' ),
'desc_tip' => __( 'Leave blank to use the default temp directory.', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_general_tmp_dir',
'default' => '',
'type' => 'text',
),
array(
'type' => 'sectionend',
'id' => 'wcj_pdf_invoicing_advanced_options',
),
// $hook_time = date( 'Y-m-d H:i:s', get_option( 'wcj_download_tcpdf_fonts_hook_timestamp', null ) ); // for debug
array(
'title' => __( 'Fonts Manager', 'woocommerce-jetpack' ),
'desc' => $fonts_manager_desc,
'type' => 'title',
'id' => 'wcj_invoicing_fonts_manager_styling_options',
),
array(
'title' => __( 'Actions', 'woocommerce-jetpack' ),
'type' => 'custom_link',
'link' => '' .
( $is_full_fonts ? __( 'Re-download', 'woocommerce-jetpack' ) : __( 'Download', 'woocommerce-jetpack' ) )
. '',
'id' => 'wcj_invoicing_fonts_manager_styling_option',
),
array(
'title' => __( 'Disable Fonts Download', 'woocommerce-jetpack' ),
'desc' => __( 'Disable', 'woocommerce-jetpack' ),
'type' => 'checkbox',
'default' => 'no',
'id' => 'wcj_invoicing_fonts_manager_do_not_download',
),
array(
'type' => 'sectionend',
'id' => 'wcj_invoicing_fonts_manager_styling_options',
),
array(
'title' => __( 'General Display Options', 'woocommerce-jetpack' ),
'type' => 'title',
'id' => 'wcj_invoicing_general_display_options',
),
array(
'title' => __( 'Add PDF Invoices Meta Box to Admin Edit Order Page', 'woocommerce-jetpack' ),
'desc' => __( 'Add', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_add_order_meta_box',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'desc' => __( 'Open docs in new window', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_order_meta_box_open_in_new_window',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'desc' => __( 'Add editable numbers', 'woocommerce-jetpack' ),
'id' => 'wcj_invoicing_add_order_meta_box_numbering',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'type' => 'sectionend',
'id' => 'wcj_invoicing_general_display_options',
),
array(
'title' => __( 'Report Tool Options', 'woocommerce-jetpack' ),
'type' => 'title',
'id' => 'wcj_pdf_invoicing_report_tool_options',
),
array(
'title' => __( 'Reports Filename', 'woocommerce-jetpack' ),
'desc' => wcj_message_replaced_values( array( '%site%', '%invoice_type%', '%year%', '%month%' ) ),
'id' => 'wcj_pdf_invoicing_report_tool_filename',
'default' => '%site%-%invoice_type%-%year%_%month%',
'type' => 'text',
'class' => 'widefat',
),
array(
'title' => __( 'Report Columns', 'woocommerce-jetpack' ),
'desc_tip' => __( 'Leave blank to show all columns.', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_report_tool_columns',
'default' => $this->get_report_default_columns(),
'type' => 'multiselect',
'class' => 'chosen_select',
'options' => $this->get_report_columns(),
),
array(
'title' => __( 'Tax Percent Precision', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_report_tool_tax_percent_precision',
'default' => 0,
'type' => 'number',
'custom_attributes' => array( 'min' => 0 ),
),
array(
'title' => __( 'CSV Separator', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_report_tool_csv_separator',
'default' => ';',
'type' => 'text',
),
array(
'title' => __( 'CSV UTF-8 BOM', 'woocommerce-jetpack' ),
'desc' => __( 'Add', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_report_tool_csv_add_utf_8_bom',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'title' => __( 'Replace Periods with Commas in CSV Data', 'woocommerce-jetpack' ),
'desc' => __( 'Replace', 'woocommerce-jetpack' ),
'id' => 'wcj_pdf_invoicing_report_tool_csv_replace_periods_w_commas',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'type' => 'sectionend',
'id' => 'wcj_pdf_invoicing_report_tool_options',
),
);