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'); } }