_getDataObj()->getList(); } return $list; } public function renderTeam() { $item = [ 'containerId' => 'our-team-grid', 'list' => $this->getList(), 'tpl' => $this->getTemplate('list.tpl'), ]; $this->_doc->addScript('js/app/ourTeam/grid.js'); $this->_doc->addInitObject('app.ourTeam.Grid', [[ 'id' => $item['containerId'], 'nodes' => [ 'personContainer' => '[data-person-container]', 'personInfo' => '[data-person-info]', ], ]]); return $this->_doc->fetchItem($item); } public function renderCareers() { $item = [ 'containerId' => 'careers', 'list' => array_filter($this->getList(), function ($person) { return $person['inCareers'] == 'y'; }), 'tpl' => $this->getTemplate('careers.tpl'), ]; return $this->_doc->fetchItem($item); } }