Remove top padding for ALC & Post block titles
[MAILPOET-1701]
This commit is contained in:
@ -8,7 +8,6 @@ use MailPoet\Util\pQuery\pQuery;
|
||||
class Text {
|
||||
static function render($element) {
|
||||
$html = $element['text'];
|
||||
$padding_top = isset($element['styles']['block']['paddingTop']) ? 'padding-top:' . $element['styles']['block']['paddingTop'] : '';
|
||||
// replace with spaces
|
||||
$html = str_replace(' ', ' ', $html);
|
||||
$html = str_replace('\xc2\xa0', ' ', $html);
|
||||
@ -19,7 +18,7 @@ class Text {
|
||||
$html = self::removeLastLineBreak($html);
|
||||
$template = '
|
||||
<tr>
|
||||
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;' . $padding_top .'">
|
||||
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;">
|
||||
' . $html . '
|
||||
</td>
|
||||
</tr>';
|
||||
|
Reference in New Issue
Block a user