PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.4
YayMail – WooCommerce Email Customizer v4.3.4
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 / Elements / Column.php

Column.php in YayMail – WooCommerce Email Customizer 4.3.4, at src/Elements/Column.php

33 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail\Elements;
3
4 use YayMail\Abstracts\BaseElement;
5 use YayMail\Utils\SingletonTrait;
6
7 /**
8 * Column Elements
9 */
10 class Column extends BaseElement {
11
12 use SingletonTrait;
13
14 protected static $type = 'column';
15
16 public $available_email_ids = [ YAYMAIL_ALL_EMAILS ];
17
18 public static function get_data( $width = 5, $attributes = [] ) {
19 return [
20 'id' => uniqid(),
21 'type' => self::$type,
22 'group' => 'hidden',
23 // only appears inside column_layout
24 'available' => true,
25 'children' => isset( $attributes['children'] ) ? $attributes['children'] : [],
26
27 'data' => [
28 'width' => isset( $attributes['width'] ) ? $attributes['width'] : $width,
29 ],
30 ];
31 }
32 }
33