This commit is contained in:
Flatlogic Bot 2026-06-08 09:10:23 +00:00
parent 191008b3e9
commit 3ce5b7ce28

View File

@ -137,9 +137,12 @@ function matthew_lms_mvp_render_header(): string {
$links = [
'Home' => matthew_lms_mvp_public_url(),
'WAX Coach' => matthew_lms_mvp_public_url('career-coach/'),
'Profile' => matthew_lms_mvp_member_access_url('platform/'),
'Course' => matthew_lms_mvp_member_access_url('platform/course/'),
];
if (is_user_logged_in()) {
$links['Profile'] = matthew_lms_mvp_public_url('platform/');
$links['Course'] = matthew_lms_mvp_public_url('platform/course/');
}
$login_url = add_query_arg('redirect_to', rawurlencode(matthew_lms_mvp_public_url('platform/')), matthew_lms_mvp_public_url('log-in/'));
ob_start();
?>