Minor changes

This commit is contained in:
dignajar 2015-11-11 18:13:32 -03:00
parent d3741ee773
commit a397c2ac19
4 changed files with 8 additions and 31 deletions

View File

@ -6,11 +6,7 @@ class pluginAbout extends Plugin {
{
$this->dbFields = array(
'label'=>'About',
'text'=>'',
'facebook'=>'',
'twitter'=>'',
'instagram'=>'',
'googleplus'=>''
'text'=>''
);
}
@ -28,28 +24,6 @@ class pluginAbout extends Plugin {
$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;
}

View File

@ -1,7 +1,5 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo $Site->description() ?>">
<title><?php echo $Site->title() ?></title>
<?php
@ -22,9 +20,14 @@
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if( $Url->whereAmI()=='post' ) {
Theme::keywords( $Post->tags() );
Theme::description( $Post->description() );
}
elseif( $Url->whereAmI()=='page' ) {
Theme::keywords( $Page->tags() );
Theme::description( $Page->description() );
}
else {
Theme::description( $Site->description() );
}
?>

View File

@ -23,7 +23,7 @@
echo $Language->get('Posted By').' ';
if( Text::isNotEmpty($Post->authorFirstName()) && Text::isNotEmpty($Post->authorLastName()) ) {
echo $Post->authorFirstName().', '.$Post->authorLastName();
echo $Post->authorFirstName().' '.$Post->authorLastName();
}
else {
echo $Post->username();

View File

@ -21,7 +21,7 @@
echo $Language->get('Posted By').' ';
if( Text::isNotEmpty($Post->authorFirstName()) && Text::isNotEmpty($Post->authorLastName()) ) {
echo $Post->authorFirstName().', '.$Post->authorLastName();
echo $Post->authorFirstName().' '.$Post->authorLastName();
}
else {
echo $Post->username();