Merge pull request #6 from dignajar/master

Pull request
This commit is contained in:
Edi 2017-05-14 01:12:08 +02:00 committed by GitHub
commit d76ed0c661
21 changed files with 102 additions and 64 deletions

View File

@ -41,7 +41,7 @@ foreach($themes as $theme)
<td class="uk-text-center">'; <td class="uk-text-center">';
if( !$theme['compatible'] ) { if( !$theme['compatible'] ) {
echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="This theme is incompatible with Bludit v'.BLUDIT_VERSION.'"></i>'; echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="'.$L->g('This theme may not be supported by this version of Bludit').'"></i>';
} }
echo $theme['version'].'</td>'; echo $theme['version'].'</td>';

View File

@ -1,7 +1,7 @@
<?php defined('BLUDIT') or die('Bludit CMS.'); <?php defined('BLUDIT') or die('Bludit CMS.');
// Bludit version // Bludit version
define('BLUDIT_VERSION', '1.6-beta'); define('BLUDIT_VERSION', '1.6');
define('BLUDIT_CODENAME', ''); define('BLUDIT_CODENAME', '');
define('BLUDIT_RELEASE_DATE', ''); define('BLUDIT_RELEASE_DATE', '');
define('BLUDIT_BUILD', ''); define('BLUDIT_BUILD', '');

View File

@ -68,7 +68,34 @@ class Text {
'Ā'=>'A', 'Č'=>'C', 'Ē'=>'E', 'Ģ'=>'G', 'Ī'=>'i', 'Ķ'=>'k', 'Ļ'=>'L', 'Ņ'=>'N', 'Ā'=>'A', 'Č'=>'C', 'Ē'=>'E', 'Ģ'=>'G', 'Ī'=>'i', 'Ķ'=>'k', 'Ļ'=>'L', 'Ņ'=>'N',
'Š'=>'S', 'Ū'=>'u', 'Ž'=>'Z', 'Š'=>'S', 'Ū'=>'u', 'Ž'=>'Z',
'ā'=>'a', 'č'=>'c', 'ē'=>'e', 'ģ'=>'g', 'ī'=>'i', 'ķ'=>'k', 'ļ'=>'l', 'ņ'=>'n', 'ā'=>'a', 'č'=>'c', 'ē'=>'e', 'ģ'=>'g', 'ī'=>'i', 'ķ'=>'k', 'ļ'=>'l', 'ņ'=>'n',
'š'=>'s', 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'=>'o', 'ố'=>'o', 'ổ'=>'o', 'ỗ'=>'o', 'ộ'=>'o',
'ư'=>'u', 'ừ'=>'u', 'ứ'=>'u', 'ử'=>'u', 'ữ'=>'u', 'ự'=>'u',
'ủ'=>'u', 'ũ'=>'u',
'ỳ'=>'y', 'ỷ'=>'y', 'ỹ'=>'y', 'ỵ' => 'y',
'đ'=>'d',
); );
public static function addSlashes($string, $begin=true, $end=true) public static function addSlashes($string, $begin=true, $end=true)

View File

@ -3,7 +3,7 @@
{ {
"native": "English (United States)", "native": "English (United States)",
"english-name": "English", "english-name": "English",
"last-update": "2016-02-13", "last-update": "2017-05-08",
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "" "website": ""
@ -228,7 +228,6 @@
"click-here-to-cancel": "Click here to cancel.", "click-here-to-cancel": "Click here to cancel.",
"type-the-tag-and-press-enter": "Type the tag and press enter.", "type-the-tag-and-press-enter": "Type the tag and press enter.",
"add": "Add",
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})", "manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"There are no images", "there-are-no-images":"There are no images",
@ -252,11 +251,7 @@
"add-a-new-post": "Add a new post", "add-a-new-post": "Add a new post",
"save-as-draft": "Save as draft", "save-as-draft": "Save as draft",
"categories": "Сategories",
"add-a-new-category": "Add a new category",
"new-category": "New category",
"slug": "slug", "slug": "slug",
"edit-category": "Edit category", "this-plugin-may-not-be-supported-by-this-version-of-bludit": "This plugin may not be supported by this version of Bludit",
"last-page": "Last page", "this-theme-may-not-be-supported-by-this-version-of-bludit": "This theme may not be supported by this version of Bludit"
"first-page": "First page"
} }

View File

@ -3,7 +3,7 @@
{ {
"native": "Español (Argentina)", "native": "Español (Argentina)",
"english-name": "Spanish", "english-name": "Spanish",
"last-update": "2016-02-13", "last-update": "2017-05-08",
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "" "website": ""
@ -226,7 +226,6 @@
"click-here-to-cancel": "Clic aquí para cancelar.", "click-here-to-cancel": "Clic aquí para cancelar.",
"type-the-tag-and-press-enter": "Escriba la etiqueta y presione enter.", "type-the-tag-and-press-enter": "Escriba la etiqueta y presione enter.",
"add": "Agregar",
"manage-your-bludit-from-the-admin-panel": "Administre su Bludit desde el [panel de administración]({{ADMIN_AREA_LINK}})", "manage-your-bludit-from-the-admin-panel": "Administre su Bludit desde el [panel de administración]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"No hay imagenes", "there-are-no-images":"No hay imagenes",
@ -247,5 +246,10 @@
"сurrent-status" : "Estado", "сurrent-status" : "Estado",
"disable-the-user" : "Deshabilitar usuario", "disable-the-user" : "Deshabilitar usuario",
"add-a-new-page": "Crear nueva pagina", "add-a-new-page": "Crear nueva pagina",
"add-a-new-post": "Crear nuevo post" "add-a-new-post": "Crear nuevo post",
"save-as-draft": "Guardar como borrador",
"slug": "Slug",
"this-plugin-may-not-be-supported-by-this-version-of-bludit": "Esta extension puede que no sea compatible con esta versión de Bludit",
"this-theme-may-not-be-supported-by-this-version-of-bludit": "Este tema puede que no sea compatible con esta versión de Bludit"
} }

View File

@ -235,5 +235,27 @@
"delete-image": "Elimima immagine", "delete-image": "Elimima immagine",
"image-description": "Descrizione dell'immagine", "image-description": "Descrizione dell'immagine",
"social-networks-links": "Social Networks" "social-networks-links": "Social Networks",
"email-access-code": "Codice di Accesso",
"current-format": "Formato attuale",
"welcome": "Benvenuto",
"to-enable-the-user-you-have-to-set-a-new-password": "Per attivare l'utente devi impostare una nuova password."
"do-you-want-to-disable-the-user": "Vuoi disabilitare l'utente ?",
"сurrent-status" : "Stato",
"disable-the-user" : "Disabilita l'utente",
"add-a-new-page": "Crea una nuova pagina",
"add-a-new-post": "Crea un nuovo post",
"save-as-draft": "Salva come bozza",
"categories": "Categorie",
"add-a-new-category": "Aggiungi una nuova categoria",
"new-category": "Nuova categoria",
"slug": "slug",
"edit-category": "Modifica categoria",
"last-page": "Ultima pagina",
"first-page": "Prima pagina"
} }

View File

@ -249,5 +249,13 @@
"add-a-new-page": "Добавить страницу", "add-a-new-page": "Добавить страницу",
"add-a-new-post": "Добавить запись", "add-a-new-post": "Добавить запись",
"save-as-draft": "Сохранить как черновик" "save-as-draft": "Сохранить как черновик",
"categories": "Категории",
"add-a-new-category": "Добавить новую категорию",
"new-category": "Новая категория",
"slug": "Slug",
"edit-category": "Редактировать категорию",
"last-page": "Последняя страница",
"first-page": "Первая страница"
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -1,10 +1,10 @@
{ {
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://docs.bludit.com/en/api/introduction",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2017-05-10",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -22,29 +22,11 @@ class pluginAPI extends Plugin {
$html = ''; $html = '';
$html .= '<div>'; $html .= '<div>';
$html .= '<p><b>Authorization Key:</b> '.$this->getDbField('token').'</p>'; $html .= '<p><b>Token:</b> '.$this->getDbField('token').'</p>';
$html .= '<div class="tip">This key is private, do not share it with anyone.</div>'; $html .= '<div class="tip">This key is private, do not share it with anyone.</div>';
$html .= '</div>'; $html .= '</div>';
$html .= '<div>'; $html .= '<div>Check the documentation about the API <a href="https://docs.bludit.com/en/api/introduction">Bludit Docs API</a></div>';
$html .= '<p><b>Show all posts:</b> <a href="'.DOMAIN_BASE.'api/show/all/posts/'.$this->getDbField('token').'">'.DOMAIN_BASE.'api/show/all/posts/'.$this->getDbField('token').'</a></p>';
$html .= '<div class="tip">Get all posts from this site.</div>';
$html .= '</div>';
$html .= '<div>';
$html .= '<p><b>Show all pages:</b> <a href="'.DOMAIN_BASE.'api/show/all/pages/'.$this->getDbField('token').'">'.DOMAIN_BASE.'api/show/all/pages/'.$this->getDbField('token').'</a></p>';
$html .= '<div class="tip">Get all pages from this site.</div>';
$html .= '</div>';
$html .= '<div>';
$html .= '<p><b>Show post:</b> <a href="'.DOMAIN_BASE.'api/show/post/{POST-NAME}">'.DOMAIN_BASE.'api/show/post/{POST-NAME}</a></p>';
$html .= '<div class="tip">Get a particular post, change the {POST-NAME} with the post friendly url.</div>';
$html .= '</div>';
$html .= '<div>';
$html .= '<p><b>Show page:</b> <a href="'.DOMAIN_BASE.'api/show/page/{PAGE-NAME}">'.DOMAIN_BASE.'api/show/page/{PAGE-NAME}</a></p>';
$html .= '<div class="tip">Get a particular page, change the {PAGE-NAME} with the page friendly url.</div>';
$html .= '</div>';
return $html; return $html;
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -5,6 +5,6 @@
"version": "1.11.2", "version": "1.11.2",
"releaseDate": "2016-06-14", "releaseDate": "2016-06-14",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "1.5.2", "version": "1.6",
"releaseDate": "2016-05-28", "releaseDate": "2016-05-28",
"license": "MIT", "license": "MIT",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "n33co", "author": "n33co",
"email": "", "email": "",
"website": "http://html5up.net", "website": "http://html5up.net",
"version": "1.4", "version": "1.6",
"releaseDate": "2016-05-20", "releaseDate": "2016-05-20",
"license": "CCA 3.0", "license": "CCA 3.0",
"compatible": "1.5.2", "compatible": "1.5.2,1.6",
"notes": "" "notes": ""
} }