# acymailing/10.10.2/back/Partial/forms/button.php

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

- Page: https://pluginprobe.com/plugins/acymailing/10.10.2/code/back/Partial/forms/button.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.10.2/raw/back/Partial/forms/button.php
- Modified: 2025-11-17T10:05:56+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.10.2/code/back/Partial/forms/button.php#L10-L20`.

```php
<div class="acym__subscription__form__button">
    <?php
    if (empty($form->settings['button']['text'])) {
        $form->settings['button']['text'] = 'ACYM_SUBSCRIBE';
    }

    if (acym_isMultilingual()) {
        $defaultLanguage = $this->config->get('multilingual_default');
        $currentLanguageTag = acym_getLanguageTag();

        if (!empty($form->settings['button']['lang'][$currentLanguageTag])) {
            $form->settings['button']['text'] = $form->settings['button']['lang'][$currentLanguageTag];
        } elseif (!empty($form->settings['button']['lang'][$defaultLanguage])) {
            $form->settings['button']['text'] = $form->settings['button']['lang'][$defaultLanguage];
        }
    }
    ?>
	<button type="submit">
        <?php echo acym_escape(acym_translation($form->settings['button']['text'])); ?>
	</button>
	<style>
		<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button{
			display: flex;
			justify-content: center;
			align-items: center
		}

		<?php echo '#acym_fulldiv_'.$form->form_tag_name.' '; ?>.acym__subscription__form__button button{
			background-color: <?php echo $form->settings['button']['background_color']; ?>;
			color: <?php echo $form->settings['button']['text_color']; ?>;
			border-width: <?php echo $form->settings['button']['border_size']; ?>px;
			border-style: <?php echo $form->settings['button']['border_type']; ?>;
			border-color: <?php echo $form->settings['button']['border_color']; ?>;
			border-radius: <?php echo $form->settings['button']['border_radius']; ?>px;
			padding: <?php echo $form->settings['button']['size']['height']; ?>px <?php echo $form->settings['button']['size']['width']; ?>px;
		}
	</style>
</div>

```
