diff --git a/public/main/admin/access_urls.php b/public/main/admin/access_urls.php
index 728a3049e4..e787e9c75b 100644
--- a/public/main/admin/access_urls.php
+++ b/public/main/admin/access_urls.php
@@ -114,35 +114,33 @@ if (-1 == $current_access_url_id) {
}
}
-// action menu
-echo '
';
-echo Display::url(
+$actions = Display::url(
Display::return_icon('new_link.png', get_lang('Add URL'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/access_url_edit.php'
);
-echo Display::url(
+$actions .= Display::url(
Display::return_icon('user.png', get_lang('Manage users'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_users_to_url.php'
);
-echo Display::url(
+$actions .= Display::url(
Display::return_icon('course.png', get_lang('Manage courses'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_courses_to_url.php'
);
$userGroup = new UserGroup();
if ($userGroup->getUseMultipleUrl()) {
- echo Display::url(
+ $actions .= Display::url(
Display::return_icon('class.png', get_lang('Manage user groups'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_usergroup_to_url.php'
);
}
-echo Display::url(
+$actions .= Display::url(
Display::return_icon('folder.png', get_lang('Manage course categories'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_course_category_to_url.php'
);
-echo '
';
+echo Display::toolbarAction('urls', [$actions]);
$data = UrlManager::get_url_data();
$urls = [];
diff --git a/public/main/admin/course_information.php b/public/main/admin/course_information.php
index 9a10505a42..fcf7d4ab6e 100644
--- a/public/main/admin/course_information.php
+++ b/public/main/admin/course_information.php
@@ -97,13 +97,16 @@ $interbreadcrumb[] = ['url' => 'course_list.php', 'name' => get_lang('Courses')]
$courseId = $courseInfo['real_id'];
$tool_name = $courseInfo['title'].' ('.$courseInfo['visual_code'].')';
Display::display_header($tool_name);
-?>
-
-