Does not remove padding from the last element in a column

This commit is contained in:
Vlad
2017-07-19 18:50:10 -04:00
committed by pavel-mailpoet
parent 7c30192a03
commit 0865995d21
3 changed files with 0 additions and 30 deletions

View File

@@ -11,7 +11,6 @@ class Renderer {
$this->getOneColumnTemplate($styles, $class) :
$this->getMultipleColumnsTemplate($styles, $width, $alignment, $class);
$result = array_map(function($content) use ($template) {
$content = Renderer::removePaddingFromLastElement($content);
return $template['content_start'] . $content . $template['content_end'];
}, $columns_data);
$result = implode('', $result);
@@ -79,10 +78,6 @@ class Renderer {
return $template;
}
function removePaddingFromLastElement($element) {
return preg_replace('/mailpoet_padded_bottom(?!.*mailpoet_padded_bottom)/ism', '', $element);
}
function getBackgroundColor($styles) {
if(!isset($styles['backgroundColor'])) return false;
$background_color = $styles['backgroundColor'];