public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT LIST SLICK ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } parent::generate(); $objConfig = SlickConfigModel::findByPk($this->slickConfig); if ($objConfig !== null) { SlickConfig::createConfigJs($objConfig); $this->Template->class .= ' ' . SlickConfig::getCssClassFromModel($objConfig) . ' slick'; } return $this->Template->parse(); }
public function getConfigurations($dc) { $arrOptions = array(); $objConfig = \HeimrichHannot\Slick\SlickConfigModel::findBy(array('id != ?'), $dc->activeRecord->id); if ($objConfig === null) { return $arrOptions; } while ($objConfig->next()) { $arrOptions[$objConfig->id] = $objConfig->title; } return $arrOptions; }