PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.2.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.2.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Partial / forms / termspolicy.php

termspolicy.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.2.2, at back/Partial/forms/termspolicy.php

44 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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