Ejemplo n.º 1
0
 /**
  * Check - first sidebar is visible or not (in admin interface)
  *
  * @return boolean
  */
 protected function isAdminSidebarFirstVisible()
 {
     $widget = new \Xlite\View\Controller();
     return $widget->isViewListVisible('admin.main.page.content.left') && !\Xlite::getController()->isForceChangePassword();
 }
Ejemplo n.º 2
0
 /**
  * Get upgrade notes files list
  *
  * @param string $type Helper type
  *
  * @return array
  */
 protected function getUpgradeNoteFiles($type)
 {
     $notes = array();
     $language = \Xlite::getController()->getCurrentLanguage();
     foreach ($this->getUpgradeHelperMajorVersions() as $majorVersion) {
         foreach ($this->getUpgradeHelperMinorVersions($majorVersion) as $minorVersion) {
             $file = $this->getUpgradeNoteFile($type, $majorVersion, $minorVersion, $language);
             if (empty($file)) {
                 $file = $this->getUpgradeNoteFile($type, $majorVersion, $minorVersion);
             }
             if ($file) {
                 $notes[] = $file;
             }
         }
     }
     return $notes;
 }