Esempio n. 1
0
 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());
     }
 }
Esempio n. 2
0
 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'));
     }
 }
Esempio n. 3
0
 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'));
     }
 }
Esempio n. 4
0
 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'));
     }
 }