/var/www/html_fr/wp-content/plugins/yaymail/templates/elements/space.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
<?php
defined
'ABSPATH' ) || exit;
use 
YayMail\Utils\TemplateHelpers;

/**
 * $args includes
 * $element
 * $render_data
 * $is_nested
 */
if ( empty( $args['element'] ) ) {
    return;
}

$element $args['element'];
$data    $element['data'];

$wrapper_style TemplateHelpers::get_style(
    [
        
'background-color' => $data['background_color'],
    ]
);

$space_style TemplateHelpers::get_style(
    [
        
'height'           => TemplateHelpers::get_dimension_value$data['height'] ),
        
'font-size'        => '0',
        
'background-color' => $data['background_color'],
    ]
);

ob_start();
?>
<table class="yaymail-customizer-element-space" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse: collapse; width: 100%;">
    <tbody>
        <tr>
            <td style="<?php echo esc_attr$space_style ); ?>">
                &nbsp;
            </td>
        </tr>
    </tbody>
</table>
<?php
$element_content 
ob_get_clean();

TemplateHelpers::wrap_element_content$element_content$element$wrapper_style );