/** * List a recipient * @param array * @return string */ public function listRecipient($row) { $label = parent::listRecipient($row); $labelAddition = ''; if ($row['salutation'] || $row['firstname'] || $row['lastname']) { $arrParts = array(); if ($row['salutation']) { $arrParts[] =& $GLOBALS['TL_LANG']['tl_newsletter_recipients']['salutation_options'][$row['salutation']]; } if ($row['firstname']) { $arrParts[] = $row['firstname']; } if ($row['lastname']) { $arrParts[] = $row['lastname']; } $labelAddition = '<span style="color:#8b8b8b;padding-left:3px">[' . implode(' ', $arrParts) . ']</span>'; } $label = str_replace($row['email'], $row['email'] . $labelAddition, $label); return $label; }
public function toggleVisibilityPlus($intId, $blnVisible, $cid) { parent::toggleVisibility($intId, $blnVisible); if ($this->isCRActive($cid)) { $subscriber = new HeimrichHannot\NewsletterPlus\Subscriber(null); $subscriber->getById($intId); $blnVisible == 1 ? $subscriber->activateCR() : $subscriber->deActivateCR(); } }