diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9d6c08a Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..d7ede58 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Future-Imperfect +Future Imperfect theme for Bludit + +## Compatible +- Bludit v2.0.x + +## Author +- HTML5 UP +- https://html5up.net + +# Notes on how it works +Under the post title there's the description. Homepage shows page break of post if there's one. + +# Possibilities +This is a kick dirty version, it lacks the menu for example. If you thing this or another feature is missing open a issue. + +## Screenshot +![screenshot](screenshot.jpg) \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..50b0d3e --- /dev/null +++ b/index.php @@ -0,0 +1,43 @@ + + + + + + + + + +
+ + +
+ + whereAmI()=='page') { + include(THEME_DIR_PHP.'page.php'); + } + else { + include(THEME_DIR_PHP.'home.php'); + } + ?> + +
+ + + + +
+ + + + + + + + + + \ No newline at end of file diff --git a/languages/en.json b/languages/en.json new file mode 100644 index 0000000..ed8a996 --- /dev/null +++ b/languages/en.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Future Imperfect", + "description": "Good option to create a blog/magazine, with a full support of cover images and plugins." + } +} \ No newline at end of file diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..5f20ebf --- /dev/null +++ b/metadata.json @@ -0,0 +1,10 @@ +{ + "author": "HTML5Up", + "email": "", + "website": "https://html5up.net", + "version": "1.0", + "releaseDate": "2017-10-12", + "license": "CCA 3.0", + "compatible": "2.0", + "notes": "" +} \ No newline at end of file diff --git a/php/.DS_Store b/php/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/php/.DS_Store differ diff --git a/php/head.php b/php/head.php new file mode 100644 index 0000000..f2acc8f --- /dev/null +++ b/php/head.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/php/home.php b/php/home.php new file mode 100644 index 0000000..96b1ff3 --- /dev/null +++ b/php/home.php @@ -0,0 +1,59 @@ + +
+
+
+

title() ?>

+

description() ?>

+
+
+ + user(); + + // Default author is the username. + $author = $User->username(); + + // If the user complete the first name or last name this will be the author. + if( Text::isNotEmpty($User->firstName()) || Text::isNotEmpty($User->lastName()) ) { + $author = $User->firstName().' '.$User->lastName(); + } ?> + p('Category') ?>: category() ?> + +
+
+ coverImage() ) { ?> + <?php echo $page->slug() ?> + + content(false) ?> + +
+ + + + \ No newline at end of file diff --git a/php/page.php b/php/page.php new file mode 100644 index 0000000..06160f6 --- /dev/null +++ b/php/page.php @@ -0,0 +1,42 @@ +
+
+
+

title() ?>

+

description() ?>

+
+
+ + user(); + + // Default author is the username. + $author = $User->username(); + + // If the user complete the first name or last name this will be the author. + if( Text::isNotEmpty($User->firstName()) || Text::isNotEmpty($User->lastName()) ) { + $author = $User->firstName().' '.$User->lastName(); + } ?> + p('Category') ?>: category() ?> + +
+
+ coverImage() ) { ?> + <?php echo $page->slug() ?> + + content(false) ?> + +
\ No newline at end of file diff --git a/php/sidebar.php b/php/sidebar.php new file mode 100644 index 0000000..f136687 --- /dev/null +++ b/php/sidebar.php @@ -0,0 +1,48 @@ +