| @@ -89,15 +89,8 @@ | ||
| 89 | 89 | ], |
| 90 | 90 | ], |
| 91 | 91 | 'type' => 'content', |
| 92 | 92 | ], |
| 93 | - 'responsive_on_mobile' => [ | |
| 94 | - 'value_path' => 'responsive_on_mobile', | |
| 95 | - 'component' => 'Switcher', | |
| 96 | - 'title' => __( 'Responsive on mobile', 'yaymail' ), | |
| 97 | - 'default_value' => isset( $attributes['responsive_on_mobile'] ) ? (bool) $attributes['responsive_on_mobile'] : false, | |
| 98 | - 'type' => 'content', | |
| 99 | - ], | |
| 100 | 93 | 'title_color' => ElementsHelper::get_color( |
| 101 | 94 | $attributes, |
| 102 | 95 | [ |
| 103 | 96 | 'value_path' => 'title_color', |
| @@ -118,15 +111,8 @@ | ||
| 118 | 111 | [ |
| 119 | 112 | 'value_path' => 'border_color', |
| 120 | 113 | 'title' => __( 'Table border color', 'yaymail' ), |
| 121 | 114 | 'default_value' => YAYMAIL_COLOR_BORDER_DEFAULT, |
| 122 | - 'conditions' => [ | |
| 123 | - 'condition_1' => [ | |
| 124 | - 'attribute' => 'layout_type', | |
| 125 | - 'comparison' => '!=', | |
| 126 | - 'value' => 'modern', | |
| 127 | - ], | |
| 128 | - ] | |
| 129 | 115 | ] |
| 130 | 116 | ), |
| 131 | 117 | 'font_family' => ElementsHelper::get_font_family_selector( $attributes ), |
| 132 | 118 | 'billing_title' => ElementsHelper::get_rich_text( |
| @@ -135,39 +121,10 @@ | ||
| 135 | 121 | 'value_path' => 'billing_title', |
| 136 | 122 | 'title' => __( 'Billing title', 'yaymail' ), |
| 137 | 123 | 'default_value' => '<span style="font-size: 20px;font-weight:600;">' . __( 'Billing Address', 'woocommerce' ) . '</span>', |
| 138 | 124 | 'editor_id' => 'bsa_billing_title', |
| 139 | - 'text_color_path' => 'title_color', | |
| 140 | - 'background_color_path' => 'background_color', | |
| 141 | 125 | ] |
| 142 | 126 | ), |
| 143 | - 'billing_content_font_size' => ElementsHelper::get_dimension( | |
| 144 | - $attributes, | |
| 145 | - [ | |
| 146 | - 'value_path' => 'billing_content_font_size', | |
| 147 | - 'title' => __( 'Billing content font size', 'yaymail' ), | |
| 148 | - 'default_value' => '14', | |
| 149 | - 'min' => 8, | |
| 150 | - 'max' => 25, | |
| 151 | - 'unit' => 'px', | |
| 152 | - 'type' => 'style', | |
| 153 | - ] | |
| 154 | - ), | |
| 155 | - 'billing_content_alignment' => ElementsHelper::get_align( | |
| 156 | - $attributes, | |
| 157 | - [ | |
| 158 | - 'value_path' => 'billing_content_alignment', | |
| 159 | - 'title' => __( 'Billing content alignment', 'yaymail' ), | |
| 160 | - 'default_value' => 'left', | |
| 161 | - ] | |
| 162 | - ), | |
| 163 | - 'billing_content_text_format' => ElementsHelper::get_text_format_toggles( | |
| 164 | - $attributes, | |
| 165 | - [ | |
| 166 | - 'value_path' => 'billing_content_text_format', | |
| 167 | - 'title' => __( 'Billing address text formatting', 'yaymail' ), | |
| 168 | - ] | |
| 169 | - ), | |
| 170 | 127 | 'shipping_title' => ElementsHelper::get_rich_text( |
| 171 | 128 | $attributes, |
| 172 | 129 | [ |
| 173 | 130 | 'value_path' => 'shipping_title', |
| @@ -173,37 +130,8 @@ | ||
| 173 | 130 | 'value_path' => 'shipping_title', |
| 174 | 131 | 'title' => __( 'Shipping title', 'yaymail' ), |
| 175 | 132 | 'default_value' => '<span style="font-size: 20px;font-weight:600;">' . __( 'Shipping Address', 'woocommerce' ) . '</span>', |
| 176 | 133 | 'editor_id' => 'bsa_shipping_title', |
| 177 | - 'text_color_path' => 'title_color', | |
| 178 | - 'background_color_path' => 'background_color', | |
| 179 | - ] | |
| 180 | - ), | |
| 181 | - 'shipping_content_font_size' => ElementsHelper::get_dimension( | |
| 182 | - $attributes, | |
| 183 | - [ | |
| 184 | - 'value_path' => 'shipping_content_font_size', | |
| 185 | - 'title' => __( 'Shipping content font size', 'yaymail' ), | |
| 186 | - 'default_value' => '14', | |
| 187 | - 'min' => 8, | |
| 188 | - 'max' => 25, | |
| 189 | - 'unit' => 'px', | |
| 190 | - 'type' => 'style', | |
| 191 | - ] | |
| 192 | - ), | |
| 193 | - 'shipping_content_alignment' => ElementsHelper::get_align( | |
| 194 | - $attributes, | |
| 195 | - [ | |
| 196 | - 'value_path' => 'shipping_content_alignment', | |
| 197 | - 'title' => __( 'Shipping content alignment', 'yaymail' ), | |
| 198 | - 'default_value' => 'left', | |
| 199 | - ] | |
| 200 | - ), | |
| 201 | - 'shipping_content_text_format' => ElementsHelper::get_text_format_toggles( | |
| 202 | - $attributes, | |
| 203 | - [ | |
| 204 | - 'value_path' => 'shipping_content_text_format', | |
| 205 | - 'title' => __( 'Shipping address text formatting', 'yaymail' ), | |
| 206 | 134 | ] |
| 207 | 135 | ), |
| 208 | 136 | 'shipping_address_content' => [ |
| 209 | 137 | 'value_path' => 'shipping_address_content', |