Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

Michel on "[1.4.5.7] printAlbumBreadcrumb tooltip"

$
0
0

Hi All,

Almost 9 months ago I asked the same question, but this worked with the early ZP installs.

Now with the latest ZP installs this function had a update so my modified function don't work anymore.

How do I get a tooltip on the <?php printAlbumBreadcrumb("", " |"); ?> function?

I tried the subalbum description, because with a album this is working, but with a subalbum not.

Now i have this working: Index | 2013 | Amsterdam |

Index = return to index, controlled by getGalleryIndexURL
2013 = return to albums, controlled by album description
Amsterdam = no tooltip

The function on template function

function printAlbumBreadcrumb($before = '', $after = '', $title = NULL) {
	if ($breadcrumb = getAlbumBreadcrumb($title)) {
		if ($before) {
			$output = '<span class="beforetext">' . html_encode($before) . '</span>';
		} else {
			$output = '';
		}
		$output .= "<a>";
		$output .= html_encode($breadcrumb['title']);
		$output .= '</a>';
		if ($after) {
			$output .= '<span class="aftertext">' . html_encode($after) . '</span>';
		}
		echo $output;
	}
}

TIA


Viewing all articles
Browse latest Browse all 2917

Trending Articles