diff --git a/admin/assets/css/um-admin-dashboard.css b/admin/assets/css/um-admin-dashboard.css index d2c4e807..87ca19b7 100644 --- a/admin/assets/css/um-admin-dashboard.css +++ b/admin/assets/css/um-admin-dashboard.css @@ -32,6 +32,7 @@ font-weight: 700; font-size: 12px; margin-left: 10px; + display: none; } .um-admin-dash-count.count-0 {background: #ddd !important} .um-admin-dash-count.red {background:#C74A4A} @@ -139,7 +140,7 @@ .um-admin-dash-main { margin-left: 201px; border-left: 1px solid #D8D8D8; - padding: 0 30px; + padding: 0 30px 30px 30px; box-shadow: 0px 1px 0px #FFF inset; min-height: 300px; } @@ -174,9 +175,10 @@ */ .um-admin-dash-two-col .um-admin-dash-col { - float: left; + display: inline-block; width: 42%; margin-right: 4%; + vertical-align: top; } .um-admin-dash-col a:hover {text-decoration: underline} @@ -210,25 +212,17 @@ .um-admin-dash-info { display: inline-block; - width: 130px; + width: 110px; margin-right: 10px; } .um-admin-dash-meta { display: inline-block; - width: 120px; + width: 100px; margin-right: 10px; } .um-admin-dash-more { display: inline-block; -} - -/* - - Colorful user status -*/ - -.um-status-awaiting_admin_review {color: #C74A4A} -.um-status-approved {color: #7ACF58} -.um-status-inactive {color: #888} -.um-status-rejected {color: #aaa} \ No newline at end of file + color: #aaa; +} \ No newline at end of file diff --git a/admin/assets/css/um-admin-global.css b/admin/assets/css/um-admin-global.css index 37d2458a..e7b98e69 100644 --- a/admin/assets/css/um-admin-global.css +++ b/admin/assets/css/um-admin-global.css @@ -47,41 +47,6 @@ .um-nav-mode {margin-top:10px} .um-nav-roles {display: none;margin-top:5px} -/* - - Admin notice -*/ - -.um-admin-notice { - font-size: 14px !important; - color: #fff; - border-radius: 0; - margin: 40px 30px 0 0; - padding: 20px; - background: #3ba1da url(../img/logo-header.png) no-repeat 20px center; - border-radius: 5px; -} - -.um-admin-notice div { - padding: 0 0 0 80px; -} - -.um-admin-notice a { - text-decoration: none; - color: #3ba1da; - background: #fff; - margin: 0 0 0 10px; - border-radius: 5px; - display: inline-block; - padding: 8px 15px; -} -.um-admin-notice a:hover {color:#356e8e} - -.um-admin-notice a.um-admin-notice-alt { - background: #356e8e; - color: #8bbbd5; -} -.um-admin-notice a.um-admin-notice-alt:hover {color: #fff} - /* - jQuery Tooltips */ diff --git a/admin/assets/css/um-admin-misc.css b/admin/assets/css/um-admin-misc.css index 4fb92b1d..52b5258c 100644 --- a/admin/assets/css/um-admin-misc.css +++ b/admin/assets/css/um-admin-misc.css @@ -23,6 +23,16 @@ background: #3ba1da url(../img/logo_small.png) no-repeat center 0px !important; } +.um-about-wrap a.button-primary { + height: 46px; + line-height: 46px; + padding: 0 20px !important; + font-size: 14px; + border: none; +} + +.um-about-wrap a {text-decoration: none} + /* - General */ @@ -78,14 +88,6 @@ body.um-admin-modal-open { color: #fff; } -.um-admin a.button, -.um-admin input.button { - background: #f9f9f9 !important; - box-shadow: none !important; - color: #777; - border-radius: 2px; -} - .um-admin a.button i, .um-admin a.button-primary i { font-size: 15px !important; diff --git a/admin/assets/css/um-admin-modal.css b/admin/assets/css/um-admin-modal.css index 9ed26661..c3f6152b 100644 --- a/admin/assets/css/um-admin-modal.css +++ b/admin/assets/css/um-admin-modal.css @@ -35,7 +35,6 @@ .um-admin-modal { border-radius: 3px; background: #fff; - box-shadow: 0 4px 10px #111; position: fixed; top: 50% !important; left: 50% !important; diff --git a/admin/core/um-admin-actions.php b/admin/core/um-admin-actions.php index 6cc08346..c99d07c1 100644 --- a/admin/core/um-admin-actions.php +++ b/admin/core/um-admin-actions.php @@ -1,5 +1,16 @@
'; + + echo sprintf(__( 'Registration is disabled. Please go to the general settings page in the WordPress admin and select anyone can register. Hide this notice', 'ultimatemember' ), admin_url('options-general.php'), add_query_arg('um_adm_action', 'um_can_register_notice') ); + + echo '
'; + + } + } + + /*** + *** @updating users + ***/ + function show_update_messages(){ + if ( !isset($_REQUEST['update']) ) return; - + $update = $_REQUEST['update']; - switch($update) { case 'user_updated': @@ -36,9 +55,9 @@ class UM_Admin_Notices { if ( !empty( $messages ) ) { foreach( $messages as $message ) { if ( isset($message['err_content'])) { - echo '' . $message['err_content'] . '
' . $message['err_content'] . '
' . $message['content'] . '
' . $message['content'] . '
'; + echo '
'; echo __( 'Help us improve Ultimate Member’s compatibility with other plugins and themes by allowing us to track non-sensitive data on your site. Click here to see what data we track.', 'ultimatemember' ); diff --git a/admin/templates/about.php b/admin/templates/about.php index 0c818542..69304e7d 100644 --- a/admin/templates/about.php +++ b/admin/templates/about.php @@ -1,5 +1,5 @@ - +
Ultimate Member has been designed to be as easy to use as possible and you shouldn’t run into any difficulties. However, the plugin contains lots of different elements so we have created the following page to help you get started with Ultimate Member.
+ +Upon activation the plugin will install 7 core pages. These pages are required for the plugin to function correctly and cannot be deleted.
++
+ +The plugin has several different elements in the WordPress admin that allow you to customize your community/membership site:
++
If you want to learn more about Ultimate Member you’ll need to register on our website where you will be able to interact and get help from other Ultimate Member users via our community forum and also be able to access other useful resources including the plugin’s documentation.
+ + + +' . $err . '
'; } + if ( isset( $success ) ) { + $output .= '' . $success . '
'; + } + echo $output; } \ No newline at end of file diff --git a/core/um-actions-profile.php b/core/um-actions-profile.php index da7aaf21..633c291b 100644 --- a/core/um-actions-profile.php +++ b/core/um-actions-profile.php @@ -65,13 +65,17 @@ fields->editing ) { - echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', array( + + $items = array( ''.__('Change cover photo','ultimatemember').'', ''.__('Remove','ultimatemember').'', ''.__('Cancel','ultimatemember').'', - ) ); + ); + + echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', $items ); + } - + ?> fields->add_hidden_field( 'cover_photo' ); ?> @@ -156,18 +160,22 @@ if ( !um_profile('profile_photo') ) { // has profile photo - echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', array( + $items = array( ''.__('Upload photo','ultimatemember').'', ''.__('Cancel','ultimatemember').'', - ) ); + ); + + echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', $items ); } else if ( $ultimatemember->fields->editing == true ) { - echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', array( + $items = array( ''.__('Change photo','ultimatemember').'', ''.__('Remove photo','ultimatemember').'', ''.__('Cancel','ultimatemember').'', - ) ); + ); + + echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', $items ); } @@ -261,7 +269,7 @@ if ( !is_user_logged_in() ) return; // not allowed for guests - if ( isset( $ultimatemember->user->cannot_edit ) && $ultimatemember->user->cannot_edit == 1 ) return; + if ( isset( $ultimatemember->user->cannot_edit ) && $ultimatemember->user->cannot_edit == 1 ) return; // do not proceed if user cannot edit if ( $ultimatemember->fields->editing == true ) { @@ -281,19 +289,31 @@ ''.__('My Account','ultimatemember').'', + $items = array( 'editprofile' => ''.__('Edit Profile','ultimatemember').'', + 'myaccount' => ''.__('My Account','ultimatemember').'', 'cancel' => ''.__('Cancel','ultimatemember').'', ); + + $cancel = $items['cancel']; if ( !um_is_myprofile() ) { + $actions = $ultimatemember->user->get_admin_actions(); - unset($menu_items['myaccount']); - $menu_items = array_merge( $actions, $menu_items ); + + unset( $items['cancel'] ); + $items = array_merge( $items, $actions ); + $items['cancel'] = $cancel; + + $items = apply_filters('um_profile_edit_menu_items', $items ); + + } else { + + $items = apply_filters('um_myprofile_edit_menu_items', $items ); + } - echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-edit', 'click', $menu_items ); + echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-edit', 'click', $items ); ?> diff --git a/core/um-actions-wpadmin.php b/core/um-actions-wpadmin.php index b3a0eef1..0210ba81 100644 --- a/core/um-actions-wpadmin.php +++ b/core/um-actions-wpadmin.php @@ -21,107 +21,4 @@ return true; } } - add_filter( 'show_admin_bar' , 'um_control_admin_bar'); - - /*** - *** @show admin bar menu for plugin - ***/ - add_action('admin_bar_menu', 'um_plugin_admin_bar', 99999999 ); - function um_plugin_admin_bar() { - - global $wp_admin_bar; - - if( !is_super_admin() || !is_admin_bar_showing() || is_admin() ) return; - - if ( !um_get_option('wpadmin_um_bar') ) return; - - $args = array( - 'id' => 'um_parent', - 'title' => 'Ultimate Member', - 'href' => admin_url('admin.php?page=ultimatemember-about'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub1', - 'title' => 'About this plugin', - 'href' => admin_url('admin.php?page=ultimatemember-about'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub2', - 'title' => 'Getting Started', - 'href' => admin_url('admin.php?page=ultimatemember-start'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub3', - 'title' => 'Dashboard', - 'href' => admin_url('admin.php?page=ultimatemember'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub4', - 'title' => 'Settings', - 'href' => admin_url('admin.php?page=um_options'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub5', - 'title' => 'Forms', - 'href' => admin_url('edit.php?post_type=um_form'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub6', - 'title' => 'Member Levels', - 'href' => admin_url('edit.php?post_type=um_role'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub7', - 'title' => 'Member Directories', - 'href' => admin_url('edit.php?post_type=um_directory'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - $args = array( - 'parent' => 'um_parent', - 'id' => 'um_sub8', - 'title' => 'Members', - 'href' => admin_url('users.php'), - 'meta' => array( ) - ); - - $wp_admin_bar->add_node( $args ); - - } \ No newline at end of file + add_filter( 'show_admin_bar' , 'um_control_admin_bar'); \ No newline at end of file diff --git a/core/um-filters-login.php b/core/um-filters-login.php index 86ab4c13..30e092e6 100644 --- a/core/um-filters-login.php +++ b/core/um-filters-login.php @@ -1,5 +1,44 @@ '.$err.'