2015-03-02 21:57:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Deblan\Bundle\BlogBundle\Page;
|
|
|
|
|
|
|
|
use Trinity\Bundle\ContentManagerBundle\Model\Page;
|
|
|
|
|
|
|
|
class DefaultPage extends Page
|
|
|
|
{
|
2015-03-09 23:29:12 +01:00
|
|
|
public function __construct($template = 'TrinityContentManagerBundle::default.html.twig')
|
|
|
|
{
|
|
|
|
parent::__construct($template);
|
|
|
|
}
|
|
|
|
|
2015-03-02 21:57:49 +01:00
|
|
|
public function getConfiguration()
|
|
|
|
{
|
|
|
|
return $this->configuration
|
|
|
|
->setBlock('title', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
|
|
|
|
->setBlock('subtitle', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
|
2015-09-14 14:54:14 +02:00
|
|
|
->setBlock('content1', 'Trinity\Bundle\ContentManagerBundle\Form\Type\TinymceAdvancedBlockType')
|
2015-03-02 21:57:49 +01:00
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBlockContent1()
|
|
|
|
{
|
|
|
|
return $this->getBlock('content1');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setBlockContent1(Block $block)
|
|
|
|
{
|
|
|
|
return $this->setBlock($block);
|
|
|
|
}
|
|
|
|
}
|