ZenphotoCMS Forum
Vertical Breadcrumb - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Vertical Breadcrumb (/thread-1487.html)



Vertical Breadcrumb - dreado - 16-06-2007

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.




Vertical Breadcrumb - DarrellD - 16-06-2007

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();

}`




Vertical Breadcrumb - dreado - 16-06-2007

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?




Vertical Breadcrumb - DarrellD - 17-06-2007

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.