if (!$onlyPlainText) {
if (($emailFooter = $customer->getGroupOption('campaigns.email_footer')) && strlen(trim($emailFooter)) > 5) {$emailContent = CampaignHelper::injectEmailFooter($emailContent, $emailFooter, $campaign);
}
if (!empty($campaign->option) && !empty($campaign->option->embed_images) && $campaign->option->embed_images == CampaignOption::TEXT_YES) {
list($emailContent, $embedImages) = CampaignHelper::embedContentImages($emailContent, $campaign);
}
if (!empty($campaign->option) && $campaign->option->xml_feed == CampaignOption::TEXT_YES) {$emailContent = CampaignXmlFeedParser::parseContent($emailContent, $campaign, $subscriber, true);
}
if (!empty($campaign->option) && $campaign->option->json_feed == CampaignOption::TEXT_YES) {$emailContent = CampaignJsonFeedParser::parseContent($emailContent, $campaign, $subscriber, true);
}
//Code Here
if (!empty($campaign->option) && $campaign->option->url_tracking == CampaignOption::TEXT_YES) {$emailContent = CampaignHelper::transformLinksForTracking($emailContent, $campaign, $subscriber, true);
}
$emailData = CampaignHelper::parseContent($emailContent, $campaign, $subscriber, true);
list($toName, $emailSubject, $emailContent) = $emailData;
}