public function assignDisplayVariables() { parent::assignDisplayVariables(); $display = CoreServices2::getDisplay(); $display->assign('fileUrl', CoreServices2::getAttachmentLocationManager()); $display->assign('subpageUrl', CoreServices::get('websiteMenuManager')); $display->assign('subpage', $this->subpage); $menuStruct = $this->getMenuStruct(); if (!empty($menuStruct)) { $display->assign('menu', $menuStruct); } if (!empty($this->showCancelNewsletterSubscriptionLink)) { $display->assign('showCancelNewsletterSubscriptionLink', 1); } $display->assign('newsletterForm', $this->newsletterForm); $display->assign('bannerList', $this->bannerList); $display->assign('bannerImageList', $this->bannerImageList); $display->assign('loginForm', $this->loginForm); $display->assign('loginErrorMessages', $this->loginErrorMessageContainer); $display->assign('filterForm', $this->filterForm); $display->assign('fullUrl', CoreServices2::getUrl()->getCurrentExactAddress()); $display->assign('paginationForm', $this->paginationForm); }
protected function initFileLinkHTML() { if ($this->fileRecord['fileCategory'] == 'image') { $this->fileLinkHTML = CoreServices2::getAttachmentLocationManager()->getImageLinkHTML($this->fileRecord, $this->form->getField('image_width')->getValue(), $this->form->getField('image_height')->getValue(), $this->form->getField('image_ignoreProportions')->getValue(), $this->form->getField('image_crop')->getValue(), $this->form->getField('image_backgroundColor')->getValue()); } else { $this->fileLinkHTML = CoreServices2::getAttachmentLocationManager()->getLinkHTML($this->fileRecord); } }