PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.3
YayMail – WooCommerce Email Customizer v4.3.3
4.4.7 4.4.6 4.4.5 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 All 58 releases
← All changes | templates/elements/column-layout.php +25 -1 4.4.6 → 4.3.3 View file →
@@ -68,10 +68,30 @@
68 68 ]
69 69 );
70 70 }//end if
71 71
72 +if ( ! empty( $element['children'] ) ) {
73 + $inner_styles = '';
74 + if ( 'column_layout' === $element['type'] ) {
75 +
76 + $inner_border_radius = $data['inner_border_radius'];
77 + $inner_background_color = $data['inner_background_color'];
78 +
79 + $inner_styles = TemplateHelpers::get_style(
80 + [
81 + 'border-radius' => TemplateHelpers::get_border_radius_value( $inner_border_radius, 'px' ),
82 + 'overflow' => 'hidden',
83 + 'background-color' => $inner_background_color,
84 + ]
85 + );
86 + }
87 +}
88 +
72 89 ob_start();
73 -?>
90 +if ( 'column_layout' === $element['type'] ) : ?>
91 +<div class="yaymail-inner-customizer-element-column" style="<?php echo esc_attr( $inner_styles ); ?>">
92 +<?php endif; ?>
93 +
74 94 <table style="width: 100%; background-color: inherit;" cellpadding="0" cellspacing="0">
75 95 <tbody>
76 96 <?php
77 97 ElementsLoader::render_elements(
@@ -80,8 +100,12 @@
80 100 );
81 101 ?>
82 102 </tbody>
83 103 </table>
104 +
105 +<?php if ( 'column_layout' === $element['type'] ) : ?>
106 +</div>
107 +<?php endif; ?>
84 108
85 109 <?php
86 110 $element_content = ob_get_clean();
87 111