_coreRegistry = $coreRegistry; parent::__construct($context, $data); } public function getConfig($config_path, $storeCode = null) { return $this->_scopeConfig->getValue( $config_path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeCode ); } public function getFooterLogoSrc(){ $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Logo::UPLOAD_DIR; $storeLogoPath = $this->_scopeConfig->getValue( 'porto_settings/footer/footer_logo_src', \Magento\Store\Model\ScopeInterface::SCOPE_STORE ); $path = $folderName . '/' . $storeLogoPath; $logoUrl = $this->_urlBuilder ->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $path; return $logoUrl; } public function isHomePage() { $currentUrl = $this->getUrl('', ['_current' => true]); $urlRewrite = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); return $currentUrl == $urlRewrite; } } ?>