')
+ .append(i.clone())
+ .remove()
+ .html()
+ .replace(/type="password"/i, 'type="text"')
+ .replace(/type=password/i, 'type=text')
+ );
+
+ if (i.attr('id') != '')
+ x.attr('id', i.attr('id') + '-polyfill-field');
+
+ if (i.attr('name') != '')
+ x.attr('name', i.attr('name') + '-polyfill-field');
+
+ x.addClass('polyfill-placeholder')
+ .val(x.attr('placeholder')).insertAfter(i);
+
+ if (i.val() == '')
+ i.hide();
+ else
+ x.hide();
+
+ i
+ .on('blur', function(event) {
+
+ event.preventDefault();
+
+ var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
+
+ if (i.val() == '') {
+
+ i.hide();
+ x.show();
+
+ }
+
+ });
+
+ x
+ .on('focus', function(event) {
+
+ event.preventDefault();
+
+ var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
+
+ x.hide();
+
+ i
+ .show()
+ .focus();
+
+ })
+ .on('keypress', function(event) {
+
+ event.preventDefault();
+ x.val('');
+
+ });
+
+ });
+
+ // Events.
+ $this
+ .on('submit', function() {
+
+ $this.find('input[type=text],input[type=password],textarea')
+ .each(function(event) {
+
+ var i = $(this);
+
+ if (i.attr('name').match(/-polyfill-field$/))
+ i.attr('name', '');
+
+ if (i.val() == i.attr('placeholder')) {
+
+ i.removeClass('polyfill-placeholder');
+ i.val('');
+
+ }
+
+ });
+
+ })
+ .on('reset', function(event) {
+
+ event.preventDefault();
+
+ $this.find('select')
+ .val($('option:first').val());
+
+ $this.find('input,textarea')
+ .each(function() {
+
+ var i = $(this),
+ x;
+
+ i.removeClass('polyfill-placeholder');
+
+ switch (this.type) {
+
+ case 'submit':
+ case 'reset':
+ break;
+
+ case 'password':
+ i.val(i.attr('defaultValue'));
+
+ x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
+
+ if (i.val() == '') {
+ i.hide();
+ x.show();
+ }
+ else {
+ i.show();
+ x.hide();
+ }
+
+ break;
+
+ case 'checkbox':
+ case 'radio':
+ i.attr('checked', i.attr('defaultValue'));
+ break;
+
+ case 'text':
+ case 'textarea':
+ i.val(i.attr('defaultValue'));
+
+ if (i.val() == '') {
+ i.addClass('polyfill-placeholder');
+ i.val(i.attr('placeholder'));
+ }
+
+ break;
+
+ default:
+ i.val(i.attr('defaultValue'));
+ break;
+
+ }
+ });
+
+ });
+
+ return $this;
+
+ };
+
+ /**
+ * Moves elements to/from the first positions of their respective parents.
+ * @param {jQuery} $elements Elements (or selector) to move.
+ * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
+ */
+ $.prioritize = function($elements, condition) {
+
+ var key = '__prioritize';
+
+ // Expand $elements if it's not already a jQuery object.
+ if (typeof $elements != 'jQuery')
+ $elements = $($elements);
+
+ // Step through elements.
+ $elements.each(function() {
+
+ var $e = $(this), $p,
+ $parent = $e.parent();
+
+ // No parent? Bail.
+ if ($parent.length == 0)
+ return;
+
+ // Not moved? Move it.
+ if (!$e.data(key)) {
+
+ // Condition is false? Bail.
+ if (!condition)
+ return;
+
+ // Get placeholder (which will serve as our point of reference for when this element needs to move back).
+ $p = $e.prev();
+
+ // Couldn't find anything? Means this element's already at the top, so bail.
+ if ($p.length == 0)
+ return;
+
+ // Move element to top of parent.
+ $e.prependTo($parent);
+
+ // Mark element as moved.
+ $e.data(key, $p);
+
+ }
+
+ // Moved already?
+ else {
+
+ // Condition is true? Bail.
+ if (condition)
+ return;
+
+ $p = $e.data(key);
+
+ // Move element back to its original location (using our placeholder).
+ $e.insertAfter($p);
+
+ // Unmark element as moved.
+ $e.removeData(key);
+
+ }
+
+ });
+
+ };
+
+})(jQuery);
\ No newline at end of file
diff --git a/bl-themes/forty/images/banner.jpg b/bl-themes/forty/images/banner.jpg
new file mode 100644
index 00000000..bb4643ae
Binary files /dev/null and b/bl-themes/forty/images/banner.jpg differ
diff --git a/bl-themes/forty/images/pic01.jpg b/bl-themes/forty/images/pic01.jpg
new file mode 100644
index 00000000..09d42266
Binary files /dev/null and b/bl-themes/forty/images/pic01.jpg differ
diff --git a/bl-themes/forty/images/pic02.jpg b/bl-themes/forty/images/pic02.jpg
new file mode 100644
index 00000000..fce4f51c
Binary files /dev/null and b/bl-themes/forty/images/pic02.jpg differ
diff --git a/bl-themes/forty/images/pic03.jpg b/bl-themes/forty/images/pic03.jpg
new file mode 100644
index 00000000..c7b9b12f
Binary files /dev/null and b/bl-themes/forty/images/pic03.jpg differ
diff --git a/bl-themes/forty/images/pic04.jpg b/bl-themes/forty/images/pic04.jpg
new file mode 100644
index 00000000..a7d6edbc
Binary files /dev/null and b/bl-themes/forty/images/pic04.jpg differ
diff --git a/bl-themes/forty/images/pic05.jpg b/bl-themes/forty/images/pic05.jpg
new file mode 100644
index 00000000..acc4c6c0
Binary files /dev/null and b/bl-themes/forty/images/pic05.jpg differ
diff --git a/bl-themes/forty/images/pic06.jpg b/bl-themes/forty/images/pic06.jpg
new file mode 100644
index 00000000..2a71e408
Binary files /dev/null and b/bl-themes/forty/images/pic06.jpg differ
diff --git a/bl-themes/forty/images/pic07.jpg b/bl-themes/forty/images/pic07.jpg
new file mode 100644
index 00000000..120d0767
Binary files /dev/null and b/bl-themes/forty/images/pic07.jpg differ
diff --git a/bl-themes/forty/images/pic08.jpg b/bl-themes/forty/images/pic08.jpg
new file mode 100644
index 00000000..fa51ad19
Binary files /dev/null and b/bl-themes/forty/images/pic08.jpg differ
diff --git a/bl-themes/forty/images/pic09.jpg b/bl-themes/forty/images/pic09.jpg
new file mode 100644
index 00000000..9ac5b303
Binary files /dev/null and b/bl-themes/forty/images/pic09.jpg differ
diff --git a/bl-themes/forty/images/pic10.jpg b/bl-themes/forty/images/pic10.jpg
new file mode 100644
index 00000000..238db695
Binary files /dev/null and b/bl-themes/forty/images/pic10.jpg differ
diff --git a/bl-themes/forty/images/pic11.jpg b/bl-themes/forty/images/pic11.jpg
new file mode 100644
index 00000000..35c899fa
Binary files /dev/null and b/bl-themes/forty/images/pic11.jpg differ
diff --git a/bl-themes/forty/img/favicon.png b/bl-themes/forty/img/favicon.png
new file mode 100644
index 00000000..517c6c12
Binary files /dev/null and b/bl-themes/forty/img/favicon.png differ
diff --git a/bl-themes/forty/img/logo.jpg b/bl-themes/forty/img/logo.jpg
new file mode 100644
index 00000000..7c522026
Binary files /dev/null and b/bl-themes/forty/img/logo.jpg differ
diff --git a/bl-themes/forty/index.php b/bl-themes/forty/index.php
new file mode 100644
index 00000000..2b3ef66e
--- /dev/null
+++ b/bl-themes/forty/index.php
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+ Theme::charset('utf-8');
+
+ //
+ Theme::viewport('width=device-width, initial-scale=1, user-scalable=no');
+
+ //
...
+ Theme::title();
+
+ //
...
+ Theme::description();
+
+ // Favicon
+ Theme::favicon('favicon.png');
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ whereAmI()=='home') || ($Url->whereAmI()=='tag') ) {
+ ?>
+
+
+
+
+
+
+
+ whereAmI()=='home') || ($Url->whereAmI()=='tag') ) {
+ include(THEME_DIR_PHP.'home.php');
+ }
+ elseif($Url->whereAmI()=='page') {
+ include(THEME_DIR_PHP.'page.php');
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bl-themes/forty/languages/en_US.json b/bl-themes/forty/languages/en_US.json
new file mode 100644
index 00000000..ae138b40
--- /dev/null
+++ b/bl-themes/forty/languages/en_US.json
@@ -0,0 +1,7 @@
+{
+ "theme-data":
+ {
+ "name": "Forty",
+ "description": ""
+ }
+}
\ No newline at end of file
diff --git a/bl-themes/forty/metadata.json b/bl-themes/forty/metadata.json
new file mode 100644
index 00000000..8b0dcee7
--- /dev/null
+++ b/bl-themes/forty/metadata.json
@@ -0,0 +1,10 @@
+{
+ "author": "n33co",
+ "email": "",
+ "website": "http://html5up.net",
+ "version": "1.5",
+ "releaseDate": "2016-09-18",
+ "license": "CCA 3.0",
+ "compatible": "1.5",
+ "notes": ""
+}
\ No newline at end of file
diff --git a/bl-themes/forty/php/home.php b/bl-themes/forty/php/home.php
new file mode 100644
index 00000000..1e1635ba
--- /dev/null
+++ b/bl-themes/forty/php/home.php
@@ -0,0 +1,14 @@
+
+';
+ echo '';
+ echo '';
+ echo ''.$Page->description().'
';
+ echo '';
+ echo '';
+ }
+?>
+
\ No newline at end of file
diff --git a/bl-themes/forty/php/page.php b/bl-themes/forty/php/page.php
new file mode 100644
index 00000000..ca1da1b8
--- /dev/null
+++ b/bl-themes/forty/php/page.php
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+ title() ?>
+ description() ?>
+
+
+
+ coverImage()) {
+ echo '
.')
';
+ }
+ ?>
+
+
+ content() ?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bl-themes/log/index.php b/bl-themes/log/index.php
index d9f1999f..751912ab 100644
--- a/bl-themes/log/index.php
+++ b/bl-themes/log/index.php
@@ -13,9 +13,8 @@
-
+
+
-
-
+