ZenphotoCMS Forum
zenpage - which function to call? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: zenpage - which function to call? (/thread-3561.html)



zenpage - which function to call? - albeezie - 11-10-2008

Is there any function that I can call to see what main page in the theme is being loaded: news.php, page.php, etc?

like if(isloaded(page.php)) etc, that sort of deal.




zenpage - which function to call? - sbillard - 11-10-2008

$_zp_gallery_page will have the script name that is loaded.




zenpage - which function to call? - albeezie - 11-10-2008

Thank you.




zenpage - which function to call? - acrylian - 11-10-2008

You can use zenpage's own is_Pages(), is_News() or is_NewsArticle(), too.