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