__( 'Sample data', 'yee3dprint' ), 'display' => __( 'Print options', 'yee3dprint' ), 'preview' => __( 'Model preview', 'yee3dprint' ), 'analysis' => __( 'Uploads and limits', 'yee3dprint' ), 'slicer' => __( 'Cloud PrusaSlicer analysis', 'yee3dprint' ), 'checkout' => __( 'Checkout', 'yee3dprint' ), 'request' => __( 'Request price', 'yee3dprint' ), ); $yeekit_tabs['pricing'] = __( 'Pricing guide', 'yee3dprint' ); $yeekit_tab = isset( $_GET['tab'] ) && is_string( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : 'display'; //phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! isset( $yeekit_tabs[ $yeekit_tab ] ) ) { $yeekit_tab = 'display'; } $yeekit_service_view = isset( $_GET['service'] ) && is_string( $_GET['service'] ) && 'cnc' === sanitize_key( wp_unslash( $_GET['service'] ) ) ? 'cnc' : '3d'; //phpcs:ignore WordPress.Security.NonceVerification.Recommended $display_fields = array( 'material_display' => array( 'label' => __( 'Materials display', 'yee3dprint' ), 'modes' => array( 'disabled', 'select', 'radio', 'palette' ), ), 'printer_display' => array( 'label' => __( 'Printers display', 'yee3dprint' ), 'modes' => array( 'disabled', 'select', 'radio', 'palette' ), ), 'coating_display' => array( 'label' => __( 'Coatings display', 'yee3dprint' ), 'modes' => array( 'disabled', 'select', 'radio', 'palette' ), ), 'post_processing_display' => array( 'label' => __( 'Post-processings display', 'yee3dprint' ), 'modes' => array( 'disabled', 'checkbox', 'radio', 'dropdown' ), ), 'infill_display' => array( 'label' => __( 'Infills display', 'yee3dprint' ), 'modes' => array( 'disabled', 'list', 'dropdown' ), ), ); $mode_labels = array( 'disabled' => __( 'Disable — hide on frontend', 'yee3dprint' ), 'select' => __( 'Grouped select with colors', 'yee3dprint' ), 'radio' => __( 'Radio list', 'yee3dprint' ), 'palette' => __( 'Color palette by group', 'yee3dprint' ), 'checkbox' => __( 'Checkboxes (multiple choices)', 'yee3dprint' ), 'dropdown' => __( 'Dropdown', 'yee3dprint' ), 'list' => __( 'Selectable list', 'yee3dprint' ), ); $yeekit_catalog_counts = Yeekit_Default_Catalog::catalog_counts(); $yeekit_sample_count = Yeekit_Default_Catalog::sample_count(); ?>