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

17 lines
631 B
PHP
Raw Normal View History

2013-01-15 13:40:38 +00:00
<?php if(count($_["breadcrumb"])):?>
<div class="crumb">
2013-02-27 20:14:15 +00:00
<a href="<?php print_unescaped($_['baseURL']); ?>">
<img src="<?php print_unescaped(OCP\image_path('core', 'places/home.svg'));?>" class="svg" />
</a>
</div>
2013-01-15 13:40:38 +00:00
<?php endif;?>
2013-01-13 00:02:11 +00:00
<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
$crumb = $_["breadcrumb"][$i];
2013-01-13 00:02:11 +00:00
$dir = str_replace('+', '%20', urlencode($crumb["dir"]));
$dir = str_replace('%2F', '/', $dir); ?>
2013-02-27 20:14:15 +00:00
<div class="crumb <?php if($i == count($_["breadcrumb"])-1) p('last');?> svg"
data-dir='<?php p($dir);?>'>
<a href="<?php p($_['baseURL'].$dir); ?>"><?php p($crumb["name"]); ?></a>
2013-01-13 00:02:11 +00:00
</div>
2013-01-15 13:40:38 +00:00
<?php endfor;