|
|
|
|
@ -343,9 +343,10 @@ function return_navigation_array() |
|
|
|
|
if (true) { |
|
|
|
|
$params = array('variable = ? AND subkey = ?' => ['status', 'studentfollowup']); |
|
|
|
|
$result = api_get_settings_params_simple($params); |
|
|
|
|
$plugin = StudentFollowUpPlugin::create(); |
|
|
|
|
if (!empty($result) && $result['selected_value'] === 'installed') { |
|
|
|
|
$navigation['follow_up']['url'] = api_get_path(WEB_PLUGIN_PATH).'studentfollowup/posts.php'; |
|
|
|
|
$navigation['follow_up']['title'] = get_lang('MyDossier'); |
|
|
|
|
$navigation['follow_up']['title'] = $plugin->get_lang('CareDetailView'); |
|
|
|
|
$navigation['follow_up']['key'] = 'homepage'; |
|
|
|
|
$navigation['follow_up']['icon'] = 'homepage.png'; |
|
|
|
|
} |
|
|
|
|
@ -363,8 +364,7 @@ function return_navigation_array() |
|
|
|
|
// Reports |
|
|
|
|
if (!empty($possible_tabs['reports'])) { |
|
|
|
|
if (api_get_setting('show_tabs', 'reports') == 'true') { |
|
|
|
|
if ( |
|
|
|
|
(api_is_platform_admin() || api_is_drh() || api_is_session_admin()) |
|
|
|
|
if ((api_is_platform_admin() || api_is_drh() || api_is_session_admin()) |
|
|
|
|
&& Rights::hasRight('show_tabs:reports') |
|
|
|
|
) { |
|
|
|
|
$navigation['reports'] = $possible_tabs['reports']; |
|
|
|
|
|