diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php
index fe6e74fb..09186108 100644
--- a/bl-kernel/abstract/plugin.class.php
+++ b/bl-kernel/abstract/plugin.class.php
@@ -220,7 +220,7 @@ class Plugin {
// Create database
$this->dbFields['position'] = $position;
- $this->setDb($this->dbFields);
+ $this->db = $this->dbFields;
return true;
}
diff --git a/bl-kernel/admin/controllers/about.php b/bl-kernel/admin/controllers/about.php
index 0952dfa0..a27002e5 100644
--- a/bl-kernel/admin/controllers/about.php
+++ b/bl-kernel/admin/controllers/about.php
@@ -1,4 +1,4 @@
g('About') . ' - ' . $layout['title'];
\ No newline at end of file
+$layout['title'] = $L->g('About') . ' - ' . $layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/categories.php b/bl-kernel/admin/controllers/categories.php
index 60facd80..3a22161b 100644
--- a/bl-kernel/admin/controllers/categories.php
+++ b/bl-kernel/admin/controllers/categories.php
@@ -23,4 +23,4 @@ checkRole(array('admin'));
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Categories');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Categories');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/configure-plugin.php b/bl-kernel/admin/controllers/configure-plugin.php
index 3cc69501..9ce387c8 100644
--- a/bl-kernel/admin/controllers/configure-plugin.php
+++ b/bl-kernel/admin/controllers/configure-plugin.php
@@ -41,10 +41,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// Call the method post of the plugin
if ($plugin->post()) {
- Alert::set( $language->g('The changes have been saved') );
+ Alert::set( $L->g('The changes have been saved') );
Redirect::page('configure-plugin/'.$plugin->className());
} else {
- Alert::set( $language->g('Complete all fields') );
+ Alert::set( $L->g('Complete all fields') );
}
}
@@ -53,4 +53,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] = $language->g('Plugin').' - '.$plugin->name().' - '.$layout['title'];
\ No newline at end of file
+$layout['title'] = $L->g('Plugin').' - '.$plugin->name().' - '.$layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php
index 4690e4fd..a4342a7c 100644
--- a/bl-kernel/admin/controllers/content.php
+++ b/bl-kernel/admin/controllers/content.php
@@ -39,4 +39,4 @@ $static = $pages->getStaticDB(true);
$sticky = $pages->getStickyDB(true);
// Title of the page
-$layout['title'] .= ' - '.$language->g('Manage content');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Manage content');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/dashboard.php b/bl-kernel/admin/controllers/dashboard.php
index 04da6450..2d45bf1b 100644
--- a/bl-kernel/admin/controllers/dashboard.php
+++ b/bl-kernel/admin/controllers/dashboard.php
@@ -36,4 +36,4 @@ function updateBludit() {
updateBludit();
// Title of the page
-$layout['title'] .= ' - '.$language->g('Dashboard');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Dashboard');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/developers.php b/bl-kernel/admin/controllers/developers.php
index f27918bb..37b37c9c 100644
--- a/bl-kernel/admin/controllers/developers.php
+++ b/bl-kernel/admin/controllers/developers.php
@@ -48,4 +48,4 @@ function printTable($title, $array) {
// Main after POST
// ============================================================================
-$layout['title'] .= ' - '.$language->g('Developers');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Developers');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/edit-category.php b/bl-kernel/admin/controllers/edit-category.php
index 842e0b56..9df8f48c 100644
--- a/bl-kernel/admin/controllers/edit-category.php
+++ b/bl-kernel/admin/controllers/edit-category.php
@@ -41,4 +41,4 @@ if (!$categories->exists($categoryKey)) {
$categoryMap = $categories->getMap($categoryKey);
// Title of the page
-$layout['title'] .= ' - '.$language->g('Edit Category').' [ '.$categoryMap['name'] . ' ] ';
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Edit Category').' [ '.$categoryMap['name'] . ' ] ';
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/edit-content.php b/bl-kernel/admin/controllers/edit-content.php
index 1caaeca5..71a2f02f 100644
--- a/bl-kernel/admin/controllers/edit-content.php
+++ b/bl-kernel/admin/controllers/edit-content.php
@@ -9,7 +9,7 @@ if (!checkRole(array('admin','editor'), false)) {
$pageKey = isset($_POST['key']) ? $_POST['key'] : $layout['parameters'];
$page = new Page($pageKey);
} catch (Exception $e) {
- Alert::set($language->g('You do not have sufficient permissions'));
+ Alert::set($L->g('You do not have sufficient permissions'));
Redirect::page('dashboard');
}
@@ -20,7 +20,7 @@ if (!checkRole(array('admin','editor'), false)) {
'notes'=>$login->username()
));
- Alert::set($language->g('You do not have sufficient permissions'));
+ Alert::set($L->g('You do not have sufficient permissions'));
Redirect::page('dashboard');
}
}
@@ -40,7 +40,7 @@ if (!checkRole(array('admin','editor'), false)) {
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($_POST['type']==='delete') {
if (deletePage($_POST['key'])) {
- Alert::set( $language->g('The changes have been saved') );
+ Alert::set( $L->g('The changes have been saved') );
}
} else {
// If the checkbox is not selected the form doesn't send the field
@@ -50,7 +50,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$key = editPage($_POST);
if ($key!==false) {
- Alert::set( $language->g('The changes have been saved') );
+ Alert::set( $L->g('The changes have been saved') );
Redirect::page('edit-content/'.$key);
}
}
@@ -70,4 +70,4 @@ try {
}
// Title of the page
-$layout['title'] .= ' - '.$language->g('Edit content').' - '.$page->title();
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Edit content').' - '.$page->title();
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/edit-user.php b/bl-kernel/admin/controllers/edit-user.php
index c2ffb32c..9e23f6b1 100644
--- a/bl-kernel/admin/controllers/edit-user.php
+++ b/bl-kernel/admin/controllers/edit-user.php
@@ -31,7 +31,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
editUser($_POST);
}
- Alert::set($language->g('The changes have been saved'));
+ Alert::set($L->g('The changes have been saved'));
Redirect::page('users');
}
@@ -53,4 +53,4 @@ try {
}
// Title of the page
-$layout['title'] = $language->g('Edit user').' - '.$layout['title'];
\ No newline at end of file
+$layout['title'] = $L->g('Edit user').' - '.$layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/install-theme.php b/bl-kernel/admin/controllers/install-theme.php
index 6fa573ab..1a3dabfa 100644
--- a/bl-kernel/admin/controllers/install-theme.php
+++ b/bl-kernel/admin/controllers/install-theme.php
@@ -33,7 +33,7 @@ if (Sanitize::pathFile(PATH_THEMES.$themeDirname)) {
));
// Create an alert
- Alert::set( $language->g('The changes have been saved') );
+ Alert::set( $L->g('The changes have been saved') );
}
// Redirect
diff --git a/bl-kernel/admin/controllers/login.php b/bl-kernel/admin/controllers/login.php
index ff2b2e8f..9b9da20c 100644
--- a/bl-kernel/admin/controllers/login.php
+++ b/bl-kernel/admin/controllers/login.php
@@ -12,10 +12,10 @@ function checkLogin($args)
{
global $security;
global $login;
- global $language;
+ global $L;
if ($security->isBlocked()) {
- Alert::set($language->g('IP address has been blocked').' '.$language->g('Try again in a few minutes'), ALERT_STATUS_FAIL);
+ Alert::set($L->g('IP address has been blocked').' '.$L->g('Try again in a few minutes'), ALERT_STATUS_FAIL);
return false;
}
@@ -26,12 +26,6 @@ function checkLogin($args)
// Renew the token. This token will be the same inside the session for multiple forms.
$security->generateTokenCSRF();
- // Users with the role reader do not need access to dashboard
- if ($login->role()=='reader') {
- Redirect::home();
- }
-
- // Other user without the role reader redirect to dashboard
Redirect::page('dashboard');
return true;
}
@@ -40,7 +34,7 @@ function checkLogin($args)
$security->addToBlacklist();
// Create alert
- Alert::set($language->g('Username or password incorrect'), ALERT_STATUS_FAIL);
+ Alert::set($L->g('Username or password incorrect'), ALERT_STATUS_FAIL);
return false;
}
diff --git a/bl-kernel/admin/controllers/new-category.php b/bl-kernel/admin/controllers/new-category.php
index 5151cee6..22ac496f 100644
--- a/bl-kernel/admin/controllers/new-category.php
+++ b/bl-kernel/admin/controllers/new-category.php
@@ -29,4 +29,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('New category');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('New category');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/new-content.php b/bl-kernel/admin/controllers/new-content.php
index 92edd450..fd119222 100644
--- a/bl-kernel/admin/controllers/new-content.php
+++ b/bl-kernel/admin/controllers/new-content.php
@@ -33,4 +33,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] = $language->g('New content').' - '.$layout['title'];
\ No newline at end of file
+$layout['title'] = $L->g('New content').' - '.$layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/new-user.php b/bl-kernel/admin/controllers/new-user.php
index ea52e1b3..e2a8ea9e 100644
--- a/bl-kernel/admin/controllers/new-user.php
+++ b/bl-kernel/admin/controllers/new-user.php
@@ -29,4 +29,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Add a new user');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Add a new user');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/plugins-position.php b/bl-kernel/admin/controllers/plugins-position.php
index 3d914421..164e113f 100644
--- a/bl-kernel/admin/controllers/plugins-position.php
+++ b/bl-kernel/admin/controllers/plugins-position.php
@@ -26,4 +26,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Plugins');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Plugins');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/plugins.php b/bl-kernel/admin/controllers/plugins.php
index 8cea2044..074f555a 100644
--- a/bl-kernel/admin/controllers/plugins.php
+++ b/bl-kernel/admin/controllers/plugins.php
@@ -23,4 +23,4 @@ checkRole(array('admin'));
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Plugins');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Plugins');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/settings-general.php b/bl-kernel/admin/controllers/settings-general.php
index e3e13e45..0f7dbcee 100644
--- a/bl-kernel/admin/controllers/settings-general.php
+++ b/bl-kernel/admin/controllers/settings-general.php
@@ -28,4 +28,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('General Settings');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('General Settings');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/settings-regional.php b/bl-kernel/admin/controllers/settings-regional.php
index 7767fb80..98b4ded3 100644
--- a/bl-kernel/admin/controllers/settings-regional.php
+++ b/bl-kernel/admin/controllers/settings-regional.php
@@ -28,4 +28,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Language and timezone');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Language and timezone');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/settings.php b/bl-kernel/admin/controllers/settings.php
index 0da3a3c5..60c99564 100644
--- a/bl-kernel/admin/controllers/settings.php
+++ b/bl-kernel/admin/controllers/settings.php
@@ -28,4 +28,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Advanced Settings');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Advanced Settings');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/themes.php b/bl-kernel/admin/controllers/themes.php
index b7892759..43e3dbf3 100644
--- a/bl-kernel/admin/controllers/themes.php
+++ b/bl-kernel/admin/controllers/themes.php
@@ -21,4 +21,4 @@ checkRole(array('admin'));
$themes = buildThemes();
// Title of the page
-$layout['title'] .= ' - '.$language->g('Themes');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Themes');
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/user-password.php b/bl-kernel/admin/controllers/user-password.php
index ed93e187..bc92811b 100644
--- a/bl-kernel/admin/controllers/user-password.php
+++ b/bl-kernel/admin/controllers/user-password.php
@@ -41,4 +41,4 @@ try {
}
// Title of the page
-$layout['title'] = $language->g('Change password').' - '.$layout['title'];
\ No newline at end of file
+$layout['title'] = $L->g('Change password').' - '.$layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/controllers/users.php b/bl-kernel/admin/controllers/users.php
index b22cebf6..a9a00232 100644
--- a/bl-kernel/admin/controllers/users.php
+++ b/bl-kernel/admin/controllers/users.php
@@ -28,4 +28,4 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
// ============================================================================
// Title of the page
-$layout['title'] .= ' - '.$language->g('Users');
\ No newline at end of file
+$layout['title'] .= ' - '.$L->g('Users');
\ No newline at end of file
diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php
index 2d0f8134..489171e8 100644
--- a/bl-kernel/admin/views/content.php
+++ b/bl-kernel/admin/views/content.php
@@ -4,7 +4,7 @@ echo Bootstrap::pageTitle(array('title'=>$L->g('Content'), 'icon'=>'layers'));
function table($type) {
global $url;
- global $language;
+ global $L;
global $published;
global $drafts;
global $scheduled;
@@ -15,7 +15,7 @@ function table($type) {
$list = $published;
if (empty($list)) {
echo '
';
- echo $language->g('There are no pages at this moment.');
+ echo $L->g('There are no pages at this moment.');
echo '
';
return false;
}
@@ -23,7 +23,7 @@ function table($type) {
$list = $drafts;
if (empty($list)) {
echo '
';
- echo $language->g('There are no draft pages at this moment.');
+ echo $L->g('There are no draft pages at this moment.');
echo '
';
return false;
}
@@ -31,7 +31,7 @@ function table($type) {
$list = $scheduled;
if (empty($list)) {
echo '
';
- echo $language->g('There are no scheduled pages at this moment.');
+ echo $L->g('There are no scheduled pages at this moment.');
echo '
';
return false;
}
@@ -39,7 +39,7 @@ function table($type) {
$list = $static;
if (empty($list)) {
echo '
';
- echo $language->g('There are no static pages at this moment.');
+ echo $L->g('There are no static pages at this moment.');
echo '
';
return false;
}
@@ -47,7 +47,7 @@ function table($type) {
$list = $sticky;
if (empty($list)) {
echo '
';
- echo $language->g('There are no sticky pages at this moment.');
+ echo $L->g('There are no sticky pages at this moment.');
echo '
default.svg" />
'External Cover image'));
+ echo Bootstrap::formTitle(array('title'=>$L->g('External Cover image')));
echo Bootstrap::formInputTextBlock(array(
'name'=>'externalCoverImage',
'placeholder'=>'https://',
'value'=>$externalCoverImage,
- 'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicated for images.'
+ 'tip'=>$L->g('Set a cover image from external URL, such as a CDN or some server dedicated for images.')
));
?>
@@ -135,17 +135,17 @@
-
-
+
+
-
General
+
p('General') ?>
'',
- 'label'=>'User',
+ 'label'=>$L->g('User'),
'placeholder'=>'',
'value'=>$page->username(),
'tip'=>'',
@@ -155,23 +155,23 @@
// Date
echo Bootstrap::formInputText(array(
'name'=>'date',
- 'label'=>'Date',
+ 'label'=>$L->g('Date'),
'placeholder'=>'',
'value'=>$page->dateRaw(),
- 'tip'=>'Date format: YYYY-MM-DD Hours:Minutes:Seconds'
+ 'tip'=>$L->g('Date format: YYYY-MM-DD Hours:Minutes:Seconds')
));
// Type
echo Bootstrap::formSelect(array(
'name'=>'typeTMP',
- 'label'=>'Type',
+ 'label'=>$L->g('Type'),
'selected'=>$page->type(),
'options'=>array(
- 'published'=>'- Default -',
- 'sticky'=>'Sticky',
- 'static'=>'Static'
+ 'published'=>'- '.$L->g('Default').' -',
+ 'sticky'=>$L->g('Sticky'),
+ 'static'=>$L->g('Static')
),
- 'tip'=>'???'
+ 'tip'=>''
));
// Parent
@@ -187,7 +187,7 @@
'name'=>'parentTMP',
'label'=>$L->g('Parent'),
'placeholder'=>'',
- 'tip'=>'Start typing a page title to see a list of suggestions.',
+ 'tip'=>$L->g('Start typing a page title to see a list of suggestions.'),
'value'=>$parentOption
));
@@ -195,17 +195,17 @@
echo Bootstrap::formInputText(array(
'name'=>'position',
'label'=>$L->g('Position'),
- 'tip'=>'Field used when ordering content by position',
+ 'tip'=>$L->g('Field used when ordering content by position'),
'value'=>$page->position()
));
// Template
echo Bootstrap::formInputText(array(
'name'=>'template',
- 'label'=>'Template',
+ 'label'=>$L->g('Template'),
'placeholder'=>'',
'value'=>$page->template(),
- 'tip'=>'Write a template name to filter the page in the theme and change the style of the page.'
+ 'tip'=>$L->g('Write a template name to filter the page in the theme and change the style of the page.')
));
echo Bootstrap::formTitle(array('title'=>'SEO'));
@@ -213,10 +213,10 @@
// Tags
echo Bootstrap::formInputText(array(
'name'=>'tags',
- 'label'=>'Tags',
+ 'label'=>$L->g('Tags'),
'placeholder'=>'',
'value'=>$page->tags(),
- 'tip'=>'Write the tags separated by comma'
+ 'tip'=>$L->g('Write the tags separated by comma')
));
// Friendly URL
@@ -224,36 +224,36 @@
'name'=>'slug',
'tip'=>$L->g('URL associated with the content'),
'label'=>$L->g('Friendly URL'),
- 'placeholder'=>'Leave empty for autocomplete by Bludit.',
+ 'placeholder'=>$L->g('Leave empty for autocomplete by Bludit.'),
'value'=>$page->slug()
));
echo Bootstrap::formCheckbox(array(
'name'=>'noindex',
'label'=>'Robots',
- 'labelForCheckbox'=>'Apply noindex to this page',
+ 'labelForCheckbox'=>$L->g('Apply noindex to this page'),
'placeholder'=>'',
'class'=>'mt-4',
'checked'=>$page->noindex(),
- 'tip'=>'This tells search engines not to show this page in their search results.'
+ 'tip'=>$L->g('This tells search engines not to show this page in their search results.')
));
echo Bootstrap::formCheckbox(array(
'name'=>'nofollow',
'label'=>'',
- 'labelForCheckbox'=>'Apply nofollow to this page',
+ 'labelForCheckbox'=>$L->g('Apply nofollow to this page'),
'placeholder'=>'',
'checked'=>$page->nofollow(),
- 'tip'=>'This tells search engines not to follow links on this page.'
+ 'tip'=>$L->g('This tells search engines not to follow links on this page.')
));
echo Bootstrap::formCheckbox(array(
'name'=>'noarchive',
'label'=>'',
- 'labelForCheckbox'=>'Apply noarchive to this page',
+ 'labelForCheckbox'=>$L->g('Apply noarchive to this page'),
'placeholder'=>'',
'checked'=>$page->noarchive(),
- 'tip'=>'This tells search engines not to save a cached copy of this page.'
+ 'tip'=>$L->g('This tells search engines not to save a cached copy of this page.')
));
?>
@@ -261,12 +261,12 @@
'Delete',
+ 'buttonPrimary'=>$L->g('Delete'),
'buttonPrimaryClass'=>'jsbuttonDeleteAccept',
- 'buttonSecondary'=>'Cancel',
+ 'buttonSecondary'=>$L->g('Cancel'),
'buttonSecondaryClass'=>'',
- 'modalTitle'=>'Delete content',
- 'modalText'=>'Are you sure you want to delete: '.$page->title().'',
+ 'modalTitle'=>$L->g('Delete content'),
+ 'modalText'=>$L->g('Are you sure you want to delete this page'),
'modalId'=>'jsdeletePageModal'
));
?>
@@ -286,7 +286,7 @@
diff --git a/bl-kernel/admin/views/edit-user.php b/bl-kernel/admin/views/edit-user.php
index 30fa3e69..2f5c150b 100644
--- a/bl-kernel/admin/views/edit-user.php
+++ b/bl-kernel/admin/views/edit-user.php
@@ -38,7 +38,7 @@ echo Bootstrap::formOpen(array());
echo Bootstrap::formSelect(array(
'name'=>'role',
'label'=>$L->g('Role'),
- 'options'=>array('reader'=>$L->g('Reader'), 'editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')),
+ 'options'=>array('editor'=>$L->g('Editor'), 'admin'=>$L->g('Administrator')),
'selected'=>$user->role(),
'class'=>'',
'tip'=>''
@@ -62,7 +62,7 @@ echo Bootstrap::formOpen(array());
'value'=>$user->nickname(),
'class'=>'',
'placeholder'=>'',
- 'tip'=>'The nickname is almost used in the themes to display the author of the content'
+ 'tip'=>$L->g('The nickname is almost used in the themes to display the author of the content')
));
echo Bootstrap::formInputText(array(
@@ -122,7 +122,7 @@ echo Bootstrap::formOpen(array());
-
+
';
@@ -216,7 +216,7 @@ echo '
-
+
@@ -229,13 +229,13 @@ echo '
$(document).ready(function() {
$("#jsdeleteUserAndDeleteContent").click(function() {
- if(confirm("p('Confirm delete this action cannot be undone') ?>")==false) {
+ if(confirm("p('Confirm delete this action cannot be undone') ?>")==false) {
return false;
}
});
$("#jsdeleteUserAndKeepContent").click(function() {
- if(confirm("p('Confirm delete this action cannot be undone') ?>")==false) {
+ if(confirm("p('Confirm delete this action cannot be undone') ?>")==false) {
return false;
}
});
diff --git a/bl-kernel/admin/views/new-content.php b/bl-kernel/admin/views/new-content.php
index 57d5d8d8..64b5fb59 100644
--- a/bl-kernel/admin/views/new-content.php
+++ b/bl-kernel/admin/views/new-content.php
@@ -3,13 +3,13 @@
@@ -100,7 +100,7 @@
'name'=>'externalCoverImage',
'placeholder'=>"https://",
'value'=>'',
- 'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicated for images.'
+ 'tip'=>$L->g('Set a cover image from external URL, such as a CDN or some server dedicated for images.')
));
?>
@@ -114,30 +114,40 @@
-
Advanced
+
p('Advanced') ?>
'',
+ 'label'=>$L->g('User'),
+ 'placeholder'=>'',
+ 'value'=>$login->username(),
+ 'tip'=>'',
+ 'disabled'=>true
+ ));
+
// Date
echo Bootstrap::formInputText(array(
'name'=>'date',
- 'label'=>'Date',
+ 'label'=>$L->g('Date'),
'placeholder'=>'',
'value'=>Date::current(DB_DATE_FORMAT),
- 'tip'=>'Date format: YYYY-MM-DD Hours:Minutes:Seconds'
+ 'tip'=>$L->g('Date format: YYYY-MM-DD Hours:Minutes:Seconds')
));
// Type
echo Bootstrap::formSelect(array(
'name'=>'typeTMP',
- 'label'=>'Type',
+ 'label'=>$L->g('Type'),
'selected'=>'',
'options'=>array(
- 'published'=>'- Default -',
- 'sticky'=>'Sticky',
- 'static'=>'Static'
+ 'published'=>'- '.$L->g('Default').' -',
+ 'sticky'=>$L->g('Sticky'),
+ 'static'=>$L->g('Static')
),
- 'tip'=>'???'
+ 'tip'=>''
));
// Parent
@@ -145,7 +155,7 @@
'name'=>'parentTMP',
'label'=>$L->g('Parent'),
'placeholder'=>'',
- 'tip'=>'Start typing a page title to see a list of suggestions.',
+ 'tip'=>$L->g('Start typing a page title to see a list of suggestions.'),
'value'=>''
));
@@ -153,17 +163,17 @@
echo Bootstrap::formInputText(array(
'name'=>'position',
'label'=>$L->g('Position'),
- 'tip'=>'Field used when ordering content by position',
+ 'tip'=>$L->g('Field used when ordering content by position'),
'value'=>$pages->nextPositionNumber()
));
// Template
echo Bootstrap::formInputText(array(
'name'=>'template',
- 'label'=>'Template',
+ 'label'=>$L->g('Template'),
'placeholder'=>'',
'value'=>'',
- 'tip'=>'Write a template name to filter the page in the theme and change the style of the page.'
+ 'tip'=>$L->g('Write a template name to filter the page in the theme and change the style of the page.')
));
echo Bootstrap::formTitle(array('title'=>'SEO'));
@@ -171,9 +181,9 @@
// Tags
echo Bootstrap::formInputText(array(
'name'=>'tags',
- 'label'=>'Tags',
+ 'label'=>$L->g('Tags'),
'placeholder'=>'',
- 'tip'=>'Write the tags separated by comma'
+ 'tip'=>$L->g('Write the tags separated by comma')
));
// Friendly URL
@@ -187,29 +197,29 @@
echo Bootstrap::formCheckbox(array(
'name'=>'noindex',
'label'=>'Robots',
- 'labelForCheckbox'=>'Apply noindex to this page',
+ 'labelForCheckbox'=>$L->g('Apply noindex to this page'),
'placeholder'=>'',
'class'=>'mt-4',
'checked'=>false,
- 'tip'=>'This tells search engines not to show this page in their search results.'
+ 'tip'=>$L->g('This tells search engines not to show this page in their search results.')
));
echo Bootstrap::formCheckbox(array(
'name'=>'nofollow',
'label'=>'',
- 'labelForCheckbox'=>'Apply nofollow to this page',
+ 'labelForCheckbox'=>$L->g('Apply nofollow to this page'),
'placeholder'=>'',
'checked'=>false,
- 'tip'=>'This tells search engines not to follow links on this page.'
+ 'tip'=>$L->g('This tells search engines not to follow links on this page.')
));
echo Bootstrap::formCheckbox(array(
'name'=>'noarchive',
'label'=>'',
- 'labelForCheckbox'=>'Apply noarchive to this page',
+ 'labelForCheckbox'=>$L->g('Apply noarchive to this page'),
'placeholder'=>'',
'checked'=>false,
- 'tip'=>'This tells search engines not to save a cached copy of this page.'
+ 'tip'=>$L->g('This tells search engines not to save a cached copy of this page.')
));
?>
@@ -220,7 +230,7 @@
';
diff --git a/bl-kernel/helpers/text.class.php b/bl-kernel/helpers/text.class.php
index 62825553..7a7155db 100644
--- a/bl-kernel/helpers/text.class.php
+++ b/bl-kernel/helpers/text.class.php
@@ -126,7 +126,7 @@ class Text {
// This function can return an empty string
public static function cleanUrl($string, $separator='-')
{
- global $language;
+ global $L;
if (EXTREME_FRIENDLY_URL) {
$string = self::lowercase($string);
@@ -137,7 +137,7 @@ class Text {
}
// Transliterate characters to ASCII
- $specialCharsFromDictionary = $language->getSpecialChars();
+ $specialCharsFromDictionary = $L->getSpecialChars();
$string = str_replace(array_keys($specialCharsFromDictionary), $specialCharsFromDictionary, $string);
$string = str_replace(array_keys(self::$specialChars), self::$specialChars, $string);
diff --git a/bl-kernel/language.class.php b/bl-kernel/language.class.php
index 01541c7c..0bb1cef4 100644
--- a/bl-kernel/language.class.php
+++ b/bl-kernel/language.class.php
@@ -74,6 +74,7 @@ class Language extends dbJSON {
{
$key = Text::lowercase($string);
$key = Text::replace(' ', '-', $key);
+ $key = Text::replace('.', '', $key);
//file_put_contents(DEBUG_FILE, $key.PHP_EOL, FILE_APPEND);
@@ -81,7 +82,8 @@ class Language extends dbJSON {
return $this->db[$key];
}
- //file_put_contents(DEBUG_FILE, $key.PHP_EOL, FILE_APPEND);
+ $line = '"'.$key.'": "'.$string.'",';
+ file_put_contents(DEBUG_FILE, $line.PHP_EOL, FILE_APPEND);
return $string;
}
diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php
index 4f99322c..7cada070 100644
--- a/bl-kernel/pagex.class.php
+++ b/bl-kernel/pagex.class.php
@@ -484,7 +484,7 @@ class Page {
// Returns the amount of minutes takes to read the page
public function readingTime() {
- global $language;
+ global $L;
$words = $this->content(true);
$words = strip_tags($words);
@@ -493,10 +493,10 @@ class Page {
$minutes = round($average);
if ($minutes>0) {
- return $minutes.' '.$language->get('minutes');
+ return $minutes.' '.$L->get('minutes');
}
- return '~1 '.$language->get('minute');
+ return '~1 '.$L->get('minute');
}
// Returns relative time (e.g. "1 minute ago")
diff --git a/bl-kernel/syslog.class.php b/bl-kernel/syslog.class.php
index 742ad4b3..d4a1068f 100644
--- a/bl-kernel/syslog.class.php
+++ b/bl-kernel/syslog.class.php
@@ -39,7 +39,7 @@ class Syslog extends dbJSON {
public function add($args)
{
- global $language;
+ global $L;
$data = array();
$data['date'] = Date::current(DB_DATE_FORMAT);
diff --git a/bl-kernel/users.class.php b/bl-kernel/users.class.php
index 8bf6af4e..fc533d0b 100644
--- a/bl-kernel/users.class.php
+++ b/bl-kernel/users.class.php
@@ -6,7 +6,7 @@ class Users extends dbJSON {
'firstName'=>'',
'lastName'=>'',
'nickname'=>'',
- 'role'=>'editor', // admin, editor, reader
+ 'role'=>'editor', // admin, editor
'password'=>'',
'salt'=>'!Pink Floyd!Welcome to the machine!',
'email'=>'',
diff --git a/bl-languages/en.json b/bl-languages/en.json
index 91a45c2c..d831f4a3 100644
--- a/bl-languages/en.json
+++ b/bl-languages/en.json
@@ -192,7 +192,7 @@
"page-not-found": "Page not found",
"predefined-pages": "Predefined pages",
"returning-page-when-the-page-doesnt-exist": "Returning page when the page doesn't exist, by default returns a default message.",
- "returning-page-for-the-main-page": "Returning page for the main page, by default shows the latest content order by date or position.",
+ "returning-page-for-the-main-page": "Returning page for the main page, by default, shows the latest content order by date or position.",
"full-url-of-your-site": "Full URL of your site. Complete with the protocol HTTP or HTTPS (only if you have enabled SSL on your server).",
"with-the-locales-you-can-set-the-regional-user-interface": "With the locales, you can set the regional user interface, such as the dates in your language. The locales need to be installed on your system.",
"bludit-installer": "Bludit Installer",
@@ -296,5 +296,51 @@
"example-page-4-slug": "about",
"example-page-4-title": "About",
"example-page-4-content": "Your About page is typically one of the most visited pages on your site, need to be simple with a few key things, such as your name, who are you, how can contact you, a small story, etc.",
- "the-extension-zip-is-not-installed": "The extension zip is not installed, to use this plugin you need to install the extension."
+ "the-extension-zip-is-not-installed": "The extension zip is not installed, to use this plugin you need to install the extension.",
+
+ "there-are-no-sticky-pages-at-this-moment": "There are no sticky pages at this moment.",
+ "there-are-no-scheduled-pages-at-this-moment": "There are no scheduled pages at this moment.",
+ "update": "Update",
+ "template": "Template",
+ "nickname": "Nickname",
+ "disable-user": "Disable user",
+ "delete-user-and-keep-content": "Delete user and keep content",
+ "delete-user-and-delete-content": "Delete user and delete content (Warning)",
+ "social-networks": "Social Networks",
+ "interval": "Interval",
+ "number-in-minutes-for-every-execution-of-autosave": "Number in minutes for every execution of autosave.",
+ "extreme-friendly-url": "Extreme friendly URL",
+ "title-formats": "Title formats",
+ "delete-content": "Delete content",
+ "are-you-sure-you-want-to-delete-this-page": "Are you sure you want to delete this page?",
+ "sticky": "Sticky",
+ "actions": "Actions",
+ "edit": "Edit",
+ "options": "Options",
+ "enter-title": "Enter title",
+ "media-manager": "Media Manager",
+ "set-a-cover-image-from-external-url,-such-as-a-cdn-or-some-server-dedicated-for-images": "Set a cover image from an external URL, such as a CDN or some server dedicated for images.",
+ "user": "User",
+ "date-format:-yyyy-mm-dd-hours:minutes:seconds": "Date format: YYYY-MM-DD Hours:Minutes:Seconds",
+ "start-typing-a-page-title-to-see-a-list-of-suggestions": "Start typing a page title to see a list of suggestions.",
+ "field-used-when-ordering-content-by-position": "Field used when ordering content by position",
+ "write-a-template-name-to-filter-the-page-in-the-theme-and-change-the-style-of-the-page": "Write a template name to filter the page in the theme and change the style of the page.",
+ "write-the-tags-separated-by-comma": "Write the tags separated by comma.",
+ "apply-noindex-to-this-page": "Apply noindex to this page.",
+ "this-tells-search-engines-not-to-show-this-page-in-their-search-results": "This tells search engines not to show this page in their search results.",
+ "apply-nofollow-to-this-page": "Apply nofollow to this page.",
+ "this-tells-search-engines-not-to-follow-links-on-this-page": "This tells search engines not to follow links on this page.",
+ "apply-noarchive-to-this-page": "Apply noarchive to this page.",
+ "this-tells-search-engines-not-to-save-a-cached-copy-of-this-page": "This tells search engines not to save a cached copy of this page.",
+ "uncategorized": "Uncategorized",
+ "done": "Done",
+ "delete-category": "Delete category",
+ "are-you-sure-you-want-to-delete-this-category?": "Are you sure you want to delete this category?",
+ "confirm-new-password": "Confirm new password",
+ "the-nickname-is-almost-used-in-the-themes-to-display-the-author-of-the-content": "The nickname is almost used in the themes to display the author of the content",
+ "allow-unicode": "Allow Unicode",
+ "allow-unicode-characters-in-the-url-and-some-part-of-the-system": "Allow Unicode characters in the URL and some part of the system.",
+ "variables-allowed": "Variables allowed",
+ "tag": "Tag",
+ "drag-and-drop-to-sort-the-plugins": "Drag and Drop to sort the plugins."
}
\ No newline at end of file
diff --git a/bl-languages/es.json b/bl-languages/es.json
index ff6f0197..48941a28 100644
--- a/bl-languages/es.json
+++ b/bl-languages/es.json
@@ -191,8 +191,8 @@
"page-not-found": "Página no encontrada",
"predefined-pages": "Páginas predefinidas",
"returning-page-when-the-page-doesnt-exist": "Cuando la página no existe se retorna esta página, de forma predeterminada devuelve un mensaje predefinido.",
- "returning-page-for-the-main-page": "Returning page for the main page, by default shows the latest content order by date or position.",
- "full-url-of-your-site": "Full URL of your site. Complete with the protocol HTTP or HTTPS (only if you have enabled SSL on your server).",
+ "returning-page-for-the-main-page": "La página de devolución de la Página principal, de forma predeterminada, muestra el último orden de contenido por fecha o posición.",
+ "full-url-of-your-site": "URL completa de su sitio. Completa con el protocolo http o https (sólo si has habilitado SSL en tu servidor).",
"with-the-locales-you-can-set-the-regional-user-interface": "Con locales, puede establecer la interfaz de usuario regional, como las fechas en su idioma. Los locales deben estar instalados en su sistema.",
"bludit-installer": "Bludit Instalador",
"choose-your-language": "Seleccione su idioma",
@@ -294,5 +294,51 @@
"example-page-3-content": "Seguinos en las redes sociales [Facebook](https:\/\/www.facebook.com\/bluditcms\/), [Twitter](https:\/\/www.twitter.com\/bludit) y [GooglePlus](https:\/\/plus.google.com\/+bluditcms) para estar informado de las ultimas noticias, nuevos plugins, nuevos temas, y las ultimas versiones. También podes seguir nuestro [blog](https:\/\/blog.bludit.com).",
"example-page-4-slug": "acerca-de",
"example-page-4-title": "Acerca de",
- "example-page-4-content": "Su página `Acerca de` es una de las páginas más visitadas en su sitio, necesita ser simple con algunas claves, como su nombre, quién es usted, cómo puede ponerse en contacto con usted o una pequeña historia."
+ "example-page-4-content": "Su página `Acerca de` es una de las páginas más visitadas en su sitio, necesita ser simple con algunas claves, como su nombre, quién es usted, cómo puede ponerse en contacto con usted o una pequeña historia.",
+
+ "there-are-no-sticky-pages-at-this-moment": "No hay páginas sticky en este momento.",
+ "there-are-no-scheduled-pages-at-this-moment": "No hay páginas programadas en este momento.",
+ "update": "Actualizar",
+ "template": "Plantilla",
+ "nickname": "Apodo",
+ "disable-user": "Deshabilitar usuario",
+ "delete-user-and-keep-content": "Eliminar usuario y mantener contenido",
+ "delete-user-and-delete-content": "Eliminar usuario y eliminar contenido (Precaución)",
+ "social-networks": "Redes sociales",
+ "interval": "Intervalo",
+ "number-in-minutes-for-every-execution-of-autosave": "Número en minutos para cada ejecución de Autoguardar.",
+ "extreme-friendly-url": "Extreme friendly URL",
+ "title-formats": "Formatos de los títulos",
+ "delete-content": "Eliminar contenido",
+ "are-you-sure-you-want-to-delete-this-page": "¿Confirma que desea eliminar esta página?",
+ "sticky": "Sticky",
+ "actions": "Acciones",
+ "edit": "Editar",
+ "options": "Opciones",
+ "enter-title": "Ingrese el título",
+ "media-manager": "Media Manager",
+ "set-a-cover-image-from-external-url,-such-as-a-cdn-or-some-server-dedicated-for-images": "Defina una imagen de portada desde una dirección URL externa, como una CDN o algún servidor dedicado a las imágenes.",
+ "user": "Usuario",
+ "date-format:-yyyy-mm-dd-hours:minutes:seconds": "Formato de fecha: AAAA-MM-DD Horas:Minutos:Segundos",
+ "start-typing-a-page-title-to-see-a-list-of-suggestions": "Empiece a escribir un título de página para ver una lista de sugerencias.",
+ "field-used-when-ordering-content-by-position": "Este campo es utilizado al ordenar el contenido por posición.",
+ "write-a-template-name-to-filter-the-page-in-the-theme-and-change-the-style-of-the-page": "Escriba un nombre de plantilla para cambiar el estilo de la página.",
+ "write-the-tags-separated-by-comma": "Escribe las etiquetas separadas por coma.",
+ "apply-noindex-to-this-page": "Aplicar noindex a esta pagina.",
+ "this-tells-search-engines-not-to-show-this-page-in-their-search-results": "Indica a los motores de búsqueda que no muestren esta página en sus resultados de búsqueda.",
+ "apply-nofollow-to-this-page": "Aplicar nofollow a esta pagina.",
+ "this-tells-search-engines-not-to-follow-links-on-this-page": "Indica a los motores de búsqueda que no sigan los enlaces de esta página.",
+ "apply-noarchive-to-this-page": "Aplicar noarchive a esta pagina.",
+ "this-tells-search-engines-not-to-save-a-cached-copy-of-this-page": "Indica a los motores de búsqueda que no guarden una copia almacenada en caché de esta página.",
+ "uncategorized": "Sin categoría",
+ "done": "Hecho",
+ "delete-category": "Eliminar categoría",
+ "are-you-sure-you-want-to-delete-this-category?": "¿Confirma que desea eliminar esta categoría?",
+ "confirm-new-password": "Confirmar nueva contraseña",
+ "the-nickname-is-almost-used-in-the-themes-to-display-the-author-of-the-content": "El apodo casi siempre es utilizado en los temas para mostrar el autor del contenido.",
+ "allow-unicode": "Permitir Unicode",
+ "allow-unicode-characters-in-the-url-and-some-part-of-the-system": "Permitir caracteres Unicode en la dirección URL y en alguna parte del sistema.",
+ "variables-allowed": "Variables permitidas",
+ "tag": "Etiqueta",
+ "drag-and-drop-to-sort-the-plugins": "Arrastrar y soltar para ordenar los plugins."
}
\ No newline at end of file
diff --git a/bl-plugins/about/plugin.php b/bl-plugins/about/plugin.php
index bd78983a..bc3ed6d4 100644
--- a/bl-plugins/about/plugin.php
+++ b/bl-plugins/about/plugin.php
@@ -12,20 +12,20 @@ class pluginAbout extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
diff --git a/bl-plugins/api/plugin.php b/bl-plugins/api/plugin.php
index fbb4d470..3046bb01 100644
--- a/bl-plugins/api/plugin.php
+++ b/bl-plugins/api/plugin.php
@@ -17,22 +17,22 @@ class pluginAPI extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This token is for read only and is regenerated every time you install the plugin').'';
+ $html .= ''.$L->get('This token is for read only and is regenerated every time you install the plugin').'';
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This is the maximum of pages to return when you call to').'';
+ $html .= ''.$L->get('This is the maximum of pages to return when you call to').'';
$html .= '
';
return $html;
diff --git a/bl-plugins/backup/plugin.php b/bl-plugins/backup/plugin.php
index 521abf81..39757c95 100644
--- a/bl-plugins/backup/plugin.php
+++ b/bl-plugins/backup/plugin.php
@@ -64,19 +64,19 @@ class pluginBackup extends Plugin {
public function form()
{
- global $language;
+ global $L;
$backups = $this->backupList();
$html = '';
if (empty($backups)) {
$html .= '
';
- $html .= $language->get('There are no backups for the moment');
+ $html .= $L->get('There are no backups for the moment');
$html .= '
';
$html .= '';
}
diff --git a/bl-plugins/categories/plugin.php b/bl-plugins/categories/plugin.php
index 63cc6679..7a0135ab 100644
--- a/bl-plugins/categories/plugin.php
+++ b/bl-plugins/categories/plugin.php
@@ -14,23 +14,23 @@ class pluginCategories extends Plugin {
// Method called on the settings of the plugin on the admin area
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
@@ -40,7 +40,7 @@ class pluginCategories extends Plugin {
// Method called on the sidebar of the website
public function siteSidebar()
{
- global $language;
+ global $L;
global $categories;
// HTML for sidebar
diff --git a/bl-plugins/disqus/plugin.php b/bl-plugins/disqus/plugin.php
index a0a9bed6..7f45bd01 100644
--- a/bl-plugins/disqus/plugin.php
+++ b/bl-plugins/disqus/plugin.php
@@ -13,29 +13,29 @@ class pluginDisqus extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
return $html;
diff --git a/bl-plugins/links/plugin.php b/bl-plugins/links/plugin.php
index cb338bea..4ab7cef3 100644
--- a/bl-plugins/links/plugin.php
+++ b/bl-plugins/links/plugin.php
@@ -62,54 +62,54 @@ class pluginLinks extends Plugin {
// Method called on plugin settings on the admin area
public function form()
{
- global $language;
+ global $L;
$html = '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '
';
// New link, when the user click on save button this call the method post()
// and the new link is added to the database
- $html .= '';
+ $html .= '';
$html .= '
';
$html .= '';
@@ -121,7 +121,7 @@ class pluginLinks extends Plugin {
// Method called on the sidebar of the website
public function siteSidebar()
{
- global $language;
+ global $L;
// HTML for sidebar
$html = '
';
diff --git a/bl-plugins/maintenance-mode/plugin.php b/bl-plugins/maintenance-mode/plugin.php
index 4380bbb1..4727bf49 100644
--- a/bl-plugins/maintenance-mode/plugin.php
+++ b/bl-plugins/maintenance-mode/plugin.php
@@ -12,14 +12,14 @@ class pluginMaintenanceMode extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
diff --git a/bl-plugins/navigation/plugin.php b/bl-plugins/navigation/plugin.php
index 60aae06e..74fd503b 100644
--- a/bl-plugins/navigation/plugin.php
+++ b/bl-plugins/navigation/plugin.php
@@ -15,30 +15,30 @@ class pluginNavigation extends Plugin {
// Method called on the settings of the plugin on the admin area
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('Show the home link on the sidebar').'';
+ $html .= ''.$L->get('Show the home link on the sidebar').'';
$html .= '
';
}
@@ -49,7 +49,7 @@ class pluginNavigation extends Plugin {
// Method called on the sidebar of the website
public function siteSidebar()
{
- global $language;
+ global $L;
global $url;
global $site;
global $pages;
@@ -69,7 +69,7 @@ class pluginNavigation extends Plugin {
// Show Home page link
if ($this->getValue('homeLink')) {
$html .= '
';
}
diff --git a/bl-plugins/opengraph/plugin.php b/bl-plugins/opengraph/plugin.php
index 9df10c64..3d1132c3 100644
--- a/bl-plugins/opengraph/plugin.php
+++ b/bl-plugins/opengraph/plugin.php
@@ -12,14 +12,14 @@ class pluginOpenGraph extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
$html .= 'Set a default image for the content without pictures.';
$html .= '
';
diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php
index d0d21ec7..823cb8a6 100644
--- a/bl-plugins/rss/plugin.php
+++ b/bl-plugins/rss/plugin.php
@@ -13,21 +13,21 @@ class pluginRSS extends Plugin {
// Method called on the settings of the plugin on the admin area
public function form()
{
- global $language;
+ global $L;
$html = '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('Amount of items to show on the feed').'';
+ $html .= ''.$L->get('Amount of items to show on the feed').'';
$html .= '
';
return $html;
diff --git a/bl-plugins/simple-stats/plugin.php b/bl-plugins/simple-stats/plugin.php
index 2399ce7e..050935a3 100644
--- a/bl-plugins/simple-stats/plugin.php
+++ b/bl-plugins/simple-stats/plugin.php
@@ -20,24 +20,24 @@ class pluginSimpleStats extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
diff --git a/bl-plugins/static-pages/plugin.php b/bl-plugins/static-pages/plugin.php
index a16f1999..8ff4e6ab 100644
--- a/bl-plugins/static-pages/plugin.php
+++ b/bl-plugins/static-pages/plugin.php
@@ -14,25 +14,25 @@ class pluginStaticPages extends Plugin {
// Method called on the settings of the plugin on the admin area
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
return $html;
@@ -41,7 +41,7 @@ class pluginStaticPages extends Plugin {
// Method called on the sidebar of the website
public function siteSidebar()
{
- global $language;
+ global $L;
global $url;
global $site;
global $pages;
@@ -61,7 +61,7 @@ class pluginStaticPages extends Plugin {
// Show Home page link
if ($this->getValue('homeLink')) {
$html .= '
';
}
diff --git a/bl-plugins/tags/plugin.php b/bl-plugins/tags/plugin.php
index 64442437..544675f1 100644
--- a/bl-plugins/tags/plugin.php
+++ b/bl-plugins/tags/plugin.php
@@ -11,16 +11,16 @@ class pluginTags extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '
';
$html .= $this->description();
$html .= '
';
$html .= '
';
- $html .= '';
+ $html .= '';
$html .= '';
- $html .= ''.$language->get('This title is almost always used in the sidebar of the site').'';
+ $html .= ''.$L->get('This title is almost always used in the sidebar of the site').'';
$html .= '
';
return $html;
@@ -28,7 +28,7 @@ class pluginTags extends Plugin {
public function siteSidebar()
{
- global $language;
+ global $L;
global $tags;
global $url;
diff --git a/bl-plugins/tinymce/plugin.php b/bl-plugins/tinymce/plugin.php
index 123fc81e..7bad3aac 100644
--- a/bl-plugins/tinymce/plugin.php
+++ b/bl-plugins/tinymce/plugin.php
@@ -18,20 +18,20 @@ class pluginTinymce extends Plugin {
public function form()
{
- global $language;
+ global $L;
$html = '