BCU Theme - How to show Moodle Docs in the footer for admins?

BCU Theme - How to show Moodle Docs in the footer for admins?

by Chris Mat -
Number of replies: 2

Hi,

Thanks for this great theme. Could you please advise on how to show the 'Moodle Docs for this page' in the footer?

I'd like to show them for administrators only.


Regards,

Chris

Average of ratings: -
In reply to Chris Mat

Re: BCU Theme - How to show Moodle Docs in the footer for admins?

by Mike Grant -

Hi Chris,

The docs will appear if you install the latest version of the theme, to make it conditional for administrators only look at the footer.php (theme/bcu/layout/includes/footer.php) at link 69. 

Wrap that echo statement in an if statement checking against has_capability, and that should sort your problems.

In reply to Mike Grant

Re: BCU Theme - How to show Moodle Docs in the footer for admins?

by Chris Mat -

Hi Mike,

Thanks for your reply, appreciate it. I am already using the footnote as my entire footer. Is there a code that I can add to the footer page to show Moodle docs without updating the entire theme?

Regards,

Chris