Elgg  Version 6.1
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $menu
 Form body for setting up site menu. More...
 
 $menu_items = $menu->getItems()
 
 $num_featured_items = elgg_extract('num_featured_items', $vars, count($menu_items))
 
 $featured_menu_names = elgg_get_config('site_featured_menu_names')
 
 $dropdown_values = []
 
foreach($menu_items as $item) $dropdown_values [' '] = elgg_echo('none')
 
 $configure
 
 $fields = []
 
 $add_menu
 
 $custom_items = (array) elgg_get_config('site_custom_menu_items')
 
 $custom_items [''] = ''
 
 $name_str = elgg_echo('name')
 
 $url_str = elgg_echo('admin:plugins:label:website')
 
 foreach ($custom_items as $title=> $url)
 
 $footer
 

Variable Documentation

$add_menu
Initial value:
= elgg_view('output/longtext', [
'value' => elgg_echo('admin:add_menu_item:description'),
'class' => 'elgg-text-help',
])
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156

Definition at line 55 of file save.php.

for ($i=0;$i< $num_featured_items;$i++) $configure
Initial value:
= elgg_view('output/longtext', [
'value' => elgg_echo('admin:menu_items:description'),
'class' => 'elgg-text-help',
])
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156

Definition at line 25 of file save.php.

$custom_items = (array) elgg_get_config('site_custom_menu_items')

Definition at line 60 of file save.php.

$custom_items[''] = ''

Definition at line 61 of file save.php.

$dropdown_values = []

Definition at line 17 of file save.php.

foreach ($menu_items as $item) $dropdown_values[' '] = elgg_echo('none')

Definition at line 23 of file save.php.

$featured_menu_names = elgg_get_config('site_featured_menu_names')

Definition at line 15 of file save.php.

$fields = []

Definition at line 30 of file save.php.

$footer
Initial value:
'#type' => 'submit',
'text' => elgg_echo('save'),
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 89 of file save.php.

$menu
Initial value:
= elgg()->menus->getUnpreparedMenu('site', [
'sort_by' => 'name',
])
elgg
Definition: install.js:27

Form body for setting up site menu.

Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 7 of file save.php.

$menu_items = $menu->getItems()

Definition at line 11 of file save.php.

$name_str = elgg_echo('name')

Definition at line 63 of file save.php.

$num_featured_items = elgg_extract('num_featured_items', $vars, count($menu_items))

Definition at line 13 of file save.php.

$url_str = elgg_echo('admin:plugins:label:website')

Definition at line 64 of file save.php.

foreach($custom_items as $title=> $url)

Definition at line 66 of file save.php.