Yes, just add the PHP output to the template context that is used to render the appropriate Mustache template.
This way out of my league...
From the code I understand that all is placed into my $headercontext, and finally render at teh echo $OUTPUT->render_from_template('theme_adaptable/headerstyletwo', $headercontext);
My problem is place this inside the navbar like I use to with a disableded link, befor the edit and zoom buttons.
I can't just use something like this:
$headercontext['shownavbar']['hostname'] = "" . gethostname() . "";
beacuse the theme doesn't know it has to render this...
Also the docs at https://docs.moodle.org/dev/Templates weren't helpfull...
Can someone help me with this, please?
From the code I understand that all is placed into my $headercontext, and finally render at teh echo $OUTPUT->render_from_template('theme_adaptable/headerstyletwo', $headercontext);
My problem is place this inside the navbar like I use to with a disableded link, befor the edit and zoom buttons.
I can't just use something like this:
$headercontext['shownavbar']['hostname'] = "" . gethostname() . "";
beacuse the theme doesn't know it has to render this...
Also the docs at https://docs.moodle.org/dev/Templates weren't helpfull...
Can someone help me with this, please?