Exemple #1
0
 /**
  * Check - specified item is active or not
  *
  * @param array $item Menu item
  *
  * @return boolean
  */
 protected function isActiveItem(array $item)
 {
     $result = parent::isActiveItem($item);
     if (false === $item['controller']) {
         $result = \XLite::getInstance()->getShopURL($item['url']) === \XLite\Core\URLManager::getCurrentURL() ?: $result;
     } else {
         if (!is_array($item['controller'])) {
             $item['controller'] = array($item['controller']);
         }
         $controller = \XLite::getController();
         foreach ($item['controller'] as $controllerName) {
             if ($controller instanceof $controllerName) {
                 $result = true;
                 break;
             }
         }
     }
     return $result;
 }
Exemple #2
0
 /**
  * Return URL parameters to use in AJAX popup
  *
  * @return array
  */
 protected function prepareURLParams()
 {
     return array('target' => 'trial_notice', 'widget' => '\\XLite\\View\\ModulesManager\\TrialNotice', 'returnUrl' => \XLite\Core\URLManager::getCurrentURL());
 }
 /**
  * Return URL parameters to use in AJAX popup
  *
  * @return array
  */
 protected function prepareURLParams()
 {
     return array('target' => 'pitney_bowes', 'widget' => 'XLite\\Module\\XC\\PitneyBowes\\View\\CredentialsRequest', 'returnUrl' => \XLite\Core\URLManager::getCurrentURL());
 }
Exemple #4
0
 /**
  * Return URL parameters to use in AJAX popup
  *
  * @return array
  */
 protected function prepareURLParams()
 {
     $params = array('target' => 'activate_key', 'action' => 'view', 'widget' => '\\XLite\\View\\ModulesManager\\LicenseKey', 'returnUrl' => \XLite\Core\URLManager::getCurrentURL());
     if ($this->isModuleActivation()) {
         $params['isModule'] = true;
     }
     return $params;
 }