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

18 lines
681 B
PHP
Raw Normal View History

<div class="crumb <?php if(!count($_["breadcrumb"])) p('last');?>" data-dir=''>
<a href="<?php print_unescaped($_['baseURL']); ?>">
<?php if(isset($_['rootBreadCrumb'])):
echo $_['rootBreadCrumb'];
else:?>
<img src="<?php print_unescaped(OCP\image_path('core', 'places/home.svg'));?>" class="svg" />
<?php endif;?>
</a>
</div>
2013-01-13 04:02:11 +04:00
<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
$crumb = $_["breadcrumb"][$i];
2013-07-04 20:23:31 +04:00
$dir = \OCP\Util::encodePath($crumb["dir"]); ?>
2013-02-28 00:14:15 +04: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 04:02:11 +04:00
</div>
2013-01-15 17:40:38 +04:00
<?php endfor;