helper = $helper; } /** * @param \Magento\Theme\Block\Html\Topmenu $subject * @param $html * * @return string * @throws LocalizedException */ public function afterGetHtml( \Magento\Theme\Block\Html\Topmenu $subject, $html ) { if ($this->helper->isEnabled() && $this->helper->getBlogConfig('display/toplinks')) { $blogHtml = $subject->getLayout()->createBlock(Menu::class) ->setTemplate('Mageplaza_Blog::category/topmenu.phtml')->toHtml(); return $html . $blogHtml; } return $html; } }