diff --git a/README.md b/README.md
index fbdef77a..e02ccc99 100644
--- a/README.md
+++ b/README.md
@@ -9,17 +9,31 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
## Changelog
-#### v0.12.3 · *2011-07-30*
+### v0.13 · *2011-08-06*
-* added tr translation by [Batuhan Icoz](http://github.com/batuhanicoz/h5ai)
+* added PHP implementation! (should work with PHP 5.2+)
+* added new options
+* changed layout of the bottom bar to display status information
+* added language selector to the bottom bar
+* quoted keys in `options.js` to make it valid json
+* changed value of option `lang` from `undefined` to `null`
+* added some new keys to `h5aiLangs`
+* added browser caching rules for css and js
+* added pt translation by [Jonnathan](http://github.com/jonnsl)
+* added bg translation by George Andonov
-#### v0.12.2 · *2011-07-30*
+### v0.12.3 · *2011-07-30*
+
+* added tr translation by [Batuhan Icoz](http://github.com/batuhanicoz)
+
+
+### v0.12.2 · *2011-07-30*
* added es translation by Jose David Calderon Serrano
-#### v0.12.1 · *2011-07-29*
+### v0.12.1 · *2011-07-29*
* fixed unchecked use of console.log
@@ -34,12 +48,12 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
* changed license to MIT license, see `LICENSE.txt`
-#### v0.10.2 · *2011-07-26*
+### v0.10.2 · *2011-07-26*
* improved tree scrollbar
-#### v0.10.1 · *2011-07-24*
+### v0.10.1 · *2011-07-24*
* fixed problems with ' in links
@@ -85,7 +99,7 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
* added localization, see `options.js`
-#### v0.5.3 · *2011-07-04*
+### v0.5.3 · *2011-07-04*
* refactored js
* added basic options support via `options.js`
@@ -93,13 +107,13 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
* optional tree sidebar
-#### v0.5.2 · *2011-07-02*
+### v0.5.2 · *2011-07-02*
* details view adjusts to window width
* linked icon for *.gz and *.bz2
-#### v0.5.1 · *2011-07-01*
+### v0.5.1 · *2011-07-01*
* disabled tree sidebar for now, since it had unwanted side effects
@@ -119,13 +133,13 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
* updated dot.access
-#### v0.3.2 · *2011-06-24*
+### v0.3.2 · *2011-06-24*
* removed lib versions from file names
* added 'empty' indicator for icons view
-#### v0.3.1 · *2011-06-24*
+### v0.3.1 · *2011-06-24*
* refactored js
* added `folderClick` and `fileClick` callback hooks
@@ -140,20 +154,20 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
* updated jQuery to version 1.6.1
-#### v0.2.3 · *2011-06-17*
+### v0.2.3 · *2011-06-17*
* more refactoring in main.js
* ~~added custom js support, and global includes~~ *removed, only custom top and bottom sections supported*
-#### v0.2.2 · *2011-06-16*
+### v0.2.2 · *2011-06-16*
* refactored a lot, added some comments
-* included fixes from [NumEricR](http://github.com/NumEricR/h5ai)
+* included fixes from [NumEricR](http://github.com/NumEricR)
* added top/bottom message support, only basicly styled
-#### v0.2.1 · *2011-06-16*
+### v0.2.1 · *2011-06-16*
* fixed croped filenames
* fixed missing .png extension in header
diff --git a/build.properties b/build.properties
index 374ab319..b247f078 100644
--- a/build.properties
+++ b/build.properties
@@ -3,7 +3,7 @@ custom = true
# project
project.name = h5ai
-project.version = 0.12.3
+project.version = 0.13
# src
diff --git a/release/h5ai-0.12.3.tar.gz b/release/h5ai-0.12.3.tar.gz
deleted file mode 100644
index 2993fd5a..00000000
Binary files a/release/h5ai-0.12.3.tar.gz and /dev/null differ
diff --git a/release/h5ai-0.13.tar.gz b/release/h5ai-0.13.tar.gz
new file mode 100644
index 00000000..51e8964e
Binary files /dev/null and b/release/h5ai-0.13.tar.gz differ
diff --git a/release/h5ai-0.12.3.zip b/release/h5ai-0.13.zip
similarity index 80%
rename from release/h5ai-0.12.3.zip
rename to release/h5ai-0.13.zip
index 1b1461fa..5f414a1a 100644
Binary files a/release/h5ai-0.12.3.zip and b/release/h5ai-0.13.zip differ
diff --git a/src/h5ai/.htaccess b/src/h5ai/.htaccess
new file mode 100644
index 00000000..cf7f738f
--- /dev/null
+++ b/src/h5ai/.htaccess
@@ -0,0 +1,16 @@
+
+AddType text/html .php
+
+# cache images, css and js for 52 weeks
+
+
+ Header set Cache-Control "max-age=31449600, public"
+
+
+ Header set Cache-Control "max-age=31449600, public"
+
+
+ Header set Cache-Control "max-age=31449600, public"
+
+
+
diff --git a/src/h5ai/cache/readme.md b/src/h5ai/cache/readme.md
new file mode 100644
index 00000000..470cdbd2
--- /dev/null
+++ b/src/h5ai/cache/readme.md
@@ -0,0 +1,7 @@
+# Cache
+
+This directory is used for server side caching. To use caching make this
+directory writable for Apache.
+
+There is no critical data in here. You can savely remove any content. This
+will clear the cache.
diff --git a/src/h5ai/css/inc/extended.less b/src/h5ai/css/inc/extended.less
index e0368e4b..af1a18c4 100644
--- a/src/h5ai/css/inc/extended.less
+++ b/src/h5ai/css/inc/extended.less
@@ -64,6 +64,16 @@
}
}
}
+ &.folder-parent {
+ .date, .size {
+ display: none;
+ }
+ }
+ &.folder {
+ .size {
+ display: none;
+ }
+ }
}
.icon, .label, .date, .size {
padding: 6px;
diff --git a/src/h5ai/css/main.less b/src/h5ai/css/inc/main.less
similarity index 64%
rename from src/h5ai/css/main.less
rename to src/h5ai/css/inc/main.less
index 7f6d1a7a..632df25c 100644
--- a/src/h5ai/css/main.less
+++ b/src/h5ai/css/inc/main.less
@@ -1,15 +1,15 @@
-@import "inc/html5reset";
-@import "inc/mixins";
+@import "html5reset";
+@import "mixins";
html.js {
- .jsDisabledFallback {
+ .hideOnJs {
display: none;
}
}
html.no-js {
- body > nav ul {
+ .hideOnNoJs {
display: none;
}
}
@@ -109,9 +109,9 @@ body > nav {
}
-@import "inc/table";
-@import "inc/extended";
-@import "inc/tree";
+@import "table";
+@import "extended";
+@import "tree";
body > footer {
@@ -120,7 +120,7 @@ body > footer {
width: 100%;
left: 0;
bottom: 0;
- padding: 10px 0;
+ padding: 6px 0 8px 0;
background-color: rgb(241,241,241);
border-top: 2px solid rgb(210,210,210);
@@ -132,27 +132,63 @@ body > footer {
color: #555;
text-decoration: none;
.transition( all 0.2s ease-in-out );
-
+ opacity: 0.7;
+
&:hover {
color: #e80;
+ opacity: 1;
+ }
+ }
+ .left {
+ display: block;
+ padding: 0 8px;
+ float: left
+ }
+ .center {
+ display: block;
+ margin: 0 300px;
+ }
+ .right {
+ display: block;
+ padding: 0 8px;
+ float: right
+ }
+ #langSelector {
+ position: relative;
+ cursor: pointer;
+
+ .langOptions {
+ position: absolute;
+ z-index: 2;
+ display: none;
+ right: 0;
+ top: 0;
+ background-color: rgb(241,241,241);
+ border: 1px solid rgb(210,210,210);
+
+ ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ text-align: left;
+
+ li {
+ padding: 8px 24px 10px 24px;
+ white-space: nowrap;
+ border-top: 1px solid rgb(231,231,231);
+ .transition( all 0.2s ease-in-out );
+
+ &.current {
+ color: #333;
+ background-color: rgba(255,255,255,0.8);
+ }
+ &:hover {
+ color: #e80;
+ background-color: rgba(255,255,255,0.8);
+ }
+ }
+ }
}
}
}
-
-#html5 {
- position: absolute;
- left: 6px;
- bottom: 6px;
- opacity: 0.4;
- .transition( all 0.2s ease-in-out );
-
- img {
- width: 20px;
- height: 20px;
- }
- &:hover {
- opacity: 0.8;
- }
-}
-
diff --git a/src/h5ai/css/inc/tree.less b/src/h5ai/css/inc/tree.less
index b97c32a4..63cd6d7b 100644
--- a/src/h5ai/css/inc/tree.less
+++ b/src/h5ai/css/inc/tree.less
@@ -1,9 +1,10 @@
#tree {
- position: fixed;
display: none;
+ position: fixed;
left: 0;
- top: 0;
+ top: 82px;
+ z-index: 1;
overflow: auto;
font-size: 0.85em;
padding: 16px 16px 16px 16px;
diff --git a/src/h5ai/css/main-js.less b/src/h5ai/css/main-js.less
new file mode 100644
index 00000000..fee495b4
--- /dev/null
+++ b/src/h5ai/css/main-js.less
@@ -0,0 +1,3 @@
+
+@import "inc/main";
+
diff --git a/src/h5ai/css/main-php.less b/src/h5ai/css/main-php.less
new file mode 100644
index 00000000..e2886c05
--- /dev/null
+++ b/src/h5ai/css/main-php.less
@@ -0,0 +1,15 @@
+
+@import "inc/main";
+
+
+#table {
+ display: none;
+}
+#tree, #content > header, #content > footer {
+ display: block;
+}
+html.no-js {
+ #extended.details-view, #extended.icons-view {
+ display: block;
+ }
+}
diff --git a/src/h5ai/footer.html b/src/h5ai/footer.html
index 036938cb..38363c8f 100644
--- a/src/h5ai/footer.html
+++ b/src/h5ai/footer.html
@@ -4,20 +4,27 @@
-