Change the colors and text used when displaying clicked stats

[MAILPOET-3324]
This commit is contained in:
Rodrigo Primo
2022-01-27 15:10:09 -03:00
committed by Veljko V
parent 776a3a656e
commit 509d97c2c0

View File

@ -272,11 +272,11 @@ class Functions extends AbstractExtension {
public function clickedStatsColor($clicked) { public function clickedStatsColor($clicked) {
if ($clicked > 3) { if ($clicked > 3) {
return '#2993ab'; return '#7ed321';
} elseif ($clicked > 1) { } elseif ($clicked > 1) {
return '#f0b849'; return '#ff9f00';
} else { } else {
return '#d54e21'; return '#f559c3';
} }
} }
@ -292,11 +292,11 @@ class Functions extends AbstractExtension {
public function clickedStatsText($clicked) { public function clickedStatsText($clicked) {
if ($clicked > 3) { if ($clicked > 3) {
return __('EXCELLENT', 'mailpoet'); return __('Excellent', 'mailpoet');
} elseif ($clicked > 1) { } elseif ($clicked > 1) {
return __('GOOD', 'mailpoet'); return __('Good', 'mailpoet');
} else { } else {
return __('BAD', 'mailpoet'); return __('Average', 'mailpoet');
} }
} }