helper = $helper; } /** * @param Navigation $topmenu * @param $html * * @return string */ public function afterRenderCategoriesMenuHtml(Navigation $topmenu, $html) { if ($this->helper->isEnabled() && $this->helper->getBlogConfig('display/toplinks')) { $blogHtml = $topmenu->getLayout()->createBlock(Menu::class) ->setTemplate('Mageplaza_Blog::category/topmenu.phtml')->toHtml(); return $html . $blogHtml; } return $html; } }