/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT VARIANT LIST ###'; $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(); } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT LIST - DIRECT ###'; $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(); } // Hide item list in reader mode if the respective setting is enabled if ($this->iso_hide_list && Input::getAutoItem('product', false, true) != '') { return ''; } if (is_numeric(\Input::get('perpage')) && intval(\Input::get('perpage'))) { $this->perPage = intval(\Input::get('perpage')); } return parent::generate(); }
/** * Generate the module * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: RELATED PRODUCTS ###'; $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(); } if (!\Haste\Input\Input::getAutoItem('product', false, true)) { return ''; } $this->iso_related_categories = deserialize($this->iso_related_categories); if (!is_array($this->iso_related_categories) || !count($this->iso_related_categories)) { // Can't use empty() because its an object property (using __get) return ''; } // Prevent hiding the list which is not supported in this module (see ProductList::generate()) $this->iso_hide_list = false; return parent::generate(); }
/** * {@inheritdoc} */ protected function compileEmptyMessage($disableSearchIndex = true) { parent::compileEmptyMessage(false); }