' . esc_html__( 'Settings saved.', 'addon-boss' ) . '
'; } echo '' . esc_html__( 'When customers upload artwork or files on a product, decide how those files are organised, delivered and named for your shop.', 'addon-boss' ) . '
'; // Organise & deliver: two on/off switches. echo '' . esc_html__( 'Pick how uploaded files are named for you, or build your own naming from the pieces.', 'addon-boss' ) . '
'; $bb_schemes = array( 'keep' => array( 'label' => __( 'Keep the customer\'s filenames', 'addon-boss' ), 'pattern' => '' ), 'order' => array( 'label' => __( 'Order number + original name', 'addon-boss' ), 'pattern' => '{order}-{original}' ), 'order-pr' => array( 'label' => __( 'Order number + product + original name', 'addon-boss' ), 'pattern' => '{order}-{product}-{original}' ), 'order-cf' => array( 'label' => __( 'Order number + customer + field', 'addon-boss' ), 'pattern' => '{order}-{customer}-{field}' ), ); $bb_scheme_now = 'custom'; foreach ( $bb_schemes as $bb_sk => $bb_s ) { if ( $pattern === $bb_s['pattern'] ) { $bb_scheme_now = $bb_sk; break; } } echo ''; // The token builder, behind Build your own. The pattern input stays in // the form while folded, so whatever is shown is exactly what saves. echo '' . esc_html__( 'Build a filename from the pieces below. Click to add each one. Leave it empty to keep the customer\'s own filenames.', 'addon-boss' ) . '
'; echo '' . esc_html__( 'The options panel follows your theme out of the box: a block theme lends it its own colours, everywhere else it keeps calm neutral defaults. Set a colour here only where you want to overrule that, and clear it to hand the choice back.', 'addon-boss' ) . '
'; foreach ( $bb_rows as $bb_key => $bb_row ) { $bb_val = $stored[ $bb_key ] ?? ''; echo '