Don't know where to start. I guess you have not read the themeing guide nor the information about the zenphoto object model.
There is no such functon `getImagePublish()` There is a method of the gallery class by that name, but it must be invoked as a method of a object of class gallery. Even then, it will not give you the information you wish--it returns the default "publish" option for images.
What you want is the `getShow()` method of the image object.