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

18 lines
741 B
PHP
Raw Normal View History

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