protected function setFilters() { // Sorting filter $sortingOptions = array('K2_NONE' => 'ordering', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_TITLE_ASC' => 'title', 'K2_TITLE_DESC' => 'title.reverse'); K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); }
protected function setFilters() { // Sorting filter $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_NAME_ASC' => 'name', 'K2_NAME_DESC' => 'name.reverse'); K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); K2Response::addFilter('scope', JText::_('K2_SCOPE'), K2HelperHTML::extraFieldsScopes('scope', null, '', 'K2_ANY'), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); }
protected function setFilters() { // Sorting filter $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_NAME_ASC' => 'name', 'K2_NAME_DESC' => 'name.reverse', 'K2_USERNAME_ASC' => 'username', 'K2_USERNAME_DESC' => 'username.reverse', 'K2_EMAIL_ASC' => 'email', 'K2_EMAIL_DESC' => 'email.reverse', 'K2_LAST_VISIT_ASC' => 'lastvisitDate', 'K2_LAST_VISIT_DESC' => 'lastvisitDate.reverse', 'K2_IP_ASC' => 'ip', 'K2_IP_DESC' => 'ip.reverse', 'K2_HOSTNAME_ASC' => 'hostname', 'K2_HOSTNAME_DESC' => 'hostname.reverse'); // Sorting filter K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); // Group filter K2Response::addFilter('group', JText::_('K2_GROUP'), K2HelperHTML::usergroups('group', null, 'K2_ANY'), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); }
protected function setFilters() { // Type filter K2Response::addFilter('type', JText::_('K2_TYPE'), K2HelperHTML::extraFieldsTypes('type', null, 'K2_ANY'), false, 'header'); // Group filter K2Response::addFilter('group', JText::_('K2_GROUP'), K2HelperHTML::extraFieldsGroups('group', null, 'K2_ANY'), false, 'header'); // Sorting filter $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_NAME_ASC' => 'name', 'K2_NAME_DESC' => 'name.reverse', 'K2_GROUP_ASC' => 'group', 'K2_GROUP_DESC' => 'group.reverse', 'K2_TYPE_ASC' => 'type', 'K2_TYPE_DESC' => 'type.reverse', 'K2_ORDERING' => 'ordering', 'K2_STATE_ASC' => 'state', 'K2_STATE_DESC' => 'state.reverse'); K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); // State filter K2Response::addFilter('state', JText::_('K2_STATE'), K2HelperHTML::state('state', null, 'K2_ANY', false), true, 'sidebar'); }
protected function setFilters() { // Sorting filter $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_NAME_ASC' => 'name', 'K2_NAME_DESC' => 'name.reverse', 'K2_EMAIL_ASC' => 'email', 'K2_EMAIL_DESC' => 'email.reverse', 'K2_URL_ASC' => 'url', 'K2_URL_DESC' => 'url.reverse', 'K2_IP_ASC' => 'ip', 'K2_IP_DESC' => 'ip.reverse', 'K2_HOSTNAME_ASC' => 'hostname', 'K2_HOSTNAME_DESC' => 'hostname.reverse', 'K2_DATE_ASC' => 'date', 'K2_DATE_DESC' => 'date.reverse', 'K2_STATE_ASC' => 'state', 'K2_STATE_DESC' => 'state.reverse'); K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); // State filter K2Response::addFilter('state', JText::_('K2_STATE'), K2HelperHTML::state('state', null, 'K2_ANY', false), true, 'sidebar'); // Author filter K2Response::addFilter('author', JText::_('K2_USER'), '<input data-widget="user" data-null="' . JText::_('K2_ANY') . '" data-min="0" data-name="' . JText::_('K2_ANY') . '" type="hidden" name="userId" value="" />', false, 'header'); // Categories filter K2Response::addFilter('category', JText::_('K2_CATEGORY'), K2HelperHTML::categories('category', null, 'K2_ANY'), false, 'header'); }
protected function setFilters() { // Sorting filter $sortingOptions = array('K2_NONE' => '', 'K2_ID_ASC' => 'id', 'K2_ID_DESC' => 'id.reverse', 'K2_TITLE_ASC' => 'title', 'K2_TITLE_DESC' => 'title.reverse', 'K2_ORDERING' => 'ordering', 'K2_FEATURED_ORDERING' => 'featured_ordering', 'K2_STATE_ASC' => 'state', 'K2_STATE_DESC' => 'state.reverse', 'K2_FEATURED_ASC' => 'featured', 'K2_FEATURED_DESC' => 'featured.reverse', 'K2_CATEGORY_ASC' => 'category', 'K2_CATEGORY_DESC' => 'category.reverse', 'K2_AUTHOR_ASC' => 'author', 'K2_AUTHOR_DESC' => 'author.reverse', 'K2_MODERATOR_ASC' => 'moderator', 'K2_MODERATOR_DESC' => 'moderator.reverse', 'K2_ACCESS_LEVEL_ASC' => 'access', 'K2_ACCESS_LEVEL_DESC' => 'access.reverse', 'K2_CREATED_ASC' => 'created', 'K2_CREATED_DESC' => 'created.reverse', 'K2_MODIFIED_ASC' => 'modified', 'K2_MODIFIED_DESC' => 'modified.reverse', 'K2_LANGUAGE_ASC' => 'language', 'K2_LANGUAGE_DESC' => 'language.reverse', 'K2_HITS_ASC' => 'hits', 'K2_HITS_DESC' => 'hits.reverse'); K2Response::addFilter('sorting', JText::_('K2_SORT_BY'), K2HelperHTML::sorting($sortingOptions), false, 'header'); // Categories filter K2Response::addFilter('category', JText::_('K2_CATEGORY'), K2HelperHTML::categories('category', null, 'K2_ANY'), false, 'header'); // Author filter K2Response::addFilter('author', JText::_('K2_AUTHOR'), '<input data-widget="user" data-null="' . JText::_('K2_ANY') . '" data-min="0" data-name="' . JText::_('K2_ANY') . '" type="hidden" name="author" value="" />', false, 'header'); // Author filter K2Response::addFilter('tag', JText::_('K2_TAG'), '<input data-widget="tag" data-null="' . JText::_('K2_ANY') . '" data-min="0" data-name="' . JText::_('K2_ANY') . '" type="hidden" name="tag" value="" />', false, 'header'); // Access filter K2Response::addFilter('access', JText::_('K2_ACCESS'), JHtml::_('access.level', 'access', null, '', array(JHtml::_('select.option', '0', JText::_('K2_ANY')))), false, 'header'); // Language filter K2Response::addFilter('language', JText::_('K2_LANGUAGE'), K2HelperHTML::language('language', '', 'K2_ANY'), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); // State filter K2Response::addFilter('state', JText::_('K2_STATE'), K2HelperHTML::state('state', null, 'K2_ANY', true), true, 'sidebar'); // Featured filter K2Response::addFilter('featured', JText::_('K2_FEATURED'), K2HelperHTML::featured(), true, 'sidebar'); }
protected function setFilters() { // Root filter K2Response::addFilter('root', JText::_('K2_ROOT'), K2HelperHTML::categories('root', null, 'K2_NONE'), true, 'header'); // Access filter K2Response::addFilter('access', JText::_('K2_ACCESS'), JHtml::_('access.level', 'access', null, '', array(JHtml::_('select.option', '0', JText::_('K2_ANY')))), false, 'header'); // Language filter K2Response::addFilter('language', JText::_('K2_LANGUAGE'), K2HelperHTML::language('language', '', 'K2_ANY'), false, 'header'); // Search filter K2Response::addFilter('search', JText::_('K2_SEARCH'), K2HelperHTML::search(), false, 'sidebar'); // State filter K2Response::addFilter('state', JText::_('K2_STATE'), K2HelperHTML::state('state', null, 'K2_ANY', true), true, 'sidebar'); }