PHP Variable with page title

jsinnema

Joined: 2012-03-06
Posts: 2
Posted: Tue, 2012-03-06 13:24

Is there a simple way to get the page title (<HEADER><TITLE>page title</TITLE></HEADER>) into a variable that can be used in PHP. By searching this forum I found a simple way to get the language code:

global $g2_language;
if (!$g2_language) {
global $gallery;
list ($ret, $languageCode) = $gallery->getActiveLanguageCode();
else {
$languageCode = $g2_language;
}

So my main interest is to get the page title, but I am also interested in how to access all variables in php that are used in Gallery 2.3.1

Thanks in advance!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2012-03-06 16:40

in smarty templates like theme.tpl it would be:
$this->_tpl_vars['theme']['item']['title']

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jsinnema

Joined: 2012-03-06
Posts: 2
Posted: Tue, 2012-03-06 18:18

Thank you very much suprsidr, this is what I was looking for!