Hello.
I've set customheader.php in admin settings but want to display it only on home (index) page.
I know this content works for quests:
if (!USER_ID) { some content; }
I've tried ($cat == 0)
and ($CURRENT_CAT_DEPTH == -1)
but without success :(
Please, advise what variable or function should I use in customheader.php to show it content on home (index) page only?
I found solution on previous themes:
- http://forum.coppermine-gallery.net/index.php/topic,77015.msg372086.html#msg372086
- http://forum.coppermine-gallery.net/index.php/topic,76584.msg369543.html#msg369543
- http://forum.coppermine-gallery.net/index.php/topic,64052.msg318173.html#msg318173
And here is sample code detecting home (index) page:
global $CPG_PHP_SELF;
$superCage = Inspekt::makeSuperCage();
if ($CPG_PHP_SELF == 'index.php' && !count($superCage->get->_source))
{ home page }
else
{ not home page }
Marking thread as resolved.