From b3c19a28aee26baefb70bfbe417e5de555964fd0 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 8 Sep 2018 18:26:20 +0200 Subject: [PATCH] v2.0 --- README.md | 3 ++- index.php | 6 +++--- metadata.json | 6 +++--- php/head.php | 44 +++++++++++++++++++++++++------------------- php/home.php | 12 ++++++------ php/page.php | 8 ++++---- php/sidebar.php | 8 +++----- 7 files changed, 46 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 3885b1d..d975232 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Micro theme for Bludit ## Compatible -- Bludit v2.0.x +- Bludit v3.x +- Bludit v2.x ## Author - Diego diff --git a/index.php b/index.php index 8d08176..10e4697 100755 --- a/index.php +++ b/index.php @@ -33,14 +33,14 @@

- footer() ?> + footer() ?>
Powered by BLUDIT RSS'; } - if (pluginEnabled('Sitemap')) { + if (pluginActivated('pluginSitemap')) { echo ' - Sitemap'; } ?> diff --git a/metadata.json b/metadata.json index 4979202..667a8b3 100644 --- a/metadata.json +++ b/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://themes.bludit.com", - "version": "1.1", - "releaseDate": "2017-12-27", + "version": "2.0", + "releaseDate": "2018-09-08", "license": "MIT", - "compatible": "2.0, 2.1", + "compatible": "3.0", "notes": "" } \ No newline at end of file diff --git a/php/head.php b/php/head.php index 7f70acf..581cd7c 100644 --- a/php/head.php +++ b/php/head.php @@ -1,24 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + '; - echo ''; - - echo Theme::headTitle(); - echo Theme::headDescription(); - - echo Theme::favicon('img/favicon.png'); - - echo Theme::fontAwesome(); - - echo Theme::css('css/style.css'); - echo Theme::css('css/bludit.css'); - echo ''; +?> - // Load plugins with the hook siteHead - Theme::plugins('siteHead'); -?> \ No newline at end of file + + diff --git a/php/home.php b/php/home.php index 8b12765..e07ca68 100644 --- a/php/home.php +++ b/php/home.php @@ -1,16 +1,16 @@

- +
- title() ) { ?> + title()): ?>

title() ?>

- + - coverImage() ) { ?> - <?php echo $page->slug() ?> - + coverImage()): ?> + <?php echo $page->slug() ?> + content() ?> diff --git a/php/page.php b/php/page.php index 5a4e849..3a72773 100644 --- a/php/page.php +++ b/php/page.php @@ -6,13 +6,13 @@

title() ?>

- coverImage() ) { ?> - <?php echo $page->slug() ?> - + coverImage()): ?> + <?php echo $page->slug() ?> + content() ?>
-
date() ?>
+
date() ?>
\ No newline at end of file diff --git a/php/sidebar.php b/php/sidebar.php index f9452df..8184918 100644 --- a/php/sidebar.php +++ b/php/sidebar.php @@ -1,14 +1,12 @@

- - title() ?> + + title() ?>

    getStaticDB(); - foreach ($staticPages as $pageKey) { - $staticPage = buildPage($pageKey); + foreach ($staticContent as $staticPage) { echo '
  • '; echo ''; echo $staticPage->title();