From 391cc9cbbfc6ed7a2d38e2ab2bfd0e32bac53755 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 1 Feb 2018 22:56:55 +0100 Subject: [PATCH] Social networks --- bl-kernel/page.class.php | 6 ++++++ bl-themes/blogx/php/page.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index 9cd76ca7..2c00e5c3 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -381,6 +381,12 @@ class Page { return ($this->getValue('status')=='sticky'); } + // (boolean) Returns TRUE if the page is sticky, FALSE otherwise + public function isStatic() + { + return ($this->getValue('status')=='static'); + } + // (string) Returns status of the page public function status() { diff --git a/bl-themes/blogx/php/page.php b/bl-themes/blogx/php/page.php index 08972c8a..24691076 100644 --- a/bl-themes/blogx/php/page.php +++ b/bl-themes/blogx/php/page.php @@ -12,7 +12,7 @@

title(); ?>

- static()): ?> + isStatic()): ?>
date(); ?>