Minor changes on dashboard, update english language

This commit is contained in:
Diego Najar 2017-09-08 00:43:53 +02:00
parent 814ccb4fe0
commit f38f426edf
4 changed files with 40 additions and 8 deletions

View File

@ -82,7 +82,7 @@
echo '<li>';
echo $dict;
if( !empty($log['notes'])) {
echo ' ('.$log['notes'].')';
echo ' « <b>'.$log['notes'].'</b> »';
}
echo '<br><span class="notification-date">';
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);

View File

@ -70,7 +70,7 @@ if($Login->role()==='admin') {
'label'=>$L->g('Email'),
'value'=>$User->email(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('Recommended for recovery password and notifications.')
'tip'=>$L->g('Recommended for recovery password and notifications')
));
HTML::legend(array('value'=>$L->g('Social networks links')));
@ -121,14 +121,14 @@ if($Login->role()==='admin') {
'label'=>$L->g('Token'),
'value'=>$User->tokenAuth(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('This token is similar to your password, you should not share it.')
'tip'=>$L->g('this-token-is-similar-to-your-password-you-should-not-share-it')
));
HTML::legend(array('value'=>$L->g('Status')));
HTML::formInputText(array(
'name'=>'status',
'label'=>$L->g('сurrent status'),
'label'=>$L->g('Current status'),
'value'=>$User->enabled()?$L->g('Enabled'):$L->g('Disabled'),
'class'=>'uk-width-1-2 uk-form-medium',
'disabled'=>true,

View File

@ -484,7 +484,7 @@ function createUser($args) {
if( $dbUsers->add($tmp) ) {
// Add to syslog
$Syslog->add(array(
'dictionaryKey'=>'new-user',
'dictionaryKey'=>'new-user-created',
'notes'=>$tmp['username']
));
@ -565,3 +565,21 @@ function deleteCategory($categoryKey) {
Alert::set($Language->g('The changes have been saved'));
return true;
}
function activateTheme($themeDirectory) {
global $Site;
global $Syslog;
if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) {
$Site->set(array('theme'=>$themeDirname));
$Syslog->add(array(
'dictionaryKey'=>'new-theme-configured',
'notes'=>$themeDirname
));
Alert::set( $Language->g('The changes have been saved') );
return true;
}
return false;
}

View File

@ -153,8 +153,8 @@
"page-not-found-content": "Hey! look like the page doesn't exist.",
"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, leave blank if you want to returns a default message.",
"returning-page-for-the-main-page": "Returning page for the main page, leave blank if you want to show all the pages on the main page.",
"returning-page-when-the-page-doesnt-exist": "Returning page when the page doesn't exist, leave it blank if you want to returns a default message.",
"returning-page-for-the-main-page": "Returning page for the main page, leave it blank if you want to show all the pages on the main page.",
"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",
@ -174,5 +174,19 @@
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})",
"chat-with-developers-and-users-on-gitter":"Chat with developers and users on [Gitter](https://gitter.im/dignajar/bludit)",
"this-is-a-brief-description-of-yourself-our-your-site":"This is a brief description of yourself or your site, to change this text go to the admin panel, settings, plugins, and configure the plugin about.",
"read-the-documentation-for-more-information": "Read the [documentation](https://docs.bludit.com) for more information"
"read-the-documentation-for-more-information": "Read the [documentation](https://docs.bludit.com) for more information",
"new-page-created": "New page created",
"new-version-available": "New version available",
"new-category-created": "New category created",
"category-deleted": "Category deleted",
"category-edited": "Category edited",
"new-user-created": "New user created",
"user-edited": "User edited",
"user-deleted": "User deleted",
"recommended-for-recovery-password-and-notifications": "Recommended for recovery password and notifications.",
"authentication-token": "Authentication Token",
"token": "Token",
"current-status": "Current status",
"upload-image": "Upload image",
"this-token-is-similar-to-your-password-you-should-not-share-it": "This token is similar to your password, you should not share it."
}