PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
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
← All changes | front/FrontControllers/FrontusersController.php +7 -8 11.0.3 → 11.1.0 View file →
@@ -583,9 +583,12 @@
583 583 $mailId = acym_getVar('int', 'mail_id', 0);
584 584 $campaignListOnly = $this->config->get('unsubscribe_campaign_list_only', '0') === '1';
585 585 $displaySurvey = $this->config->get('unsubpage_survey', '0') === '1';
586 586 $surveyAnswers = $this->config->get('unsub_survey', '[]');
587 - $unsubscribeColor = $this->config->get('unsubscribe_color', '#00a4ff');
587 + $unsubscribeColor = $this->config->get('unsubscribe_color');
588 + if (empty($unsubscribeColor)) {
589 + $unsubscribeColor = '#0079d3';
590 + }
588 591 $hoverColor = $this->darkenRGBColor($unsubscribeColor, 20);
589 592
590 593 $surveyAnswers = json_decode($surveyAnswers, true);
591 594
@@ -632,14 +635,10 @@
632 635 $data['surveyAnswers'][] = acym_translation('ACYM_OTHER');
633 636 $data['surveyAnswers'] = array_combine($data['surveyAnswers'], $data['surveyAnswers']);
634 637 }
635 638
636 - if (!empty($this->config->get('unsubscribe_color'))) {
637 - $unsubscribeColor = $this->config->get('unsubscribe_color');
638 - $hoverColor = $this->darkenRGBColor($unsubscribeColor, 20);
639 - $data['unsubscribeColor'] = $unsubscribeColor;
640 - $data['hoverColor'] = $hoverColor;
641 - }
639 + $data['unsubscribeColor'] = $unsubscribeColor;
640 + $data['hoverColor'] = $hoverColor;
642 641 $data['svgImage'] = $this->getSVGImage($unsubscribeColor, $hoverColor);
643 642
644 643 acym_setVar('layout', 'unsubscribepage');
645 644 acym_header('Content-Type: text/html; charset=utf-8');
@@ -1081,9 +1080,9 @@
1081 1080 {
1082 1081 $output = '';
1083 1082 $types = ['success', 'info', 'warning', 'error'];
1084 1083 foreach ($types as $type) {
1085 - $messages = acym_getVar('array', 'acymessage'.$type, [], 'SESSION');
1084 + $messages = acym_getVar('array', 'acymessage'.$type, [], 'SESSION', ACYM_ALLOWHTML);
1086 1085 if (empty($messages)) {
1087 1086 continue;
1088 1087 }
1089 1088