| @@ -48,10 +48,9 @@ | ||
| 48 | 48 | ), |
| 49 | 49 | array( |
| 50 | 50 | 'title' => __( 'Badge text template', 'tier-pricing-table' ), |
| 51 | 51 | 'id' => Settings::SETTINGS_PREFIX . 'you_save_template', |
| 52 | - 'default' => __( 'You save {tp_ys_total_price} ({tp_ys_percentage_discount}%)', | |
| 53 | - 'tier-pricing-table' ), | |
| 52 | + 'default' => __( 'You save {tp_ys_total_price}', 'tier-pricing-table' ), | |
| 54 | 53 | 'placeholders' => array( |
| 55 | 54 | 'tp_ys_price', |
| 56 | 55 | 'tp_ys_total_price', |
| 57 | 56 | 'tp_ys_percentage_discount', |
| @@ -58,13 +57,36 @@ | ||
| 58 | 57 | ), |
| 59 | 58 | 'type' => TPTTextTemplate::FIELD_TYPE, |
| 60 | 59 | ), |
| 61 | 60 | array( |
| 62 | - 'title' => __( 'Badge text color', 'tier-pricing-table' ), | |
| 61 | + 'title' => __( 'Badge style', 'tier-pricing-table' ), | |
| 62 | + 'id' => Settings::SETTINGS_PREFIX . 'you_save_style', | |
| 63 | + 'type' => 'select', | |
| 64 | + 'default' => 'text', | |
| 65 | + 'options' => array( | |
| 66 | + 'text' => __( 'Text', 'tier-pricing-table' ), | |
| 67 | + 'pill' => __( 'Pill', 'tier-pricing-table' ), | |
| 68 | + 'outline' => __( 'Outlined', 'tier-pricing-table' ), | |
| 69 | + ), | |
| 70 | + ), | |
| 71 | + array( | |
| 72 | + 'title' => __( 'Badge position', 'tier-pricing-table' ), | |
| 73 | + 'id' => Settings::SETTINGS_PREFIX . 'you_save_position', | |
| 74 | + 'type' => 'select', | |
| 75 | + 'default' => 'price', | |
| 76 | + 'options' => array( | |
| 77 | + 'price' => __( 'Under the price', 'tier-pricing-table' ), | |
| 78 | + 'before_add_to_cart' => __( 'Above the add-to-cart button', 'tier-pricing-table' ), | |
| 79 | + 'after_table' => __( 'After the pricing layout', 'tier-pricing-table' ), | |
| 80 | + ), | |
| 81 | + ), | |
| 82 | + array( | |
| 83 | + 'title' => __( 'Badge colour', 'tier-pricing-table' ), | |
| 63 | 84 | 'id' => Settings::SETTINGS_PREFIX . 'you_save_text_color', |
| 64 | 85 | 'type' => 'color', |
| 65 | 86 | 'css' => 'width:6em;', |
| 66 | - 'default' => '#FF0000', | |
| 87 | + 'default' => '', | |
| 88 | + 'desc' => __( 'Leave empty to follow the active tier colour.', 'tier-pricing-table' ), | |
| 67 | 89 | ), |
| 68 | 90 | ); |
| 69 | 91 | } |
| 70 | 92 | } |