39 lines
878 B
PHP
Executable File
39 lines
878 B
PHP
Executable File
<?php
|
|
|
|
class pluginAbout extends Plugin {
|
|
|
|
public function init()
|
|
{
|
|
$this->dbFields = array(
|
|
'label'=>'About',
|
|
'text'=>''
|
|
);
|
|
}
|
|
|
|
public function form()
|
|
{
|
|
$html = '<div>';
|
|
$html .= '<label>'.$this->L('Plugin label').'</label>';
|
|
$html .= '<input name="label" id="jslabel" type="text" value="'.$this->getDbField('label').'">';
|
|
$html .= '</div>';
|
|
$html .= '<div>';
|
|
$html .= '<label>'.$this->L('About').'</label>';
|
|
$html .= '<textarea name="text" id="jstext">'.$this->getDbField('text').'</textarea>';
|
|
$html .= '</div>';
|
|
|
|
return $html;
|
|
}
|
|
|
|
public function siteSidebar()
|
|
{
|
|
$html = '<div class="plugin plugin-about">';
|
|
$html .= '<h2>'.$this->getDbField('label').'</h2>';
|
|
$html .= '<div class="plugin-content">';
|
|
$html .= html_entity_decode(nl2br($this->getDbField('text')));
|
|
$html .= '</div>';
|
|
$html .= '</div>';
|
|
|
|
return $html;
|
|
}
|
|
}
|