h5ai/src/_h5ai/server/php/index.php.jade

57 lines
2 KiB
Text
Raw Normal View History

2012-08-15 22:05:52 +02:00
|<?php
2012-10-05 19:55:48 +02:00
| header("Content-type: text/html;{{pkg.name}}={{pkg.version}}");
2012-10-06 01:17:11 +02:00
| require_once(str_replace("\\", "/", dirname(__FILE__)) . "/inc/H5ai.php");
2012-08-15 22:05:52 +02:00
| $h5ai = new H5ai(__FILE__);
| $h5aiAbsHref = $h5ai->getH5aiAbsHref();
| $isHeadRequest = stripos($_SERVER["REQUEST_METHOD"], "HEAD");
|?>
2012-10-05 19:55:48 +02:00
- var appHref = "<?php echo $h5aiAbsHref; ?>client"
2012-08-15 22:05:52 +02:00
- var json = "<?php if (!$isHeadRequest) { echo $h5ai->getGenericJson(); }?>"
- var fallback = "<?php if (!$isHeadRequest) { echo $h5ai->getNoJsFallback(); }?>"
- var config = "<?php if (!$isHeadRequest) { echo $h5ai->getCustomConfig(); }?>"
2012-08-15 22:05:52 +02:00
2012-08-15 12:20:42 +02:00
doctype 5
//if lt IE 9
<html class="no-js oldie" lang="en">
//[if gt IE 8]><!
html.no-js( lang="en" )
//<![endif]
head
meta( charset="utf-8" )
meta( http-equiv="X-UA-Compatible", content="IE=edge,chrome=1" )
2012-09-14 00:25:20 +02:00
title Directory index · styled with {{pkg.name}} {{pkg.version}}
2012-10-05 19:55:48 +02:00
meta( name="description", content="Directory index styled with {{pkg.name}} {{pkg.version}} ({{pkg.url}})" )
2012-08-15 12:20:42 +02:00
meta( name="viewport", content="width=device-width" )
2012-10-05 19:55:48 +02:00
link( rel="shortcut icon", href!="#{appHref}/images/app-16x16.ico" )
link( rel="apple-touch-icon", type="image/png", href!="#{appHref}/images/app-48x48.png" )
2012-08-15 12:20:42 +02:00
link( rel="stylesheet", href="//fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic,700italic|Ubuntu:400,700,400italic,700italic" )
2012-10-05 19:55:48 +02:00
link( rel="stylesheet", href!="#{appHref}/css/styles.css" )
script( src!="#{appHref}/js/scripts.js", data-config!="#{config}" )
2012-08-15 12:20:42 +02:00
body#h5ai-main
div#topbar.clearfix
ul#navbar
div#content
div#extended.clearfix
div#bottombar.clearfix
span.left
2012-10-06 01:17:11 +02:00
a#h5ai-reference( href="{{pkg.url}}", title="{{pkg.name}} · {{pkg.description}}" )
2012-10-05 19:55:48 +02:00
| {{pkg.name}} {{pkg.version}}
span.hideOnJs.noJsMsg
| ⚡ JavaScript is disabled! ⚡
2012-08-31 18:15:21 +02:00
span.oldBrowser
| ⚡ Some features disabled! Works best in
2012-08-15 12:20:42 +02:00
a( href="http://browsehappy.com" ) modern browsers
2012-08-31 18:15:21 +02:00
| . ⚡
2012-08-15 12:20:42 +02:00
span.right
span.center
2012-08-15 22:05:52 +02:00
div#data-generic-json.hidden !{json}
2012-08-15 12:20:42 +02:00
2012-08-15 22:05:52 +02:00
div#data-php-no-js-fallback.hideOnJs !{fallback}