server/apps/files/templates/part.breadcrumb.php

7 lines
463 B
PHP
Raw Normal View History

<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
2011-10-21 17:09:41 +00:00
$crumb = $_["breadcrumb"][$i]; ?>
2012-10-05 15:05:23 +00:00
<div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo urlencode($crumb["dir"]);?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'>
<a href="<?php echo $_['baseURL'].urlencode($crumb["dir"]); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
</div>
<?php endfor;?>