public function onHeadEnd(\CmsModule\Events\RenderArgs $args) { if ($this->analyticsManager->getActivated() && $args->getPresenter() instanceof PagePresenter) { $control = $this->widgetManager->getWidget('googleAnalytics')->invoke(); $control->render($this->analyticsManager->getAccountId()); } }
public function onHeadBegin(\CmsModule\Events\RenderArgs $args) { if ($args->getPresenter() instanceof AdminPresenter) { $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@aceModule/ace/ace.js')); $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@aceModule/code.js')); } }
public function onHeadBegin(\CmsModule\Events\RenderArgs $args) { if ($args->getPresenter() instanceof AdminPresenter) { $this->jsFileCollection->addRemoteFile($args->getPresenter()->template->basePath . '/' . $this->moduleHelpers->expandResource('@ckeditorModule/ckeditor/ckeditor.js')); $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@ckeditorModule/editor.js')); } }
public function onHeadBegin(RenderArgs $args) { if ($args->getPresenter() instanceof PagePresenter) { $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@lightboxModule/fancybox/jquery.mousewheel-3.0.4.pack.js')); $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@lightboxModule/fancybox/jquery.fancybox-1.3.4.pack.js')); $this->jsFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@lightboxModule/loader.js')); $this->cssFileCollection->addFile($this->wwwDir . '/' . $this->moduleHelpers->expandResource('@lightboxModule/fancybox/jquery.fancybox-1.3.4.css')); } }