aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/breadcrumbs.php
blob: d24f39f38e07fffc1f5a2b6b850b1a99f612db18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
	$file_guid = $vars['file_guid'];
	$page_owner = page_owner_entity();

	$first_level_text = '';
	$first_level_link = $CONFIG->wwwroot . "pg/photos/owned/" . $page_owner->username;
	if (get_loggedin_userid() == $page_owner->guid)
		$first_level_text = elgg_echo('album:yours');
	else
		$first_level_text = sprintf(elgg_echo('album:user'), $page_owner->name);
?>
<a href="<?php echo $first_level_link; ?>"><?php echo $first_level_text; ?></a>
<?
	$second_level_text = '';
	if (isset($vars['album'])) {
		$second_level_text = $vars['album']->title;
		$second_level_link = $vars['album']->getURL();
?>
>>  <a href="<?php echo $second_level_link; ?>"><?php echo $second_level_text; ?></a>
<?php
	}
?>