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 ".$breadcrumb["text"][$i]." \n";
}
?>
</td>
</tr>
</table>
<?php
}
?>
|