| @@ -99,15 +99,8 @@ | ||
| 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 | - ] | |
| 110 | 103 | ], |
| 111 | 104 | 'font_family' => [ |
| 112 | 105 | 'value_path' => 'font_family', |
| 113 | 106 | 'component' => 'FontFamilySelector', |
| @@ -119,39 +112,10 @@ | ||
| 119 | 112 | 'value_path' => 'title', |
| 120 | 113 | 'component' => 'RichTextEditor', |
| 121 | 114 | 'title' => __( 'Shipping title', 'yaymail' ), |
| 122 | 115 | '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', | |
| 125 | 116 | 'type' => 'content', |
| 126 | 117 | ], |
| 127 | - 'shipping_content_font_size' => ElementsHelper::get_dimension( | |
| 128 | - $attributes, | |
| 129 | - [ | |
| 130 | - 'value_path' => 'shipping_content_font_size', | |
| 131 | - 'title' => __( 'Shipping content font size', 'yaymail' ), | |
| 132 | - 'default_value' => '14', | |
| 133 | - 'min' => 8, | |
| 134 | - 'max' => 25, | |
| 135 | - 'unit' => 'px', | |
| 136 | - 'type' => 'style', | |
| 137 | - ] | |
| 138 | - ), | |
| 139 | - 'shipping_content_alignment' => ElementsHelper::get_align( | |
| 140 | - $attributes, | |
| 141 | - [ | |
| 142 | - 'value_path' => 'shipping_content_alignment', | |
| 143 | - 'title' => __( 'Shipping content alignment', 'yaymail' ), | |
| 144 | - 'default_value' => 'left', | |
| 145 | - ] | |
| 146 | - ), | |
| 147 | - 'shipping_content_text_format' => ElementsHelper::get_text_format_toggles( | |
| 148 | - $attributes, | |
| 149 | - [ | |
| 150 | - 'value_path' => 'shipping_content_text_format', | |
| 151 | - 'title' => __( 'Shipping address text formatting', 'yaymail' ), | |
| 152 | - ] | |
| 153 | - ), | |
| 154 | 118 | 'rich_text' => [ |
| 155 | 119 | 'value_path' => 'rich_text', |
| 156 | 120 | 'component' => '', |
| 157 | 121 | 'title' => __( 'Content', 'yaymail' ), |