/** * Fill data section */ public function fillDataSection() { $search = $this->plugin->getTemplate('tpl.jquerysearch.html', true, true); $search->touchBlock('container_filter'); $search->setVariable('LIST', $this->getContainerSelector()); if (ilContainerFilterConfigGUI::_getValue('show_quicksilver_info')) { $search->setCurrentBlock('container_filter_info'); $search->setVariable('INFOTEXT', $this->plugin->txt('quicksilver_infotext')); $search->parseCurrentBlock(); } $this->setDataSection($search->get()); }
/** * Get html for a user interface area * * @param string $a_comp * @param string $a_part * @param array $a_par * * @return array */ function getHTML($a_comp, $a_part, $a_par = array()) { if (ilContainerFilterConfigGUI::_getValue('show_on_desktop') == 1) { if ($a_comp == 'Services/PersonalDesktop' && $a_part == 'right_column') { return array('mode' => ilUIHookPluginGUI::PREPEND, 'html' => $this->getBlockHTML(self::PERSONAL_DESKTOP_SELECTOR)); } } if (ilContainerFilterConfigGUI::_getValue('show_in_repository') == 1) { if ($a_comp == 'Services/Container' && $a_part == 'right_column') { return array('mode' => ilUIHookPluginGUI::PREPEND, 'html' => $this->getBlockHTML(self::REPOSITORY_SELECTOR)); } } // in all other cases, keep everything as it is return array('mode' => ilUIHookPluginGUI::KEEP, 'html' => ''); }