koblog/bl-plugins/about/plugin.php
2025-07-27 14:14:57 +02:00

37 lines
812 B
PHP

<?php
class pluginAbout extends Plugin
{
public function init()
{
$this->dbFields = array(
'label' => 'About'
);
}
public function form()
{
global $L;
$html = '<div>';
$html .= '<label>' . $L->get('Label') . '</label>';
$html .= '<input name="label" type="text" dir="auto" value="' . $this->getValue('label') . '">';
$html .= '<span class="tip">' . $L->get('This title is almost always used in the sidebar of the site') . '</span>';
$html .= '</div>';
return $html;
}
public function siteSidebar()
{
$html = '<div class="plugin plugin-about">';
$html .= '<h2 class="plugin-label">' . $this->getValue('label') . '</h2>';
$html .= '<div class="plugin-content">';
$html .= Theme::getHomepagePresentation();
$html .= '</div>';
$html .= '</div>';
return $html;
}
}