| @@ -16,12 +16,8 @@ | ||
| 16 | 16 | |
| 17 | 17 | protected static $type = 'order_details_download'; |
| 18 | 18 | |
| 19 | 19 | protected function __construct() { |
| 20 | - if ( ! yaymail_is_wc_installed() ) { | |
| 21 | - $this->available_email_ids = []; | |
| 22 | - return; | |
| 23 | - } | |
| 24 | 20 | $this->available_email_ids = [ |
| 25 | 21 | CustomerCompletedOrder::get_instance()->get_id(), |
| 26 | 22 | CustomerProcessingOrder::get_instance()->get_id(), |
| 27 | 23 | ]; |
| @@ -116,10 +112,8 @@ | ||
| 116 | 112 | 'value_path' => 'title', |
| 117 | 113 | 'component' => 'RichTextEditor', |
| 118 | 114 | 'title' => __( 'Title', 'yaymail' ), |
| 119 | 115 | 'default_value' => isset( $attributes['title'] ) ? $attributes['title'] : '<span style="font-size: 20px;font-weight:600;">Downloads</span>', |
| 120 | - 'text_color_path' => 'title_color', | |
| 121 | - 'background_color_path' => 'background_color', | |
| 122 | 116 | 'type' => 'content', |
| 123 | 117 | ], |
| 124 | 118 | 'title_color' => [ |
| 125 | 119 | 'value_path' => 'title_color', |