Hereby, I solemnly declare "Administration area" the official designation for our backend. #39 shall be deemed to be settled :D

This commit is contained in:
azett 2020-01-03 19:23:30 +01:00
parent 0cceecaa02
commit e4f542d5cd
6 changed files with 249 additions and 275 deletions

View File

@ -1,23 +1,20 @@
<?php
$lang ['admin'] ['panel'] ['main'] = 'Main';
$lang['admin']['panel']['main'] = 'Main';
$lang['admin']['main']['default'] = array(
'head' => 'Welcome to the control panel!',
'descr' => 'Select an action',
'op1' => 'New Entry',
'op1d' => 'Add a new entry',
'op2' => 'Entries',
'op2d' => 'Show and manage all the entries',
'op3' => 'Widgets',
'op3d' => 'Manage sidebar, bottombar and topbar widgets',
'op4' => 'Plugins',
'op4d' => 'Install, enable, disable plugins',
'op5' => 'Configuration',
'op5d' => 'Customize your flatpress',
'op6' => 'Maintenance',
'op6d' => 'Clean and restore flatpress',
);
?>
$lang ['admin'] ['main'] ['default'] = array(
'head' => 'Welcome to the administration area!',
'descr' => 'Select an action',
'op1' => 'New Entry',
'op1d' => 'Add a new entry',
'op2' => 'Entries',
'op2d' => 'Show and manage all the entries',
'op3' => 'Widgets',
'op3d' => 'Manage sidebar, bottombar and topbar widgets',
'op4' => 'Plugins',
'op4d' => 'Install, enable, disable plugins',
'op5' => 'Configuration',
'op5d' => 'Customize your flatpress',
'op6' => 'Maintenance',
'op6d' => 'Clean and restore flatpress'
);

View File

@ -1,34 +1,32 @@
<?php
$lang ['admin'] ['head'] = 'Administration area';
$lang['admin']['head'] = 'Administration area';
$lang['admin']['panels'] = array(
'main' => 'Main',
'config' => 'Options',
//'users' => 'Users',
'entry' => 'Entries',
'static' => 'Statics',
'uploader' => 'Uploader',
'widgets' => 'Widgets',
//'add' => 'Add',
//'edit' => 'Edit/Delete',
'maintain' => 'Maintain',
'plugin' => 'Plugins',
'themes' => 'Themes',
//'updates' => 'Updates',
);
$lang['admin']['general'] = array(
'id' => 'Id', # for entry ids
'name' => 'Name', # for file names
'title' => 'Title', # for entry/posts/static titles
'comments' => '#Comms',
'author' => 'Author',
'actdel' => 'Delete',
'actedit' => 'Edit',
'actenable' => 'Enable',
'actdisable'=> 'Disable'
);
$lang ['admin'] ['panels'] = array(
'main' => 'Main',
'config' => 'Options',
// 'users' => 'Users',
'entry' => 'Entries',
'static' => 'Statics',
'uploader' => 'Uploader',
'widgets' => 'Widgets',
// 'add' => 'Add',
// 'edit' => 'Edit/Delete',
'maintain' => 'Maintain',
'plugin' => 'Plugins',
'themes' => 'Themes'
// 'updates' => 'Updates',
);
$lang ['admin'] ['general'] = array(
'id' => 'Id', // for entry ids
'name' => 'Name', // for file names
'title' => 'Title', // for entry/posts/static titles
'comments' => '#Comms',
'author' => 'Author',
'actdel' => 'Delete',
'actedit' => 'Edit',
'actenable' => 'Enable',
'actdisable' => 'Disable'
);
?>

View File

@ -1,201 +1,184 @@
<?php
$lang = array();
$lang = array();
$lang ['main'] = array(
$lang['main'] = array(
'nextpage' => 'Next Page &raquo;',
'prevpage' => '&laquo; Previous Page',
'entry' => 'Entry',
'static' => 'Static page',
'comment' => 'Comment',
'preview' => 'Edit/Preview',
'filed_under' => 'Filed under ',
'add_entry' => 'Add Entry',
'add_comment' => 'Add Comment',
'add_static' => 'Add Static Page',
'btn_edit' => 'Edit',
'btn_delete' => 'Delete',
'nocomments' => 'Add a comment',
'comment' => '1 comment',
'comments' => 'comments',
);
$lang['search'] = array(
'head' => 'Search',
'fset1' => 'Insert search criteria',
'keywords' => 'Phrase',
'onlytitles' => 'Only titles',
'fulltext' => 'Full-text',
'fset2' => 'Date',
'datedescr' => 'You can bind your search to a specific date. You may select an year, an year and a month, or a full date. '.
'Leave blank to search the entire database.',
'fset3' => 'Search in categories',
'catdescr' => 'Don\'t select any to search all',
'fset4' => 'Start Searching',
'submit' => 'Search',
'headres' => 'Search Results',
'descrres' => 'Searching for <strong>%s</strong> returned the following results:',
'descrnores'=> 'Searching for <strong>%s</strong> returned no results.',
'moreopts' => 'More options',
'searchag' => 'Search again',
);
$lang['search']['error'] = array(
'keywords' => 'You must specify at least one keyword'
);
$lang['entry'] = array();
$lang['entry']['flags'] = array();
$lang['entry']['flags']['long'] = array(
'draft' => '<strong>Draft entry</strong>: hidden, awaiting publication',
//'static' => '<strong>Static entry</strong>: normally hidden, to reach the entry put ?page=title-of-the-entry in url (experimental)',
'commslock' => '<strong>Comments locked</strong>: comments disallowed for this entry'
);
$lang['entry']['flags']['short'] = array(
'draft' => 'Draft',
//'static' => 'Static',
'commslock' => 'Comments locked'
);
'nextpage' => 'Next Page &raquo;',
'prevpage' => '&laquo; Previous Page',
'entry' => 'Entry',
'static' => 'Static page',
'comment' => 'Comment',
'preview' => 'Edit/Preview',
$lang['404error'] = array(
'subject' => 'Not Found',
'content' => '<p>Sorry, we could not find the page you requested</p>'
);
// Login
$lang['login'] = array(
'head' => 'Login',
'fieldset1' => 'Insert your user name and password',
'user' => 'Username:',
'pass' => 'Password:',
'fieldset2' => 'Do login',
'submit' => 'Login',
'forgot' => 'Password lost'
);
$lang['login']['success'] = array(
'success' => 'You are now logged in.',
'logout' => 'You are now logged out.',
'redirect' => 'You will be redirected in 5 seconds.',
'opt1' => 'Back to index',
'opt2' => 'Go to Control Panel',
'opt3' => 'Add new entry'
);
$lang['login']['error'] = array(
'user' => 'You must enter a username.',
'pass' => 'You must enter a password.',
'match' => 'Password incorrect.'
);
$lang['comments'] = array(
'head' => 'Add comment',
'descr' => 'Fill out the form below to add your own comments',
'fieldset1' => 'User data',
'name' => 'Name (*)',
'email' => 'Email:',
'www' => 'Web:',
'cookie' => 'Remember me',
'fieldset2' => 'Add your comment',
'comment' => 'Comment (*):',
'fieldset3' => 'Send',
'submit' => 'Add',
'reset' => 'Reset',
'success' => 'Your comment was added successfully',
'nocomments' => 'This entry have not been commented yet',
'commslock' => 'Comments have been disabled for this entry',
);
$lang['comments']['error'] = array(
'name' => 'You must enter a name',
'email' => 'You must enter a valid email',
'www' => 'You must enter a valid URL',
'comment' => 'You must enter a comment',
);
$lang['date']['month'] = array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
);
'filed_under' => 'Filed under ',
$lang['date']['month_abbr'] = array(
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
);
'add_entry' => 'Add Entry',
'add_comment' => 'Add Comment',
'add_static' => 'Add Static Page',
$lang['date']['weekday'] = array(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
);
'btn_edit' => 'Edit',
'btn_delete' => 'Delete',
$lang['date']['weekday_abbr'] = array(
'Sun',
'Mon',
'Tue',
'Wed',
'Thu',
'Fri',
'Sat',
);
'nocomments' => 'Add a comment',
'comment' => '1 comment',
'comments' => 'comments'
);
$lang ['search'] = array(
'head' => 'Search',
'fset1' => 'Insert search criteria',
'keywords' => 'Phrase',
'onlytitles' => 'Only titles',
'fulltext' => 'Full-text',
'fset2' => 'Date',
'datedescr' => 'You can bind your search to a specific date. You may select an year, an year and a month, or a full date. ' . 'Leave blank to search the entire database.',
'fset3' => 'Search in categories',
'catdescr' => 'Don\'t select any to search all',
'fset4' => 'Start Searching',
'submit' => 'Search',
'headres' => 'Search Results',
'descrres' => 'Searching for <strong>%s</strong> returned the following results:',
'descrnores' => 'Searching for <strong>%s</strong> returned no results.',
'moreopts' => 'More options',
'searchag' => 'Search again'
);
$lang ['search'] ['error'] = array(
'keywords' => 'You must specify at least one keyword'
);
$lang ['entry'] = array();
$lang ['entry'] ['flags'] = array();
$lang ['entry'] ['flags'] ['long'] = array(
'draft' => '<strong>Draft entry</strong>: hidden, awaiting publication',
// 'static' => '<strong>Static entry</strong>: normally hidden, to reach the entry put ?page=title-of-the-entry in url (experimental)',
'commslock' => '<strong>Comments locked</strong>: comments disallowed for this entry'
);
$lang ['entry'] ['flags'] ['short'] = array(
'draft' => 'Draft',
// 'static' => 'Static',
'commslock' => 'Comments locked'
);
$lang ['404error'] = array(
'subject' => 'Not Found',
'content' => '<p>Sorry, we could not find the page you requested</p>'
);
// Login
$lang ['login'] = array(
'head' => 'Login',
'fieldset1' => 'Insert your user name and password',
'user' => 'Username:',
'pass' => 'Password:',
'fieldset2' => 'Do login',
'submit' => 'Login',
'forgot' => 'Password lost'
);
$lang ['login'] ['success'] = array(
'success' => 'You are now logged in.',
'logout' => 'You are now logged out.',
'redirect' => 'You will be redirected in 5 seconds.',
'opt1' => 'Back to index',
'opt2' => 'Go to Admin Area',
'opt3' => 'Add new entry'
);
$lang ['login'] ['error'] = array(
'user' => 'You must enter a username.',
'pass' => 'You must enter a password.',
'match' => 'Password incorrect.'
);
$lang ['comments'] = array(
'head' => 'Add comment',
'descr' => 'Fill out the form below to add your own comments',
'fieldset1' => 'User data',
'name' => 'Name (*)',
'email' => 'Email:',
'www' => 'Web:',
'cookie' => 'Remember me',
'fieldset2' => 'Add your comment',
'comment' => 'Comment (*):',
'fieldset3' => 'Send',
'submit' => 'Add',
'reset' => 'Reset',
'success' => 'Your comment was added successfully',
'nocomments' => 'This entry have not been commented yet',
'commslock' => 'Comments have been disabled for this entry'
);
$lang ['comments'] ['error'] = array(
'name' => 'You must enter a name',
'email' => 'You must enter a valid email',
'www' => 'You must enter a valid URL',
'comment' => 'You must enter a comment'
);
$lang ['date'] ['month'] = array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
);
$lang ['date'] ['month_abbr'] = array(
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
);
$lang ['date'] ['weekday'] = array(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
);
$lang ['date'] ['weekday_abbr'] = array(
'Sun',
'Mon',
'Tue',
'Wed',
'Thu',
'Fri',
'Sat'
);
?>

View File

@ -1,14 +1,10 @@
<?php
$lang ['plugin'] ['adminarea'] = array(
$lang['plugin']['adminarea'] = array(
'subject' => 'Admin area',
'welcome' => 'Welcome home, ',
'admin_panel' => 'Admin panel',
'add_entry' => 'Add entry',
'add_static' => 'Add static',
'logout' => 'Logout'
);
?>
'subject' => 'Admin',
'welcome' => 'Welcome home, ',
'admin_panel' => 'Admin area',
'add_entry' => 'Add entry',
'add_static' => 'Add static',
'logout' => 'Logout'
);

View File

@ -1,35 +1,35 @@
<?php
/*
Plugin Name: AdminArea
Plugin URI: http://www.nowhereland.it/
Description: AdminArea plugin. Part of the standard distribution ;)
Author: NoWhereMan
Version: 1.0
Author URI: http://www.nowhereland.it/
*/
/*
* Plugin Name: AdminArea
* Plugin URI: http://www.nowhereland.it/
* Description: AdminArea plugin. Part of the standard distribution ;)
* Author: NoWhereMan
* Version: 1.0
* Author URI: http://www.nowhereland.it/
*/
function plugin_adminarea_widget() {
// load plugin strings
// they're located under plugin.PLUGINNAME/lang/LANGID/
$lang = lang_load('plugin:adminarea');
$baseurl = BLOG_BASEURL;
if ($user = user_loggedin()) {
$userid = $user['userid'];
$userid = $user ['userid'];
$string = <<<END
<p>{$lang['plugin']['adminarea']['welcome']} <strong>{$userid}</strong> !</p>
<ul>
<li><a href="{$baseurl}admin.php">{$lang['plugin']['adminarea']['admin_panel']}</a></li>
<li><a href="{$baseurl}admin.php?p=entry&amp;action=write">{$lang['plugin']['adminarea']['add_entry']}</a></li>
<li><a href="{$baseurl}login.php?do=logout">{$lang['plugin']['adminarea']['logout']}</a></li>
</ul>
END;
<p>{$lang['plugin']['adminarea']['welcome']} <strong>{$userid}</strong>!</p>
<ul>
<li><a href="{$baseurl}admin.php">{$lang['plugin']['adminarea']['admin_panel']}</a></li>
<li><a href="{$baseurl}admin.php?p=entry&amp;action=write">{$lang['plugin']['adminarea']['add_entry']}</a></li>
<li><a href="{$baseurl}login.php?do=logout">{$lang['plugin']['adminarea']['logout']}</a></li>
</ul>
END;
} else
$string = '<ul><li><a href="'.$baseurl.'login.php">Login</a></li></ul>';
$entry['subject'] = $lang['plugin']['adminarea']['subject'];
$entry['content'] = $string;
$string = '<ul><li><a href="' . $baseurl . 'login.php">Login</a></li></ul>';
$entry ['subject'] = $lang ['plugin'] ['adminarea'] ['subject'];
$entry ['content'] = $string;
return $entry;
}

View File

@ -153,7 +153,7 @@ Want to see more?
[h4]And what now?[/h4]
Now you can [url=login.php]Login[/url] to get to the [url=admin.php]Control Panel[/url] and start posting!
Now you can [url=login.php]Login[/url] to get to the [url=admin.php]Administration Area[/url] and start posting!
Have fun! :)