Example #1
0
 public function doListInfoblock()
 {
     $c_page = fx::env('page');
     if ($c_page) {
         $c_page_id = $c_page->get('id');
         $path = $c_page->getParentIds();
         $path[] = $c_page_id;
     } else {
         $path = array();
     }
     $submenu_type = $this->getParam('submenu');
     $submenu_type = 'all';
     switch ($submenu_type) {
         case 'none':
             break;
         case 'active':
             $this->setParam('parent_id', $path);
             break;
         case 'all':
         default:
             $this->setParam('parent_id', false);
             break;
     }
     $res = parent::doListInfoblock();
     return $res;
 }