| 1 |
<div class="acym__unsubscribe__page grid-x grid-padding-x"> |
| 2 |
<?php if ($this->config->get('display_unsub_image') === '1') { ?> |
| 3 |
<div class="acym__unsubscribe__image__container cell hide-for-small-only"> |
| 4 |
<?php if (!empty($this->config->get('unsubscribe_image'))) { ?> |
| 5 |
<img class="cell padding-3" |
| 6 |
src="<?php echo $this->config->get('unsubscribe_image'); ?>" |
| 7 |
alt="Unsubscribe Image"> |
| 8 |
<?php } else { ?> |
| 9 |
<div class="cell padding-3 acym__unsubscribe__image__svg"> |
| 10 |
<?php echo $data['svgImage']; ?> |
| 11 |
</div> |
| 12 |
<?php } ?> |
| 13 |
</div> |
| 14 |
<?php } ?> |
| 15 |
<?php $classContainer = $this->config->get('display_unsub_image') === '1' ? '' : 'no-image'; ?> |
| 16 |
<div class="acym__unsubscribe__form__container cell <?php echo $classContainer; ?>"> |
| 17 |
<div class="cell"> |
| 18 |
<form action="<?php echo acym_frontendLink('frontusers'); ?>" name="unsubscribepage" class="acym_front_page acym__unsubscribe__form"> |
| 19 |
<fieldset class="grid-x grid-margin-x align-center"> |
| 20 |
<div class="acym__unsubscribe__container cell"> |
| 21 |
<div class="acy__unsubscribe__form__header margin-bottom-3"> |
| 22 |
<div class="acym__unsubscribe__form__header__image cell padding-bottom-1"> |
| 23 |
<?php if (!empty($this->config->get('unsubscribe_logo'))) { ?> |
| 24 |
<img class="cell" src="<?php echo $this->config->get('unsubscribe_logo'); ?>" alt="Unsubscribe Logo"> |
| 25 |
<?php } ?> |
| 26 |
</div> |
| 27 |
<h2 class="acym__title acym__unsubscribe__title margin-bottom-1"> |
| 28 |
<?php if (!empty($this->config->get('unsubscribe_title'))) { |
| 29 |
echo acym_escape($this->config->get('unsubscribe_title')); |
| 30 |
} else { |
| 31 |
echo acym_translation('ACYM_EMAIL_PREFERENCES'); |
| 32 |
} ?> |
| 33 |
</h2> |
| 34 |
<?php if (!empty($data['languages'])) { |
| 35 |
echo acym_select($data['languages'], 'language', $data['lang'], null, 'value', 'text', 'acym__unsubscribe__language__select'); |
| 36 |
} |
| 37 |
?> |
| 38 |
</div> |
| 39 |
<div class="acym__unsubscribe__lists__container cell margin-bottom-1"> |
| 40 |
<?php if (empty($data['subscriptions'])) { ?> |
| 41 |
<p><?php echo acym_translation('ACYM_NO_DATA_TO_DISPLAY'); ?></p> |
| 42 |
<?php } else { ?> |
| 43 |
<div class="acym__unsubscribe__lists__listing margin-bottom-1"> |
| 44 |
<ul class="acym__unsubscribe__lists"> |
| 45 |
<?php foreach ($data['subscriptions'] as $list) { |
| 46 |
if (empty($list->visible)) continue; ?> |
| 47 |
<li class="acym__unsubscribe__list__item grid-x"> |
| 48 |
<div class="acym__unsubscribe__lists__listing cell margin-bottom-1"> |
| 49 |
<p class="acym__unsubscribe__list__display__name"> |
| 50 |
<?php echo !empty($list->display_name) ? $list->display_name : $list->name; ?> |
| 51 |
</p> |
| 52 |
<p class="acym__unsubscribe__list__description"> |
| 53 |
<?php echo !empty($list->description) ? $list->description : ''; ?> |
| 54 |
</p> |
| 55 |
</div> |
| 56 |
<div class="acym__unsubscribe__list__switch margin-bottom-1 cell"> |
| 57 |
<?php echo acym_switch('lists['.$list->id.']', $list->status, null, ['name' => 'lists['.$list->id.']']); ?> |
| 58 |
</div> |
| 59 |
</li> |
| 60 |
<?php } ?> |
| 61 |
</ul> |
| 62 |
</div> |
| 63 |
<?php } ?> |
| 64 |
<div class="acym__unsubscribe__reason__section cell margin-bottom-1"> |
| 65 |
<div class="acym__unsubscribe__reason__label"> |
| 66 |
<p class="acym__unsubscribe__reason"><?php echo acym_translation('ACYM_SHARE_YOUR_REASONS'); ?></p> |
| 67 |
<span class="acym__optional"><?php echo acym_translation('ACYM_OPTIONAL'); ?></span> |
| 68 |
</div> |
| 69 |
<?php if (!empty($data['surveyAnswers'])) { |
| 70 |
echo acym_select($data['surveyAnswers'], 'unsubscribe_selector_reason', 'acym__unsubscribe__reason__select'); |
| 71 |
?> |
| 72 |
<div class="acym__unsubscribe__reason__label acym__custom__reason__label padding-top-1 is-hidden"> |
| 73 |
<p class="acym__unsubscribe__reason"><?php echo acym_translation('ACYM_CAN_YOU_TELL_MORE'); ?></p> |
| 74 |
<span class="acym__optional"><?php echo acym_translation('ACYM_OPTIONAL'); ?></span> |
| 75 |
</div> |
| 76 |
<input type="text" id="acym__custom__unsubscribe__reason" name="unsubscribe_custom_reason" class="is-hidden"> |
| 77 |
<input type="hidden" name="unsubscribe_reason"> |
| 78 |
<?php } else { ?> |
| 79 |
<input type="text" name="unsubscribe_reason" class="acym__unsubscribe__input__reason"> |
| 80 |
<?php } ?> |
| 81 |
</div> |
| 82 |
<div class="acym__unsubscribe__actions grid-x align-center"> |
| 83 |
<?php if (count($data['subscriptions']) > 1) { ?> |
| 84 |
<button type="button" |
| 85 |
class="button button-secondary cell margin-bottom-1" |
| 86 |
id="acym__unsub__all" |
| 87 |
onclick="return acymSubmitForm('unsubscribeAll', this);"> |
| 88 |
<?php echo acym_translation('ACYM_UNSUBSCRIBE_ALL'); ?> |
| 89 |
</button> |
| 90 |
<?php } ?> |
| 91 |
<button type="button" |
| 92 |
class="button button-primary cell margin-bottom-1" |
| 93 |
id="acym__save" |
| 94 |
onclick="return acymSubmitForm('saveSubscriptions', this);"> |
| 95 |
<?php echo acym_translation('ACYM_UPDATE_PREFERENCES'); ?> |
| 96 |
</button> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
<?php |
| 101 |
if ($this->config->get('display_built_by', 1)) { ?> |
| 102 |
<img class="cell acym__powered__by__image" |
| 103 |
src="<?php echo ACYM_IMAGES.'editor/poweredby_black.png'; ?>" |
| 104 |
alt="Powered by AcyMailing"> |
| 105 |
<?php } ?> |
| 106 |
|
| 107 |
</fieldset> |
| 108 |
<?php acym_formOptions(); ?> |
| 109 |
<input type="hidden" name="user_id" value="<?php echo $data['user']->id; ?>"> |
| 110 |
<input type="hidden" name="user_key" value="<?php echo acym_escape($data['user']->key); ?>"> |
| 111 |
<input type="hidden" name="mail_id" value="<?php echo $data['mail_id']; ?>"> |
| 112 |
<input type="hidden" name="displayed_checked_lists" id="displayed_checked_lists"> |
| 113 |
</form> |
| 114 |
</div> |
| 115 |
</div> |
| 116 |
</div> |
| 117 |
|
| 118 |
<style> |
| 119 |
#acym__unsub__all:hover{ |
| 120 |
background-color: <?php echo $data['hoverColor']; ?> !important; |
| 121 |
border-color: <?php echo $data['hoverColor']; ?> !important; |
| 122 |
} |
| 123 |
|
| 124 |
#acym__save:hover{ |
| 125 |
background-color: <?php echo $data['hoverColor']; ?> !important; |
| 126 |
border-color: <?php echo $data['hoverColor']; ?> !important; |
| 127 |
} |
| 128 |
|
| 129 |
.switch input:checked ~ .switch-paddle{ |
| 130 |
background-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 131 |
border-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 132 |
} |
| 133 |
|
| 134 |
.acym__unsub__reason__selected{ |
| 135 |
border-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 136 |
} |
| 137 |
|
| 138 |
.button-primary{ |
| 139 |
background-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 140 |
border-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 141 |
} |
| 142 |
|
| 143 |
.button-primary:hover{ |
| 144 |
background-color: <?php echo $data['hoverColor']; ?> !important; |
| 145 |
border-color: <?php echo $data['hoverColor']; ?> !important; |
| 146 |
} |
| 147 |
|
| 148 |
.button-secondary{ |
| 149 |
border-color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 150 |
color: <?php echo $data['unsubscribeColor']; ?> !important; |
| 151 |
} |
| 152 |
|
| 153 |
.button-secondary:hover{ |
| 154 |
border-color: <?php echo $data['hoverColor']; ?> !important; |
| 155 |
} |
| 156 |
</style> |
| 157 |
|
| 158 |
<?php if ('wordpress' == ACYM_CMS) exit; ?> |
| 159 |
|