bold current folder in breadcrumbs

This commit is contained in:
Jan-Christoph Borchardt 2011-10-21 19:09:41 +02:00
parent 92ba000f09
commit c420001f2b
2 changed files with 9 additions and 4 deletions

View File

@ -34,7 +34,7 @@ span.extention { opacity:0; -webkit-transition:opacity 500ms; -moz-transition:op
tr:hover span.extention { opacity:1; }
div.crumb { float:left; display:block; background:no-repeat right 0; padding:.75em 1.5em 0 1em; height:2.9em; }
div.crumb:first-child { padding-left:1em; }
div.crumb:last-child { font-weight:bold; }
div.crumb.last { font-weight:bold; }
table tr.mouseOver td { background-color:#eee; }
table th { height:2em; padding:0 .5em; color:#999; }
table th .name { float:left; margin-left:.5em; }

View File

@ -1,5 +1,10 @@
<?php foreach($_["breadcrumb"] as $crumb): ?>
<?php for($i=0; $i<count($_["breadcrumb"])-1; $i++):
$crumb = $_["breadcrumb"][$i]; ?>
<div class="crumb svg" data-dir='<?php echo $crumb["dir"];?>' style='background-image:url("<?php echo image_path('core','breadcrumb.png');?>")'>
<a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
<a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
</div>
<?php endforeach; ?>
<?php endfor;
$crumb = $_["breadcrumb"][count($_["breadcrumb"])-1] ?>
<div class="crumb last svg" data-dir='<?php echo $crumb["dir"];?>' style='background-image:url("<?php echo image_path('core','breadcrumb.png');?>")'>
<a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
</div>