Custom fields (in Form & Edit subscriber)

This commit is contained in:
Jonathan Labreuille
2016-01-21 17:27:34 +01:00
parent daec56191f
commit ad925de801
13 changed files with 664 additions and 323 deletions

View File

@ -13,7 +13,12 @@ class Checkbox extends Base {
$html .= static::renderLabel($block);
foreach($block['params']['values'] as $option) {
$options = (!empty($block['params']['values'])
? $block['params']['values']
: array()
);
foreach($options as $option) {
$html .= '<label class="mailpoet_checkbox_label">';
$html .= '<input type="checkbox" class="mailpoet_checkbox" ';