From f581c855f49ecb635dfe078136d26c920b2e0ee9 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 18 Dec 2017 20:46:16 +0100 Subject: [PATCH] remove themes --- .gitmodules | 3 --- bl-kernel/boot/variables.php | 2 +- bl-kernel/page.class.php | 10 ++++++++++ bl-themes/clean-blog | 1 - 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 .gitmodules delete mode 160000 bl-themes/clean-blog diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 4b6aae2c..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "bl-themes/clean-blog"] - path = bl-themes/clean-blog - url = git@github.com:bludit-themes/clean-blog.git diff --git a/bl-kernel/boot/variables.php b/bl-kernel/boot/variables.php index 3876ca03..a5412366 100644 --- a/bl-kernel/boot/variables.php +++ b/bl-kernel/boot/variables.php @@ -57,7 +57,7 @@ define('REMEMBER_COOKIE_TOKEN', 'BLUDITREMEMBERTOKEN'); define('REMEMBER_COOKIE_EXPIRE_IN_DAYS', 30); // Filename -define('FILENAME', 'index.txt'); +define('FILENAME', 'index.md'); // Database date format define('DB_DATE_FORMAT', 'Y-m-d H:i:s'); diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index a3613e11..1880eabb 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -440,7 +440,17 @@ class Page { return $tmp; } + public function subpages() + { + return $this->children(); + } + // Returns TRUE if the page has subpages/children, FALSE otherwise + public function hasSubpages() + { + $subpages = $this->subpages(); + return !empty($subpages); + } // Returns relative time (e.g. "1 minute ago") diff --git a/bl-themes/clean-blog b/bl-themes/clean-blog deleted file mode 160000 index 1620e2f4..00000000 --- a/bl-themes/clean-blog +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1620e2f4640cf1dfcd04e2018e6e17b81d7b7e62