koblog/bl-themes/defaultTheme/plugin.php
2025-07-14 10:56:30 +02:00

33 lines
682 B
PHP

<?php
class defaultTheme extends Plugin
{
public function init()
{
$this->dbFields = array(
'showPostInformation' => false,
'dateFormat' => 'relative'
);
}
public function form()
{
$html = '';
$html .= PluginSettings::bool($this, 'showPostInformation', 'Show Post Information');
$html .= PluginSettings::values($this,'dateFormat', 'Date format', ['noshow'=>'No show', 'relative'=>'Relative', 'absolute'=>'Absolute'], 'Change the date format for the main page.');
return $html;
}
public function showPostInformation()
{
return $this->getValue('showPostInformation');
}
public function dateFormat()
{
return $this->getValue('dateFormat');
}
}