35 lines
1 KiB
PHP
35 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Trinity\Bundle\NewsletterBundle\Newsletter;
|
|
|
|
use Trinity\Bundle\NewsletterBundle\Model\Block;
|
|
use Trinity\Bundle\NewsletterBundle\Model\Newsletter;
|
|
|
|
class ModelOneContent extends Newsletter
|
|
{
|
|
public function __construct($template = null)
|
|
{
|
|
parent::__construct(null !== $template ? $template : 'TrinityNewsletterBundle:Default:index.html.twig');
|
|
}
|
|
|
|
public function getConfiguration()
|
|
{
|
|
return $this->configuration
|
|
->setBlock('subject', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
|
|
->setBlock('title', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
|
|
->setBlock('subtitle', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
|
|
->setBlock('content1', 'Trinity\Bundle\NewsletterBundle\Form\Type\TinymceAdvancedBlockType')
|
|
;
|
|
}
|
|
|
|
public function getBlockContent1()
|
|
{
|
|
return $this->getBlock('content1');
|
|
}
|
|
|
|
public function setBlockContent1(Block $block)
|
|
{
|
|
return $this->setBlock($block);
|
|
}
|
|
}
|