true, 'ipp' => 10); protected $_querySearch = null; protected function _init() { parent::_init(); if ($this->getConfig('type') == 'small') { $this->_listOptions['ipp'] = 3; } $this->_querySearch = Qs_Request::getGetValue('query'); return $this; } public function fillConfigForm(Qs_Form $form) { $form->addElement('select', 'type', array('label' => 'Block Type', 'multiOptions' => array('default' => 'Default', 'small' => 'Small'))); return $this; } protected function _addFilterItem() { if ($this->dataObj->hasFilter() && $this->_hasFilter) { $query = trim($this->_querySearch); if (!empty($query)) { $this->dataObj->addFilter(array('query' => trim('\\' . $this->_querySearch))); $this->list->addUrlVariables(array('query')); } else { $this->dataObj->addFilter(array('query' => 'empty_query')); } } return $this; } protected function _addItem($item) { $item['templatePath'] = $this->_getTemplatePath(); $item['title'] = 'FAQ'; if ($this->getConfig('type') == 'small') { $item['linkAll'] = 'search/faq?' . http_build_query(array('query' => $this->_querySearch)); } else { $item['linkMain'] = 'search?' . http_build_query(array('query' => $this->_querySearch)); } $this->doc->addItem($item); return $this; } }