Refactors Newsletters as per @badshark's comments

This commit is contained in:
MrCasual
2015-09-21 13:18:01 -04:00
parent 692e69d567
commit 01b5416882
23 changed files with 462 additions and 413 deletions

View File

@ -0,0 +1,25 @@
<?php namespace MailPoet\Newsletter\Renderer\Blocks;
class Divider {
static function render($element) {
$template = '
<tr>
<td class="mailpoet_col mailpoet_divider mailpoet_padded"
style="background-color: ' . $element['styles']['block']['backgroundColor'] . '; padding: ' . $element['styles']['block']['padding'] . ' 0;"
valign="top">
<table width="100%">
<tr>
<td style="border-top-width: ' . $element['styles']['block']['borderWidth'] . ';
border-top-style: ' . $element['styles']['block']['borderStyle'] . ';
border-top-color: ' . $element['styles']['block']['borderColor'] . ';">
</td>
</tr>
</table>
</td>
</tr>';
return $template;
}
}