Skip to content
Snippets Groups Projects
Commit c420001f authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

bold current folder in breadcrumbs

parent 92ba000f
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ span.extention { opacity:0; -webkit-transition:opacity 500ms; -moz-transition:op ...@@ -34,7 +34,7 @@ span.extention { opacity:0; -webkit-transition:opacity 500ms; -moz-transition:op
tr:hover span.extention { opacity:1; } 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 { 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: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 tr.mouseOver td { background-color:#eee; }
table th { height:2em; padding:0 .5em; color:#999; } table th { height:2em; padding:0 .5em; color:#999; }
table th .name { float:left; margin-left:.5em; } table th .name { float:left; margin-left:.5em; }
......
<?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');?>")'> <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> </div>
<?php endforeach; ?> <?php endfor;
\ No newline at end of file $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>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment