File: breadcrumb.inc

package info (click to toggle)
gallery 1.5-1sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 21,172 kB
  • ctags: 4,516
  • sloc: php: 26,456; sh: 427; perl: 188; makefile: 58; xml: 48
file content (55 lines) | stat: -rw-r--r-- 1,443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
// $Id: breadcrumb.inc,v 1.26 2004/10/19 22:07:30 jenst Exp $
?>
<?php
global $breadcrumb, $navigator, $gallery;
global $navigator, $adminbox, $adminText;

if(!includeTemplate('breadcrumb.tpl')) {
	// If the border color is not passed in, we do a black/white combo
	
	if ($breadcrumb["bordercolor"]) {
		$borderIn = $breadcrumb["bordercolor"];
	} else {
		$borderIn = "#FFFFFF";
	}
	
	if (!isset($navigator) && !isset($adminbox) && !isset($adminText)) {
		$style="border-color: $borderIn; border-width:1px; border-style: solid;";
	} else {
		$style='';
	}

	if (!isset($navigator)) {
		$navigator["fullWidth"] = 100;
		$navigator["widthUnits"] = "%";
	}

	$pixelImage = '<img src="' . getImagePath('pixel_trans.gif') .'" width="1" height="1" alt="transpixel">';
	?>

<table style="<?php echo $style; ?>" width="<?php echo $navigator["fullWidth"] . $navigator["widthUnits"] ?>" border="0" cellspacing="0" cellpadding="0" class="modnavboxmid">
<tr> 
	<?php
		if ($gallery->user->isLoggedIn()) {
			$name = $gallery->user->getFullName();
			if (!$name) {
				$name = $gallery->user->getUsername();
			}
			echo "\t". '<td style="padding-left:5px;" class="bread" height="18">'. _("Logged in as:") .' '. $name .'</td>';
		}
	?>
		
	<td class="bread" height="18" align="right">
	<?php
	for ($i = 0; isset($breadcrumb["text"][$i]); $i++) {
		echo "\t\t&nbsp;".$breadcrumb["text"][$i]."&nbsp;\n";
	}
	?>
	</td> 
</tr>
</table>    

<?php
}
?>