$theme variable is not exposed inside block.html.php?

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-08-30 04:56

$theme variable is not exposed inside block.html.php?
I am defining theme settings as part of theme class but inside block view it is not defined per se - if I enable strict php mode, I see an error in the logs, yet code continue to function properly... why?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2010-09-02 03:57

It should be available. I went into themes/wind/views/block.html.php and added:

<?= $theme->item()->id ?>

And see the number "1" appear at the top of every block in my theme.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git