Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed May 3, 2019
1 parent 664d55f commit 1d69831
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions EventListener/EmailSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ public function onEmailGenerate(Events\EmailSendEvent $event)
{
$this->logger->info('onEmailGenerate MauticAdvancedTemplatesBundle\EmailSubscriber');
$content = $event->getContent();
$content .= "
{% TWIG_BLOCK %}
{% set items = 'http://mautic.test/feed.rss' | rss('segments') %}
<ul>
{% for item in items %}
<li>
<a href=''{{ item.link }}'>{{ item.title }}</a> ({{ item.pubDate|date('m/d/Y') }})
<br />{{ item.description|raw }}
</li>
{% endfor %}
</ul>
{% END_TWIG_BLOCK %}
";
$content = $this->templateProcessor->processTemplate($content, $event->getLead());
$event->setContent($content);
}
Expand Down

0 comments on commit 1d69831

Please sign in to comment.