PHP Class Elcodi\Plugin\DisqusBundle\Templating\TwigRenderer

Inheritance: use trait Elcodi\Component\Plugin\Templating\Traits\TemplatingTrait
Datei anzeigen Open project: elcodi/bamboo

Protected Properties

Property Type Description
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin

Public Methods

Method Description
renderDisqusBlogPostBlock ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event ) Renders disqus block on blog post
renderDisqusProductBlock ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event ) Renders disqus block on product page
renderJavascript ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event ) Renders disqus JS element
setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin ) Set plugin

Method Details

renderDisqusBlogPostBlock() public method

Renders disqus block on blog post
public renderDisqusBlogPostBlock ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface Event

renderDisqusProductBlock() public method

Renders disqus block on product page
public renderDisqusProductBlock ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface Event

renderJavascript() public method

Renders disqus JS element
public renderJavascript ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface Event

setPlugin() public method

Set plugin
public setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin )
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin

Property Details

$plugin protected_oe property

Plugin
protected Plugin,Elcodi\Component\Plugin\Entity $plugin
return Elcodi\Component\Plugin\Entity\Plugin