/var/www/html_us/wp-content/plugins/yaymail/includes/Templates/Elements/YayMail/TextList.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
switch ( $attrs['numberCol'] ) {
    case 
'one':
        
$width '100%';
        break;
    case 
'two':
        
$width '50%';
        break;
    case 
'three':
        
$width '33.333%';
        break;
    default:
        break;
}
?>
<table
width="<?php esc_attr_e$general_attrs['tableWidth'], 'woocommerce' ); ?>"
cellspacing="0"
cellpadding="0"
border="0"
align="center"
style="display: table;
<?php echo esc_attr'width: ' $general_attrs['tableWidth'] ); ?>;
<?php echo esc_attr'background-color: ' $attrs['backgroundColor'] ); ?>;
<?php echo ! $isInColumns esc_attr'min-width:' $general_attrs['tableWidth'] . 'px' ) : esc_attr'width: 100%' ); ?>
"
class="web-main-row nta-web-text-list-wrap"
id="web<?php echo esc_attr$id ); ?>"
>
<tbody>
    <tr>
    <td 
        valign="top"
        style="<?php echo esc_attr'width: ' $width ); ?>"
    >
        <?php
            $col 
1;
            
ob_start();
            require 
YAYMAIL_PLUGIN_PATH 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
            
$colEl ob_get_contents();
            
ob_end_clean();
            
$colEl do_shortcode$colEl );
            echo 
wp_kses_post$colEl );
        
?>
    </td>
    <?php if ( 'two' === $attrs['numberCol'] || 'three' === $attrs['numberCol'] ) : ?>
    <td 

        valign="top"
        style="<?php echo esc_attr'width: ' $width ); ?>"
    >
        <?php
            $col 
2;
            
ob_start();
            include 
YAYMAIL_PLUGIN_PATH 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
            
$colEl ob_get_contents();
            
ob_end_clean();
            
$colEl do_shortcode$colEl );
            echo 
wp_kses_post$colEl );
        
?>
    </td>
    <?php endif; ?>
    <?php if ( 'three' === $attrs['numberCol'] ) : ?>
    <td
        valign="top"
        style="<?php echo esc_attr'width: ' $width ); ?>"
    >
        <?php
            $col 
3;
            
ob_start();
            include 
YAYMAIL_PLUGIN_PATH 'includes/Templates/Elements/YayMail/TextList/ColEl.php';
            
$colEl ob_get_contents();
            
ob_end_clean();
            
$colEl do_shortcode$colEl );
            echo 
wp_kses_post$colEl );
        
?>
    </td>
    <?php endif; ?>
    </tr>
</tbody>
</table>