Mercurial > dirlist-php
changeset 57:aa12b7cbe1e8
Use short echo syntax
author | nanaya <me@myconan.net> |
---|---|
date | Tue, 04 Apr 2017 22:22:06 +0900 |
parents | d0b3c58c2781 |
children | 281a129299cf |
files | index.php |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Tue Apr 04 22:17:23 2017 +0900 +++ b/index.php Tue Apr 04 22:22:06 2017 +0900 @@ -1,6 +1,6 @@ <?php - define('DL_VERSION', '2.2.2'); + define('DL_VERSION', '2.2.3'); // Required for strftime(). Set to UTC because :internet:. date_default_timezone_set('UTC'); @@ -156,7 +156,7 @@ <!doctype html> <head> <meta charset="utf-8"> - <title>Index of <?php echo h($uri); ?></title> + <title>Index of <?= h($uri); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/0.9.9/magnific-popup.css"> @@ -238,7 +238,7 @@ </style> </head> <body id="files"> - <h1>Index of <?php echo tree_link($uri); ?></h1> + <h1>Index of <?= tree_link($uri); ?></h1> <input placeholder="search (non-recursive)" class="search" /> @@ -249,19 +249,19 @@ <th><span class="sort" data-sort="size">Size</span></th> <th><span class="sort" data-sort="date">Date</span></th> </tr> - <?php echo up_link($uri); ?> + <?= up_link($uri); ?> </thead> <tbody class="list"> - <?php echo file_rows($dir, $dirs, true); ?> - <?php echo file_rows($dir, $files, false); ?> + <?= file_rows($dir, $dirs, true); ?> + <?= file_rows($dir, $files, false); ?> </tbody> </table> <footer> <hr> <em> - Running <a href="https://bitbucket.org/edogawaconan/dirlist-php">dirlist-php <?php echo DL_VERSION ?></a>. - Powered by PHP <?php echo phpversion(); ?>. + Running <a href="https://bitbucket.org/edogawaconan/dirlist-php">dirlist-php <?= DL_VERSION ?></a>. + Powered by PHP <?= phpversion(); ?>. </em> </footer> @@ -289,7 +289,7 @@ new List("files", { valueNames: ["filename", "size", "date"], - page: <?php echo count($dirs) + count($files); ?> + page: <?= count($dirs) + count($files); ?> }) </script> </body>