Thank you. It worked.
>if you choose the Logout in the top right of the header that is normal Moodle logout, which is what you must be meaning.
Yup.
re: allc based theme,
I'm repairing a theme based on allc. This theme's custumised too much (I didn't do this!).
1) profileblock and frontpage are added
profile.php
<li><a href="<?php echo $CFG->wwwroot'/login/logout.php?sesskey='sesskey(); ?>">><img src="<?php echo $OUTPUT->pix_url('profile/logout', 'theme')?>" /> <?php echo get_string('logout');?></a></li>
I added the code you gave me.
frontpage.php
<div id="profile_logout">
<a href="<?php echo $CFG->wwwroot; ?>/user/profile.php"><img src="<?php echo $OUTPUT->pix_url('profile/profile', 'theme')?>" /> <?php echo get_string('myprofile');?></a> | <a href="<?php echo $CFG->wwwroot; ?>/login/logout.php"><img src="<?php echo $OUTPUT->pix_url('profile/logout', 'theme')?>" /> <?php echo get_string('logout');?></a>
</div>
Q: how can I change the blue-coloured code so Logout can work as normal Moodle logout?