<?php namespace MailPoet\Newsletter\Renderer\Blocks; if (!defined('ABSPATH')) exit; use MailPoet\Newsletter\Renderer\EscapeHelper as EHelper; class Spacer { public function render($element) { $height = (int)$element['styles']['block']['height']; $backgroundColor = EHelper::escapeHtmlAttr($element['styles']['block']['backgroundColor']); $template = ' <tr> <td class="mailpoet_spacer" ' . (($backgroundColor !== 'transparent') ? 'bgcolor="' . $backgroundColor . '" ' : '') . 'height="' . $height . '" valign="top"></td> </tr>'; return $template; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AbandonedCartContent.php | File | 2.25 KB | 0644 |
|
AutomatedLatestContentBlock.php | File | 2.12 KB | 0644 |
|
Button.php | File | 3.3 KB | 0644 |
|
Divider.php | File | 1.59 KB | 0644 |
|
Footer.php | File | 1.83 KB | 0644 |
|
Header.php | File | 1.83 KB | 0644 |
|
Image.php | File | 2.91 KB | 0644 |
|
Placeholder.php | File | 676 B | 0644 |
|
Renderer.php | File | 4 KB | 0644 |
|
Social.php | File | 1.37 KB | 0644 |
|
Spacer.php | File | 607 B | 0644 |
|
Text.php | File | 6.7 KB | 0644 |
|
index.php | File | 0 B | 0644 |
|