public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { if ($this->getRequest()->isGet() && !$this->getRequest()->isPost() && !$this->getRequest()->isXmlHttpRequest()) { $lockNotification = $this->addLockNotifications(); /** @var $wizardHelper Ess_M2ePro_Helper_Wizard */ $wizardHelper = Mage::helper('M2ePro/Wizard'); if (!$lockNotification && $wizardHelper->isInstallationFinished()) { $licenseMainErrorStatus = $this->addLicenseActivationNotifications() || $this->addLicenseValidationFailNotifications(); if (!$licenseMainErrorStatus) { $this->addLicenseModesNotifications(); $this->addLicenseStatusesNotifications(); $this->addLicenseExpirationDatesNotifications(); $this->addLicenseTrialNotifications(); $this->addLicensePreExpirationDateNotifications(); } } $this->addServerNotifications(); $this->addBrowserNotifications(); $lockNotification || !$wizardHelper->isInstallationFinished() || Mage::helper('M2ePro/Server')->isDeveloper() || $this->addCronNotifications(); $lockNotification || !$wizardHelper->isInstallationFinished() || Mage::helper('M2ePro/Server')->isDeveloper() || $this->addCronErrors(); $lockNotification || !$wizardHelper->isFinished('ebay') || !Mage::helper('M2ePro/Component_Ebay')->isActive() || $this->addEbayNotifications(); } is_array($ids) ? $ids[] = 'm2epro' : ($ids = array('default', 'm2epro')); return parent::loadLayout($ids, $generateBlocks, $generateXml); }
public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { if ($this->getRequest()->isGet() && !$this->getRequest()->isPost() && !$this->getRequest()->isXmlHttpRequest()) { $this->addDevelopmentNotification(); $this->addMaintenanceNotification(); } $tempResult = parent::loadLayout($ids, $generateBlocks, $generateXml); $tempResult->_title(Mage::helper('M2ePro/View_Development')->getTitle()); return $tempResult; }
public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { $tempResult = parent::loadLayout($ids, $generateBlocks, $generateXml); if ($this->getRequest()->getParam('referrer') == Ess_M2ePro_Helper_View_Ebay::NICK) { $tempResult->_setActiveMenu(Ess_M2ePro_Helper_View_Ebay::MENU_ROOT_NODE_NICK); $tempResult->_title(Mage::helper('M2ePro/View_Ebay')->getMenuRootNodeLabel()); } if ($this->getRequest()->getParam('referrer') == Ess_M2ePro_Helper_View_Common::NICK) { $tempResult->_setActiveMenu(Ess_M2ePro_Helper_View_Common::MENU_ROOT_NODE_NICK); $tempResult->_title(Mage::helper('M2ePro/View_Common')->getMenuRootNodeLabel()); } return $tempResult; }
public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { if ($this->getRequest()->isGet() && !$this->getRequest()->isPost() && !$this->getRequest()->isXmlHttpRequest()) { $lockNotification = $this->addLockNotifications(); $lockNotification || !Mage::getModel('M2ePro/Wizard')->isFinished() || $this->addLicenseNoneNotifications() || $this->addLicenseStatusNotifications() || $this->addLicenseExpiredDateNotifications() || $this->addLicenseValidationFailNotifications() || $this->addLicenseTrialNotifications() || $this->addLicensePreExpiredDateNotifications(); $this->addServerNotifications(); $this->addBrowserNotifications(); $lockNotification || !Mage::getModel('M2ePro/Wizard')->isFinished() || $this->addCronNotifications(); $lockNotification || !Mage::getModel('M2ePro/Wizard')->isFinished() || $this->addFeedbackNotifications(); $lockNotification || !Mage::getModel('M2ePro/Wizard')->isFinished() || $this->addMyMessageNotifications(); } is_array($ids) ? $ids[] = 'm2epro' : ($ids = array('default', 'm2epro')); return parent::loadLayout($ids, $generateBlocks, $generateXml); }
public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { if ($this->getRequest()->isGet() && !$this->getRequest()->isPost() && !$this->getRequest()->isXmlHttpRequest()) { $lockNotification = $this->addLockNotifications(); $browserNotification = $this->addBrowserNotifications(); $maintenanceNotification = $this->addMaintenanceNotifications(); $muteMessages = $lockNotification || $browserNotification || $maintenanceNotification; if (!$muteMessages && $this->getCustomViewHelper()->isInstallationWizardFinished()) { $licenseMainErrorStatus = $this->addLicenseActivationNotifications() || $this->addLicenseValidationFailNotifications(); if (!$licenseMainErrorStatus) { $this->addLicenseStatusesNotifications(); $this->addLicenseExpirationDatesNotifications(); $this->addLicenseTrialNotifications(); $this->addLicensePreExpirationDateNotifications(); } } $this->addServerNotifications(); if (!$muteMessages) { $this->getCustomViewControllerHelper()->addMessages($this); } } return parent::loadLayout($ids, $generateBlocks, $generateXml); }
public function loadLayout($ids = null, $generateBlocks = true, $generateXml = true) { $this->addNotificationMessages(); return parent::loadLayout($ids, $generateBlocks, $generateXml); }