| 1 |
<div class="acym__subscription__form__lists"> |
| 2 |
<?php |
| 3 |
foreach ($form->settings['lists']['displayed'] as $listId) { |
| 4 |
if (!empty($form->settings['lists']['automatic_subscribe']) && in_array($listId, $form->settings['lists']['automatic_subscribe'])) continue; |
| 5 |
$checked = !empty($form->settings['lists']['checked']) && in_array($listId, $form->settings['lists']['checked']) ? 'checked' : ''; |
| 6 |
echo '<label><input type="checkbox" value="'.$listId.'" name="subscription[]" '.$checked.'>'.$form->lists[$listId].'</label>'; |
| 7 |
} |
| 8 |
|
| 9 |
$hiddenLists = empty($form->settings['lists']['automatic_subscribe']) ? '' : implode(',', $form->settings['lists']['automatic_subscribe']); |
| 10 |
echo '<input type="hidden" name="hiddenlists" value="'.$hiddenLists.'">'; |
| 11 |
?> |
| 12 |
<style> |
| 13 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__fields .acym__subscription__form__lists{ |
| 14 |
display: inline-block; |
| 15 |
width: auto; |
| 16 |
margin: 0 20px; |
| 17 |
text-align: left; |
| 18 |
} |
| 19 |
|
| 20 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__fields .acym__subscription__form__lists label{ |
| 21 |
display: inline-block; |
| 22 |
margin-right: 10px; |
| 23 |
width: auto; |
| 24 |
} |
| 25 |
|
| 26 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__fields .acym__subscription__form__lists input[type="checkbox"]{ |
| 27 |
margin-top: 0 !important; |
| 28 |
margin-right: 5px; |
| 29 |
} |
| 30 |
</style> |
| 31 |
</div> |
| 32 |
|