Thread:Project:Support desk/Mediawiki Main Page

Hi folks,

Currently, I have a like icon which display on every page. But right now I would like it to display on all other pages except the main page

My code to display the like icon is here (https://dpaste.de/ENfm)

On line 470 is where I check if it is a main page, but I am having issue. It is giving me the error (PHP Fatal error: Using $this when not in object context)

On line 32 is where the method is being declared.

How should I check if it is a main page. Using parser? Using outputToHTML?

Please advise. Greatly appreciated! Thanks all!