Merge pull request #3 from dignajar/master

New pull request
This commit is contained in:
Edi 2015-11-13 20:33:16 +01:00
commit eb7fd512e5
32 changed files with 119 additions and 91 deletions

View File

@ -236,9 +236,16 @@ div.plugin-links > span.separator {
color: #AAAAAA; color: #AAAAAA;
} }
#jsformplugin textarea {
min-width: 400px;
width: 60%;
min-height: 100px;
}
#jsformplugin input[type=text] { #jsformplugin input[type=text] {
min-width: 400px; min-width: 400px;
width: 60%; width: 60%;
height: 37px;
} }
#jsformplugin input[type="checkbox"] { #jsformplugin input[type="checkbox"] {
@ -249,6 +256,6 @@ div.plugin-links > span.separator {
#jsformplugin label.forCheckbox { #jsformplugin label.forCheckbox {
margin-left: 3px; margin-left: 3px;
margin-bottom: 10px; margin-bottom: 0px !important;
display: inline-block; display: inline-block;
} }

View File

@ -11,7 +11,7 @@ class dbPages extends dbJSON
'username'=> array('inFile'=>false, 'value'=>''), 'username'=> array('inFile'=>false, 'value'=>''),
'tags'=> array('inFile'=>false, 'value'=>array()), 'tags'=> array('inFile'=>false, 'value'=>array()),
'status'=> array('inFile'=>false, 'value'=>'draft'), 'status'=> array('inFile'=>false, 'value'=>'draft'),
'date'=> array('inFile'=>false, 'value'=>0), 'date'=> array('inFile'=>false, 'value'=>''),
'position'=> array('inFile'=>false, 'value'=>0) 'position'=> array('inFile'=>false, 'value'=>0)
); );
@ -34,9 +34,7 @@ class dbPages extends dbJSON
} }
// Current date. // Current date.
if(empty($args['date'])) { $args['date'] = Date::current(DB_DATE_FORMAT);
$args['date'] = Date::current(DB_DATE_FORMAT);
}
// Verify arguments with the database fields. // Verify arguments with the database fields.
foreach($this->dbFields as $field=>$options) foreach($this->dbFields as $field=>$options)

View File

@ -70,7 +70,7 @@
"timezone": "Часова зона", "timezone": "Часова зона",
"locale": "Местоположение", "locale": "Местоположение",
"new-post": "Нова публикация", "new-post": "Нова публикация",
"html-and-markdown-code-supported": "Поддръжан код HTML и Markdown ", "html-and-markdown-code-supported": "Поддръжан код HTML и Markdown ",
"new-page": "Нова страница", "new-page": "Нова страница",
"manage-posts": "Управление на публикациите", "manage-posts": "Управление на публикациите",
"published-date": "Дата на побликуване", "published-date": "Дата на побликуване",
@ -116,8 +116,8 @@
"add-or-edit-description-tags-or": "Добавяне или редактиране на описание, eтикети или модифициране URL.", "add-or-edit-description-tags-or": "Добавяне или редактиране на описание, eтикети или модифициране URL.",
"select-your-sites-language": "Изберете системен език.", "select-your-sites-language": "Изберете системен език.",
"select-a-timezone-for-a-correct": "Изберете часова зона за правилтото показване на дата / час.", "select-a-timezone-for-a-correct": "Изберете часова зона за правилтото показване на дата / час.",
"you-can-use-this-field-to-define-a-set-of": "Можете да използвате това поле, за набор на параметри, свързани с език, страната и специални преференции.", "you-can-use-this-field-to-define-a-set-of": "Можете да използвате това поле за избар на параметри свързани с езика, страната и специални преференции.",
"you-can-modify-the-url-which-identifies":"Можете да промените адреса, на дадената страница или публикация използвайки ключови думи, но с обща дължина не повече от 150 символа.", "you-can-modify-the-url-which-identifies":"Можете да промените URL адреса , който идентифицира страницата или публикацията използвайки ключови думи, но с обща дължина не повече от 150 символа.",
"this-field-can-help-describe-the-content": " В това поле може да опишете съдържанието с няколко думи, но с обща дължина не повече от 150 символа.", "this-field-can-help-describe-the-content": " В това поле може да опишете съдържанието с няколко думи, но с обща дължина не повече от 150 символа.",
"write-the-tags-separeted-by-comma": "Добавянето на етикети става чрез добавянето на запетая. Например: TAG1, tag2, tag3", "write-the-tags-separeted-by-comma": "Добавянето на етикети става чрез добавянето на запетая. Например: TAG1, tag2, tag3",
"delete-the-user-and-all-its-posts":"Изтриване на потребителя и всички негови публикации.", "delete-the-user-and-all-its-posts":"Изтриване на потребителя и всички негови публикации.",
@ -172,7 +172,7 @@
"configure": "Конфигориране", "configure": "Конфигориране",
"uninstall": "Премахване", "uninstall": "Премахване",
"change-password": "Промяна на парола:", "change-password": "Промяна на парола:",
"to-schedule-the-post-just-select-the-date-and-time": "За да планирате поста, просто изберете датата и часа.", "to-schedule-the-post-just-select-the-date-and-time": "За да планирате поста, просто изберете дата и час.",
"write-the-tags-separated-by-commas": "Напишете етикети, разделени със запетая.", "write-the-tags-separated-by-commas": "Напишете етикети, разделени със запетая.",
"status": "Статус", "status": "Статус",
"published": "Пубиликуван", "published": "Пубиликуван",

0
languages/fr_FR.json Executable file → Normal file
View File

View File

@ -3,7 +3,7 @@
{ {
"native": "Traditional Chinese (Taiwan)", "native": "Traditional Chinese (Taiwan)",
"english-name": "Traditional Chinese", "english-name": "Traditional Chinese",
"last-update": "2015-11-05", "last-update": "2015-11-10",
"author": "Ethan Chen", "author": "Ethan Chen",
"email": "ethan42411@gmail.com", "email": "ethan42411@gmail.com",
"website": "http://single4.ml" "website": "http://single4.ml"
@ -202,5 +202,6 @@
"images": "圖片", "images": "圖片",
"upload-image": "上傳圖片", "upload-image": "上傳圖片",
"drag-and-drop-or-click-here": "拖曳您的圖片到這裡或是點選這裡選擇圖片", "drag-and-drop-or-click-here": "拖曳您的圖片到這裡或是點選這裡選擇圖片",
"insert-image": "插入圖片" "insert-image": "插入圖片",
"supported-image-file-types": "可以上傳的檔案格式"
} }

View File

@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "About",
"description": "Little description about your site or yourself.",
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.6",
"releaseDate": "2015-11-13"
}
}

47
plugins/about/plugin.php Normal file
View File

@ -0,0 +1,47 @@
<?php
class pluginAbout extends Plugin {
public function init()
{
$this->dbFields = array(
'label'=>'About',
'text'=>''
);
}
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;
}
}

View File

@ -8,4 +8,4 @@
"enable-disqus-on-pages": "Disqus auf Seiten verwenden", "enable-disqus-on-pages": "Disqus auf Seiten verwenden",
"enable-disqus-on-posts": "Disqus bei Beiträgen verwenden", "enable-disqus-on-posts": "Disqus bei Beiträgen verwenden",
"enable-disqus-on-default-home-page": "Disqus auf der Hauptseite verwenden" "enable-disqus-on-default-home-page": "Disqus auf der Hauptseite verwenden"
} }

View File

@ -6,8 +6,8 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
}, },
"disqus-shortname": "Disqus shortname", "disqus-shortname": "Disqus shortname",
"enable-disqus-on-pages": "Enable Disqus on pages", "enable-disqus-on-pages": "Enable Disqus on pages",

View File

@ -2,12 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "System komentarzy - Disqus", "name": "System komentarzy - Disqus",
"description": "System komentarzy Disqus przechowuje komentarze dla serwisów internetowych. Korzystanie z tej wtyczki wymaga rejestracji w serwisie disqus.com.", "description": "System komentarzy Disqus przechowuje komentarze dla serwisów internetowych. Korzystanie z tej wtyczki wymaga rejestracji w serwisie disqus.com."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
}, },
"disqus-shortname": "Nazwa użytkownika Disqus", "disqus-shortname": "Nazwa użytkownika Disqus",
"enable-disqus-on-pages": "Włącz Disqus na wszystkich stronach", "enable-disqus-on-pages": "Włącz Disqus na wszystkich stronach",

View File

@ -2,15 +2,10 @@
"plugin-data": "plugin-data":
{ {
"name": "Google-Tools", "name": "Google-Tools",
"description": "Dieses Plugin erzeugt den Meta-Tag, um deine Website mit den Google Webmasters Tools zu verbinden, und den Code für das JavaScript, der benötigt wird, um Google Analytics verwenden zu können.", "description": "Dieses Plugin erzeugt den Meta-Tag, um deine Website mit den Google Webmasters Tools zu verbinden, und den Code für das JavaScript, der benötigt wird, um Google Analytics verwenden zu können."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
}, },
"google-webmasters-tools": "Google Webmasters Tools", "google-webmasters-tools": "Google Webmasters Tools",
"google-analytics-tracking-id": "Google Analytics ID", "google-analytics-tracking-id": "Google Analytics ID",
"complete-this-field-with-the-google-site-verification": "Gib hier den Google Analytics-Tracking-Code ein, um zu bestätigen, dass die Website Dir gehört.", "complete-this-field-with-the-google-site-verification": "Gib hier den Google Analytics-Tracking-Code ein, um zu bestätigen, dass die Website Dir gehört.",
"complete-this-field-with-the-tracking-id": "Gib hier die Tracking ID ein." "complete-this-field-with-the-tracking-id": "Gib hier die Tracking ID ein."
} }

View File

@ -6,8 +6,8 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
}, },
"google-webmasters-tools": "Google Webmasters tools", "google-webmasters-tools": "Google Webmasters tools",
"google-analytics-tracking-id": "Google Analytics Tracking ID", "google-analytics-tracking-id": "Google Analytics Tracking ID",

View File

@ -2,12 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "Narzędzia Google", "name": "Narzędzia Google",
"description": "Wtyczka ta generuje kod metatagów pozwalający zweryfikować stronę z serwisem Narzędzia Google Dla Webmasterów oraz wygenerować kod JavaScript monitorujący ruch z usługą Google Analytics.", "description": "Wtyczka ta generuje kod metatagów pozwalający zweryfikować stronę z serwisem Narzędzia Google Dla Webmasterów oraz wygenerować kod JavaScript monitorujący ruch z usługą Google Analytics."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
}, },
"google-webmasters-tools": "Google Webmasters tools", "google-webmasters-tools": "Google Webmasters tools",
"google-analytics-tracking-id": "Google Analytics Tracking ID", "google-analytics-tracking-id": "Google Analytics Tracking ID",

View File

@ -6,8 +6,8 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
}, },
"enable-maintence-mode": "Enable maintence mode", "enable-maintence-mode": "Enable maintence mode",

View File

@ -2,12 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "Tryb konserwacji", "name": "Tryb konserwacji",
"description": "Przełącz stronę w tryb konwersacji (wówczas działać będzie tylko kokpit).", "description": "Przełącz stronę w tryb konwersacji (wówczas działać będzie tylko kokpit)."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
}, },
"enable-maintence-mode": "Włącz tryb konwersacji", "enable-maintence-mode": "Włącz tryb konwersacji",

View File

@ -6,7 +6,7 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
} }
} }

View File

@ -2,11 +2,6 @@
"plugin-data": "plugin-data":
{ {
"name": "Open Graph", "name": "Open Graph",
"description": "Protokół Open Graph zezwala stronie na stosowanie meta tagów używanych w serwisach społecznościowych.", "description": "Protokół Open Graph zezwala stronie na stosowanie meta tagów używanych w serwisach społecznościowych."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
} }
} }

View File

@ -4,4 +4,4 @@
"name": "開放社交關係圖", "name": "開放社交關係圖",
"description": "開放社交關係圖協定可以讓任何網頁變成豐富的物件" "description": "開放社交關係圖協定可以讓任何網頁變成豐富的物件"
} }
} }

View File

@ -7,4 +7,4 @@
"home": "Hauptseite", "home": "Hauptseite",
"show-home-link": "Hauptseite zeigen" "show-home-link": "Hauptseite zeigen"
} }

View File

@ -6,10 +6,10 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
}, },
"home": "Home", "home": "Home",
"show-home-link": "Show home link" "show-home-link": "Show home link"
} }

View File

@ -5,6 +5,6 @@
"description": "Constitue un menu avec les liens des pages dans la colonne du thème." "description": "Constitue un menu avec les liens des pages dans la colonne du thème."
}, },
"home": "Accueil", "home": "Accueil",
"show-home-link": "Afficher le lien de la page daccueil" "show-home-link": "Afficher le lien de la page daccueil"
} }

View File

@ -2,14 +2,9 @@
"plugin-data": "plugin-data":
{ {
"name": "Lista stron", "name": "Lista stron",
"description": "Wyświetla listę stron znajdujących się w witrynie.", "description": "Wyświetla listę stron znajdujących się w witrynie."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
}, },
"home": "Strona główna", "home": "Strona główna",
"show-home-link": "Pokaż odnośnik do strony głównek" "show-home-link": "Pokaż odnośnik do strony głównek"
} }

View File

@ -5,6 +5,6 @@
"description": "顯示所有頁面的列表" "description": "顯示所有頁面的列表"
}, },
"home": "首頁", "home": "首頁",
"show-home-link": "顯示首頁連結" "show-home-link": "顯示首頁連結"
} }

View File

@ -6,4 +6,4 @@
}, },
"toolbar": "Werkzeugleiste", "toolbar": "Werkzeugleiste",
"tab-size": "Abstände der Tabstopps" "tab-size": "Abstände der Tabstopps"
} }

View File

@ -6,8 +6,8 @@
"author": "NextStepWebs", "author": "NextStepWebs",
"email": "", "email": "",
"website": "https://github.com/NextStepWebs/simplemde-markdown-editor", "website": "https://github.com/NextStepWebs/simplemde-markdown-editor",
"version": "1.8.0", "version": "1.8.1",
"releaseDate": "2015-10-29" "releaseDate": "2015-11-13"
}, },
"toolbar": "Toolbar", "toolbar": "Toolbar",
"tab-size": "Tab size" "tab-size": "Tab size"

View File

@ -2,12 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "Edytor SimpleMDE", "name": "Edytor SimpleMDE",
"description": "Prosty, piękny i osadzony w JavaScript edytor markdown stworzony przez @WesCossick. Na potrzeby Bludit dostosowany przez Diego Najara.", "description": "Prosty, piękny i osadzony w JavaScript edytor markdown stworzony przez @WesCossick. Na potrzeby Bludit dostosowany przez Diego Najar."
"author": "NextStepWebs",
"email": "",
"website": "https://github.com/NextStepWebs/simplemde-markdown-editor",
"version": "1.7.4",
"releaseDate": "2015-10-02"
}, },
"toolbar": "Pasek narzędzi", "toolbar": "Pasek narzędzi",
"tab-size": "Rozmiar wcięcia" "tab-size": "Rozmiar wcięcia"

View File

@ -4,4 +4,4 @@
"name": "Anzeige aller Schlagwörter", "name": "Anzeige aller Schlagwörter",
"description": "Anzeige aller Schlagwörter in der Seitenleiste (bei Themes mit Seitenleiste)." "description": "Anzeige aller Schlagwörter in der Seitenleiste (bei Themes mit Seitenleiste)."
} }
} }

View File

@ -6,7 +6,7 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3", "version": "0.6",
"releaseDate": "2015-10-02" "releaseDate": "2015-11-13"
} }
} }

View File

@ -2,11 +2,6 @@
"plugin-data": "plugin-data":
{ {
"name": "Lista tagów", "name": "Lista tagów",
"description": "Wyświetla wszystkie tagi w postaci listy.", "description": "Wyświetla wszystkie tagi w postaci listy."
"author": "Bludit",
"email": "",
"website": "https://github.com/dignajar/bludit-plugins",
"version": "0.3",
"releaseDate": "2015-10-02"
} }
} }

View File

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

View File

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

View File

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