Themes

Turn editing buttons does not work ($PAGE->button is NULL)

 
 
Picture of Christos Savva
Turn editing buttons does not work ($PAGE->button is NULL)
 

Hello again, 

I am trying to add the Turn Editing On/Off button to my custom theme and I use the following code

echo $PAGE->button;

But nothing is being printed. So I var_dump($PAGE->button) and I get

 

string(0) ""

 

Does anyone have an idea why this is happening? Note that If I change the theme to something else, Turn Editing On button works fine.

 

Cheers

 

 
Average of ratings: -