/** Komponenta pre zobrazenie clanku * @return \App\FrontModule\Components\Clanky\ZobrazClanokControl */ public function createComponentUkazTentoClanok() { $ukaz_clanok = new \App\FrontModule\Components\Clanky\ZobrazClanokControl($this->zobraz_clanok); $ukaz_clanok->setTexts(["not_found" => $this->trLang('base_template_not_found'), "platnost_do" => $this->trLang('base_platnost_do'), "zadal" => $this->trLang('base_zadal'), "zobrazeny" => $this->trLang('base_zobrazeny'), "anotacia" => $this->trLang('base_anotacia'), "viac" => $this->trLang('base_viac'), "text_title_image" => $this->trLang("base_text_title_image")]); $ukaz_clanok->setClanokHlavicka($this->udaje_webu['clanok_hlavicka']); return $ukaz_clanok; }
/** Komponenta pre zobrazenie clanku * @return \App\FrontModule\Components\Clanky\ZobrazClanokControl */ public function createComponentUkazClanok() { $servise = $this; return new Multiplier(function ($id) use($servise) { if (is_numeric($id)) { $clanok = $servise->hlavne_menu_lang->getOneArticleId($id, $servise->language_id, 0); } else { $clanok = $servise->hlavne_menu_lang->getOneArticleSp($id, $servise->language_id, 0); } $ukaz_clanok = new \App\FrontModule\Components\Clanky\ZobrazClanokControl($clanok); $ukaz_clanok->setTexts(["not_found" => $servise->trLang('base_not_found'), "platnost_do" => $servise->trLang('base_platnost_do'), "zadal" => $servise->trLang('base_zadal'), "zobrazeny" => $servise->trLang('base_zobrazeny'), "anotacia" => $servise->trLang('base_anotacia'), "viac" => $servise->trLang('base_viac'), "text_title_image" => $servise->trLang("base_text_title_image")]); $ukaz_clanok->setClanokHlavicka($servise->udaje_webu['clanok_hlavicka']); return $ukaz_clanok; }); }