| 1 |
<?php |
| 2 |
$termsURL = acym_getArticleURL( |
| 3 |
$form->settings['termspolicy']['termscond'], |
| 4 |
0, |
| 5 |
'ACYM_TERMS_CONDITIONS' |
| 6 |
); |
| 7 |
$privacyURL = acym_getArticleURL( |
| 8 |
$form->settings['termspolicy']['privacy'], |
| 9 |
0, |
| 10 |
'ACYM_PRIVACY_POLICY' |
| 11 |
); |
| 12 |
|
| 13 |
if (empty($termsURL) && empty($privacyURL)) { |
| 14 |
$termslink = ''; |
| 15 |
} elseif (empty($privacyURL)) { |
| 16 |
$termslink = acym_translationSprintf('ACYM_I_AGREE_TERMS', $termsURL); |
| 17 |
} elseif (empty($termsURL)) { |
| 18 |
$termslink = acym_translationSprintf('ACYM_I_AGREE_PRIVACY', $privacyURL); |
| 19 |
} else { |
| 20 |
$termslink = acym_translationSprintf('ACYM_I_AGREE_BOTH', $termsURL, $privacyURL); |
| 21 |
} |
| 22 |
|
| 23 |
if (!empty($termslink)) { |
| 24 |
echo '<div class="acym__subscription__form__termscond">'; |
| 25 |
echo '<div class="onefield fieldacyterms" id="field_terms_'.$form->form_tag_name.'">'; |
| 26 |
echo '<label for="mailingdata_terms_'.$form->form_tag_name.'">'; |
| 27 |
echo '<input id="mailingdata_terms_'.$form->form_tag_name.'" class="checkbox" type="checkbox" name="terms" title="'.acym_translation('ACYM_TERMS_CONDITIONS').'"/> '.$termslink; |
| 28 |
echo '</label>'; |
| 29 |
echo '</div>'; |
| 30 |
?> |
| 31 |
|
| 32 |
<style> |
| 33 |
.acym__subscription__form__header .acym__subscription__form__termscond, |
| 34 |
.acym__subscription__form__footer .acym__subscription__form__termscond{ |
| 35 |
max-width: 250px; |
| 36 |
} |
| 37 |
|
| 38 |
<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__fields .acym__subscription__form__termscond input[type="checkbox"]{ |
| 39 |
margin-top: 0 !important; |
| 40 |
} |
| 41 |
</style> |
| 42 |
</div> |
| 43 |
<?php } ?> |
| 44 |
|