2015-11-10 23:47:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class pluginAbout extends Plugin {
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
$this->dbFields = array(
|
|
|
|
'label'=>'About',
|
2015-11-11 22:13:32 +01:00
|
|
|
'text'=>''
|
2015-11-10 23:47:21 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function form()
|
|
|
|
{
|
|
|
|
global $Language;
|
|
|
|
|
|
|
|
$html = '<div>';
|
|
|
|
$html .= '<label>'.$Language->get('Plugin label').'</label>';
|
|
|
|
$html .= '<input name="label" id="jslabel" type="text" value="'.$this->getDbField('label').'">';
|
|
|
|
$html .= '</div>';
|
|
|
|
|
|
|
|
$html .= '<div>';
|
|
|
|
$html .= '<label>'.$Language->get('About').'</label>';
|
|
|
|
$html .= '<textarea name="text" id="jstext">'.$this->getDbField('text').'</textarea>';
|
|
|
|
$html .= '</div>';
|
|
|
|
|
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function siteSidebar()
|
|
|
|
{
|
|
|
|
global $Language;
|
|
|
|
global $dbTags;
|
|
|
|
global $Url;
|
|
|
|
|
|
|
|
$filter = $Url->filters('tag');
|
|
|
|
|
|
|
|
$html = '<div class="plugin plugin-about">';
|
|
|
|
$html .= '<h2>'.$this->getDbField('label').'</h2>';
|
|
|
|
$html .= '<div class="plugin-content">';
|
|
|
|
$html .= $this->getDbField('text');
|
|
|
|
$html .= '</div>';
|
|
|
|
$html .= '</div>';
|
|
|
|
|
|
|
|
return $html;
|
|
|
|
}
|
2015-11-28 15:47:03 +01:00
|
|
|
}
|