Elgg  Version 6.0
Variables
filter.php File Reference

Go to the source code of this file.

Variables

 $filter_tabs = (array) elgg_extract('filter', $vars, [])
 Renders a filter menu. More...
 
foreach($filter_tabs as $name=> $tab) $filter_id = elgg_extract('filter_id', $vars, 'filter')
 
 $menu_params = $vars
 
 $menu_params ['filter_id'] = $filter_id
 
 $menu_params ['items'] = $filter_tabs
 
 $menu_params ['sort_by'] = 'priority'
 
 $menu_params ['class'] = 'elgg-menu-filter'
 
 $menu_params ['selected_item_name'] = elgg_extract('selected_item_name', $vars, elgg_extract('filter_value', $vars))
 

Variable Documentation

foreach ($filter_tabs as $name=> $tab) $filter_id = elgg_extract('filter_id', $vars, 'filter')

Definition at line 28 of file filter.php.

$filter_tabs = (array) elgg_extract('filter', $vars, [])

Renders a filter menu.

$vars['filter'] An optional array of filter tabs Array items should be suitable for usage with elgg_register_menu_item() $vars['filter_id'] An optional ID of the filter If provided, plugins can adjust filter tabs menu via 'register, filter:$filter_id' hook (default: filter) $vars['filter_value'] Optional name of the selected filter tab If not provided, will be determined by current page's URL

Definition at line 15 of file filter.php.

$menu_params = $vars

Definition at line 30 of file filter.php.

$menu_params['filter_id'] = $filter_id

Definition at line 31 of file filter.php.

$menu_params['items'] = $filter_tabs

Definition at line 32 of file filter.php.

$menu_params['sort_by'] = 'priority'

Definition at line 33 of file filter.php.

$menu_params['class'] = 'elgg-menu-filter'

Definition at line 34 of file filter.php.

$menu_params['selected_item_name'] = elgg_extract('selected_item_name', $vars, elgg_extract('filter_value', $vars))

Definition at line 35 of file filter.php.