Member
Member
SubJunk   2012-03-25, 22:26
#1

There's the copyright field for images in the admin panel, but I don't see a way to access it on the image pages so it displays.
Can we have something like getImageCopyright() or getCopyright() accessible from theme/image.php?

Member
Member
sbillard   2012-03-26, 02:17
#2

How about the image object methog getCopyright()?

Member
Member
SubJunk   2012-03-26, 05:47
#3

When I call getCopyright from image.php it's not recognised:

Call to undefined function getCopyright() in image.php

Member
Member
kagutsuchi   2012-03-26, 07:41
#4

Just to clarify, as sbillard said, the getCopyright() method belongs to the _Image class. Are you calling it from an instantiated image object?

Member
Member
sbillard   2012-03-26, 16:33
#5

What kagutschi means is that you must use the object model to get this field. If you are on the image page the $_zp_current_image->getCopyright().

Member
Member
SubJunk   2012-03-26, 21:02
#6

Sorry for the late reply I was sleeping, yes using it like that works, thanks

Maybe it should be possible to call getImageCopyright() in future versions, since most of those functions are already accessible on the image page (getImageDesc, getImageLocation, etc.)

Member
Member
sbillard   2012-03-27, 00:40
#7

There is really no need--in fact probably the reverse should be done, all the bare "get" type functions should be deprecated and the object model used instead. That would reduce considerably the size of the template functions script at no loss of function.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.