40 lines
No EOL
936 B
PHP
40 lines
No EOL
936 B
PHP
<?php
|
|
|
|
class pluginSocials extends Plugin {
|
|
|
|
public function init()
|
|
{
|
|
$this->dbFields = array(
|
|
'label' => 'Social Networks',
|
|
);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
// Method called on the sidebar of the website
|
|
public function siteSidebar()
|
|
{
|
|
global $L;
|
|
global $url;
|
|
|
|
$html = '<div class="plugin plugin-archives">';
|
|
$html .= '<h2 class="plugin-label">' . $this->getValue('label') . '</h2>';
|
|
$html .= '<div class="plugin-content">';
|
|
$html .= Theme::listSiteSocials(true, true);
|
|
$html .= '</div>';
|
|
$html .= '</div>';
|
|
return $html;
|
|
}
|
|
|
|
} |