Minor changes
This commit is contained in:
parent
6eb8a7260b
commit
d3741ee773
|
@ -236,9 +236,16 @@ div.plugin-links > span.separator {
|
|||
color: #AAAAAA;
|
||||
}
|
||||
|
||||
#jsformplugin textarea {
|
||||
min-width: 400px;
|
||||
width: 60%;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
#jsformplugin input[type=text] {
|
||||
min-width: 400px;
|
||||
width: 60%;
|
||||
height: 37px;
|
||||
}
|
||||
|
||||
#jsformplugin input[type="checkbox"] {
|
||||
|
@ -249,6 +256,6 @@ div.plugin-links > span.separator {
|
|||
|
||||
#jsformplugin label.forCheckbox {
|
||||
margin-left: 3px;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 0px !important;
|
||||
display: inline-block;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"plugin-data":
|
||||
{
|
||||
"name": "About",
|
||||
"description": "Little description about your site or your self.",
|
||||
"author": "Bludit",
|
||||
"email": "",
|
||||
"website": "https://github.com/dignajar/bludit-plugins",
|
||||
"version": "0.6",
|
||||
"releaseDate": "2015-11-10"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
|
||||
class pluginAbout extends Plugin {
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->dbFields = array(
|
||||
'label'=>'About',
|
||||
'text'=>'',
|
||||
'facebook'=>'',
|
||||
'twitter'=>'',
|
||||
'instagram'=>'',
|
||||
'googleplus'=>''
|
||||
);
|
||||
}
|
||||
|
||||
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>';
|
||||
|
||||
$html .= '<legend>Social networks</legend>';
|
||||
|
||||
$html .= '<div>';
|
||||
$html .= '<label>Facebook</label>';
|
||||
$html .= '<input name="facebook" placeholder="https://www.facebook.com/USERNAME" id="jsfacebook" type="text" value="'.$this->getDbField('facebook').'">';
|
||||
$html .= '</div>';
|
||||
|
||||
$html .= '<div>';
|
||||
$html .= '<label>Twitter</label>';
|
||||
$html .= '<input name="twitter" placeholder="https://www.twitter.com/USERNAME" id="jstwitter" type="text" value="'.$this->getDbField('twitter').'">';
|
||||
$html .= '</div>';
|
||||
|
||||
$html .= '<div>';
|
||||
$html .= '<label>instagram</label>';
|
||||
$html .= '<input name="instagram" placeholder="https://www.instagram.com/USERNAME" id="jsinstagram" type="text" value="'.$this->getDbField('instagram').'">';
|
||||
$html .= '</div>';
|
||||
|
||||
$html .= '<div>';
|
||||
$html .= '<label>Google+</label>';
|
||||
$html .= '<input name="googleplus" placeholder="https://plus.google.com/+USERNAME" id="jsgoogleplus" type="text" value="'.$this->getDbField('googleplus').'">';
|
||||
$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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue