Vertical Breadcrumb

dreado Member
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.

Comments

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

    }`
  • dreado Member
    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?
  • 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.
Sign In or Register to comment.