# acymailing/10.1.4/back/Partial/forms/termspolicy.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.1.4. 44 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.1.4/code/back/Partial/forms/termspolicy.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.1.4/raw/back/Partial/forms/termspolicy.php
- Modified: 2025-01-27T11:09:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/10.1.4/code/back/Partial/forms/termspolicy.php#L10-L20`.

```php
<?php
$termsURL = acym_getArticleURL(
    $form->settings['termspolicy']['termscond'],
    0,
    'ACYM_TERMS_CONDITIONS'
);
$privacyURL = acym_getArticleURL(
    $form->settings['termspolicy']['privacy'],
    0,
    'ACYM_PRIVACY_POLICY'
);

if (empty($termsURL) && empty($privacyURL)) {
    $termslink = '';
} elseif (empty($privacyURL)) {
    $termslink = acym_translationSprintf('ACYM_I_AGREE_TERMS', $termsURL);
} elseif (empty($termsURL)) {
    $termslink = acym_translationSprintf('ACYM_I_AGREE_PRIVACY', $privacyURL);
} else {
    $termslink = acym_translationSprintf('ACYM_I_AGREE_BOTH', $termsURL, $privacyURL);
}

if (!empty($termslink)) {
    echo '<div class="acym__subscription__form__termscond">';
    echo '<div class="onefield fieldacyterms" id="field_terms_'.$form->form_tag_name.'">';
    echo '<label for="mailingdata_terms_'.$form->form_tag_name.'">';
    echo '<input id="mailingdata_terms_'.$form->form_tag_name.'" class="checkbox" type="checkbox" name="terms" title="'.acym_translation('ACYM_TERMS_CONDITIONS').'"/> '.$termslink;
    echo '</label>';
    echo '</div>';
    ?>

	<style>
		.acym__subscription__form__header .acym__subscription__form__termscond,
		.acym__subscription__form__footer .acym__subscription__form__termscond{
			max-width: 250px;
		}

		<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__fields .acym__subscription__form__termscond input[type="checkbox"]{
			margin-top: 0 !important;
		}
	</style>
	</div>
<?php } ?>

```
