Social networks

This commit is contained in:
Diego Najar 2018-02-01 22:56:55 +01:00
parent 4fd4b6f4a9
commit 391cc9cbbf
2 changed files with 7 additions and 1 deletions

View File

@ -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()
{

View File

@ -12,7 +12,7 @@
<h2><?php echo $page->title(); ?></h2>
</a>
<?php if (!$page->static()): ?>
<?php if (!$page->isStatic()): ?>
<!-- Creation date -->
<h6 class="card-subtitle mb-2 text-muted"><?php echo $page->date(); ?></h6>
<?php endif ?>