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 / src / Utils / StyleInline.php

StyleInline.php in YayMail – WooCommerce Email Customizer trunk, at src/Utils/StyleInline.php

32 lines 659 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMail\Utils;
4
5 use YayMail\Utils\SingletonTrait;
6
7 /**
8 * StyleInline utility class
9 *
10 * Extends WC_Email to use style_inline function
11 *
12 * @method static StyleInline get_instance()
13 */
14 class StyleInline extends \WC_Email {
15
16 use SingletonTrait;
17
18 /**
19 * Convert CSS to inline styles for email
20 *
21 * @param string $content HTML content to process
22 * @return string HTML content with inline styles
23 */
24 public function convert_style_inline( $content ) {
25 if ( empty( $content ) || ! is_string( $content ) ) {
26 return $content;
27 }
28
29 return $this->style_inline( $content );
30 }
31 }
32