summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/part.breadcrumb.php
blob: 2a0df6227679307c6840d5cb5fcf839c422c0d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>
<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
	$crumb = $_["breadcrumb"][$i];
	$dir = \OCP\Util::encodePath($crumb["dir"]); ?>
	<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>
	</div>
<?php endfor;