| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm"> |
| 6 |
<div id="acym__subform__new" class="cell grid-x margin-y align-center acym__content margin-top-2 acym__selection"> |
| 7 |
<?php |
| 8 |
$class = ''; |
| 9 |
if (!acym_level(ACYM_ENTERPRISE)) { |
| 10 |
$pricingPage = ACYM_ACYMAILING_WEBSITE.'pricing?utm_source=acymailing_plugin&utm_medium=new_form&utm_campaign=upgrade_from_plugin'; |
| 11 |
include acym_getPartial('modal', 'promotion_popup'); |
| 12 |
$class = 'acym__selection__card__promotion'; |
| 13 |
} ?> |
| 14 |
|
| 15 |
<h1 class="margin-top-1 margin-bottom-2 acym__title "><?php echo esc_html(acym_translation('ACYM_WHICH_KIND_OF_SUB_FORM_CREATE')); ?></h1> |
| 16 |
<div class="cell grid-x grid-margin-x align-center margin-bottom-3 margin-top-3"> |
| 17 |
<div class="acym__campaign__selection__card acym__selection__scroll cell large-2 medium-4 text-center margin-bottom-1" |
| 18 |
acym-data-link="<?php echo esc_url($data['widget_link']); ?>"> |
| 19 |
<i class="acymicon-puzzle-piece acym__selection__card__icon"></i> |
| 20 |
<h1 class="acym__selection__card__title"><?php echo esc_html( |
| 21 |
ACYM_CMS === 'joomla' ? acym_translation('ACYM_MODULE') : acym_translation('ACYM_WIDGET') |
| 22 |
); ?></h1> |
| 23 |
<p class="acym__selection__card__description"> |
| 24 |
<?php echo esc_html(acym_translation(ACYM_CMS === 'joomla' ? 'ACYM_MODULE_SUBFORM_DESCRIPTION' : 'ACYM_WIDGET_SUBFORM_DESCRIPTION')); ?> |
| 25 |
</p> |
| 26 |
</div> |
| 27 |
<?php if (ACYM_CMS === 'wordpress') { ?> |
| 28 |
<div class="acym__campaign__selection__card acym__selection__scroll acym__selection__select-card cell large-2 medium-4 text-center margin-bottom-1" |
| 29 |
acym-data-link="<?php echo esc_url($data['shortcode_link']); ?>"> |
| 30 |
<i class="acymicon-code acym__selection__card__icon"></i> |
| 31 |
<h1 class="acym__selection__card__title"><?php echo esc_html(acym_translation('ACYM_SHORTCODE')); ?></h1> |
| 32 |
<p class="acym__selection__card__description"><?php echo esc_html(acym_translation('ACYM_SHORTCODE_SUBFORM_DESC')); ?></p> |
| 33 |
</div> |
| 34 |
<?php } ?> |
| 35 |
<div class="acym__campaign__selection__card acym__selection__scroll <?php echo esc_attr($class); ?> cell large-2 medium-4 text-center margin-bottom-1" |
| 36 |
acym-data-link="<?php echo esc_url($data['popup_link']); ?>"> |
| 37 |
|
| 38 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 39 |
<div class="acym__selection__card__lock"> |
| 40 |
<i class="acymicon-lock"></i> |
| 41 |
</div> |
| 42 |
<?php } ?> |
| 43 |
|
| 44 |
<i class="acymicon-window acym__selection__card__icon"></i> |
| 45 |
<h1 class="acym__selection__card__title"><?php echo esc_html(acym_translation('ACYM_POPUP')); ?></h1> |
| 46 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 47 |
<p class="acym__selection__card__promotion__text"><?php echo esc_html(acym_translationSprintf('ACYM_UP_TO_X_MORE_SUBSCRIBERS', '33%')); ?></p> |
| 48 |
<?php } ?> |
| 49 |
<p class="acym__selection__card__description"><?php echo esc_html(acym_translation('ACYM_POPUP_SUBFORM_DESC')); ?></p> |
| 50 |
</div> |
| 51 |
<div class="acym__campaign__selection__card acym__selection__scroll <?php echo esc_attr($class); ?> cell large-2 medium-4 text-center margin-bottom-1" |
| 52 |
acym-data-link="<?php echo esc_url($data['header_link']); ?>"> |
| 53 |
|
| 54 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 55 |
<div class="acym__selection__card__lock"> |
| 56 |
<i class="acymicon-lock"></i> |
| 57 |
</div> |
| 58 |
<?php } ?> |
| 59 |
|
| 60 |
<i class="acymicon-vertical-align-top acym__selection__card__icon"></i> |
| 61 |
<h1 class="acym__selection__card__title"><?php echo esc_html(acym_translation('ACYM_HEADER')); ?></h1> |
| 62 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 63 |
<p class="acym__selection__card__promotion__text"><?php echo esc_html(acym_translationSprintf('ACYM_UP_TO_X_MORE_SUBSCRIBERS', '21%')); ?></p> |
| 64 |
<?php } ?> |
| 65 |
<p class="acym__selection__card__description"><?php echo esc_html(acym_translation('ACYM_HEADER_SUBFORM_DESC')); ?></p> |
| 66 |
</div> |
| 67 |
<div class="acym__campaign__selection__card acym__selection__scroll <?php echo esc_attr($class); ?> cell large-2 medium-4 text-center margin-bottom-1" |
| 68 |
acym-data-link="<?php echo esc_url($data['footer_link']); ?>"> |
| 69 |
|
| 70 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 71 |
<div class="acym__selection__card__lock"> |
| 72 |
<i class="acymicon-lock"></i> |
| 73 |
</div> |
| 74 |
<?php } ?> |
| 75 |
|
| 76 |
<i class="acymicon-vertical-align-bottom acym__selection__card__icon"></i> |
| 77 |
<h1 class="acym__selection__card__title"><?php echo esc_html(acym_translation('ACYM_FOOTER')); ?></h1> |
| 78 |
<?php if (!acym_level(ACYM_ENTERPRISE)) { ?> |
| 79 |
<p class="acym__selection__card__promotion__text"><?php echo esc_html(acym_translationSprintf('ACYM_UP_TO_X_MORE_SUBSCRIBERS', '15%')); ?></p> |
| 80 |
<?php } ?> |
| 81 |
<p class="acym__selection__card__description"><?php echo esc_html(acym_translation('ACYM_FOOTER_SUBFORM_DESC')); ?></p> |
| 82 |
</div> |
| 83 |
</div> |
| 84 |
<button type="button" class="cell shrink button" id="acym__selection__button-select" disabled><?php echo esc_html(acym_translation('ACYM_CREATE')); ?></button> |
| 85 |
</div> |
| 86 |
<?php acym_formOptions(); ?> |
| 87 |
</form> |
| 88 |
|