diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index c7c8acbd..7ba2f234 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -111,7 +111,7 @@ define('CLI_STATUS', 'published'); define('CLI_USERNAME', 'admin'); // 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/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php index 02faaf66..34996b08 100644 --- a/bl-kernel/helpers/theme.class.php +++ b/bl-kernel/helpers/theme.class.php @@ -26,6 +26,22 @@ class Theme { return $Site->footer(); } + public static function rssUrl() + { + if (pluginEnabled('RSS')) { + return DOMAIN_BASE.'rss.xml'; + } + return false; + } + + public static function sitemapUrl() + { + if (pluginEnabled('Sitemap')) { + return DOMAIN_BASE.'sitemap.xml'; + } + return false; + } + public static function siteUrl() { global $Site; diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index 9425e6c7..1f5807a6 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -174,6 +174,12 @@ class Page { return $date; } + // Returns the date according to locale settings and format settings + public function dateModified() + { + return $this->getValue('dateModified'); + } + // Returns the permalink // (boolean) $absolute, TRUE returns the page link with the DOMAIN, FALSE without the DOMAIN public function permalink($absolute=true) diff --git a/bl-plugins/pages/plugin.php b/bl-plugins/pages/plugin.php index 1d7457aa..fac35517 100644 --- a/bl-plugins/pages/plugin.php +++ b/bl-plugins/pages/plugin.php @@ -68,15 +68,15 @@ class pluginPages extends Plugin { $html .= '