Social networks
This commit is contained in:
parent
4fd4b6f4a9
commit
391cc9cbbf
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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 ?>
|
||||
|
|
Loading…
Reference in New Issue