Commit 9d6e35f8 authored by Dave Lane's avatar Dave Lane

interim commit, ajax logout process working

parent a4a9398b
......@@ -40,3 +40,9 @@ See our [wiki](https://github.com/oeru/register-enrol/wiki) for discussions on t
## Userful references:
* For rewriting the URLs of login-related activities, the [custom-login-url plugin](https://wordpress.org/plugins/custom-login-url/) is very helpful
## Generating the POT file for localization
This is what I run on my development host, where I access the wordpress instance locally via http://wpms.troy
`docker-compose exec --user=www-data php wp i18n make-pot --slug=http://wpms.troy/plugins/register-enrol --domain="ore-register-enrol" --include="includes/*.php" wp-content/plugins/register-enrol wp-content/plugins/register-enrol/languages/register-enrol.pot'`
......@@ -28,6 +28,33 @@ article.ore-form .container .entry-content > div.ore {
text-decoration: none;
border: collapse;
}
#ore-container .ore-avatar {
border-radius: 8px;
margin-right: 4px;
}
#ore-container .ore-course-status { margin-left: 8px; }
#ore-container .ore-course-status-indicator { margin-left: 4px; }
#ore-container .ore-enrolled, #ore-container .ore-unenrolled {
left: 0;
top: 0;
display: inline-block;
width: 20px;
height: 20px;
line-height: 20px;
background-repeat: no-repeat;
opacity: 1.0;
}
#ore-container .ore-enrolled {
background-image: url(img/enrolled.20x20.png);
}
#ore-container .ore-unenrolled {
background-image: url(img/unenrolled.20x20.png);
}
/* end status */
/*
......@@ -48,13 +75,13 @@ article.ore-form .container .entry-content > div.ore {
padding: 0px;
}
.ore-dialog .ore_detail {
font-size: 80%;
color: #999;
.ore-form .ore-detail {
font-size: 90%;
color: #888;
}
.ore-form.dialog-body {
padding: 8px;
padding: 0px;
}
/* end overall */
......@@ -79,6 +106,13 @@ article.ore-form .container .entry-content > div.ore {
.ore-dialog .ore-form, .ore-dialog .ore-spacer {
border-top: 1px #e5e5e5 solid;
}
.ore-dialog .ore-form {
padding-top: 6px;
}
.ore-dialog .ore-spacer {
margin-bottom: 6px;
height: 0px;
}
/* end body */
/* close button */
......@@ -135,6 +169,17 @@ button.ore-button:active {
text-decoration: none;
}
/* end-buttons */
/* links */
.ore-dialog .link {
line-height: normal;
background-color: #fff;
font-weight: bold;
text-transform: none;
text-decoration: none;
}
.ore-dialog .link:hover { text-decoration: underline; }
.ore-dialog .link:active { text-decoration: underline; }
/* end links */
/* resize icon */
.ore-dialog .ui-resizable-handle.ui-icon {
......
This diff is collapsed.
This diff is collapsed.
<?php
$validation_messages = array(
'login' => array(
'credential' => array(
'required' => __('You must specify either the correct username or email address for your user account.', 'oeru-register-enrol')
),
'password' => array(
'required' => __('You must enter the correct password for this user account - note passwords are <em>case sensitive</em>.', 'oeru-register-enrol'),
),
),
'register' => array(
'first_name' => array(
'required' => __('We require you specify your first or given name.')
'required' => __('We require you specify your first or given name.', 'oeru-register-enrol')
),
'last_name' => array(
'required' => __('We require you specify your last or family name.')
'required' => __('We require you specify your last or family name.', 'oeru-register-enrol')
),
'username' => array(
'required' => __('You must enter a username. It must be at least {{ore_data.un_min}} characters long.')
'required' => __('You must enter a username. It must be at least {{ore_data.un_min}} characters long.', 'oeru-register-enrol')
),
'display_name' => array(
'required' => __('You must supply a display name - it can be a nickname - this will be shown publicly alongside any of your posts. Your Display Name must be at least {{ore_data.dn_min}} characters long.')
'required' => __('You must supply a display name - it can be a nickname - this will be shown publicly alongside any of your posts. Your Display Name must be at least {{ore_data.dn_min}} characters long.', 'oeru-register-enrol')
),
'password' => array(
'required' => __('You must enter a password'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.')
'required' => __('You must enter a password', 'oeru-register-enrol'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.', 'oeru-register-enrol')
),
'confirm_password' => array(
'required' => __('You must enter the same password again to confirm it'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.'),
'equalTo' => __('Your confirmation password is different from your first password. They must be the same. Please try re-entering one or both.')
'required' => __('You must enter the same password again to confirm it', 'oeru-register-enrol'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.', 'oeru-register-enrol'),
'equalTo' => __('Your confirmation password is different from your first password. They must be the same. Please try re-entering one or both.', 'oeru-register-enrol')
),
'email' => array(
'required' => __('You must enter a valid email'),
'unique' => __('Each user email must be unique. No two accounts can share the same email address.')
'required' => __('You must enter a valid email', 'oeru-register-enrol'),
'unique' => __('Each user email must be unique. No two accounts can share the same email address.', 'oeru-register-enrol')
),
'country' => array(
'value_not_default' => __('Your confirmation is different from your password. They must be the same. Please try re-entering one or both.')
'value_not_default' => __('You must select the country with which you most closely associate.', 'oeru-register-enrol')
),
),
'edit_profile' => array(
'first_name' => array(
'required' => __('We require you specify your first or given name.')
'required' => __('We require you specify your first or given name.', 'oeru-register-enrol')
),
'last_name' => array(
'required' => __('We require you specify your last or family name.')
'required' => __('We require you specify your last or family name.', 'oeru-register-enrol')
),
'display_name' => array(
'required' => __('You must supply a display name - it can be a nickname - this will be shown publicly alongside any of your posts. Your Display Name must be at least {{ore_data.dn_min}} characters long.')
'required' => __('You must supply a display name - it can be a nickname - this will be shown publicly alongside any of your posts. Your Display Name must be at least {{ore_data.dn_min}} characters long.', 'oeru-register-enrol')
),
'email' => array(
'required' => __('You must enter a valid email'),
'unique' => __('Each user email must be unique. No two accounts can share the same email address.')
'required' => __('You must enter a valid email', 'oeru-register-enrol'),
'unique' => __('Each user email must be unique. No two accounts can share the same email address.', 'oeru-register-enrol')
),
'country' => array(
'value_not_default' => __('Your confirmation is different from your password. They must be the same. Please try re-entering one or both.')
'value_not_default' => __('Your confirmation is different from your password. They must be the same. Please try re-entering one or both.', 'oeru-register-enrol', 'oeru-register-enrol')
),
),
'update_password' => array(
'current_password' => array(
'required' => __("You must enter your current password - this is a security precaution. If you don't know it, please do a ").
"<button id='ore-password-reset-auxillary-button' class='link ore-button'>".__('Password Reset').'</button>'.__(' instead.'),
'required' => __("You must enter your current password - this is a security precaution. If you don't know it, please do a ", 'oeru-register-enrol').
"<button id='ore-password-reset-auxillary-button' class='link ore-button'>".__('Password Reset', 'oeru-register-enrol').'</button>'.__(' instead.', 'oeru-register-enrol'),
),
'new_password' => array(
'required' => __('You must enter a password'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.')
'required' => __('You must enter a password', 'oeru-register-enrol'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.', 'oeru-register-enrol')
),
'confirm_password' => array(
'required' => __('You must enter the same password again to confirm it'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.'),
'equalTo' => __('Your confirmation password is different from your first password. They must be the same. Please try re-entering one or both.')
'required' => __('You must enter the same password again to confirm it', 'oeru-register-enrol'),
'minlength' => __('Your password must be at least {{ore_data.pw_min}} characters long.', 'oeru-register-enrol'),
'equalTo' => __('Your confirmation password is different from your first password. They must be the same. Please try re-entering one or both.', 'oeru-register-enrol')
),
),
'wp_username' => __('Your username must be a combination of lowercase letters (a-z) and/or digits (0-9).'),
'value_not_default' => __('You must select something other than the default')
'wp_username' => __('Your username must be a combination of lowercase letters (a-z) and/or digits (0-9).', 'oeru-register-enrol'),
'value_not_default' => __('You must select something other than the default', 'oeru-register-enrol')
);
This diff is collapsed.
This diff is collapsed.
......@@ -71,6 +71,7 @@ define('ORE_LOGIN_STATUS', 'ore-login-status');
define('ORE_SUPPORT_FORUM', 'https://forums.oeru.org/t/register-enrol');
define('ORE_SUPPORT_BLOG', 'https://course.oeru.org/support/studying-courses/register-enrol/');
define('ORE_SUPPORT_CONTACT', 'https://oeru.org/contact-us/');
define('ORE_SUPPORT_PASSWORD_MANAGER', 'https://course.oeru.org/lida102/learning-pathways/digital-environments/online-hygiene/#Password_managers');
// admin details
/*define('ORE_ADMIN_SLUG', 'ore-settings');
define('ORE_ADMIN_TITLE', 'Register Enrol Settings');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment