diff --git a/.gitignore b/.gitignore index 70b8ca9a..e78c6b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,8 @@ bl-plugins/yandex-metrica/ bl-plugins/domain-migrator/ bl-plugins/tail-writer/ bl-kernel/bludit.pro.php -bl-kernel/admin/themes/grizzly/* +bl-kernel/admin/themes/gris/* +bl-kernel/admin/themes/gris bl-themes/docs bl-themes/docsx bl-themes/editorial @@ -24,3 +25,4 @@ bl-themes/hyperspace bl-themes/striped bl-themes/log bl-themes/micro +bl-themes/tagg diff --git a/README.md b/README.md index 13d4efcb..787f5403 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Requirements You just need a web server with PHP support. -- PHP v5.3 or higher. +- PHP v5.6 or higher. - PHP [mbstring](http://php.net/manual/en/book.mbstring.php) module for full UTF-8 support. - PHP [gd](http://php.net/manual/en/book.image.php) module for image processing. - PHP [dom](http://php.net/manual/en/book.dom.php) module for DOM manipulation. diff --git a/bl-kernel/abstract/dbjson.class.php b/bl-kernel/abstract/dbjson.class.php index 0e409558..f44f3658 100644 --- a/bl-kernel/abstract/dbjson.class.php +++ b/bl-kernel/abstract/dbjson.class.php @@ -30,11 +30,9 @@ class dbJSON { // Unserialize, JSON to Array $array = $this->unserialize($implode); - if (empty($array)) { $this->db = array(); $this->dbBackup = array(); - Log::set(__METHOD__.LOG_SEP.'Error trying to read the JSON file: '.$file, LOG_TYPE_ERROR); } else { $this->db = $array; $this->dbBackup = $array; @@ -100,7 +98,8 @@ class dbJSON { { // NULL is returned if the json cannot be decoded $decode = json_decode($data, true); - if (empty($decode)) { + if ($decode===NULL) { + Log::set(__METHOD__.LOG_SEP.'Error trying to read the JSON file: '.$this->file, LOG_TYPE_ERROR); return false; } return $decode; diff --git a/bl-kernel/abstract/dblist.class.php b/bl-kernel/abstract/dblist.class.php index 26f7293a..cd0ec5d5 100644 --- a/bl-kernel/abstract/dblist.class.php +++ b/bl-kernel/abstract/dblist.class.php @@ -126,7 +126,7 @@ class dbList extends dbJSON } // Sort the categories by "Natural order" - private function sortAlphanumeric() + public function sortAlphanumeric() { // Sort key alphanumeric strings, a01, a10, b10, c02 return ksort($this->db); diff --git a/bl-kernel/admin/themes/gris b/bl-kernel/admin/themes/gris new file mode 160000 index 00000000..f616042c --- /dev/null +++ b/bl-kernel/admin/themes/gris @@ -0,0 +1 @@ +Subproject commit f616042ccc0eaa37dab6a0c3ad67bb022574952b diff --git a/bl-kernel/boot/admin.php b/bl-kernel/boot/admin.php index bbf26cf3..4e67d145 100644 --- a/bl-kernel/boot/admin.php +++ b/bl-kernel/boot/admin.php @@ -23,14 +23,6 @@ $layout['controller'] = $layout['view'] = $layout['slug'] = empty($explodeSlug[0 unset($explodeSlug[0]); $layout['parameters'] = implode('/', $explodeSlug); -// Disable Magic Quotes. -// Thanks, http://stackoverflow.com/questions/517008/how-to-turn-off-magic-quotes-on-shared-hosting -if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) ) { - $_POST = array_map('stripslashes', $_POST); - $_GET = array_map('stripslashes', $_GET); - $_COOKIE = array_map('stripslashes', $_COOKIE); -} - // Boot plugins rules include(PATH_RULES.'60.plugins.php'); diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index 9ca02cb9..a687784b 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -1,15 +1,15 @@ db[$key]['list'] = array(); } - // Get a database with published pages - $db = $pages->getPublishedDB(false); + // Get pages database + $db = $pages->getDB(false); foreach ($db as $pageKey=>$pageFields) { if (!empty($pageFields['category'])) { $categoryKey = $pageFields['category']; if (isset($this->db[$categoryKey]['list'])) { - array_push($this->db[$categoryKey]['list'], $pageKey); + if ( + ($db[$pageKey]['type']=='published') || + ($db[$pageKey]['type']=='sticky') || + ($db[$pageKey]['type']=='static') + ) { + array_push($this->db[$categoryKey]['list'], $pageKey); + } } } } diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 19b94522..45405b71 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -118,7 +118,12 @@ function buildPagesFor($for, $categoryKey=false, $tagKey=false) { foreach ($list as $pageKey) { try { $page = new Page($pageKey); - array_push($content, $page); + if ( ($page->type()=='published') || + ($page->type()=='sticky') || + ($page->type()=='static') + ) { + array_push($content, $page); + } } catch (Exception $e) { // continue } @@ -325,10 +330,10 @@ function editPage($args) { // Check if the autosave page exists for this new page and delete it if (isset($args['uuid'])) { - $pageKey = $pages->getByUUID('autosave-'.$args['uuid']); - if (!empty($pageKey)) { - Log::set('Function editPage()'.LOG_SEP.'Autosave deleted for '.$args['title'], LOG_TYPE_INFO); - deletePage($pageKey); + $autosaveKey = $pages->getByUUID('autosave-'.$args['uuid']); + if ($autosaveKey) { + Log::set('Function editPage()'.LOG_SEP.'Autosave deleted for '.$autosaveKey, LOG_TYPE_INFO); + deletePage($autosaveKey); } } @@ -355,7 +360,7 @@ function editPage($args) { // Add to syslog $syslog->add(array( 'dictionaryKey'=>'content-edited', - 'notes'=>$args['title'] + 'notes'=>empty($args['title'])?$key:$args['title'] )); return $key; diff --git a/bl-kernel/pages.class.php b/bl-kernel/pages.class.php index af956160..c80f657d 100644 --- a/bl-kernel/pages.class.php +++ b/bl-kernel/pages.class.php @@ -8,7 +8,7 @@ class Pages extends dbJSON { 'description'=>'', 'username'=>'', 'tags'=>array(), - 'type'=>'published', // published, draft, sticky, scheduled + 'type'=>'published', // published, static, draft, sticky, scheduled 'date'=>'', 'dateModified'=>'', 'position'=>0, @@ -157,12 +157,8 @@ class Pages extends dbJSON { // Check values from the arguments ($args) // If some field is missing the current value is taken foreach ($this->dbFields as $field=>$value) { - if ($field=='tags') { - $tags = ''; - if (isset($args['tags'])) { - $tags = $args['tags']; - } - $finalValue = $this->generateTags($tags); + if ( ($field=='tags') && isset($args['tags'])) { + $finalValue = $this->generateTags($args['tags']); } elseif (isset($args[$field])) { // Sanitize if will be stored on database $finalValue = Sanitize::html($args[$field]); diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index a4785eef..252eb785 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -255,7 +255,7 @@ class Page { return ''; } // Return string with tags separated by comma. - return implode(', ', $tags); + return implode(',', $tags); } public function json($returnsArray=false) @@ -266,7 +266,9 @@ class Page { $tmp['contentRaw'] = $this->contentRaw(true); // No Markdown parsed $tmp['description'] = $this->description(); $tmp['type'] = $this->type(); + $tmp['slug'] = $this->slug(); $tmp['date'] = $this->dateRaw(); + $tmp['tags'] = $this->tags(false); $tmp['dateUTC'] = Date::convertToUTC($this->dateRaw(), DB_DATE_FORMAT, DB_DATE_FORMAT); $tmp['permalink'] = $this->permalink(true); $tmp['coverImage'] = $this->coverImage(true); diff --git a/bl-kernel/tags.class.php b/bl-kernel/tags.class.php index cb1f7587..6720f4e4 100644 --- a/bl-kernel/tags.class.php +++ b/bl-kernel/tags.class.php @@ -31,9 +31,8 @@ class Tags extends dbList { } } - // Sort database by alphabet - ksort($tagsIndex); $this->db = $tagsIndex; + $this->sortAlphanumeric(); return $this->save(); } diff --git a/bl-languages/es.json b/bl-languages/es.json index 17b98763..3721a92c 100644 --- a/bl-languages/es.json +++ b/bl-languages/es.json @@ -3,11 +3,9 @@ "native": "Español", "english-name": "Spanish", "locale": "es, es_ES, es_AR, es_MX", - "last-update": "2018-02-24", + "last-update": "2019-02-28", "authors": [ - "Diego @dignajar", - "", - "" + "Diego @dignajar" ] }, "dates": { @@ -376,6 +374,6 @@ "thumbnail-width-in-pixels": "Ancho de miniatura en píxeles (px).", "thumbnail-height-in-pixels": "Altura de miniaturas en píxeles (px).", "thumbnail-quality-in-percentage": "Calidad de la miniatura en porcentaje (%).", - "maximum-load-file-size-allowed:": "Maximum load file size allowed:", - "file-type-is-not-supported": "File type is not supported. Allowed types:" + "maximum-load-file-size-allowed:": "Tamaño máximo del archivo permitido:", + "file-type-is-not-supported": "No se admite el tipo de archivo. Tipos permitidos:" } \ No newline at end of file diff --git a/bl-languages/fa_IR.json b/bl-languages/fa_IR.json index 31b1c013..b665318c 100644 --- a/bl-languages/fa_IR.json +++ b/bl-languages/fa_IR.json @@ -1,4 +1,4 @@ - +{ "language-data": { "native": "فارسی", "english-name": "Persian", @@ -7,8 +7,7 @@ "authors": [ "abdulhalim.po@gmail.com", "Dorsawi http:\/\/dorsawi.com", - "xm74", - "" + "xm74" ] }, "dates": { @@ -18,14 +17,14 @@ "Tue": "سه شنبه", "Wed": "چهارشنبه", "Thu": "پنجشنبه", - "Fri": "جمعه", + "Fri": "جمعه", "Saturday": "شنبه", "Sunday": "یکشنبه", "Monday": "دوشنبه", "Tuesday": "سه شنبه", "Wednesday": "چهارشنبه", "Thursday": "پنجشنبه", - "Friday": "جمعه", + "Friday": "جمعه", "Jan": "ژانویه", "Feb": "فوریه", "Mar": "مارس", @@ -378,4 +377,4 @@ "thumbnail-height-in-pixels": "ارتفاع بندانگشتی به پیکسل (px).", "thumbnail-quality-in-percentage": "کیفیت بندانگشتی به درصد (%).", "logo": "لوگو" -} +} \ No newline at end of file diff --git a/bl-plugins/about/metadata.json b/bl-plugins/about/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/about/metadata.json +++ b/bl-plugins/about/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/api/metadata.json b/bl-plugins/api/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/api/metadata.json +++ b/bl-plugins/api/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/api/plugin.php b/bl-plugins/api/plugin.php index d08d36b9..f004dac7 100644 --- a/bl-plugins/api/plugin.php +++ b/bl-plugins/api/plugin.php @@ -15,6 +15,11 @@ class pluginAPI extends Plugin { ); } + public function getToken() + { + return $this->getValue('token'); + } + public function form() { global $L; @@ -298,12 +303,12 @@ class pluginAPI extends Plugin { global $pages; // Parameters and the default values - $published = (isset($args['published'])?$args['published']:true); - $static = (isset($args['static'])?$args['static']:false); - $draft = (isset($args['draft'])?$args['draft']:false); - $sticky = (isset($args['sticky'])?$args['sticky']:false); - $scheduled = (isset($args['scheduled'])?$args['scheduled']:false); - $untagged = (isset($args['untagged'])?$args['untagged']:false); + $published = (isset($args['published'])?$args['published']=='true':true); + $static = (isset($args['static'])?$args['static']=='true':false); + $draft = (isset($args['draft'])?$args['draft']=='true':false); + $sticky = (isset($args['sticky'])?$args['sticky']=='true':false); + $scheduled = (isset($args['scheduled'])?$args['scheduled']=='true':false); + $untagged = (isset($args['untagged'])?$args['untagged']=='true':false); $numberOfItems = $this->getValue('numberOfItems'); $pageNumber = 1; diff --git a/bl-plugins/backup/metadata.json b/bl-plugins/backup/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/backup/metadata.json +++ b/bl-plugins/backup/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/canonical/metadata.json b/bl-plugins/canonical/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/canonical/metadata.json +++ b/bl-plugins/canonical/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/categories/metadata.json b/bl-plugins/categories/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/categories/metadata.json +++ b/bl-plugins/categories/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/disqus/languages/de_CH.json b/bl-plugins/disqus/languages/de_CH.json index 1f47bbd5..5ccdbe8f 100644 --- a/bl-plugins/disqus/languages/de_CH.json +++ b/bl-plugins/disqus/languages/de_CH.json @@ -4,9 +4,9 @@ "name": "Disqus", "description": "Disqus ist eine Kommentar-Plattform für Websites. Um das Plugin verwenden zu können, muss ein Konto bei Disqus eingerichtet werden." }, - "disqus-shortname": "Disqus shortname", - "enable-disqus-on-pages": "Disqus on pages", - "enable-disqus-on-static-pages": "Disqus on static pages", - "enable-disqus-on-sticky-pages": "Disqus on sticky pages", - "get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings" -} \ No newline at end of file + "disqus-shortname": "Disqus-Kurzname (Shortname)", + "enable-disqus-on-pages": "Disqus auf Seiten", + "enable-disqus-on-static-pages": "Disqus auf statischen Seiten", + "enable-disqus-on-sticky-pages": "Disqus bei fixierten Inhalten", + "get-the-shortname-from-the-disqus-general-settings": "Der Kurzname wird bei Disqus unter \"Settings\" > \"General\" angezeigt." +} diff --git a/bl-plugins/disqus/languages/de_DE.json b/bl-plugins/disqus/languages/de_DE.json index 1f47bbd5..5ccdbe8f 100644 --- a/bl-plugins/disqus/languages/de_DE.json +++ b/bl-plugins/disqus/languages/de_DE.json @@ -4,9 +4,9 @@ "name": "Disqus", "description": "Disqus ist eine Kommentar-Plattform für Websites. Um das Plugin verwenden zu können, muss ein Konto bei Disqus eingerichtet werden." }, - "disqus-shortname": "Disqus shortname", - "enable-disqus-on-pages": "Disqus on pages", - "enable-disqus-on-static-pages": "Disqus on static pages", - "enable-disqus-on-sticky-pages": "Disqus on sticky pages", - "get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings" -} \ No newline at end of file + "disqus-shortname": "Disqus-Kurzname (Shortname)", + "enable-disqus-on-pages": "Disqus auf Seiten", + "enable-disqus-on-static-pages": "Disqus auf statischen Seiten", + "enable-disqus-on-sticky-pages": "Disqus bei fixierten Inhalten", + "get-the-shortname-from-the-disqus-general-settings": "Der Kurzname wird bei Disqus unter \"Settings\" > \"General\" angezeigt." +} diff --git a/bl-plugins/disqus/metadata.json b/bl-plugins/disqus/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/disqus/metadata.json +++ b/bl-plugins/disqus/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/hit-counter/metadata.json b/bl-plugins/hit-counter/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/hit-counter/metadata.json +++ b/bl-plugins/hit-counter/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/html-code/metadata.json b/bl-plugins/html-code/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/html-code/metadata.json +++ b/bl-plugins/html-code/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/links/metadata.json b/bl-plugins/links/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/links/metadata.json +++ b/bl-plugins/links/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/maintenance-mode/metadata.json b/bl-plugins/maintenance-mode/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/maintenance-mode/metadata.json +++ b/bl-plugins/maintenance-mode/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/navigation/languages/fa_IR.json b/bl-plugins/navigation/languages/fa_IR.json new file mode 100644 index 00000000..5ad67280 --- /dev/null +++ b/bl-plugins/navigation/languages/fa_IR.json @@ -0,0 +1,10 @@ +{ + "plugin-data": + { + "name": "ناوبری", + "description": "منوی ناوبری به همراه والد و صفحات پایین تر برای نوار کناری." + }, + "home-link": "لینک فهرست", + "show-the-home-link-on-the-sidebar": "نمایش لینک فهرست در نوار کناری.", + "amount-of-items": "تعداد آیتم ها" +} diff --git a/bl-plugins/navigation/metadata.json b/bl-plugins/navigation/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/navigation/metadata.json +++ b/bl-plugins/navigation/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/opengraph/languages/fa_IR.json b/bl-plugins/opengraph/languages/fa_IR.json new file mode 100644 index 00000000..38b491e3 --- /dev/null +++ b/bl-plugins/opengraph/languages/fa_IR.json @@ -0,0 +1,9 @@ +{ + "plugin-data": + { + "name": "Open Graph", + "description": "پروتکل Open Graph یک صفحه وب را به یک شیء غنی در یک نمودار اجتماعی تبدیل می کند ." + }, + "set-a-default-image-for-content": "قراردادن یک تصویر پیش‌فرض برای محتوایی که تصویر ندارد.", + "set-your-facebook-app-id": "قراردادن شناسه Facebook App." +} diff --git a/bl-plugins/opengraph/metadata.json b/bl-plugins/opengraph/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/opengraph/metadata.json +++ b/bl-plugins/opengraph/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/remote-content/languages/fa_IR.json b/bl-plugins/remote-content/languages/fa_IR.json new file mode 100644 index 00000000..4f81737e --- /dev/null +++ b/bl-plugins/remote-content/languages/fa_IR.json @@ -0,0 +1,11 @@ +{ + "plugin-data": + { + "name": "محتوای راه دور", + "description": "این افزونه یک راه آسان برای داشتن محتوای سایت شما در Github یا مشابه دارد و به نوبه خود، با بلودیت شما هماهنگ شده است ." + }, + "webhook": "Webhook", + "source": "منبع", + "try-webhook": "امتحان webhook", + "complete-url-of-the-zip-file": "آدرس وب کامل فایل زیپ." +} diff --git a/bl-plugins/remote-content/metadata.json b/bl-plugins/remote-content/metadata.json index 43136adb..1992e2a0 100644 --- a/bl-plugins/remote-content/metadata.json +++ b/bl-plugins/remote-content/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com/plugin/remote-content", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/robots/languages/fa_IR.json b/bl-plugins/robots/languages/fa_IR.json new file mode 100644 index 00000000..4f81737e --- /dev/null +++ b/bl-plugins/robots/languages/fa_IR.json @@ -0,0 +1,11 @@ +{ + "plugin-data": + { + "name": "محتوای راه دور", + "description": "این افزونه یک راه آسان برای داشتن محتوای سایت شما در Github یا مشابه دارد و به نوبه خود، با بلودیت شما هماهنگ شده است ." + }, + "webhook": "Webhook", + "source": "منبع", + "try-webhook": "امتحان webhook", + "complete-url-of-the-zip-file": "آدرس وب کامل فایل زیپ." +} diff --git a/bl-plugins/robots/metadata.json b/bl-plugins/robots/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/robots/metadata.json +++ b/bl-plugins/robots/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/rss/languages/fa_IR.json b/bl-plugins/rss/languages/fa_IR.json new file mode 100644 index 00000000..d587638e --- /dev/null +++ b/bl-plugins/rss/languages/fa_IR.json @@ -0,0 +1,9 @@ +{ + "plugin-data": + { + "name": "خوراک RSS", + "description": "این پلاگین برای وبسایت شما یک خوراک RSS تولید میکند.
خوراک آدرس وب https://example.com/rss.xml دارد" + }, + "amount-of-items-to-show-on-the-feed": "تعداد مطالب جهت نمایش در خوراک.", + "rss-url": "آدرس وب RSS" +} diff --git a/bl-plugins/rss/metadata.json b/bl-plugins/rss/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/rss/metadata.json +++ b/bl-plugins/rss/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/search/languages/fa_IR.json b/bl-plugins/search/languages/fa_IR.json new file mode 100644 index 00000000..c144316e --- /dev/null +++ b/bl-plugins/search/languages/fa_IR.json @@ -0,0 +1,9 @@ +{ + "plugin-data": + { + "name": "جستجو", + "description": "برای جستجو از طریق محتوای سایت خود، کادر جستجو را برای کاربران خود فراهم کنید." + }, + "search": "جستجو", + "show-button-search": "نمایش دکمه جستجو" +} diff --git a/bl-plugins/search/metadata.json b/bl-plugins/search/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/search/metadata.json +++ b/bl-plugins/search/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/search/plugin.php b/bl-plugins/search/plugin.php index aecd7ddf..a183c1ee 100644 --- a/bl-plugins/search/plugin.php +++ b/bl-plugins/search/plugin.php @@ -179,7 +179,7 @@ EOF; { // Get all pages published global $pages; - $list = $pages->getList($pageNumber = 1, $numberOfItems = -1, $onlyPublished = true); + $list = $pages->getList($pageNumber=1, $numberOfItems=-1, $published=true, $static=true, $sticky=true, $draft=false, $scheduled=false); $cache = array(); foreach ($list as $pageKey) { diff --git a/bl-plugins/simple-stats/languages/fa_IR.json b/bl-plugins/simple-stats/languages/fa_IR.json new file mode 100644 index 00000000..228c91d3 --- /dev/null +++ b/bl-plugins/simple-stats/languages/fa_IR.json @@ -0,0 +1,12 @@ +{ + "plugin-data": + { + "name": "آمار ساده", + "description": "نمایش روزانه بازدیدکنندگان در پیش خوان شما." + }, + "visits": "بازدیدها", + "visits-today": "بازدیدهای امروز", + "unique-visitors-today": "بازدید کنندگان منحصر به فرد امروز", + "chart": "چارت", + "table": "جدول" +} diff --git a/bl-plugins/simple-stats/metadata.json b/bl-plugins/simple-stats/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/simple-stats/metadata.json +++ b/bl-plugins/simple-stats/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/simplemde/languages/fa_IR.json b/bl-plugins/simplemde/languages/fa_IR.json new file mode 100644 index 00000000..85d1c74c --- /dev/null +++ b/bl-plugins/simplemde/languages/fa_IR.json @@ -0,0 +1,12 @@ +{ + "plugin-data": + { + "name": "SimpleMDE", + "description": "ویرایشگر Markdown، رابط ساده برای ایجاد زبان markup." + }, + "toolbar": "نوار ابزار", + "tab-size": "اندازه زبانه", + "autosave": "ذخیره خودکار", + "spell-checker": "غلط گیر", + "content-here-supports-markdown-and-html-code": "محتوای اینجا از Markdown و کد HTML پشتیبانی می کند" +} diff --git a/bl-plugins/simplemde/metadata.json b/bl-plugins/simplemde/metadata.json index 6fbee4df..f5751d4a 100644 --- a/bl-plugins/simplemde/metadata.json +++ b/bl-plugins/simplemde/metadata.json @@ -5,6 +5,6 @@ "version": "1.11.2", "releaseDate": "2016-06-14", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/sitemap/languages/fa_IR.json b/bl-plugins/sitemap/languages/fa_IR.json new file mode 100644 index 00000000..eae5220d --- /dev/null +++ b/bl-plugins/sitemap/languages/fa_IR.json @@ -0,0 +1,10 @@ +{ + "plugin-data": + { + "name": "نقشه سایت", + "description": "این پلاگین یک فایل sitemap.xml تولید می کند، که لیستی از صفحات وبسایت شما را ارائه می کند، این پلاگین به موتورهای جستجو کمک میکند تا محتوای شما را سازماندهی و پالایش کند." + }, + "sitemap-url": "آدرس وب نقشه سایت", + "notifies-google-when-you-created": "اطلاع رسانی به Google هنگامی که شما محتوایی بر روی وبسایت خود ایجاد، ویرایش و یا حذف می کنید.", + "notifies-bing-when-you-created": "اطلاع رسانی به Bing هنگامی که شما محتوایی بر روی وبسایت خود ایجاد، ویرایش و یا حذف می کنید." +} diff --git a/bl-plugins/sitemap/metadata.json b/bl-plugins/sitemap/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/sitemap/metadata.json +++ b/bl-plugins/sitemap/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/sitemap/plugin.php b/bl-plugins/sitemap/plugin.php index e4fc77e5..7121b3e9 100644 --- a/bl-plugins/sitemap/plugin.php +++ b/bl-plugins/sitemap/plugin.php @@ -57,10 +57,7 @@ class pluginSitemap extends Plugin { $xml .= ''.$site->url().''; $xml .= ''; - $published = $pages->getPublishedDB(); - $statics = $pages->getStaticDB(); - $list = array_merge($published, $statics); - + $list = $pages->getList($pageNumber=1, $numberOfItems=-1, $published=true, $static=true, $sticky=true, $draft=false, $scheduled=false); foreach ($list as $pageKey) { try { // Create the page object from the page key diff --git a/bl-plugins/static-pages/languages/fa_IR.json b/bl-plugins/static-pages/languages/fa_IR.json new file mode 100644 index 00000000..77bdfce5 --- /dev/null +++ b/bl-plugins/static-pages/languages/fa_IR.json @@ -0,0 +1,9 @@ +{ + "plugin-data": + { + "name": "صفحات استاتیک", + "description": "منوی ناوبری به همراه صفحات استاتیک." + }, + "home-link": "لینک فهرست", + "show-the-home-link-on-the-sidebar": "نمایش لینک فهرست در نوار کناری." +} diff --git a/bl-plugins/static-pages/metadata.json b/bl-plugins/static-pages/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/static-pages/metadata.json +++ b/bl-plugins/static-pages/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/tags/languages/fa_IR.json b/bl-plugins/tags/languages/fa_IR.json new file mode 100644 index 00000000..86982fad --- /dev/null +++ b/bl-plugins/tags/languages/fa_IR.json @@ -0,0 +1,7 @@ +{ + "plugin-data": + { + "name": "لیست برچسب ها", + "description": "نمایش تمام برچسب ها در نوار کناری." + } +} diff --git a/bl-plugins/tags/metadata.json b/bl-plugins/tags/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/tags/metadata.json +++ b/bl-plugins/tags/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/tinymce/languages/fa_IR.json b/bl-plugins/tinymce/languages/fa_IR.json new file mode 100644 index 00000000..80351182 --- /dev/null +++ b/bl-plugins/tinymce/languages/fa_IR.json @@ -0,0 +1,7 @@ +{ + "plugin-data": + { + "name": "TinyMCE", + "description": "ویرایشگر HTML برای فرمت بندی محتوا. برای کاربرانی که تمایل ندارند با کد Markdown کار کنند پیشنهاد می‌شود." + } +} diff --git a/bl-plugins/tinymce/metadata.json b/bl-plugins/tinymce/metadata.json index 2003a7a5..263315e1 100644 --- a/bl-plugins/tinymce/metadata.json +++ b/bl-plugins/tinymce/metadata.json @@ -5,6 +5,6 @@ "version": "4.9.2", "releaseDate": "2018-12-17", "license": "GPL v2", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/twitter-cards/languages/fa_IR.json b/bl-plugins/twitter-cards/languages/fa_IR.json new file mode 100644 index 00000000..e0391f72 --- /dev/null +++ b/bl-plugins/twitter-cards/languages/fa_IR.json @@ -0,0 +1,8 @@ +{ + "plugin-data": + { + "name": "Twitter Cards", + "description": "بوسیله Twitter Cards ، شما می‌توانید تصاویر، ویدئو و تجربیات رسانه ای را به توئیت پیوست کرده، و با اینکار کمکی می‌شود تا ترافیک بیشتری به سمت وبسایت شما روانه شود." + }, + "default-image": "تصویر پیش‌فرض" +} diff --git a/bl-plugins/twitter-cards/metadata.json b/bl-plugins/twitter-cards/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/twitter-cards/metadata.json +++ b/bl-plugins/twitter-cards/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-plugins/version/languages/fa_IR.json b/bl-plugins/version/languages/fa_IR.json new file mode 100644 index 00000000..75a709d4 --- /dev/null +++ b/bl-plugins/version/languages/fa_IR.json @@ -0,0 +1,7 @@ +{ + "plugin-data": + { + "name": "نسخه", + "description": "نمایش نسخه جاری در نوار کناری پنل مدیریت، و بررسی دوره ای برای نسخه های جدید بلودیت." + } +} diff --git a/bl-plugins/version/metadata.json b/bl-plugins/version/metadata.json index 15c1a749..6d5e757f 100644 --- a/bl-plugins/version/metadata.json +++ b/bl-plugins/version/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://plugins.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-themes/alternative/metadata.json b/bl-themes/alternative/metadata.json index 626d1b2f..1feb13f2 100644 --- a/bl-themes/alternative/metadata.json +++ b/bl-themes/alternative/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://themes.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file diff --git a/bl-themes/blogx/metadata.json b/bl-themes/blogx/metadata.json index 626d1b2f..1feb13f2 100644 --- a/bl-themes/blogx/metadata.json +++ b/bl-themes/blogx/metadata.json @@ -2,9 +2,9 @@ "author": "Bludit", "email": "", "website": "https://themes.bludit.com", - "version": "3.8.0", - "releaseDate": "2019-02-22", + "version": "3.8.1", + "releaseDate": "2019-02-28", "license": "MIT", - "compatible": "3.8.0", + "compatible": "3.8.1", "notes": "" } \ No newline at end of file