'white', 'label' => __('white'), ], [ 'value' => 'black', 'label' => __('black'), ], [ 'value' => 'red', 'label' => __('red'), ], [ 'value' => 'green', 'label' => __('green'), ], [ 'value' => 'blue', 'label' => __('blue'), ], [ 'value' => 'yellow', 'label' => __('yellow'), ], ]; } public function isRevoulutionActive() { return $this->isRevoulutionModuleActive() && $this->getConfig('nwdthemes_revslider/revslider_configuration/status'); } public function isRevoulutionModuleActive() { return $this->_moduleManager->isOutputEnabled('Nwdthemes_Base') && $this->_moduleManager->isOutputEnabled('Nwdthemes_Revslider'); } public function setSlideshowLayout() { if ($this->isSlideshowEnabled()) { return sprintf('html/slideshow/%s.phtml', $this->getConfig('athleteslideshow/general/slider')); } return 'html/slideshow.phtml'; } public function isSlideshowEnabled() { $config = $this->getConfig('athleteslideshow'); $action = $this->_request->getActionName(); $controller = $this->_request->getControllerName(); $module = $this->_request->getModuleName(); $route = $this->_request->getRouteName(); $show = false; if ($config['general']['enabled']) { $show = true; if ('home' == $config['general']['show']) { $show = false; if ('cms' == $module && 'index' == $controller && 'index' == $action) { $show = true; } } if ($show && ('customer' == $route && in_array($action, ['create', 'forgotpassword', 'login']))) { $show = false; } } return $show; } }