thanks for your reply. I've made it in the end with a function "context_header()" that was already provided by the "lib/outputrenderers.php".
What I want is, that the userpicture and the username is not shown in the header but in the userprofile page. So I added following code in my theme/layout/columns2.php
after line 95:
// show userpicture only in the userdetails (avoid in block edit/delete)
if ($PAGE->bodyid == "page-user-profile" && $PAGE->pagelayout == "mypublic") {
echo $OUTPUT->context_header();
}
Kind Regards,
Adrian