PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
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 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / templates / elements / html.php

html.php in YayMail – WooCommerce Email Customizer trunk, at templates/elements/html.php

39 lines 861 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 use YayMail\Utils\TemplateHelpers;
5
6 /**
7 * $args includes
8 * $element
9 * $render_data
10 * $is_nested
11 */
12 if ( empty( $args['element'] ) ) {
13 return;
14 }
15
16 $element = $args['element'];
17 $data = $element['data'];
18
19 $wrapper_style = TemplateHelpers::get_style(
20 [
21 'background-color' => '#fff',
22 'color' => '#636363',
23 'padding' => '15px 50px',
24 'font-family' => 'Helvetica, Roboto, Arial, sans-serif',
25 'font-size' => '13px',
26 ]
27 );
28
29 if ( ! empty( $data['rich_text'] ) ) {
30 ob_start();
31 ?>
32 <div style="text-align: initial;"><?php echo wp_kses_post( do_shortcode( $data['rich_text'] ) ); ?></div>
33 <?php
34 $element_content = ob_get_clean();
35
36 TemplateHelpers::wrap_element_content( $element_content, $element, $wrapper_style );
37 }
38 ?>
39