Esempio n. 1
0
 /**
  * Get the items of the submenu and display them.
  *
  * @return  void
  */
 public function display()
 {
     if (!\App::isAdmin() || !class_exists('\\Submenu')) {
         return;
     }
     // Initialise variables.
     $list = \Submenu::getItems();
     if (!is_array($list) || !count($list)) {
         return;
     }
     require $this->getLayoutPath($this->params->get('layout', 'default'));
 }