PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / src / TemplateLibrary / Templates / Processing / Classic.php

Classic.php in YayMail – WooCommerce Email Customizer trunk, at src/TemplateLibrary/Templates/Processing/Classic.php

150 lines 6.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMail\TemplateLibrary\Templates\Processing;
4
5 use YayMail\Abstracts\BaseTemplate;
6 use YayMail\Elements\BillingShippingAddress;
7 use YayMail\Elements\Footer;
8 use YayMail\Elements\Heading;
9 use YayMail\Elements\Logo;
10 use YayMail\Elements\OrderDetails;
11 use YayMail\Elements\OrderDetailsDownload;
12 use YayMail\Elements\Text;
13 use YayMail\Utils\SingletonTrait;
14
15 /**
16 * Classic template for Processing Order email.
17 */
18 class Classic extends BaseTemplate {
19 use SingletonTrait;
20
21 public function __construct() {
22 parent::__construct();
23 $this->id = 'processing_order_classic';
24 $this->email_type = 'customer_processing_order';
25 $this->name = 'Classic';
26 $this->description = 'Clean layout with plenty of whitespace';
27 $this->elements = [
28 Logo::get_object_data(
29 [
30 'align' => 'center',
31 'padding' => [
32 'top' => '15',
33 'right' => '50',
34 'bottom' => '15',
35 'left' => '50',
36 ],
37 'src' => YAYMAIL_PLUGIN_URL . 'assets/images/woocommerce-logo.png',
38 'width' => '172',
39 'background_color' => '#f9f9f9',
40 'url' => '#',
41 'alt' => '',
42 ]
43 ),
44 Heading::get_object_data(
45 [
46 'global_header' => '',
47 'padding' => [
48 'top' => '40',
49 'right' => '50',
50 'bottom' => '40',
51 'left' => '50',
52 ],
53 'background_color' => '#873EFF',
54 'text_color' => '#ffffff',
55 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
56 'rich_text' => '<h1 style="font-size:30px;font-weight:300;line-height:normal;margin:0px;color:inherit;">Thank you for your order </h1>',
57 ]
58 ),
59 Text::get_object_data(
60 [
61 'padding' => [
62 'top' => '15',
63 'right' => '50',
64 'bottom' => '15',
65 'left' => '50',
66 ],
67 'background_color' => '#fff',
68 'text_color' => '#636363',
69 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
70 'rich_text' => '<p><span>Hi [yaymail_billing_first_name],<br><br>Just to let you know &mdash; we&#039;ve received your order #[yaymail_order_number], and it is now being processed:</span></p>',
71 ]
72 ),
73 OrderDetails::get_object_data(
74 [
75 'padding' => [
76 'top' => '15',
77 'right' => '50',
78 'bottom' => '15',
79 'left' => '50',
80 ],
81 'background_color' => '#fff',
82 'title_color' => '#873EFF',
83 'text_color' => '#636363',
84 'border_color' => '#e5e5e5',
85 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
86 'rich_text' => '[yaymail_order_details]',
87 'payment_instructions' => '[yaymail_payment_instructions]',
88 'title' => '<span style="font-size: 20px;">Order #[yaymail_order_number] <b>([yaymail_order_date])</b></span>',
89 'product_title' => 'Product',
90 'cost_title' => 'Cost',
91 'quantity_title' => 'Quantity',
92 'price_title' => 'Price',
93 'cart_subtotal_title' => 'Subtotal:',
94 'payment_method_title' => 'Payment method:',
95 'order_total_title' => 'Total:',
96 'order_note_title' => 'Note:',
97 'shipping_title' => 'Shipping:',
98 'discount_title' => 'Discount:',
99 ]
100 ),
101 BillingShippingAddress::get_object_data(
102 [
103 'padding' => [
104 'top' => '15',
105 'right' => '50',
106 'bottom' => '15',
107 'left' => '50',
108 ],
109 'background_color' => '#fff',
110 'title_color' => '#873EFF',
111 'text_color' => '#636363',
112 'border_color' => '#e5e5e5',
113 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
114 'billing_title' => '<span style="font-size: 20px;font-weight:600;">Billing Address</span>',
115 'shipping_title' => '<span style="font-size: 20px;font-weight:600;">Shipping Address</span>',
116 'shipping_address_content' => '[yaymail_shipping_address]',
117 'billing_address_content' => '[yaymail_billing_address]',
118 ]
119 ),
120 Text::get_object_data(
121 [
122 'padding' => [
123 'top' => '0',
124 'right' => '50',
125 'bottom' => '38',
126 'left' => '50',
127 ],
128 'background_color' => '#fff',
129 'text_color' => '#636363',
130 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
131 'rich_text' => '<p><span>Thanks for using [yaymail_site_url]!</span></p>',
132 ]
133 ),
134 Footer::get_object_data(
135 [
136 'padding' => [
137 'top' => '15',
138 'right' => '50',
139 'bottom' => '15',
140 'left' => '50',
141 ],
142 'background_color' => '#f9f9f9',
143 'text_color' => '#8a8a8a',
144 'font_family' => 'Helvetica,Roboto,Arial,sans-serif',
145 'rich_text' => '<p style="font-size: 14px;margin: 0px 0px 16px; text-align: center;">[yaymail_site_name]&nbsp;- Built with <a style="color: #873EFF; font-weight: normal; text-decoration: underline;" href="https://woocommerce.com" target="_blank" rel="noopener">WooCommerce</a></p>',
146 ]
147 ),
148 ];
149 }
150 }