mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
Recent Changes
This commit is contained in:
@@ -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}
|
||||
color: #aaa;
|
||||
}
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
<?php
|
||||
|
||||
/***
|
||||
*** @Hide registration notice
|
||||
***/
|
||||
add_action('um_admin_do_action__um_can_register_notice', 'um_admin_do_action__um_can_register_notice');
|
||||
function um_admin_do_action__um_can_register_notice( $action ){
|
||||
global $ultimatemember;
|
||||
if ( !is_admin() || !current_user_can('manage_options') ) die();
|
||||
update_option( $action, 1 );
|
||||
exit( wp_redirect( remove_query_arg('um_adm_action') ) );
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Opt-in tracking
|
||||
***/
|
||||
|
||||
@@ -4,19 +4,38 @@ class UM_Admin_Notices {
|
||||
|
||||
function __construct() {
|
||||
|
||||
add_action('admin_notices', array(&$this, 'admin_notices'), 10);
|
||||
add_action('admin_notices', array(&$this, 'main_notices'), 1);
|
||||
|
||||
add_action('admin_notices', array(&$this, 'show_update_messages'), 10);
|
||||
|
||||
}
|
||||
|
||||
/***
|
||||
*** @For core admin notices
|
||||
*** @show main notices
|
||||
***/
|
||||
function admin_notices(){
|
||||
function main_notices(){
|
||||
|
||||
$hide_notice = get_option('um_can_register_notice');
|
||||
|
||||
if ( !get_option('users_can_register') && !$hide_notice ) {
|
||||
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
||||
|
||||
echo sprintf(__( 'Registration is disabled. Please go to the <a href="%s">general settings</a> page in the WordPress admin and select anyone can register. <a href="%s">Hide this notice</a>', 'ultimatemember' ), admin_url('options-general.php'), add_query_arg('um_adm_action', 'um_can_register_notice') );
|
||||
|
||||
echo '</p></div>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
*** @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 '<div id="message" class="error"><p>' . $message['err_content'] . '</p></div>';
|
||||
echo '<div class="error"><p>' . $message['err_content'] . '</p></div>';
|
||||
} else {
|
||||
echo '<div id="message" class="updated"><p>' . $message['content'] . '</p></div>';
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . $message['content'] . '</p></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ class UM_Admin_Tracking {
|
||||
$optin_url = add_query_arg( 'um_adm_action', 'opt_into_tracking' );
|
||||
$optout_url = add_query_arg( 'um_adm_action', 'opt_out_of_tracking' );
|
||||
|
||||
echo '<div class="updated"><p>';
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
||||
|
||||
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 <a href="http://ultimatemember.com/tracking/">here</a> to see what data we track.', 'ultimatemember' );
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
<?php include_once um_path . 'admin/templates/about_header.php'; ?>
|
||||
<?php global $ultimatemember; include_once um_path . 'admin/templates/about_header.php'; ?>
|
||||
|
||||
<div class="changelog headline-feature dfw">
|
||||
<h2>Introducing Ultimate Member</h2>
|
||||
@@ -68,20 +68,7 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="return-to-dashboard">
|
||||
<a href="<?php echo admin_url('admin.php?page=ultimatemember'); ?>">Go to Plugin Dashboard →</a>
|
||||
|
||||
<div class="alignright">
|
||||
|
||||
<?php global $reduxConfig; foreach ( $reduxConfig->args['share_icons'] as $k => $arr ) { ?><a href="<?php echo $arr['url']; ?>" class="um-about-icon um-admin-tipsy-n" title="<?php echo $arr['title']; ?>" target="_blank"><i class="<?php echo $arr['icon']; ?>"></i></a><?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php include_once um_path . 'admin/templates/about_footer.php'; ?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<hr />
|
||||
|
||||
<div class="return-to-dashboard">
|
||||
|
||||
<a href="<?php echo admin_url('admin.php?page=ultimatemember'); ?>">Go to Plugin Dashboard →</a>
|
||||
|
||||
<div class="alignright">
|
||||
|
||||
<?php global $reduxConfig; foreach ( $reduxConfig->args['share_icons'] as $k => $arr ) { ?><a href="<?php echo $arr['url']; ?>" class="um-about-icon um-admin-tipsy-n" title="<?php echo $arr['title']; ?>" target="_blank"><i class="<?php echo $arr['icon']; ?>"></i></a><?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
<div class="um-admin-dash-col">
|
||||
|
||||
<h3>Latest 5 Users</h3>
|
||||
<h3>Recent Members</h3>
|
||||
|
||||
<?php foreach( $ultimatemember->query->get_recent_users() as $user_id ) { um_fetch_user( $user_id ); ?>
|
||||
<?php foreach( $ultimatemember->query->get_users_by_status('approved') as $user_id ) { um_fetch_user( $user_id ); ?>
|
||||
|
||||
<div class="um-admin-dash-item">
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-meta">
|
||||
<?php echo date( "j M Y", strtotime( um_user('user_registered') ) ); ?>
|
||||
<?php echo date( "j M H:i", strtotime( um_user('user_registered') ) ); ?>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-more um-status-<?php echo um_user('account_status'); ?>">
|
||||
<?php echo um_user('account_status_name'); ?>
|
||||
<div class="um-admin-dash-more">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -32,8 +32,8 @@
|
||||
|
||||
<div class="um-admin-dash-col">
|
||||
|
||||
<?php $users = $ultimatemember->query->get_users_by_meta('awaiting_admin_review'); ?>
|
||||
<h3>Users Awaiting Review<span class="um-admin-dash-count red count-<?php echo um_notify('awaiting_admin_review'); ?>"><?php echo um_notify('awaiting_admin_review'); ?></span></h3>
|
||||
<?php $users = $ultimatemember->query->get_users_by_status('awaiting_admin_review'); ?>
|
||||
<h3>Users Awaiting Review<span class="um-admin-dash-count red count-0">0</span></h3>
|
||||
|
||||
<?php foreach( $users as $user_id ) { um_fetch_user( $user_id ); ?>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-more">
|
||||
<a href="<?php echo $ultimatemember->permalinks->admin_act_url('user_action','um_approve_membership'); ?>" class="ok">Approve</a> | <a href="<?php echo $ultimatemember->permalinks->admin_act_url('user_action','um_reject_membership'); ?>" class="red">Reject</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -78,4 +78,91 @@
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-two-col">
|
||||
|
||||
<div class="um-admin-dash-col">
|
||||
|
||||
<?php $users = $ultimatemember->query->get_users_by_status('awaiting_email_confirmation'); ?>
|
||||
<h3>Pending e-mail confirmation<span class="um-admin-dash-count red count-0">0</span></h3>
|
||||
|
||||
<?php foreach( $users as $user_id ) { um_fetch_user( $user_id ); ?>
|
||||
|
||||
<div class="um-admin-dash-item">
|
||||
|
||||
<div class="um-admin-dash-thumb">
|
||||
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('profile_photo', 30 ); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-info">
|
||||
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('display_name'); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-meta">
|
||||
<?php echo date( "j M Y", strtotime( um_user('user_registered') ) ); ?>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-more">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php um_reset_user(); } ?>
|
||||
|
||||
<?php if ( !$users ) { ?>
|
||||
<div class="um-admin-dash-item"><?php _e('No users are awaiting e-mail validation yet.','ultimatemember'); ?></div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-col">
|
||||
|
||||
<?php $users = $ultimatemember->query->get_users_by_status('inactive'); ?>
|
||||
<h3>Recently Deactivated<span class="um-admin-dash-count red count-0">0</span></h3>
|
||||
|
||||
<?php foreach( $users as $user_id ) { um_fetch_user( $user_id ); ?>
|
||||
|
||||
<div class="um-admin-dash-item">
|
||||
|
||||
<div class="um-admin-dash-thumb">
|
||||
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('profile_photo', 30 ); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-info">
|
||||
<a href="<?php echo um_user_profile_url(); ?>" target="_blank"><?php echo um_user('display_name'); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-meta">
|
||||
|
||||
<?php
|
||||
|
||||
if ( um_user('submitted') ) {
|
||||
|
||||
echo '<a href="#" class="um-admin-tipsy-n" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration" title="Review/update registration info">Review details</a>';
|
||||
|
||||
} else {
|
||||
|
||||
echo '<em>No information available</em>';
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-admin-dash-more">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php um_reset_user(); } ?>
|
||||
|
||||
<?php if ( !$users ) { ?>
|
||||
<div class="um-admin-dash-item"><?php _e('No users have been deactivated recently.','ultimatemember'); ?></div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,4 +1,66 @@
|
||||
|
||||
<?php include_once um_path . 'admin/templates/about_header.php'; ?>
|
||||
<?php global $ultimatemember; include_once um_path . 'admin/templates/about_header.php'; ?>
|
||||
|
||||
</div>
|
||||
<div class="changelog headline-feature dfw">
|
||||
<h2>Getting Started</h2>
|
||||
<div class="feature-section">
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="changelog feature-list">
|
||||
|
||||
<div class="feature-section col two-col">
|
||||
|
||||
<div>
|
||||
<h4>Automatically installed pages</h4>
|
||||
<p>Upon activation the plugin will install 7 core pages. These pages are required for the plugin to function correctly and cannot be deleted.</p>
|
||||
<p>
|
||||
<ul>
|
||||
<li><a href="<?php echo um_get_core_page('register'); ?>" target="_blank">Register</a></li>
|
||||
<li><a href="<?php echo um_get_core_page('login'); ?>" target="_blank">Login</a></li>
|
||||
<li><a href="<?php echo um_get_core_page('user'); ?>" target="_blank">User</a></li>
|
||||
<li><a href="<?php echo um_get_core_page('members'); ?>" target="_blank">Members</a></li>
|
||||
<li><a href="<?php echo um_get_core_page('account'); ?>" target="_blank">Account</a></li>
|
||||
<li><a href="<?php echo admin_url('post.php?post=' . $ultimatemember->permalinks->core['logout'] . '&action=edit'); ?>" target="_blank">Logout</a></li>
|
||||
<li><a href="<?php echo um_get_core_page('password-reset'); ?>" target="_blank">Password Reset</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="last-feature">
|
||||
<h4>Getting started</h4>
|
||||
<p>The plugin has several different elements in the WordPress admin that allow you to customize your community/membership site:</p>
|
||||
<p>
|
||||
<ul>
|
||||
<li><a href="<?php echo admin_url('admin.php?page=ultimatemember'); ?>" target="_blank">Dashboard</a></li>
|
||||
<li><a href="<?php echo admin_url('admin.php?page=um_options'); ?>" target="_blank">Settings</a></li>
|
||||
<li><a href="<?php echo admin_url('edit.php?post_type=um_form'); ?>" target="_blank">Forms</a></li>
|
||||
<li><a href="<?php echo admin_url('edit.php?post_type=um_role'); ?>" target="_blank">Member Levels</a></li>
|
||||
<li><a href="<?php echo admin_url('edit.php?post_type=um_directory'); ?>" target="_blank">Member Directories</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="changelog headline-feature dfw">
|
||||
<h2>Need more help?</h2>
|
||||
<div class="feature-section">
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<p style="text-align:center"><a href="http://ultimatemember.com/community-forum/" target="_blank" class="button button-primary">Join the Ultimate Member Community</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once um_path . 'admin/templates/about_footer.php'; ?>
|
||||
Reference in New Issue
Block a user