summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorFrançois KUBLER <francois@kubler.org>2011-03-09 21:57:00 +0100
committerFrançois KUBLER <francois@kubler.org>2011-03-09 21:57:00 +0100
commitbf815b33908394fcda4fb6cb987caaca58b20fd0 (patch)
tree6238b364efdad687e6aeb69e6111cbd7af06776f /files/templates
parent1935d85ef1200f7a73cccbca39f0b81ce411850c (diff)
downloadnextcloud-server-bf815b33908394fcda4fb6cb987caaca58b20fd0.tar.gz
nextcloud-server-bf815b33908394fcda4fb6cb987caaca58b20fd0.zip
Fixed PHP syntax in template files.
* Full PHP tags * Alternative syntax for control structures * Semi-colon at the end of instructions
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/index.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index fe7ec903c2a..695a3c45a9d 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -12,10 +12,10 @@
</div>
<p class="nav">
- <a href="<? echo link_to( "files", "index.php?dir=/" ) ?>"><img src="<? echo image_path( "", "actions/go-home.png" ) ?>" alt="Root" /></a>
- <? foreach( $_["breadcrumb"] as $crumb ){ ?>
- <a href="<? echo link_to( "files", "index.php?dir=".$crumb["dir"] ) ?>"><? echo $crumb["name"] ?></a>
- <? } ?>
+ <a href="<?php echo link_to("files", "index.php?dir=/"); ?>"><img src="<?php echo image_path("", "actions/go-home.png"); ?>" alt="Root" /></a>
+ <?php foreach($_["breadcrumb"] as $crumb): ?>
+ <a href="<?php echo link_to("files", "index.php?dir=".$crumb["dir"]); ?>"><?php echo $crumb["name"]; ?></a>
+ <?php endforeach; ?>
</p>
<table cellspacing="0">
@@ -29,15 +29,15 @@
</tr>
</thead>
<tbody>
- <? foreach( $_["files"] as $file ){ ?>
+ <?php foreach($_["files"] as $file): ?>
<tr>
<td class="selection"><input type="checkbox" /></td>
- <td class="filename"><a style="background-image:url(<? if( $file["type"] == "dir" ) echo mimetype_icon( "dir" ); else echo mimetype_icon( $file["mime"] ) ?>)" href="<? if( $file["type"] == "dir" ) echo link_to( "files", "index.php?dir=".$file["directory"]."/".$file["name"] ); else echo link_to( "files", "download.php?file=".$file["directory"]."/".$file["name"] ) ?>" title=""><? echo $file["name"] ?></a></td>
- <td class="filesize"><? if( $file["type"] != "dir" ) echo human_file_size( $file["size"] ) ?></td>
- <td class="date"><? if( $file["type"] != "dir" ) echo $file["date"] ?></td>
+ <td class="filename"><a style="background-image:url(<?php if($file["type"] == "dir") echo mimetype_icon("dir"); else echo mimetype_icon($file["mime"]); ?>)" href="<?php if($file["type"] == "dir") echo link_to("files", "index.php?dir=".$file["directory"]."/".$file["name"]); else echo link_to("files", "download.php?file=".$file["directory"]."/".$file["name"]); ?>" title=""><?php echo $file["name"]; ?></a></td>
+ <td class="filesize"><?php if($file["type"] != "dir" ) echo human_file_size($file["size"]); ?></td>
+ <td class="date"><?php if($file["type"] != "dir") echo $file["date"]; ?></td>
<td class="fileaction"><a href="" title=""><img src="images/drop-arrow.png" alt="+" /></a></td>
</tr>
- <? } ?>
+ <?php endforeach; ?>
</tbody>
</table>