Hi guys!
How i can check if it's class to show some features in course view?
Thanks for help!
Not sure what the issue you're asking about is.
The first image looks like the user dashboard page - therefore the header is showing the user name. The second image looks like its from a course page and the header is therefore showing the course details.
Isn't that what should happen? What do you want different to that? Bearing in mind that if you are on a user dashboard page, you are not in a course and so by definition you can't show course details.
If you're looking to check from code what kind of page you're on, you want $PAGE->pagetype. I think it's "course-view" for those pages.