Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Navigation', 'navigation');
     $tool->setIcon('menu')->setDescription('Create different kinds of navigation lists');
     return $tool;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('iFrame', 'OpiferContentBundle:IFrameBlock');
     $tool->setIcon('web_asset')->setDescription('Include a iframe with url of choice');
     return $tool;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     if (is_null($block) || !$block->getReference()) {
         $tool = new Tool('Shared block', 'pointer');
         $tool->setIcon('all_inclusive')->setDescription('This block will load a shared block');
         return $tool;
     }
     return $this->getReferenceService($block)->getTool($block->getReference());
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('List', 'list');
     $tool->setIcon('list')->setDescription('Adds references to a collection of content items');
     return $tool;
 }
Ejemplo n.º 5
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool($this->getName(), 'section');
     $tool->setIcon('crop_din')->setGroup(Tool::GROUP_LAYOUT)->setDescription('Section element to hold columns or content in');
     return $tool;
 }
Ejemplo n.º 6
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Carousel slide', 'carousel_slide');
     $tool->setIcon('filter')->setDescription('A basic carousel slide');
     return $tool;
 }
Ejemplo n.º 7
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('Carousel slide', 'OpiferContentBundle:CarouselSlideBlock');
     $tool->setIcon('filter')->setDescription('A basic carousel slide');
     return $tool;
 }
Ejemplo n.º 8
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Breadcrumb', 'breadcrumbs');
     $tool->setIcon('linear_scale')->setDescription('Navigation path of current content');
     return $tool;
 }
Ejemplo n.º 9
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Search results', 'search_results');
     $tool->setIcon('search')->setDescription('Lists search results from a user query');
     return $tool;
 }
Ejemplo n.º 10
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool($this->getName(), 'tabnav');
     $tool->setIcon('tab')->setGroup(Tool::GROUP_LAYOUT)->setDescription('Inserts tab navigation to control tabbed content');
     return $tool;
 }
Ejemplo n.º 11
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Subscribe form', 'subscribe');
     $tool->setIcon('contact_mail')->setDescription('Subscribe with email address to designated mailing lists');
     return $tool;
 }
Ejemplo n.º 12
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('Shared block', 'OpiferContentBundle:PointerBlock');
     $tool->setIcon('all_inclusive')->setDescription('This block will load a shared block');
     return $tool;
 }
Ejemplo n.º 13
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Carousel', 'carousel');
     $tool->setIcon('view_carousel')->setDescription('Create a carousel of two or more slides');
     return $tool;
 }
Ejemplo n.º 14
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('Collection', 'OpiferContentBundle:CollectionBlock');
     $tool->setIcon('query_builder')->setDescription('Adds references to a collection of content items');
     return $tool;
 }
Ejemplo n.º 15
0
 /**
  * {@inheritdoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Image', 'image');
     $tool->setIcon('image')->setDescription('Provides an image from the library in the right size.');
     return $tool;
 }
Ejemplo n.º 16
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('List', 'OpiferContentBundle:ListBlock');
     $tool->setIcon('list')->setDescription('Adds references to a collection of content items');
     return $tool;
 }
Ejemplo n.º 17
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Button link', 'button');
     $tool->setIcon('link')->setDescription('Creates a link to a (external) page or content');
     return $tool;
 }
Ejemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 public function getTool()
 {
     $tool = new Tool('Image', 'OpiferContentBundle:ImageBlock');
     $tool->setIcon('image')->setDescription('Provides an image from the library in the right size.');
     return $tool;
 }
Ejemplo n.º 19
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Form', 'form');
     $tool->setIcon('receipt')->setDescription('Include a form created in Forms');
     return $tool;
 }
Ejemplo n.º 20
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool($this->getName(), 'OpiferContentBundle:ColumnBlock');
     $tool->setData(['columnCount' => $this->columnCount])->setGroup(Tool::GROUP_LAYOUT)->setIcon('view_column')->setDescription('Inserts ' . $this->columnCount . ' columns equal in width');
     return $tool;
 }
Ejemplo n.º 21
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     switch ($this->columnCount) {
         case 1:
             $type = 'one';
             break;
         case 2:
             $type = 'two';
             break;
         case 3:
             $type = 'three';
             break;
         case 4:
             $type = 'four';
             break;
     }
     $tool = new Tool($this->getName(), 'column_' . $type);
     $tool->setData(['columnCount' => $this->columnCount])->setGroup(Tool::GROUP_LAYOUT)->setIcon('view_column')->setDescription('Inserts ' . $this->columnCount . ' columns equal in width');
     return $tool;
 }
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('CookieWall', 'cookiewall');
     $tool->setIcon('info')->setDescription('Cookiewall');
     return $tool;
 }
Ejemplo n.º 23
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool($this->getName(), 'container');
     $tool->setIcon('crop_free')->setGroup(Tool::GROUP_LAYOUT)->setDescription('Container element to hold columns or other blocks in');
     return $tool;
 }
Ejemplo n.º 24
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('Rich text', 'OpiferContentBundle:HtmlBlock');
     $tool->setIcon('text_fields')->setDescription('Rich content editable through WYSIWYG editor.');
     return $tool;
 }
Ejemplo n.º 25
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Avatar', 'avatar');
     $tool->setIcon('account_box')->setDescription('Shows logged user data or login/register button');
     return $tool;
 }
Ejemplo n.º 26
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('Carousel', 'OpiferContentBundle:CarouselBlock');
     $tool->setIcon('view_carousel')->setDescription('Create a carousel of two or more slides');
     return $tool;
 }
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Social share', 'socialshare');
     $tool->setIcon('share')->setDescription('Adds buttons to share content on social media');
     return $tool;
 }
Ejemplo n.º 28
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('Cookie wall', 'cookiewall');
     $tool->setIcon('info')->setDescription('Dismissable message regarding EU cookies regulation');
     return $tool;
 }
Ejemplo n.º 29
0
 /**
  * {@inheritDoc}
  */
 public function getTool()
 {
     $tool = new Tool('JavaScript', 'OpiferContentBundle:JavaScriptBlock');
     $tool->setIcon('code')->setDescription('Include custom JavaScript code block');
     return $tool;
 }
Ejemplo n.º 30
0
 /**
  * {@inheritDoc}
  */
 public function getTool(BlockInterface $block = null)
 {
     $tool = new Tool('JavaScript', 'javascript');
     $tool->setIcon('code')->setDescription('Include custom JavaScript code block');
     return $tool;
 }