summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/part.breadcrumb.php
blob: f01cb8d212a8eb0a7dac203a491509da912e0183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php if(count($_["breadcrumb"])):?>
	<div class="crumb">
		<a href="<?php echo $_['baseURL']; ?>">
			<img src="<?php echo OCP\image_path('core', 'places/home.svg');?>" class="svg" />
		</a>
	</div>
<?php endif;?>
<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
	$crumb = $_["breadcrumb"][$i];
	$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;?>'>
	<a href="<?php echo $_['baseURL'].$dir; ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
	</div>
<?php endfor;