Member
Member
dreado   16-06-2007, 09:16
#1

Just downloaded zenphoto, looks great!

I was wondering if anyone knows if you can create a vertical breadcrumb trail (rather than the horizontal one), by editing a theme? Had a look and seems breadcrumb items are in h2, but can’t see where the styling is that makes the heading inline.

Member
Member
DarrellD   16-06-2007, 17:46
#2

The code to make it inline is within the printImageTitle() function. If you want it to be vertical, just remove that function, and add in your own code with the getImageTitle() function. Here's the two functions:

`function printImageTitle($editable=false) {

global $_zp_current_image;

if ($editable && zp_loggedin()) {

  echo "" .

  htmlspecialchars(getImageTitle()) . "n";

  echo "initEditableTitle('imageTitleEditable');";

} else {

  echo htmlspecialchars(getImageTitle());

}

}`

`function getImageTitle() {

if(!in_context(ZP_IMAGE)) return false;

global $_zp_current_image;

return $_zp_current_image->getTitle();

}`

Member
Member
dreado   16-06-2007, 20:29
#3

Ok thanks.
Is there any reason why it is there? Bit of a pain for upgrading and stuff. Wouldn't it be better if all styles were in the style sheet?

Member
Member
DarrellD   17-06-2007, 17:28
#4

Why is it there? Most likely because of the embedded AJAX there in the code. It allows the AJAX-enabled form to be placed there, inline[d].

Semantically, yes, it would be better to place all styles in the stylesheet, but this is also the reason why the getImageTitle() function is provided.

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