| @@ -99,8 +99,15 @@ | ||
| 99 | 99 | 'component' => 'Color', |
| 100 | 100 | 'title' => __( 'Table border color', 'yaymail' ), |
| 101 | 101 | 'default_value' => isset( $attributes['border_color'] ) ? $attributes['border_color'] : YAYMAIL_COLOR_BORDER_DEFAULT, |
| 102 | 102 | 'type' => 'style', |
| 103 | + 'conditions' => [ | |
| 104 | + 'condition_1' => [ | |
| 105 | + 'attribute' => 'layout_type', | |
| 106 | + 'comparison' => '!=', | |
| 107 | + 'value' => 'modern', | |
| 108 | + ], | |
| 109 | + ] | |
| 103 | 110 | ], |
| 104 | 111 | 'font_family' => [ |
| 105 | 112 | 'value_path' => 'font_family', |
| 106 | 113 | 'component' => 'FontFamilySelector', |
| @@ -112,8 +119,10 @@ | ||
| 112 | 119 | 'value_path' => 'title', |
| 113 | 120 | 'component' => 'RichTextEditor', |
| 114 | 121 | 'title' => __( 'Shipping title', 'yaymail' ), |
| 115 | 122 | 'default_value' => isset( $attributes['title'] ) ? $attributes['title'] : ( '<span style="font-size: 20px;font-weight:600;">' . __( 'Shipping Address', 'woocommerce' ) . '</span>' ), |
| 123 | + 'text_color_path' => 'title_color', | |
| 124 | + 'background_color_path' => 'background_color', | |
| 116 | 125 | 'type' => 'content', |
| 117 | 126 | ], |
| 118 | 127 | 'shipping_content_font_size' => ElementsHelper::get_dimension( |
| 119 | 128 | $attributes, |