/var/www/html_fr/wp-content/plugins/yaymail/src/Emails/GlobalHeaderFooter.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php

namespace YayMail\Emails;

use 
YayMail\Abstracts\BaseEmail;
use 
YayMail\Elements\ElementsLoader;
use 
YayMail\Utils\SingletonTrait;

/**
 * GlobalHeaderFooter Class
 *
 * This is an YayMail element, not an email template. But its customizer page (for editing, saving, etc...) shares the same logic as email template customizer.
 *
 * @method static GlobalHeaderFooter get_instance()
 */
class GlobalHeaderFooter extends BaseEmail {
    use 
SingletonTrait;

    public 
$email_types = [ YAYMAIL_GLOBAL_HEADER_FOOTER_ID ];

    protected function 
__construct() {
        
$this->id        'yaymail_global_header_footer';
        
$this->title     __'Global header footer''yaymail' );
        
$this->recipient __'Global header footer recipient placeholder''yaymail' );
    }

    public function 
get_default_elements() {
        
$default_elements ElementsLoader::load_elements(
            [
                [
                    
'type'       => 'Heading',
                    
'attributes' => [
                        
'rich_text' => __'Email Heading''yaymail' ),
                    ],
                ],
                [
                    
'type' => 'SkeletonDivider',
                ],
                [
                    
'type' => 'Footer',
                ],
            ]
        );

        return 
$default_elements;
    }

    public function 
get_all_elements() {
        return 
parent::get_elements();
    }

    public function 
get_template_file$located$template_name$args ) {
    }

    public function 
get_template_path() {
    }
}