Files
piratepoet/lib/Newsletter/Renderer/Blocks/Social.php
Vlad 3c77e5d25e - Removes dynamic line-height based on column width
- Updates logic behind removing last element bottom padding
- Properly sets font size for H1-4 tags, header, footer and text
2016-03-30 20:09:06 -04:00

23 lines
857 B
PHP

<?php
namespace MailPoet\Newsletter\Renderer\Blocks;
class Social {
static function render($element) {
$icons_block = '';
if(is_array($element['icons'])) {
foreach($element['icons'] as $index => $icon) {
$icons_block .= '
<a href="' . $icon['link'] . '" style="text-decoration:none!important;">
<img src="' . $icon['image'] . '" width="' . (int) $icon['width'] . '" height="' . (int) $icon['height'] . '" style="width:' . $icon['width'] . ';height:' . $icon['width'] . ';-ms-interpolation-mode:bicubic;border:0;display:inline;outline:none;" alt="' . $icon['iconType'] . '">
</a>';
}
$template = '
<tr>
<td class="mailpoet_padded_side maipoet_padded_bottom" valign="top" align="center">
' . $icons_block . '
</td>
</tr>';
return $template;
}
}
}