|
|
|
@ -128,6 +128,11 @@ class Template |
|
|
|
'get_lang', |
|
|
|
'get_lang', |
|
|
|
'api_get_path', |
|
|
|
'api_get_path', |
|
|
|
'api_get_local_time', |
|
|
|
'api_get_local_time', |
|
|
|
|
|
|
|
'api_convert_and_format_date', |
|
|
|
|
|
|
|
'api_is_allowed_to_edit', |
|
|
|
|
|
|
|
'api_get_user_info', |
|
|
|
|
|
|
|
'api_get_configuration_value', |
|
|
|
|
|
|
|
'api_get_setting', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'name' => 'return_message', |
|
|
|
'name' => 'return_message', |
|
|
|
'callable' => 'Display::return_message_and_translate' |
|
|
|
'callable' => 'Display::return_message_and_translate' |
|
|
|
@ -155,26 +160,6 @@ class Template |
|
|
|
[ |
|
|
|
[ |
|
|
|
'name' => 'icon', |
|
|
|
'name' => 'icon', |
|
|
|
'callable' => 'Template::get_icon_path' |
|
|
|
'callable' => 'Template::get_icon_path' |
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'name' => 'isAllowedToEdit', |
|
|
|
|
|
|
|
'callable' => 'api_is_allowed_to_edit' |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'name' => 'local_format_date', |
|
|
|
|
|
|
|
'callable' => 'api_convert_and_format_date' |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'name' => 'user_info', |
|
|
|
|
|
|
|
'callable' => 'api_get_user_info' |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'name' => 'get_configuration_value', |
|
|
|
|
|
|
|
'callable' => 'api_get_configuration_value' |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'name' => 'get_setting', |
|
|
|
|
|
|
|
'callable' => 'api_get_setting' |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
@ -197,10 +182,9 @@ class Template |
|
|
|
|
|
|
|
|
|
|
|
// Setting administrator variables |
|
|
|
// Setting administrator variables |
|
|
|
$this->setAdministratorParams(); |
|
|
|
$this->setAdministratorParams(); |
|
|
|
|
|
|
|
|
|
|
|
$this->setCSSEditor(); |
|
|
|
$this->setCSSEditor(); |
|
|
|
|
|
|
|
|
|
|
|
//header and footer are showed by default |
|
|
|
// Header and footer are showed by default |
|
|
|
$this->set_footer($show_footer); |
|
|
|
$this->set_footer($show_footer); |
|
|
|
$this->set_header($show_header); |
|
|
|
$this->set_header($show_header); |
|
|
|
|
|
|
|
|
|
|
|
|