| 1 |
<?php |
| 2 |
namespace YayMail\Elements; |
| 3 |
|
| 4 |
use YayMail\Abstracts\BaseElement; |
| 5 |
use YayMail\Utils\SingletonTrait; |
| 6 |
/** |
| 7 |
* SkeletonDivider Elements |
| 8 |
* This element is only used as a divider on email customizers, it should not be displayed on any test mail/ real mail. |
| 9 |
*/ |
| 10 |
class SkeletonDivider extends BaseElement { |
| 11 |
|
| 12 |
use SingletonTrait; |
| 13 |
|
| 14 |
protected static $type = 'skeleton_divider'; |
| 15 |
|
| 16 |
public $available_email_ids = [ YAYMAIL_ALL_EMAILS ]; |
| 17 |
|
| 18 |
public static function get_data( $attributes = [] ) { |
| 19 |
|
| 20 |
return [ |
| 21 |
'id' => uniqid(), |
| 22 |
'type' => self::$type, |
| 23 |
'name' => __( 'Skeleton Divider', 'yaymail' ), |
| 24 |
'group' => 'hidden', |
| 25 |
'available' => true, |
| 26 |
'position' => -1, |
| 27 |
'data' => [], |
| 28 |
]; |
| 29 |
} |
| 30 |
} |
| 31 |
|