mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fx text domain slug for wp.org translation compatibility
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
function ultimatemember_do_ajax_action(){
|
||||
global $ultimatemember;
|
||||
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
|
||||
|
||||
extract($_POST);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
$arr_options = array();
|
||||
|
||||
if( ! current_user_can('manage_options') ){
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
|
||||
}
|
||||
|
||||
$um_callback_func = $_POST['um_option_callback'];
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
function ultimatemember_admin_update_field(){
|
||||
global $ultimatemember;
|
||||
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
|
||||
|
||||
$output['error'] = null;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<div class="um-admin-btn-content">
|
||||
|
||||
<p class="um-admin-reset-conditions"><a href="#" class="button button-primary"><?php _e('Reset all rules','ultimatemember'); ?></a></p>
|
||||
<p class="um-admin-reset-conditions"><a href="#" class="button button-primary"><?php _e('Reset all rules','ultimate-member'); ?></a></p>
|
||||
<div class="um-admin-clear"></div>
|
||||
|
||||
<?php
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
$metabox = new UM_Admin_Metabox();
|
||||
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
|
||||
if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
|
||||
|
||||
extract($_POST);
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
?>
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<p class="_icon_search"><input type="text" name="_icon_search" id="_icon_search" value="" placeholder="<?php _e('Search Icons...','ultimatemember'); ?>" /></p>
|
||||
<p class="_icon_search"><input type="text" name="_icon_search" id="_icon_search" value="" placeholder="<?php _e('Search Icons...','ultimate-member'); ?>" /></p>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-icons">
|
||||
@@ -142,7 +142,7 @@
|
||||
$form_fields = array_values( array_filter( array_keys( $form_fields ) ) );
|
||||
?>
|
||||
|
||||
<h4><?php _e('Setup New Field','ultimatemember'); ?></h4>
|
||||
<h4><?php _e('Setup New Field','ultimate-member'); ?></h4>
|
||||
<div class="um-admin-btns">
|
||||
|
||||
<?php
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<h4><?php _e('Predefined Fields','ultimatemember'); ?></h4>
|
||||
<h4><?php _e('Predefined Fields','ultimate-member'); ?></h4>
|
||||
<div class="um-admin-btns">
|
||||
|
||||
<?php
|
||||
@@ -170,11 +170,11 @@
|
||||
|
||||
<a href="#" class="button" <?php disabled( in_array( $field_key, $form_fields ) ) ?> data-silent_action="um_admin_add_field_from_predefined" data-arg1="<?php echo $field_key; ?>" data-arg2="<?php echo $arg2; ?>"><?php echo um_trim_string( stripslashes( $array['title'] ), 20 ); ?></a>
|
||||
|
||||
<?php } } } else { echo '<p>' . __('None','ultimatemember') . '</p>'; } ?>
|
||||
<?php } } } else { echo '<p>' . __('None','ultimate-member') . '</p>'; } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<h4><?php _e('Custom Fields','ultimatemember'); ?></h4>
|
||||
<h4><?php _e('Custom Fields','ultimate-member'); ?></h4>
|
||||
<div class="um-admin-btns">
|
||||
|
||||
<?php
|
||||
@@ -184,7 +184,7 @@
|
||||
|
||||
<a href="#" class="button with-icon" data-silent_action="um_admin_add_field_from_list" data-arg1="<?php echo $field_key; ?>" data-arg2="<?php echo $arg2; ?>"><?php echo um_trim_string( stripslashes( $array['title'] ), 20 ); ?> <small>(<?php echo ucfirst( $array['type']); ?>)</small><span class="remove"></span></a>
|
||||
|
||||
<?php } } else { echo '<p>' . __('You did not create any custom fields', 'ultimatemember') . '</p>'; } ?>
|
||||
<?php } } else { echo '<p>' . __('You did not create any custom fields', 'ultimate-member') . '</p>'; } ?>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
|
||||
if ( !isset( $col1 ) ) {
|
||||
|
||||
echo '<p>'. __('This field type is not setup correcty.', 'ultimatemember') . '</p>';
|
||||
echo '<p>'. __('This field type is not setup correcty.', 'ultimate-member') . '</p>';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -288,7 +288,7 @@
|
||||
|
||||
if ( !isset( $col1 ) ) {
|
||||
|
||||
echo '<p>'. __('This field type is not setup correcty.', 'ultimatemember') . '</p>';
|
||||
echo '<p>'. __('This field type is not setup correcty.', 'ultimate-member') . '</p>';
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
case 'um_delete':
|
||||
if ( is_admin() )
|
||||
wp_die('This action is not allowed in backend.','ultimatemember');
|
||||
wp_die('This action is not allowed in backend.','ultimate-member');
|
||||
$ultimatemember->user->delete();
|
||||
break;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
?>
|
||||
<table id="table_my_custom_field" style="display:none;">
|
||||
<tr>
|
||||
<th><label for="um_role"><?php _e( 'Community Role', 'ultimatemember' ); ?></label></th>
|
||||
<th><label for="um_role"><?php _e( 'Community Role', 'ultimate-member'); ?></label></th>
|
||||
<td>
|
||||
<select name="um_role" id="um_role">
|
||||
<?php foreach( $ultimatemember->query->get_roles() as $key => $value ) { ?>
|
||||
@@ -75,28 +75,28 @@
|
||||
global $ultimatemember;
|
||||
|
||||
echo '<div class="form-field term-access-wrap um-conditional-radio-group" data-cond1="2" data-cond1-show="term-roles-wrap" data-cond2="1" data-cond2-show="term-redirect-wrap">';
|
||||
echo '<label>' . __('Content Availability','ultimatemember') . '</label>';
|
||||
echo '<label><input type="radio" name="_um_accessible" value="0" checked /> '. __('Content accessible to Everyone','ultimatemember') . '</label>
|
||||
<label><input type="radio" name="_um_accessible" value="1" /> ' . __('Content accessible to Logged Out Users','ultimatemember') . '</label>
|
||||
<label><input type="radio" name="_um_accessible" value="2" /> ' . __('Content accessible to Logged In Users','ultimatemember') . '</label>';
|
||||
echo '<label>' . __('Content Availability','ultimate-member') . '</label>';
|
||||
echo '<label><input type="radio" name="_um_accessible" value="0" checked /> '. __('Content accessible to Everyone','ultimate-member') . '</label>
|
||||
<label><input type="radio" name="_um_accessible" value="1" /> ' . __('Content accessible to Logged Out Users','ultimate-member') . '</label>
|
||||
<label><input type="radio" name="_um_accessible" value="2" /> ' . __('Content accessible to Logged In Users','ultimate-member') . '</label>';
|
||||
echo '<p class="description">Who can see content/posts in this category.</p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="form-field term-roles-wrap">';
|
||||
echo '<label>' . __('Roles who can see the content','ultimatemember') . '</label>';
|
||||
echo '<label>' . __('Roles who can see the content','ultimate-member') . '</label>';
|
||||
foreach($ultimatemember->query->get_roles() as $role_id => $role) {
|
||||
echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" /> ' . $role . '</label>';
|
||||
}
|
||||
echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimatemember') . '</p>';
|
||||
echo '<label>' . __('Content Restriction Redirect URL','ultimatemember') . '</label>';
|
||||
echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimate-member') . '</p>';
|
||||
echo '<label>' . __('Content Restriction Redirect URL','ultimate-member') . '</label>';
|
||||
echo '<input type="text" name="_um_redirect" id="_um_redirect" value="" />';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="form-field term-redirect-wrap">';
|
||||
echo '<label>' . __('Content Restriction Redirect URL','ultimatemember') . '</label>';
|
||||
echo '<label>' . __('Content Restriction Redirect URL','ultimate-member') . '</label>';
|
||||
echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="" />';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
@@ -112,15 +112,15 @@
|
||||
$_um_roles= (isset( $termMeta['_um_roles'] ) )? $termMeta['_um_roles'] : '';
|
||||
|
||||
echo '<tr class="form-field form-required term-access-wrap um-conditional-radio-group" data-cond1="2" data-cond1-show="term-roles-wrap" data-cond2="1" data-cond2-show="term-redirect-wrap" >';
|
||||
echo "<th scope='row'><label>" . __('Content Availability','ultimatemember') . "</label></th>";
|
||||
echo '<td><label><input type="radio" name="_um_accessible" value="0" ' . checked( 0, $_um_accessible, 0 ) . ' /> '. __('Content accessible to Everyone','ultimatemember') . '</label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="1" ' . checked( 1, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged Out Users','ultimatemember') . '</label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="2" ' . checked( 2, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged In Users','ultimatemember') . '</label>';
|
||||
echo "<th scope='row'><label>" . __('Content Availability','ultimate-member') . "</label></th>";
|
||||
echo '<td><label><input type="radio" name="_um_accessible" value="0" ' . checked( 0, $_um_accessible, 0 ) . ' /> '. __('Content accessible to Everyone','ultimate-member') . '</label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="1" ' . checked( 1, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged Out Users','ultimate-member') . '</label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="2" ' . checked( 2, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged In Users','ultimate-member') . '</label>';
|
||||
echo '<p class="description">Who can see content/posts in this category.</p>';
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "<tr class='form-field form-required term-roles-wrap'>";
|
||||
echo "<th scope='row'><label>" . __('Roles who can see the content','ultimatemember') . "</label></th>";
|
||||
echo "<th scope='row'><label>" . __('Roles who can see the content','ultimate-member') . "</label></th>";
|
||||
echo '<td>';
|
||||
foreach($ultimatemember->query->get_roles() as $role_id => $role) {
|
||||
if ( ( isset( $_um_roles ) && is_array( $_um_roles ) && in_array($role_id, $_um_roles ) ) || ( isset( $_um_roles ) && $role_id == $_um_roles ) ) {
|
||||
@@ -130,20 +130,20 @@
|
||||
}
|
||||
echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" ' . $checked . ' /> ' . $role . '</label> ';
|
||||
}
|
||||
echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimatemember') . '</p>';
|
||||
echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimate-member') . '</p>';
|
||||
echo "</td></tr>";
|
||||
echo "<tr class='form-field form-required term-roles-wrap'>";
|
||||
echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimatemember') . "</label></th>";
|
||||
echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimate-member') . "</label></th>";
|
||||
echo '<td>';
|
||||
echo '<input type="text" name="_um_redirect" id="_um_redirect" value="' . $_um_redirect . '" />';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "<tr class='form-field form-required term-redirect-wrap'>";
|
||||
echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimatemember') . "</label></th>";
|
||||
echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimate-member') . "</label></th>";
|
||||
echo '<td>';
|
||||
echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="' . $_um_redirect2 . '" />';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
|
||||
echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
|
||||
echo "</td></tr>";
|
||||
|
||||
}
|
||||
@@ -217,13 +217,13 @@
|
||||
|
||||
?>
|
||||
|
||||
<h4><?php _e('This is a translation of UM profile page?','ultimatemember'); ?></h4>
|
||||
<h4><?php _e('This is a translation of UM profile page?','ultimate-member'); ?></h4>
|
||||
|
||||
<p>
|
||||
<span><?php $instance->ui_on_off( '_um_wpml_user', 0 ); ?></span>
|
||||
</p>
|
||||
|
||||
<h4><?php _e('This is a translation of UM account page?','ultimatemember'); ?></h4>
|
||||
<h4><?php _e('This is a translation of UM account page?','ultimate-member'); ?></h4>
|
||||
|
||||
<p>
|
||||
<span><?php $instance->ui_on_off( '_um_wpml_account', 0 ); ?></span>
|
||||
@@ -304,7 +304,7 @@
|
||||
|
||||
$n = array(
|
||||
'post_type' => 'um_form',
|
||||
'post_title' => sprintf(__('Duplicate of %s','ultimatemember'), get_the_title($post_id) ),
|
||||
'post_title' => sprintf(__('Duplicate of %s','ultimate-member'), get_the_title($post_id) ),
|
||||
'post_status' => 'publish',
|
||||
'post_author' => um_user('ID'),
|
||||
);
|
||||
|
||||
@@ -94,8 +94,8 @@ class UM_Admin_Builder {
|
||||
|
||||
<!-- Master Row Actions -->
|
||||
<div class="um-admin-drag-row-icons">
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimatemember'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimatemember'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo $this->form_id; ?>" data-arg3="_um_row_1"><i class="um-faicon-pencil"></i></a>
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimate-member'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimate-member'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo $this->form_id; ?>" data-arg3="_um_row_1"><i class="um-faicon-pencil"></i></a>
|
||||
<span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
|
||||
</div><div class="um-admin-clear"></div>
|
||||
|
||||
@@ -164,11 +164,11 @@ class UM_Admin_Builder {
|
||||
|
||||
<!-- Master Row Actions -->
|
||||
<div class="um-admin-drag-row-icons">
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimatemember'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimatemember'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo $this->form_id; ?>" data-arg3="<?php echo $row_id; ?>"><i class="um-faicon-pencil"></i></a>
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimate-member'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimate-member'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo $this->form_id; ?>" data-arg3="<?php echo $row_id; ?>"><i class="um-faicon-pencil"></i></a>
|
||||
<span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
|
||||
<?php if ( $row_id != '_um_row_1' ) {?>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimatemember'); ?>" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimate-member'); ?>" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>
|
||||
<?php } ?>
|
||||
</div><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class UM_Admin_Columns {
|
||||
function post_row_actions($actions, $post){
|
||||
//check for your post type
|
||||
if ($post->post_type =="um_form"){
|
||||
$actions['um_duplicate'] = '<a href="' . $this->duplicate_uri( $post->ID ) . '">' . __('Duplicate','ultimatemember') . '</a>';
|
||||
$actions['um_duplicate'] = '<a href="' . $this->duplicate_uri( $post->ID ) . '">' . __('Duplicate','ultimate-member') . '</a>';
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class UM_Admin_Dashboard {
|
||||
// Change the footer text
|
||||
if ( ! get_option( 'um_admin_footer_text_rated' ) ) {
|
||||
|
||||
$footer_text = sprintf( __( 'If you like Ultimate Member please consider leaving a %s★★★★★%s review. It will help us to grow the plugin and make it more popular. Thank you.', 'ultimatemember' ), '<a href="https://wordpress.org/support/plugin/ultimate-member/reviews/?filter=5" target="_blank" class="um-admin-rating-link" data-rated="' . __( 'Thanks :)', 'ultimatemember' ) . '">', '</a>' );
|
||||
$footer_text = sprintf( __( 'If you like Ultimate Member please consider leaving a %s★★★★★%s review. It will help us to grow the plugin and make it more popular. Thank you.', 'ultimate-member'), '<a href="https://wordpress.org/support/plugin/ultimate-member/reviews/?filter=5" target="_blank" class="um-admin-rating-link" data-rated="' . __( 'Thanks :)', 'ultimate-member') . '">', '</a>' );
|
||||
|
||||
$footer_text .= "<script type='text/javascript'>
|
||||
jQuery('a.um-admin-rating-link').click(function() {
|
||||
@@ -174,19 +174,19 @@ class UM_Admin_Dashboard {
|
||||
|
||||
/** custom metaboxes for dashboard defined here **/
|
||||
|
||||
add_meta_box('um-metaboxes-contentbox-1', __('Users Overview','ultimatemember'), array(&$this, 'users_overview'), $this->pagehook, 'core', 'core');
|
||||
add_meta_box('um-metaboxes-contentbox-1', __('Users Overview','ultimate-member'), array(&$this, 'users_overview'), $this->pagehook, 'core', 'core');
|
||||
|
||||
add_meta_box('um-metaboxes-mainbox-1', __('Latest from our blog','ultimatemember'), array(&$this, 'um_news'), $this->pagehook, 'normal', 'core');
|
||||
add_meta_box('um-metaboxes-mainbox-1', __('Latest from our blog','ultimate-member'), array(&$this, 'um_news'), $this->pagehook, 'normal', 'core');
|
||||
|
||||
add_meta_box('um-metaboxes-sidebox-1', __('Purge Temp Files','ultimatemember'), array(&$this, 'purge_temp'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('User Cache','ultimatemember'), array(&$this, 'user_cache'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-1', __('Purge Temp Files','ultimate-member'), array(&$this, 'purge_temp'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('User Cache','ultimate-member'), array(&$this, 'user_cache'), $this->pagehook, 'side', 'core');
|
||||
|
||||
if ( $this->language_avaialable_not_installed() ) {
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'dl_language'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'dl_language'), $this->pagehook, 'side', 'core');
|
||||
} else if ( $this->language_avaialable_installed() ) {
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'up_language'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'up_language'), $this->pagehook, 'side', 'core');
|
||||
} else if ( $this->language_not_available() ) {
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'ct_language'), $this->pagehook, 'side', 'core');
|
||||
add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'ct_language'), $this->pagehook, 'side', 'core');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -146,10 +146,10 @@ class UM_Admin_DragDrop {
|
||||
<div class="um-col-demon-row" style="display:none;">
|
||||
|
||||
<div class="um-admin-drag-row-icons">
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimatemember'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimatemember'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo get_the_ID(); ?>"><i class="um-faicon-pencil"></i></a>
|
||||
<a href="#" class="um-admin-drag-rowsub-add um-admin-tipsy-n" title="<?php _e('Add Row','ultimate-member'); ?>" data-row_action="add_subrow"><i class="um-icon-plus"></i></a>
|
||||
<a href="#" class="um-admin-drag-row-edit um-admin-tipsy-n" title="<?php _e('Edit Row','ultimate-member'); ?>" data-modal="UM_edit_row" data-modal-size="normal" data-dynamic-content="um_admin_edit_field_popup" data-arg1="row" data-arg2="<?php echo get_the_ID(); ?>"><i class="um-faicon-pencil"></i></a>
|
||||
<span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimatemember'); ?>" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimate-member'); ?>" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>
|
||||
</div><div class="um-admin-clear"></div>
|
||||
|
||||
<div class="um-admin-drag-rowsubs">
|
||||
@@ -163,7 +163,7 @@ class UM_Admin_DragDrop {
|
||||
|
||||
<div class="um-admin-drag-rowsub-icons">
|
||||
<span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimatemember'); ?>" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimate-member'); ?>" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>
|
||||
</div><div class="um-admin-clear"></div>
|
||||
|
||||
<div class="um-admin-drag-col">
|
||||
@@ -188,7 +188,7 @@ class UM_Admin_DragDrop {
|
||||
|
||||
<div class="um-admin-drag-rowsub-icons">
|
||||
<span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimatemember'); ?>" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>
|
||||
<a href="#" class="um-admin-tipsy-n" title="<?php _e('Delete Row','ultimate-member'); ?>" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>
|
||||
</div><div class="um-admin-clear"></div>
|
||||
|
||||
<div class="um-admin-drag-col">
|
||||
|
||||
@@ -232,7 +232,7 @@ class UM_Admin_Enqueue {
|
||||
|
||||
if ( !is_admin() ) return false;
|
||||
|
||||
if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
|
||||
if ( strstr( $screen_id, 'ultimatemember' ) || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
|
||||
|
||||
if ( $screen_id == 'nav-menus' ) return true;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class UM_Admin_Metabox {
|
||||
function is_UM_admin(){
|
||||
global $current_screen;
|
||||
$screen_id = $current_screen->id;
|
||||
if ( is_admin() && ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') ) )
|
||||
if ( is_admin() && ( strstr( $screen_id, 'ultimatemember' ) || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') ) )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
@@ -251,23 +251,23 @@ class UM_Admin_Metabox {
|
||||
***/
|
||||
function add_metabox_role() {
|
||||
|
||||
add_meta_box('um-admin-form-sync', __('Sync with WordPress Role','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'side', 'default');
|
||||
add_meta_box('um-admin-form-sync', __('Sync with WordPress Role','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'side', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-admin', __('Administrative Permissions','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-admin', __('Administrative Permissions','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-general', __('General Permissions','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-general', __('General Permissions','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-profile', __('Profile Access','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-profile', __('Profile Access','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-home', __('Homepage Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-home', __('Homepage Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-register', __('Registration Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-register', __('Registration Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-login', __('Login Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-login', __('Login Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-logout', __('Logout Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-logout', __('Logout Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
add_meta_box('um-admin-form-delete', __('Delete Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
add_meta_box('um-admin-form-delete', __('Delete Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
|
||||
|
||||
do_action('um_admin_custom_role_metaboxes');
|
||||
|
||||
@@ -464,7 +464,7 @@ class UM_Admin_Metabox {
|
||||
case '_visibility':
|
||||
?>
|
||||
|
||||
<p><label for="_visibility">Visibility <?php $this->tooltip( __('Select where this field should appear. This option should only be changed on the profile form and allows you to show a field in one mode only (edit or view) or in both modes.','ultimatemember') ); ?></label>
|
||||
<p><label for="_visibility">Visibility <?php $this->tooltip( __('Select where this field should appear. This option should only be changed on the profile form and allows you to show a field in one mode only (edit or view) or in both modes.','ultimate-member') ); ?></label>
|
||||
<select name="_visibility" id="_visibility" class="umaf-selectjs" style="width: 100%">
|
||||
<option value="all" <?php selected( 'all', $this->edit_mode_value ); ?>>View everywhere</option>
|
||||
<option value="edit" <?php selected( 'edit', $this->edit_mode_value ); ?>>Edit mode only</option>
|
||||
@@ -687,7 +687,7 @@ class UM_Admin_Metabox {
|
||||
case '_divider_text':
|
||||
?>
|
||||
|
||||
<p><label for="_divider_text">Optional Text <?php $this->tooltip( __('Optional text to include with the divider','ultimatemember') ); ?></label>
|
||||
<p><label for="_divider_text">Optional Text <?php $this->tooltip( __('Optional text to include with the divider','ultimate-member') ); ?></label>
|
||||
<input type="text" name="_divider_text" id="_divider_text" value="<?php echo ( $this->edit_mode_value ) ? $this->edit_mode_value : ''; ?>" />
|
||||
</p>
|
||||
|
||||
@@ -878,7 +878,7 @@ class UM_Admin_Metabox {
|
||||
case '_force_good_pass':
|
||||
?>
|
||||
|
||||
<p><label for="_force_good_pass">Force strong password? <?php $this->tooltip( __('Turn on to force users to create a strong password (A combination of one lowercase letter, one uppercase letter, and one number). If turned on this option is only applied to register forms and not to login forms.','ultimatemember') ); ?></label>
|
||||
<p><label for="_force_good_pass">Force strong password? <?php $this->tooltip( __('Turn on to force users to create a strong password (A combination of one lowercase letter, one uppercase letter, and one number). If turned on this option is only applied to register forms and not to login forms.','ultimate-member') ); ?></label>
|
||||
<?php if ( isset( $this->edit_mode_value ) ) $this->ui_on_off('_force_good_pass', $this->edit_mode_value ); else $this->ui_on_off('_force_good_pass', 0 ); ?>
|
||||
</p>
|
||||
|
||||
@@ -888,7 +888,7 @@ class UM_Admin_Metabox {
|
||||
case '_force_confirm_pass':
|
||||
?>
|
||||
|
||||
<p><label for="_force_confirm_pass">Automatically add a confirm password field? <?php $this->tooltip( __('Turn on to add a confirm password field. If turned on the confirm password field will only show on register forms and not on login forms.','ultimatemember') ); ?></label>
|
||||
<p><label for="_force_confirm_pass">Automatically add a confirm password field? <?php $this->tooltip( __('Turn on to add a confirm password field. If turned on the confirm password field will only show on register forms and not on login forms.','ultimate-member') ); ?></label>
|
||||
<?php if ( isset( $this->edit_mode_value ) ) $this->ui_on_off('_force_confirm_pass', $this->edit_mode_value ); else $this->ui_on_off('_force_confirm_pass', 1 ); ?>
|
||||
</p>
|
||||
|
||||
@@ -1252,7 +1252,7 @@ class UM_Admin_Metabox {
|
||||
case '_min':
|
||||
?>
|
||||
|
||||
<p><label for="_min">Minimum Number <?php $this->tooltip( __('Minimum number that can be entered in this field','ultimatemember') ); ?></label>
|
||||
<p><label for="_min">Minimum Number <?php $this->tooltip( __('Minimum number that can be entered in this field','ultimate-member') ); ?></label>
|
||||
<input type="text" name="_min" id="_min" value="<?php echo $this->edit_mode_value; ?>" />
|
||||
</p>
|
||||
|
||||
@@ -1262,7 +1262,7 @@ class UM_Admin_Metabox {
|
||||
case '_max':
|
||||
?>
|
||||
|
||||
<p><label for="_max">Maximum Number <?php $this->tooltip( __('Maximum number that can be entered in this field','ultimatemember') ); ?></label>
|
||||
<p><label for="_max">Maximum Number <?php $this->tooltip( __('Maximum number that can be entered in this field','ultimate-member') ); ?></label>
|
||||
<input type="text" name="_max" id="_max" value="<?php echo $this->edit_mode_value; ?>" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class UM_Admin_Notices {
|
||||
|
||||
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 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>', 'ultimate-member'), admin_url('options-general.php'), add_query_arg('um_adm_action', 'um_can_register_notice') );
|
||||
|
||||
echo '</p></div>';
|
||||
|
||||
@@ -59,7 +59,7 @@ class UM_Admin_Notices {
|
||||
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
||||
|
||||
echo sprintf(__( 'Exif is not enabled on your server. Mobile photo uploads will not be rotated correctly until you enable the exif extension. <a href="%s">Hide this notice</a>', 'ultimatemember' ), add_query_arg('um_adm_action', 'um_hide_exif_notice') );
|
||||
echo sprintf(__( 'Exif is not enabled on your server. Mobile photo uploads will not be rotated correctly until you enable the exif extension. <a href="%s">Hide this notice</a>', 'ultimate-member'), add_query_arg('um_adm_action', 'um_hide_exif_notice') );
|
||||
|
||||
echo '</p></div>';
|
||||
|
||||
@@ -81,20 +81,20 @@ class UM_Admin_Notices {
|
||||
}
|
||||
|
||||
if ( $err ) {
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('One or more of your Ultimate Member pages are not correctly setup. Please visit <strong>Ultimate Member > Settings</strong> to re-assign your missing pages.','ultimatemember') . '</p></div>';
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('One or more of your Ultimate Member pages are not correctly setup. Please visit <strong>Ultimate Member > Settings</strong> to re-assign your missing pages.','ultimate-member') . '</p></div>';
|
||||
}
|
||||
|
||||
if ( isset( $pages['user'] ) ) {
|
||||
$test = get_post( $pages['user'] );
|
||||
if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: User page can not be a child page.','ultimatemember') . '</p></div>';
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: User page can not be a child page.','ultimate-member') . '</p></div>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $pages['account'] ) ) {
|
||||
$test = get_post( $pages['account'] );
|
||||
if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: Account page can not be a child page.','ultimatemember') . '</p></div>';
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: Account page can not be a child page.','ultimate-member') . '</p></div>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ class UM_Admin_Notices {
|
||||
if ( !$hide_locale_notice ) {
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
||||
|
||||
echo sprintf(__('Your site language is <strong>%1$s</strong>. Good news! Ultimate Member is already available in <strong>%2$s language</strong>. <a href="%3$s">Download the translation</a> files and start using the plugin in your language now. <a href="%4$s">Hide this notice</a>','ultimatemember'), $locale, $ultimatemember->available_languages[$locale], $download_uri, add_query_arg('um_adm_action', 'um_hide_locale_notice') );
|
||||
echo sprintf(__('Your site language is <strong>%1$s</strong>. Good news! Ultimate Member is already available in <strong>%2$s language</strong>. <a href="%3$s">Download the translation</a> files and start using the plugin in your language now. <a href="%4$s">Hide this notice</a>','ultimate-member'), $locale, $ultimatemember->available_languages[$locale], $download_uri, add_query_arg('um_adm_action', 'um_hide_locale_notice') );
|
||||
|
||||
echo '</p></div>';
|
||||
}
|
||||
@@ -138,7 +138,7 @@ class UM_Admin_Notices {
|
||||
|
||||
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
|
||||
|
||||
echo sprintf(__('Ultimate Member has not yet been translated to your langeuage: <strong>%1$s</strong>. If you have translated the plugin you need put these files <code>ultimatemember-%1$s.po and ultimatemember-%1$s.mo</code> in <strong>/wp-content/languages/plugins/</strong> for the plugin to be translated in your language. <a href="%2$s">Hide this notice</a>','ultimatemember'), $locale, add_query_arg('um_adm_action', 'um_hide_locale_notice') );
|
||||
echo sprintf(__('Ultimate Member has not yet been translated to your langeuage: <strong>%1$s</strong>. If you have translated the plugin you need put these files <code>ultimatemember-%1$s.po and ultimatemember-%1$s.mo</code> in <strong>/wp-content/languages/plugins/</strong> for the plugin to be translated in your language. <a href="%2$s">Hide this notice</a>','ultimate-member'), $locale, add_query_arg('um_adm_action', 'um_hide_locale_notice') );
|
||||
|
||||
echo '</p></div>';
|
||||
|
||||
@@ -175,42 +175,42 @@ class UM_Admin_Notices {
|
||||
|
||||
$ignore = admin_url('users.php');
|
||||
|
||||
$messages[0]['err_content'] = sprintf(__('Are you sure you want to delete the selected user(s)? The following users will be deleted: <p>%s</p> <strong>This cannot be undone!</strong>','ultimatemember'), $users);
|
||||
$messages[0]['err_content'] .= '<p><a href="'. esc_html( $confirm_uri ) .'" class="button-primary">' . __('Remove','ultimatemember') . '</a> <a href="'.$ignore.'" class="button">' . __('Undo','ultimatemember') . '</a></p>';
|
||||
$messages[0]['err_content'] = sprintf(__('Are you sure you want to delete the selected user(s)? The following users will be deleted: <p>%s</p> <strong>This cannot be undone!</strong>','ultimate-member'), $users);
|
||||
$messages[0]['err_content'] .= '<p><a href="'. esc_html( $confirm_uri ) .'" class="button-primary">' . __('Remove','ultimate-member') . '</a> <a href="'.$ignore.'" class="button">' . __('Undo','ultimate-member') . '</a></p>';
|
||||
|
||||
break;
|
||||
|
||||
case 'language_updated':
|
||||
$messages[0]['content'] = __('Your translation files have been updated successfully.','ultimatemember');
|
||||
$messages[0]['content'] = __('Your translation files have been updated successfully.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'purged_temp':
|
||||
$messages[0]['content'] = __('Your temp uploads directory is now clean.','ultimatemember');
|
||||
$messages[0]['content'] = __('Your temp uploads directory is now clean.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'cleared_cache':
|
||||
$messages[0]['content'] = __('Your user cache is now removed.','ultimatemember');
|
||||
$messages[0]['content'] = __('Your user cache is now removed.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'form_duplicated':
|
||||
$messages[0]['content'] = __('The form has been duplicated successfully.','ultimatemember');
|
||||
$messages[0]['content'] = __('The form has been duplicated successfully.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'user_updated':
|
||||
$messages[0]['content'] = __('User has been updated.','ultimatemember');
|
||||
$messages[0]['content'] = __('User has been updated.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'users_updated':
|
||||
$messages[0]['content'] = __('Users have been updated.','ultimatemember');
|
||||
$messages[0]['content'] = __('Users have been updated.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'users_role_updated':
|
||||
$messages[0]['content'] = __('Changed roles.','ultimatemember');
|
||||
$messages[0]['content'] = __('Changed roles.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'err_users_updated':
|
||||
$messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimatemember');
|
||||
$messages[1]['content'] = __('Other users have been updated.','ultimatemember');
|
||||
$messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimate-member');
|
||||
$messages[1]['content'] = __('Other users have been updated.','ultimate-member');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -52,12 +52,12 @@
|
||||
|
||||
$this->args = array(
|
||||
'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name.
|
||||
'display_name' => __('Ultimate Member', 'ultimatemember'), // Name that appears at the top of your panel
|
||||
'display_name' => __('Ultimate Member', 'ultimate-member'), // Name that appears at the top of your panel
|
||||
'display_version' => ultimatemember_version, // Version that appears at the top of your panel
|
||||
'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
|
||||
'allow_sub_menu' => false, // Show the sections below the admin menu item or not
|
||||
'menu_title' => __('Settings', 'ultimatemember'),
|
||||
'page_title' => __('Settings', 'ultimatemember'),
|
||||
'menu_title' => __('Settings', 'ultimate-member'),
|
||||
'page_title' => __('Settings', 'ultimate-member'),
|
||||
|
||||
'google_api_key' => '', // Must be defined to add google fonts to the typography module
|
||||
'async_typography' => true, // Use a asynchronous font on the front end or font string
|
||||
|
||||
@@ -29,10 +29,10 @@ class UM_Admin_Roles {
|
||||
$admin = new UM_Admin_Metabox();
|
||||
|
||||
$new_columns['cb'] = '<input type="checkbox" />';
|
||||
$new_columns['title'] = __('Role Title','ultimatemember');
|
||||
$new_columns['count'] = __('No. of Members','ultimatemember') . $admin->_tooltip( __('The total number of members who have this role on your site','ultimatemember') );
|
||||
$new_columns['core'] = __('Core / Built-in','ultimatemember') . $admin->_tooltip( __('A core role is installed by default and may not be removed','ultimatemember') );
|
||||
$new_columns['has_wpadmin_perm'] = __('WP-Admin Access','ultimatemember') . $admin->_tooltip( __('Let you know If users of this role can view the WordPress backend or not','ultimatemember') );
|
||||
$new_columns['title'] = __('Role Title','ultimate-member');
|
||||
$new_columns['count'] = __('No. of Members','ultimate-member') . $admin->_tooltip( __('The total number of members who have this role on your site','ultimate-member') );
|
||||
$new_columns['core'] = __('Core / Built-in','ultimate-member') . $admin->_tooltip( __('A core role is installed by default and may not be removed','ultimate-member') );
|
||||
$new_columns['has_wpadmin_perm'] = __('WP-Admin Access','ultimate-member') . $admin->_tooltip( __('Let you know If users of this role can view the WordPress backend or not','ultimate-member') );
|
||||
|
||||
return $new_columns;
|
||||
|
||||
@@ -55,9 +55,9 @@ class UM_Admin_Roles {
|
||||
}
|
||||
$data = $ultimatemember->query->role_data($role);
|
||||
if ( isset( $data['can_access_wpadmin'] ) && $data['can_access_wpadmin'] == 1 ){
|
||||
echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('This role can access the WordPress backend','ultimatemember').'"><i class="um-faicon-check"></i></span>';
|
||||
echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('This role can access the WordPress backend','ultimate-member').'"><i class="um-faicon-check"></i></span>';
|
||||
} else {
|
||||
echo __('No','ultimatemember');
|
||||
echo __('No','ultimate-member');
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -73,7 +73,7 @@ class UM_Admin_Roles {
|
||||
|
||||
case 'core':
|
||||
if ( $ultimatemember->query->is_core( $id ) ) {
|
||||
echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('Core','ultimatemember').'"><i class="um-faicon-check"></i></span>';
|
||||
echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('Core','ultimate-member').'"><i class="um-faicon-check"></i></span>';
|
||||
} else {
|
||||
echo '—';
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@ class UM_Admin_Users {
|
||||
$user_id = $user_object->ID;
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
$actions['frontend_profile'] = "<a class='' href='" . um_user_profile_url() . "'>" . __( 'View profile','ultimatemember') . "</a>";
|
||||
$actions['frontend_profile'] = "<a class='' href='" . um_user_profile_url() . "'>" . __( 'View profile','ultimate-member') . "</a>";
|
||||
|
||||
if ( um_user('submitted') ) {
|
||||
$actions['view_info'] = '<a href="#" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration">' . __('Info','ultimatemember') . '</a>';
|
||||
$actions['view_info'] = '<a href="#" data-modal="UM_preview_registration" data-modal-size="smaller" data-dynamic-content="um_admin_review_registration" data-arg1="'.$user_id.'" data-arg2="edit_registration">' . __('Info','ultimate-member') . '</a>';
|
||||
}
|
||||
|
||||
$actions = apply_filters('um_admin_user_row_actions', $actions, $user_id );
|
||||
@@ -126,11 +126,11 @@ class UM_Admin_Users {
|
||||
}
|
||||
|
||||
$status = array(
|
||||
'approved' => __('Approved','ultimatemember'),
|
||||
'awaiting_admin_review' => __('Pending review','ultimatemember'),
|
||||
'awaiting_email_confirmation' => __('Waiting e-mail confirmation','ultimatemember'),
|
||||
'inactive' => __('Inactive','ultimatemember'),
|
||||
'rejected' => __('Rejected','ultimatemember')
|
||||
'approved' => __('Approved','ultimate-member'),
|
||||
'awaiting_admin_review' => __('Pending review','ultimate-member'),
|
||||
'awaiting_email_confirmation' => __('Waiting e-mail confirmation','ultimate-member'),
|
||||
'inactive' => __('Inactive','ultimate-member'),
|
||||
'rejected' => __('Rejected','ultimate-member')
|
||||
);
|
||||
|
||||
$ultimatemember->query->count_users_by_status( 'unassigned' );
|
||||
@@ -175,7 +175,7 @@ class UM_Admin_Users {
|
||||
if (isset($_REQUEST['users']) && is_array($_REQUEST['users']) && isset($_REQUEST['um_changeit']) && $_REQUEST['um_changeit'] != '' && isset($_REQUEST['um_change_role']) && !empty($_REQUEST['um_change_role']) ){
|
||||
|
||||
if ( ! current_user_can( 'edit_users' ) )
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
|
||||
|
||||
check_admin_referer('bulk-users');
|
||||
|
||||
@@ -233,7 +233,7 @@ class UM_Admin_Users {
|
||||
if ( isset($_REQUEST['users']) && is_array($_REQUEST['users']) && isset($_REQUEST['um_bulkedit']) && $_REQUEST['um_bulkedit'] != '' && isset($_REQUEST['um_bulk_action']) && !empty($_REQUEST['um_bulk_action']) ){
|
||||
|
||||
if ( ! current_user_can( 'edit_users' ) )
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
|
||||
|
||||
check_admin_referer('bulk-users');
|
||||
|
||||
@@ -304,9 +304,9 @@ class UM_Admin_Users {
|
||||
|
||||
<div style="float:right;margin:0 4px">
|
||||
|
||||
<label class="screen-reader-text" for="um_filter_role"><?php _e('Filter by','ultimatemember'); ?></label>
|
||||
<label class="screen-reader-text" for="um_filter_role"><?php _e('Filter by','ultimate-member'); ?></label>
|
||||
<select name="um_filter_role[]" id="um_filter_role" class="" style="width: 120px">
|
||||
<option value="0"><?php _e('Filter by','ultimatemember'); ?></option>
|
||||
<option value="0"><?php _e('Filter by','ultimate-member'); ?></option>
|
||||
<?php
|
||||
$roles = $ultimatemember->query->get_roles();
|
||||
$um_filter_role = '';
|
||||
@@ -325,9 +325,9 @@ class UM_Admin_Users {
|
||||
|
||||
<div style="float:right;margin:0 4px">
|
||||
|
||||
<label class="screen-reader-text" for="um_bulk_action"><?php _e('UM Action','ultimatemember'); ?></label>
|
||||
<label class="screen-reader-text" for="um_bulk_action"><?php _e('UM Action','ultimate-member'); ?></label>
|
||||
<select name="um_bulk_action[]" id="um_bulk_action" class="" style="width: 200px">
|
||||
<option value="0"><?php _e('UM Action','ultimatemember'); ?></option>
|
||||
<option value="0"><?php _e('UM Action','ultimate-member'); ?></option>
|
||||
<?php echo $ultimatemember->user->get_bulk_admin_actions(); ?>
|
||||
</select>
|
||||
|
||||
@@ -337,14 +337,14 @@ class UM_Admin_Users {
|
||||
|
||||
<div style="float:right;margin:0 4px">
|
||||
|
||||
<label class="screen-reader-text" for="um_change_role"><?php _e('Community role…','ultimatemember'); ?></label>
|
||||
<label class="screen-reader-text" for="um_change_role"><?php _e('Community role…','ultimate-member'); ?></label>
|
||||
<select name="um_change_role[]" id="um_change_role" class="" style="width: 160px">
|
||||
<?php foreach($ultimatemember->query->get_roles( $add_default = 'Community role…' ) as $key => $value) { ?>
|
||||
<option value="<?php echo $key; ?>"><?php echo $value; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
<input name="um_changeit" id="um_changeit" class="button" value="<?php _e('Change','ultimatemember'); ?>" type="submit" />
|
||||
<input name="um_changeit" id="um_changeit" class="button" value="<?php _e('Change','ultimate-member'); ?>" type="submit" />
|
||||
|
||||
</div>
|
||||
|
||||
@@ -363,7 +363,7 @@ class UM_Admin_Users {
|
||||
|
||||
$admin = new UM_Admin_Metabox();
|
||||
|
||||
$columns['um_role'] = __('Community Role','ultimatemember') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimatemember') );
|
||||
$columns['um_role'] = __('Community Role','ultimate-member') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimate-member') );
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
?>
|
||||
|
||||
<h4><?php _e('Apply custom access settings?','ultimatemember'); ?> <?php $this->tooltip( __('Switch to yes to override global access settings','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><?php _e('Apply custom access settings?','ultimate-member'); ?> <?php $this->tooltip( __('Switch to yes to override global access settings','ultimate-member'), 'e'); ?></h4>
|
||||
|
||||
<p>
|
||||
<span><?php $metabox->ui_on_off('_um_custom_access_settings', 0, true, 1, '_um_custom_access_settings', 'xxx'); ?> </span>
|
||||
@@ -14,15 +14,15 @@
|
||||
|
||||
<div class="_um_custom_access_settings">
|
||||
|
||||
<h4><?php _e('Content Availability','ultimatemember'); ?> <?php $this->tooltip( __('Who can access this content?','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><?php _e('Content Availability','ultimate-member'); ?> <?php $this->tooltip( __('Who can access this content?','ultimate-member'), 'e'); ?></h4>
|
||||
|
||||
<p class="um-conditional-radio-group description" data-cond1="2" data-cond1-show="um-admin-access-roles" data-cond2="1" data-cond2-show="um-admin-access-loggedout">
|
||||
|
||||
<?php $value = get_post_meta($post->ID, '_um_accessible', true); ?>
|
||||
|
||||
<label><input type="radio" name="_um_accessible" value="0" <?php if (!isset($value) || $value == 0 ) echo 'checked="checked"'; ?> /> <?php _e('Content accessible to Everyone','ultimatemember'); ?></label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="1" <?php if (isset($value)) checked(1, $value); ?> /> <?php _e('Content accessible to Logged Out Users','ultimatemember'); ?></label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="2" <?php if (isset($value)) checked(2, $value); ?> /> <?php _e('Content accessible to Logged In Users','ultimatemember'); ?></label>
|
||||
<label><input type="radio" name="_um_accessible" value="0" <?php if (!isset($value) || $value == 0 ) echo 'checked="checked"'; ?> /> <?php _e('Content accessible to Everyone','ultimate-member'); ?></label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="1" <?php if (isset($value)) checked(1, $value); ?> /> <?php _e('Content accessible to Logged Out Users','ultimate-member'); ?></label><br />
|
||||
<label><input type="radio" name="_um_accessible" value="2" <?php if (isset($value)) checked(2, $value); ?> /> <?php _e('Content accessible to Logged In Users','ultimate-member'); ?></label>
|
||||
|
||||
<?php do_action( 'um_admin_extend_access_settings' ); ?>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
<div class="um-admin-access-loggedout">
|
||||
|
||||
<h4><label for="_um_access_redirect2"><?php _e('Redirect URL','ultimatemember'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><label for="_um_access_redirect2"><?php _e('Redirect URL','ultimate-member'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimate-member'), 'e'); ?></h4>
|
||||
|
||||
<p class="description">
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
<div class="um-admin-access-roles">
|
||||
|
||||
<h4><?php _e('Select the member roles that can see this content?','ultimatemember'); ?> <?php $this->tooltip( __('If you do not select any role, all members will be able to view this content','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><?php _e('Select the member roles that can see this content?','ultimate-member'); ?> <?php $this->tooltip( __('If you do not select any role, all members will be able to view this content','ultimate-member'), 'e'); ?></h4>
|
||||
|
||||
<p class="description">
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
</p>
|
||||
|
||||
<h4><label for="_um_access_redirect"><?php _e('Redirect URL','ultimatemember'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimatemember'), 'e'); ?></h4>
|
||||
<h4><label for="_um_access_redirect"><?php _e('Redirect URL','ultimate-member'); ?></label> <?php $this->tooltip( __('This is the URL that user is redirected to If he is not permitted to view this content','ultimate-member'), 'e'); ?></h4>
|
||||
|
||||
<p class="description">
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<p><?php printf(__('Ultimate Member is not yet available in your language: <strong>%1$s</strong>.','ultimatemember'), $locale); ?></p>
|
||||
<p><?php printf(__('Ultimate Member is not yet available in your language: <strong>%1$s</strong>.','ultimate-member'), $locale); ?></p>
|
||||
|
||||
<p><?php _e('If you want to contribute this translation to the plugin, please add it on our <a href="https://ultimatemember.com/forums/">community forum</a>.','ultimatemember'); ?></p>
|
||||
<p><?php _e('If you want to contribute this translation to the plugin, please add it on our <a href="https://ultimatemember.com/forums/">community forum</a>.','ultimate-member'); ?></p>
|
||||
@@ -1,3 +1,3 @@
|
||||
<p><?php printf(__('Ultimate Member is available in your language: <strong>%1$s (%2$s)</strong>.','ultimatemember'), $ultimatemember->available_languages[$locale], $locale); ?></p>
|
||||
<p><?php printf(__('Ultimate Member is available in your language: <strong>%1$s (%2$s)</strong>.','ultimate-member'), $ultimatemember->available_languages[$locale], $locale); ?></p>
|
||||
|
||||
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Download Translation','ultimatemember'); ?></a></p>
|
||||
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Download Translation','ultimate-member'); ?></a></p>
|
||||
@@ -1,3 +1,3 @@
|
||||
<p><?php printf(__('You are currently using Ultimate Member in your language: <strong>%1$s (%2$s)</strong>.','ultimatemember'), $ultimatemember->available_languages[$locale], $locale); ?></p>
|
||||
<p><?php printf(__('You are currently using Ultimate Member in your language: <strong>%1$s (%2$s)</strong>.','ultimate-member'), $ultimatemember->available_languages[$locale], $locale); ?></p>
|
||||
|
||||
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Force Update Translation','ultimatemember'); ?></a></p>
|
||||
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Force Update Translation','ultimate-member'); ?></a></p>
|
||||
@@ -4,17 +4,17 @@
|
||||
|
||||
<tr class="first">
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php'); ?>"><?php echo $ultimatemember->query->count_users(); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php'); ?>"><?php _e('Users','ultimatemember'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php'); ?>"><?php _e('Users','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php echo $ultimatemember->query->count_users_by_status('approved'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php _e('Approved','ultimatemember'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php _e('Approved','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php echo $ultimatemember->query->count_users_by_status('rejected'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php _e('Rejected','ultimatemember'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php _e('Rejected','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
@@ -27,17 +27,17 @@
|
||||
|
||||
<tr class="first">
|
||||
<td class="b"><a href="<?php echo admin_url('users.php?status=awaiting_admin_review'); ?>"><?php echo $ultimatemember->query->count_users_by_status('awaiting_admin_review'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_admin_review'); ?>" class="warning"><?php _e('Pending Review','ultimatemember'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_admin_review'); ?>" class="warning"><?php _e('Pending Review','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="b"><a href="<?php echo admin_url('users.php?status=awaiting_email_confirmation'); ?>"><?php echo $ultimatemember->query->count_users_by_status('awaiting_email_confirmation'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_email_confirmation'); ?>" class="warning"><?php _e('Awaiting E-mail Confirmation','ultimatemember'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_email_confirmation'); ?>" class="warning"><?php _e('Awaiting E-mail Confirmation','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php echo $ultimatemember->query->count_users_by_status('inactive'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php _e('Inactive','ultimatemember'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php _e('Inactive','ultimate-member'); ?></a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p><label for="_um_directory_template"><?php _e('Template','ultimatemember'); ?></label>
|
||||
<p><label for="_um_directory_template"><?php _e('Template','ultimate-member'); ?></label>
|
||||
<select name="_um_directory_template" id="_um_directory_template" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->shortcodes->get_templates( 'members' ) as $key => $value) { ?>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<input type="hidden" name="_um_mode" id="_um_mode" value="directory" />
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('User Roles to Display','ultimatemember'); ?> <?php $this->tooltip('If you do not want to show all members, select only user roles to appear in this directory'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('User Roles to Display','ultimate-member'); ?> <?php $this->tooltip('If you do not want to show all members, select only user roles to appear in this directory'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select multiple="multiple" name="_um_roles[]" id="_um_roles" class="umaf-selectjs" style="width: 300px">
|
||||
@@ -34,7 +34,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Only show members who have uploaded a profile photo','ultimatemember'); ?><?php $this->tooltip('If \'Use Gravatars\' as profile photo is enabled, this option is ignored'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Only show members who have uploaded a profile photo','ultimate-member'); ?><?php $this->tooltip('If \'Use Gravatars\' as profile photo is enabled, this option is ignored'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_has_profile_photo'); ?>
|
||||
@@ -43,7 +43,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Only show members who have uploaded a cover photo','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Only show members who have uploaded a cover photo','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_has_cover_photo'); ?>
|
||||
@@ -52,18 +52,18 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Sort users by','ultimatemember'); ?> <?php $this->tooltip('Sort users by a specific parameter in the directory'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Sort users by','ultimate-member'); ?> <?php $this->tooltip('Sort users by a specific parameter in the directory'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_sortby" id="_um_sortby" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1='other' data-cond1-show='custom-field'>
|
||||
<option value="user_registered_desc" <?php selected('user_registered_desc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('New users first','ultimatemember'); ?></option>
|
||||
<option value="user_registered_asc" <?php selected('user_registered_asc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Old users first','ultimatemember'); ?></option>
|
||||
<option value="last_login" <?php selected('last_login', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last login','ultimatemember'); ?></option>
|
||||
<option value="display_name" <?php selected('display_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Display Name','ultimatemember'); ?></option>
|
||||
<option value="first_name" <?php selected('first_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('First Name','ultimatemember'); ?></option>
|
||||
<option value="last_name" <?php selected('last_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last Name','ultimatemember'); ?></option>
|
||||
<option value="random" <?php selected('random', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Random','ultimatemember'); ?></option>
|
||||
<option value="other" <?php selected('other', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Other (custom field)','ultimatemember'); ?></option>
|
||||
<option value="user_registered_desc" <?php selected('user_registered_desc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('New users first','ultimate-member'); ?></option>
|
||||
<option value="user_registered_asc" <?php selected('user_registered_asc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Old users first','ultimate-member'); ?></option>
|
||||
<option value="last_login" <?php selected('last_login', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last login','ultimate-member'); ?></option>
|
||||
<option value="display_name" <?php selected('display_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Display Name','ultimate-member'); ?></option>
|
||||
<option value="first_name" <?php selected('first_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('First Name','ultimate-member'); ?></option>
|
||||
<option value="last_name" <?php selected('last_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last Name','ultimate-member'); ?></option>
|
||||
<option value="random" <?php selected('random', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Random','ultimate-member'); ?></option>
|
||||
<option value="other" <?php selected('other', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Other (custom field)','ultimate-member'); ?></option>
|
||||
<?php do_action('um_admin_directory_sort_users_select', '_um_sortby'); ?>
|
||||
</select>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="custom-field">
|
||||
<label class="um-admin-half"><?php _e('Meta key','ultimatemember'); ?> <?php $this->tooltip('To sort by a custom field, enter the meta key of field here'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Meta key','ultimate-member'); ?> <?php $this->tooltip('To sort by a custom field, enter the meta key of field here'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_sortby_custom" id="_um_sortby_custom" value="<?php echo $ultimatemember->query->get_meta_value('_um_sortby_custom', null, 'na' ); ?>" />
|
||||
@@ -80,7 +80,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Only show specific users (Enter one username per line)','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Only show specific users (Enter one username per line)','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<textarea name="_um_show_these_users" id="_um_show_these_users"><?php echo $show_these_users; ?></textarea>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Number of profiles per page','ultimatemember'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for standard users') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Number of profiles per page','ultimate-member'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for standard users') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_profiles_per_page" id="_um_profiles_per_page" value="<?php echo $ultimatemember->query->get_meta_value('_um_profiles_per_page', null, 12); ?>" class="small" />
|
||||
@@ -12,7 +12,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Number of profiles per page (for Mobiles & Tablets)','ultimatemember'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for mobile users') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Number of profiles per page (for Mobiles & Tablets)','ultimate-member'); ?> <?php $this->tooltip( __('Number of profiles to appear on page for mobile users') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_profiles_per_page_mobile" id="_um_profiles_per_page_mobile" value="<?php echo $ultimatemember->query->get_meta_value('_um_profiles_per_page_mobile', null, 8); ?>" class="small" />
|
||||
@@ -21,7 +21,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Maximum number of profiles','ultimatemember'); ?> <?php $this->tooltip( __('Use this setting to control the maximum number of profiles to appear in this directory. Leave blank to disable this limit','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Maximum number of profiles','ultimate-member'); ?> <?php $this->tooltip( __('Use this setting to control the maximum number of profiles to appear in this directory. Leave blank to disable this limit','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_max_users" id="_um_max_users" value="<?php echo $ultimatemember->query->get_meta_value('_um_max_users', null, 'na' ); ?>" class="small" />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Enable Profile Photo','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Enable Profile Photo','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_photo', 1); ?>
|
||||
@@ -12,7 +12,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Enable Cover Photo','ultimatemember'); ?> <?php $this->tooltip('If turned on, the users cover photo will appear in the directory'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Enable Cover Photo','ultimate-member'); ?> <?php $this->tooltip('If turned on, the users cover photo will appear in the directory'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_cover_photos', 1); ?>
|
||||
@@ -21,7 +21,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Show display name','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Show display name','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_show_name', 1, true, 1, 'name-options', 'xxx'); ?>
|
||||
@@ -30,7 +30,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Show tagline below profile name','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Show tagline below profile name','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_show_tagline', 0, true, 1, 'tagline-options', 'xxx'); ?>
|
||||
@@ -39,7 +39,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="tagline-options">
|
||||
<label class=""><?php _e('Choose field(s) to display in tagline','ultimatemember'); ?></label>
|
||||
<label class=""><?php _e('Choose field(s) to display in tagline','ultimate-member'); ?></label>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Show extra user information below tagline?','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Show extra user information below tagline?','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_show_userinfo', 0, true, 1, 'reveal-options', 'xxx'); ?>
|
||||
@@ -96,7 +96,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="reveal-options">
|
||||
<label class="um-admin-half"><?php _e('Enable reveal section transition by default','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Enable reveal section transition by default','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_userinfo_animate', 1); ?>
|
||||
@@ -105,7 +105,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="reveal-options">
|
||||
<label class=""><?php _e('Choose field(s) to display in reveal section','ultimatemember'); ?></label>
|
||||
<label class=""><?php _e('Choose field(s) to display in reveal section','ultimate-member'); ?></label>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="reveal-options">
|
||||
<label class="um-admin-half"><?php _e('Show social connect icons','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Show social connect icons','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_show_social', 0); ?>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p><label for="_um_css_profile_card_bg"><?php _e('Profile card background','ultimatemember'); ?></label>
|
||||
<p><label for="_um_css_profile_card_bg"><?php _e('Profile card background','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_css_profile_card_bg', null, 'na'); ?>" class="um-admin-colorpicker" name="_um_css_profile_card_bg" id="_um_css_profile_card_bg" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_css_profile_card_text"><?php _e('Profile card text','ultimatemember'); ?></label>
|
||||
<p><label for="_um_css_profile_card_text"><?php _e('Profile card text','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_css_profile_card_text', null, 'na'); ?>" class="um-admin-colorpicker" name="_um_css_profile_card_text" id="_um_css_profile_card_text" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_css_card_bordercolor"><?php _e('Profile card border color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_css_card_bordercolor"><?php _e('Profile card border color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_css_card_bordercolor', null, 'na'); ?>" class="um-admin-colorpicker" name="_um_css_card_bordercolor" id="_um_css_card_bordercolor" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_css_img_bordercolor"><?php _e('Profile photo border color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_css_img_bordercolor"><?php _e('Profile photo border color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_css_img_bordercolor', null, 'na'); ?>" class="um-admin-colorpicker" name="_um_css_img_bordercolor" id="_um_css_img_bordercolor" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_css_card_thickness"><?php _e('Profile card border thickness','ultimatemember'); ?></label>
|
||||
<p><label for="_um_css_card_thickness"><?php _e('Profile card border thickness','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_css_card_thickness', null, '1px'); ?>" name="_um_css_card_thickness" id="_um_css_card_thickness" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Enable Search feature','ultimatemember'); ?> <?php $this->tooltip('If turned on, users will be able to search members in this directory'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Enable Search feature','ultimate-member'); ?> <?php $this->tooltip('If turned on, users will be able to search members in this directory'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_search', 0, true, 1, 'search-options', 'xxx'); ?>
|
||||
@@ -12,7 +12,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class="um-admin-half"><?php _e('Show results only after search','ultimatemember'); ?> <?php $this->tooltip('If turned on, member results will only appear after search is performed'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Show results only after search','ultimate-member'); ?> <?php $this->tooltip('If turned on, member results will only appear after search is performed'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_must_search', 0); ?>
|
||||
@@ -21,7 +21,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class="um-admin-half"><?php _e('User Roles that can use search','ultimatemember'); ?> <?php $this->tooltip('If you want to allow specific user roles to be able to search only'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('User Roles that can use search','ultimate-member'); ?> <?php $this->tooltip('If you want to allow specific user roles to be able to search only'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select multiple="multiple" name="_um_roles_can_search[]" id="_um_roles_can_search" class="umaf-selectjs" style="width: 300px">
|
||||
@@ -34,7 +34,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class=""><?php _e('Choose field(s) to enable in search','ultimatemember'); ?></label>
|
||||
<label class=""><?php _e('Choose field(s) to enable in search','ultimate-member'); ?></label>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -86,28 +86,28 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class="um-admin-half"><?php _e('Results Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Results Text','ultimate-member'); ?> <?php $this->tooltip( __('Customize the search result text . e.g. Found 3,000 Members. Leave this blank to not show result text','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_directory_header" id="_um_directory_header" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header', null, __('{total_users} Members','ultimatemember') ); ?>" />
|
||||
<input type="text" name="_um_directory_header" id="_um_directory_header" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header', null, __('{total_users} Members','ultimate-member') ); ?>" />
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class="um-admin-half"><?php _e('Single Result Text','ultimatemember'); ?> <?php $this->tooltip( __('Same as above but in case of 1 user found only','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Single Result Text','ultimate-member'); ?> <?php $this->tooltip( __('Same as above but in case of 1 user found only','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_directory_header_single" id="_um_directory_header_single" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header_single', null, __('{total_users} Member','ultimatemember') ); ?>" />
|
||||
<input type="text" name="_um_directory_header_single" id="_um_directory_header_single" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_header_single', null, __('{total_users} Member','ultimate-member') ); ?>" />
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="search-options">
|
||||
<label class="um-admin-half"><?php _e('Custom text if no users were found','ultimatemember'); ?> <?php $this->tooltip('This is the text that is displayed if no users are found during a search'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Custom text if no users were found','ultimate-member'); ?> <?php $this->tooltip('This is the text that is displayed if no users are found during a search'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" name="_um_directory_no_users" id="_um_directory_no_users" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_no_users', null, __('We are sorry. We cannot find any users who match your search criteria.','ultimatemember') ); ?>" />
|
||||
<input type="text" name="_um_directory_no_users" id="_um_directory_no_users" value="<?php echo $ultimatemember->query->get_meta_value('_um_directory_no_users', null, __('We are sorry. We cannot find any users who match your search criteria.','ultimate-member') ); ?>" />
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="um-admin-drag-ctrls-demo um-admin-drag-ctrls">
|
||||
|
||||
<a href="#" class="active" data-modal="UM_preview_form" data-modal-size="smaller" data-dynamic-content="um_admin_preview_form" data-arg1="<?php the_ID(); ?>" data-arg2=""><?php _e('Live Preview','ultimatemember'); ?></a>
|
||||
<a href="#" class="active" data-modal="UM_preview_form" data-modal-size="smaller" data-dynamic-content="um_admin_preview_form" data-arg1="<?php the_ID(); ?>" data-arg2=""><?php _e('Live Preview','ultimate-member'); ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-admin-drag-addrow um-admin-tipsy-n" title="<?php _e('Add Master Row','ultimatemember'); ?>" data-row_action="add_row"><i class="um-icon-plus"></i></div>
|
||||
<div class="um-admin-drag-addrow um-admin-tipsy-n" title="<?php _e('Add Master Row','ultimate-member'); ?>" data-row_action="add_row"><i class="um-icon-plus"></i></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Custom CSS','ultimatemember'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimatemember'), 'e'); ?></label>
|
||||
<label><?php _e('Custom CSS','ultimate-member'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimate-member'), 'e'); ?></label>
|
||||
<textarea name="_um_login_custom_css" id="_um_login_custom_css" class="tall"><?php echo $ultimatemember->query->get_meta_value('_um_login_custom_css', null, 'na' ); ?></textarea>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Use global settings?','ultimatemember'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling & appearance', 'e'); ?></label>
|
||||
<label><?php _e('Use global settings?','ultimate-member'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling & appearance', 'e'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_login_use_globals', 1, true, 1, 'xxx', 'login-customize'); ?>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="login-customize">
|
||||
|
||||
<p><label for="_um_login_template"><?php _e('Template','ultimatemember'); ?></label>
|
||||
<p><label for="_um_login_template"><?php _e('Template','ultimate-member'); ?></label>
|
||||
<select name="_um_login_template" id="_um_login_template" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->shortcodes->get_templates( 'login' ) as $key => $value) { ?>
|
||||
@@ -23,11 +23,11 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<p><label for="_um_login_max_width"><?php _e('Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_max_width', null, um_get_option('login_max_width') ); ?>" name="_um_login_max_width" id="_um_login_max_width" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_align"><?php _e('Alignment','ultimatemember'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<p><label for="_um_login_align"><?php _e('Alignment','ultimate-member'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<select name="_um_login_align" id="_um_login_align" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_login_align', null, um_get_option('login_align') ) ); ?>>Centered</option>
|
||||
@@ -37,7 +37,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_icons"><?php _e('Field Icons','ultimatemember'); ?> <?php $this->tooltip('Whether to show field icons and where to show them relative to the field', 'e'); ?></label>
|
||||
<p><label for="_um_login_icons"><?php _e('Field Icons','ultimate-member'); ?> <?php $this->tooltip('Whether to show field icons and where to show them relative to the field', 'e'); ?></label>
|
||||
<select name="_um_login_icons" id="_um_login_icons" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="field" <?php selected('field', $ultimatemember->query->get_meta_value('_um_login_icons', null, um_get_option('login_icons') ) ); ?>>Show inside text field</option>
|
||||
@@ -47,24 +47,24 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<p><label for="_um_login_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_primary_btn_word', null, um_get_option('login_primary_btn_word') ); ?>" name="_um_login_primary_btn_word" id="_um_login_primary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_primary_btn_color"><?php _e('Primary Button Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button color', 'e'); ?></label>
|
||||
<p><label for="_um_login_primary_btn_color"><?php _e('Primary Button Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_primary_btn_color', null, um_get_option('primary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_login_primary_btn_color" id="_um_login_primary_btn_color" data-default-color="<?php echo um_get_option('primary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button hover color', 'e'); ?></label>
|
||||
<p><label for="_um_login_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button hover color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_primary_btn_hover', null, um_get_option('primary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_login_primary_btn_hover" id="_um_login_primary_btn_hover" data-default-color="<?php echo um_get_option('primary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_login_primary_btn_text"><?php _e('Primary Button Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button text color', 'e'); ?></label>
|
||||
<p><label for="_um_login_primary_btn_text"><?php _e('Primary Button Text Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button text color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_primary_btn_text', null, um_get_option('primary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_login_primary_btn_text" id="_um_login_primary_btn_text" data-default-color="<?php echo um_get_option('primary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show Secondary Button','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_login_secondary_btn', um_get_option('login_secondary_btn'), true, 1, 'login-secondary-btn', 'xxx'); ?>
|
||||
@@ -72,24 +72,24 @@
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_word"><?php _e('Secondary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_word"><?php _e('Secondary Button Text','ultimate-member'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_secondary_btn_word', null, um_get_option('login_secondary_btn_word') ); ?>" name="_um_login_secondary_btn_word" id="_um_login_secondary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_color"><?php _e('Secondary Button Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button color', 'e'); ?></label>
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_color"><?php _e('Secondary Button Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_secondary_btn_color', null, um_get_option('secondary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_login_secondary_btn_color" id="_um_login_secondary_btn_color" data-default-color="<?php echo um_get_option('secondary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button hover color', 'e'); ?></label>
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button hover color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_secondary_btn_hover', null, um_get_option('secondary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_login_secondary_btn_hover" id="_um_login_secondary_btn_hover" data-default-color="<?php echo um_get_option('secondary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button text color', 'e'); ?></label>
|
||||
<p class="login-secondary-btn"><label for="_um_login_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button text color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_secondary_btn_text', null, um_get_option('secondary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_login_secondary_btn_text" id="_um_login_secondary_btn_text" data-default-color="<?php echo um_get_option('secondary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show Forgot Password Link?','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show Forgot Password Link?','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_login_forgot_pass_link', um_get_option('login_forgot_pass_link') ); ?>
|
||||
@@ -98,7 +98,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show "Remember Me"?','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show "Remember Me"?','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_login_show_rememberme', um_get_option('login_show_rememberme') ); ?>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p><label for="_um_login_after_login"><?php _e('Redirection after Login','ultimatemember'); ?> <?php $this->tooltip('Change this If you want to override role redirection settings after login only.', 'e'); ?></label>
|
||||
<p><label for="_um_login_after_login"><?php _e('Redirection after Login','ultimate-member'); ?> <?php $this->tooltip('Change this If you want to override role redirection settings after login only.', 'e'); ?></label>
|
||||
<select name="_um_login_after_login" id="_um_login_after_login" class="umaf-selectjs um-adm-conditional" style="width: 100%" data-cond1="redirect_url" data-cond1-show="_um_login_after_login">
|
||||
|
||||
<option value="0" <?php selected('0', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>><?php _e('Default','ultimatemember'); ?></option>
|
||||
<option value="0" <?php selected('0', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>><?php _e('Default','ultimate-member'); ?></option>
|
||||
<option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to profile</option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to URL</option>
|
||||
<option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Refresh active page</option>
|
||||
@@ -13,7 +13,7 @@
|
||||
</p>
|
||||
|
||||
<p class="_um_login_after_login">
|
||||
<label for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip('', 'e'); ?></label>
|
||||
<label for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip('', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_redirect_url', null, 'na'); ?>" name="_um_login_redirect_url" id="_um_login_redirect_url" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
<div class="um-admin-boxed-links um-admin-ajaxlink <?php if ( $is_core ) echo 'is-core-form'; ?>">
|
||||
|
||||
<?php if ( $is_core ) { ?>
|
||||
<p><?php _e('<strong>Note:</strong> Form type cannot be changed for the default forms.','ultimatemember'); ?></p>
|
||||
<p><?php _e('<strong>Note:</strong> Form type cannot be changed for the default forms.','ultimate-member'); ?></p>
|
||||
<?php } ?>
|
||||
|
||||
<a href="#" data-role="register"><?php _e('Registration Form','ultimatemember'); ?></a>
|
||||
<a href="#" data-role="register"><?php _e('Registration Form','ultimate-member'); ?></a>
|
||||
|
||||
<a href="#" data-role="profile"><?php _e('Profile Form','ultimatemember'); ?></a>
|
||||
<a href="#" data-role="profile"><?php _e('Profile Form','ultimate-member'); ?></a>
|
||||
|
||||
<a href="#" data-role="login"><?php _e('Login Form','ultimatemember'); ?></a>
|
||||
<a href="#" data-role="login"><?php _e('Login Form','ultimate-member'); ?></a>
|
||||
|
||||
<input type="hidden" name="_um_mode" id="_um_mode" value="<?php echo $ultimatemember->query->get_meta_value('_um_mode', null, 'register' ); ?>" />
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Custom CSS','ultimatemember'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimatemember'), 'e'); ?></label>
|
||||
<label><?php _e('Custom CSS','ultimate-member'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimate-member'), 'e'); ?></label>
|
||||
<textarea name="_um_profile_custom_css" id="_um_profile_custom_css" class="tall"><?php echo $ultimatemember->query->get_meta_value('_um_profile_custom_css', null, 'na' ); ?></textarea>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Use global settings?','ultimatemember'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling & appearance', 'e'); ?></label>
|
||||
<label><?php _e('Use global settings?','ultimate-member'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling & appearance', 'e'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_use_globals', 1, true, 1, 'xxx', 'profile-customize'); ?>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="profile-customize">
|
||||
|
||||
<p><label for="_um_profile_role"><?php _e('Make this profile role-specific','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_role"><?php _e('Make this profile role-specific','ultimate-member'); ?></label>
|
||||
<select name="_um_profile_role" id="_um_profile_role" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->query->get_roles( $add_default = 'All roles' ) as $key => $value) { ?>
|
||||
@@ -23,7 +23,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_template"><?php _e('Template','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_template"><?php _e('Template','ultimate-member'); ?></label>
|
||||
<select name="_um_profile_template" id="_um_profile_template" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->shortcodes->get_templates( 'profile' ) as $key => $value) { ?>
|
||||
@@ -35,15 +35,15 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<p><label for="_um_profile_max_width"><?php _e('Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_max_width', null, um_get_option('profile_max_width') ); ?>" name="_um_profile_max_width" id="_um_profile_max_width" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_area_max_width"><?php _e('Profile Area Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of the profile area inside profile (below profile header)', 'e'); ?></label>
|
||||
<p><label for="_um_profile_area_max_width"><?php _e('Profile Area Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of the profile area inside profile (below profile header)', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_area_max_width', null, um_get_option('profile_area_max_width') ); ?>" name="_um_profile_area_max_width" id="_um_profile_area_max_width" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_align"><?php _e('Alignment','ultimatemember'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<p><label for="_um_profile_align"><?php _e('Alignment','ultimate-member'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<select name="_um_profile_align" id="_um_profile_align" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_profile_align', null, um_get_option('profile_align') ) ); ?>>Centered</option>
|
||||
@@ -53,7 +53,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_icons"><?php _e('Field Icons','ultimatemember'); ?> <?php $this->tooltip('Whether to show field icons and where to show them relative to the field', 'e'); ?></label>
|
||||
<p><label for="_um_profile_icons"><?php _e('Field Icons','ultimate-member'); ?> <?php $this->tooltip('Whether to show field icons and where to show them relative to the field', 'e'); ?></label>
|
||||
<select name="_um_profile_icons" id="_um_profile_icons" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="field" <?php selected('field', $ultimatemember->query->get_meta_value('_um_profile_icons', null, um_get_option('profile_icons') ) ); ?>>Show inside text field</option>
|
||||
@@ -63,24 +63,24 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<p><label for="_um_profile_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_primary_btn_word', null, um_get_option('profile_primary_btn_word') ); ?>" name="_um_profile_primary_btn_word" id="_um_profile_primary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_primary_btn_color"><?php _e('Primary Button Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button color', 'e'); ?></label>
|
||||
<p><label for="_um_profile_primary_btn_color"><?php _e('Primary Button Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_primary_btn_color', null, um_get_option('primary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_primary_btn_color" id="_um_profile_primary_btn_color" data-default-color="<?php echo um_get_option('primary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button hover color', 'e'); ?></label>
|
||||
<p><label for="_um_profile_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button hover color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_primary_btn_hover', null, um_get_option('primary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_profile_primary_btn_hover" id="_um_profile_primary_btn_hover" data-default-color="<?php echo um_get_option('primary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_primary_btn_text"><?php _e('Primary Button Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default primary button text color', 'e'); ?></label>
|
||||
<p><label for="_um_profile_primary_btn_text"><?php _e('Primary Button Text Color','ultimate-member'); ?> <?php $this->tooltip('Override the default primary button text color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_primary_btn_text', null, um_get_option('primary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_profile_primary_btn_text" id="_um_profile_primary_btn_text" data-default-color="<?php echo um_get_option('primary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show Secondary Button','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_secondary_btn', um_get_option('profile_secondary_btn'), true, 1, 'profile-secondary-btn', 'xxx'); ?>
|
||||
@@ -88,31 +88,31 @@
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_word"><?php _e('Secondary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_word"><?php _e('Secondary Button Text','ultimate-member'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_secondary_btn_word', null, um_get_option('profile_secondary_btn_word') ); ?>" name="_um_profile_secondary_btn_word" id="_um_profile_secondary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_color"><?php _e('Secondary Button Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button color', 'e'); ?></label>
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_color"><?php _e('Secondary Button Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_secondary_btn_color', null, um_get_option('secondary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_secondary_btn_color" id="_um_profile_secondary_btn_color" data-default-color="<?php echo um_get_option('secondary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button hover color', 'e'); ?></label>
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button hover color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_secondary_btn_hover', null, um_get_option('secondary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_profile_secondary_btn_hover" id="_um_profile_secondary_btn_hover" data-default-color="<?php echo um_get_option('secondary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default secondary button text color', 'e'); ?></label>
|
||||
<p class="profile-secondary-btn"><label for="_um_profile_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimate-member'); ?> <?php $this->tooltip('Override the default secondary button text color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_secondary_btn_text', null, um_get_option('secondary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_profile_secondary_btn_text" id="_um_profile_secondary_btn_text" data-default-color="<?php echo um_get_option('secondary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_main_bg"><?php _e('Base Background Color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_main_bg"><?php _e('Base Background Color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_main_bg', null, um_get_option('profile_main_bg') ); ?>" class="um-admin-colorpicker" name="_um_profile_main_bg" id="_um_profile_main_bg" data-default-color="<?php echo um_get_option('profile_main_bg'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_main_text_color"><?php _e('Base Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default form text color', 'e'); ?></label>
|
||||
<p><label for="_um_profile_main_text_color"><?php _e('Base Text Color','ultimate-member'); ?> <?php $this->tooltip('Override the default form text color', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_main_text_color', null, um_get_option('profile_main_text_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_main_text_color" id="_um_profile_main_text_color" data-default-color="<?php echo um_get_option('profile_main_text_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_cover_enabled"><?php _e('Enable Cover Photos','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_cover_enabled"><?php _e('Enable Cover Photos','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_cover_enabled', um_get_option('profile_cover_enabled') , true, 1, 'cover-photo-opts', 'xxx'); ?>
|
||||
@@ -120,7 +120,7 @@
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p class="cover-photo-opts"><label for="_um_profile_cover_ratio"><?php _e('Cover photo ratio','ultimatemember'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<p class="cover-photo-opts"><label for="_um_profile_cover_ratio"><?php _e('Cover photo ratio','ultimate-member'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
|
||||
<select name="_um_profile_cover_ratio" id="_um_profile_cover_ratio" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="2.7:1" <?php selected('2.7:1', $ultimatemember->query->get_meta_value('_um_profile_cover_ratio', null, um_get_option('profile_cover_ratio') ) ); ?>>2.7:1</option>
|
||||
@@ -130,21 +130,21 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_photosize"><?php _e('Profile Photo Size','ultimatemember'); ?> <?php $this->tooltip('Set the profile photo size in pixels here', 'e'); ?></label>
|
||||
<p><label for="_um_profile_photosize"><?php _e('Profile Photo Size','ultimate-member'); ?> <?php $this->tooltip('Set the profile photo size in pixels here', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_photosize', null, um_get_option('profile_photosize') ); ?>" name="_um_profile_photosize" id="_um_profile_photosize" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_photocorner"><?php _e('Profile Photo Style','ultimatemember'); ?> <?php $this->tooltip('Control the roundness/appearance of profile photo in the header area', 'e'); ?></label>
|
||||
<p><label for="_um_profile_photocorner"><?php _e('Profile Photo Style','ultimate-member'); ?> <?php $this->tooltip('Control the roundness/appearance of profile photo in the header area', 'e'); ?></label>
|
||||
<select name="_um_profile_photocorner" id="_um_profile_photocorner" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="1" <?php selected('1', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Circle','ultimatemember'); ?></option>
|
||||
<option value="2" <?php selected('2', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Rounded Corners','ultimatemember'); ?></option>
|
||||
<option value="3" <?php selected('3', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Square','ultimatemember'); ?></option>
|
||||
<option value="1" <?php selected('1', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Circle','ultimate-member'); ?></option>
|
||||
<option value="2" <?php selected('2', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Rounded Corners','ultimate-member'); ?></option>
|
||||
<option value="3" <?php selected('3', $ultimatemember->query->get_meta_value('_um_profile_photocorner', null, um_get_option('profile_photocorner') ) ); ?>><?php _e('Square','ultimate-member'); ?></option>
|
||||
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_photo_required"><?php _e('Make Profile Photo Required','ultimatemember'); ?><?php $this->tooltip('Require user to update a profile photo when updating their profile', 'e'); ?></label>
|
||||
<p><label for="_um_profile_photo_required"><?php _e('Make Profile Photo Required','ultimate-member'); ?><?php $this->tooltip('Require user to update a profile photo when updating their profile', 'e'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_photo_required'); ?>
|
||||
@@ -152,32 +152,32 @@
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_bg"><?php _e('Header Background Color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_bg"><?php _e('Header Background Color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_bg', null, um_get_option('profile_header_bg') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_bg" id="_um_profile_header_bg" data-default-color="<?php echo um_get_option('profile_header_bg'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_text"><?php _e('Header Meta Text Color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_text"><?php _e('Header Meta Text Color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_text', null, um_get_option('profile_header_text') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_text" id="_um_profile_header_text" data-default-color="<?php echo um_get_option('profile_header_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_link_color"><?php _e('Header Link Color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_link_color"><?php _e('Header Link Color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_link_color', null, um_get_option('profile_header_link_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_link_color" id="_um_profile_header_link_color" data-default-color="<?php echo um_get_option('profile_header_link_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_link_hcolor"><?php _e('Header Link Hover','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_link_hcolor"><?php _e('Header Link Hover','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_link_hcolor', null, um_get_option('profile_header_link_hcolor') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_link_hcolor" id="_um_profile_header_link_hcolor" data-default-color="<?php echo um_get_option('profile_header_link_hcolor'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_icon_color"><?php _e('Header Icon Link Color','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_icon_color"><?php _e('Header Icon Link Color','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_icon_color', null, um_get_option('profile_header_icon_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_icon_color" id="_um_profile_header_icon_color" data-default-color="<?php echo um_get_option('profile_header_icon_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_profile_header_icon_hcolor"><?php _e('Header Icon Link Hover','ultimatemember'); ?></label>
|
||||
<p><label for="_um_profile_header_icon_hcolor"><?php _e('Header Icon Link Hover','ultimate-member'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_header_icon_hcolor', null, um_get_option('profile_header_icon_hcolor') ); ?>" class="um-admin-colorpicker" name="_um_profile_header_icon_hcolor" id="_um_profile_header_icon_hcolor" data-default-color="<?php echo um_get_option('profile_header_icon_hcolor'); ?>" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show display name in profile header?','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show display name in profile header?','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_show_name', 1 ); ?>
|
||||
@@ -186,7 +186,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show social links in profile header?','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show social links in profile header?','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_show_social_links', 0 ); ?>
|
||||
@@ -195,7 +195,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show user description in profile header?','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show user description in profile header?','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_profile_show_bio', 1 ); ?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label class=""><?php _e('Field(s) to show in user meta','ultimatemember'); ?></label>
|
||||
<label class=""><?php _e('Field(s) to show in user meta','ultimate-member'); ?></label>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Custom CSS','ultimatemember'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimatemember'), 'e'); ?></label>
|
||||
<label><?php _e('Custom CSS','ultimate-member'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimate-member'), 'e'); ?></label>
|
||||
<textarea name="_um_register_custom_css" id="_um_register_custom_css" class="tall"><?php echo $ultimatemember->query->get_meta_value('_um_register_custom_css', null, 'na' ); ?></textarea>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p>
|
||||
<label><?php _e('Use global settings?','ultimatemember'); ?> <?php $this->tooltip( __('Switch to no if you want to customize this form settings, styling & appearance','ultimatemember'), 'e'); ?></label>
|
||||
<label><?php _e('Use global settings?','ultimate-member'); ?> <?php $this->tooltip( __('Switch to no if you want to customize this form settings, styling & appearance','ultimate-member'), 'e'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_register_use_globals', 1, true, 1, 'xxx', 'register-customize'); ?>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="register-customize">
|
||||
|
||||
<p><label for="_um_register_role"><?php _e('Assign role to form','ultimatemember'); ?></label>
|
||||
<p><label for="_um_register_role"><?php _e('Assign role to form','ultimate-member'); ?></label>
|
||||
<select name="_um_register_role" id="_um_register_role" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->query->get_roles( $add_default = 'Default' ) as $key => $value) { ?>
|
||||
@@ -23,7 +23,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_template"><?php _e('Template','ultimatemember'); ?></label>
|
||||
<p><label for="_um_register_template"><?php _e('Template','ultimate-member'); ?></label>
|
||||
<select name="_um_register_template" id="_um_register_template" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<?php foreach($ultimatemember->shortcodes->get_templates( 'register' ) as $key => $value) { ?>
|
||||
@@ -35,11 +35,11 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<p><label for="_um_register_max_width"><?php _e('Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_max_width', null, um_get_option('register_max_width') ); ?>" name="_um_register_max_width" id="_um_register_max_width" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_align"><?php _e('Alignment','ultimatemember'); ?> <?php $this->tooltip( __('The shortcode is centered by default unless you specify otherwise here','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_align"><?php _e('Alignment','ultimate-member'); ?> <?php $this->tooltip( __('The shortcode is centered by default unless you specify otherwise here','ultimate-member'), 'e'); ?></label>
|
||||
<select name="_um_register_align" id="_um_register_align" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_register_align', null, um_get_option('register_align') ) ); ?>>Centered</option>
|
||||
@@ -49,7 +49,7 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_icons"><?php _e('Field Icons','ultimatemember'); ?> <?php $this->tooltip( __('Whether to show field icons and where to show them relative to the field','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_icons"><?php _e('Field Icons','ultimate-member'); ?> <?php $this->tooltip( __('Whether to show field icons and where to show them relative to the field','ultimate-member'), 'e'); ?></label>
|
||||
<select name="_um_register_icons" id="_um_register_icons" class="umaf-selectjs" style="width: 100%">
|
||||
|
||||
<option value="field" <?php selected('field', $ultimatemember->query->get_meta_value('_um_register_icons', null, um_get_option('register_icons') ) ); ?>>Show inside text field</option>
|
||||
@@ -59,24 +59,24 @@
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the button text','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?php $this->tooltip( __('Customize the button text','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_word', null, um_get_option('register_primary_btn_word') ); ?>" name="_um_register_primary_btn_word" id="_um_register_primary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_primary_btn_color"><?php _e('Primary Button Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button color','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_primary_btn_color"><?php _e('Primary Button Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_color', null, um_get_option('primary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_color" id="_um_register_primary_btn_color" data-default-color="<?php echo um_get_option('primary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button hover color','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button hover color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_hover', null, um_get_option('primary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_hover" id="_um_register_primary_btn_hover" data-default-color="<?php echo um_get_option('primary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p><label for="_um_register_primary_btn_text"><?php _e('Primary Button Text Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button text color','ultimatemember'), 'e'); ?></label>
|
||||
<p><label for="_um_register_primary_btn_text"><?php _e('Primary Button Text Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button text color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_text', null, um_get_option('primary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_text" id="_um_register_primary_btn_text" data-default-color="<?php echo um_get_option('primary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
|
||||
<label><?php _e('Show Secondary Button','ultimate-member'); ?></label>
|
||||
<span>
|
||||
|
||||
<?php $this->ui_on_off('_um_register_secondary_btn', um_get_option('register_secondary_btn'), true, 1, 'register-secondary-btn', 'xxx'); ?>
|
||||
@@ -84,19 +84,19 @@
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_word"><?php _e('Secondary Button Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the button text','ultimatemember'), 'e'); ?></label>
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_word"><?php _e('Secondary Button Text','ultimate-member'); ?> <?php $this->tooltip( __('Customize the button text','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_word', null, um_get_option('register_secondary_btn_word') ); ?>" name="_um_register_secondary_btn_word" id="_um_register_secondary_btn_word" />
|
||||
</p>
|
||||
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_color"><?php _e('Secondary Button Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button color','ultimatemember'), 'e'); ?></label>
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_color"><?php _e('Secondary Button Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_color', null, um_get_option('secondary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_color" id="_um_register_secondary_btn_color" data-default-color="<?php echo um_get_option('secondary_btn_color'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button hover color','ultimatemember'), 'e'); ?></label>
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button hover color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_hover', null, um_get_option('secondary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_hover" id="_um_register_secondary_btn_hover" data-default-color="<?php echo um_get_option('secondary_btn_hover'); ?>" />
|
||||
</p>
|
||||
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button text color','ultimatemember'), 'e'); ?></label>
|
||||
<p class="register-secondary-btn"><label for="_um_register_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button text color','ultimate-member'), 'e'); ?></label>
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_text', null, um_get_option('secondary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_text" id="_um_register_secondary_btn_text" data-default-color="<?php echo um_get_option('secondary_btn_text'); ?>" />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Edit Field','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Edit Field','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox">
|
||||
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Update','ultimatemember'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
|
||||
<input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Edit Row Settings','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Edit Row Settings','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox">
|
||||
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Update','ultimatemember'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
|
||||
<input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="UM_preview_form" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Live Form Preview','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Live Form Preview','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body">
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<a href="#" class="button-primary" data-action="UM_remove_modal"><?php _e('Continue editing','ultimatemember'); ?></a>
|
||||
<a href="#" class="button-primary" data-action="UM_remove_modal"><?php _e('Continue editing','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Divider','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Add a New Divider','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox">
|
||||
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Field','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Add a New Field','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox">
|
||||
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
|
||||
<a href="#" data-modal="UM_fields" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<a href="#" data-modal="UM_fields" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Field Group','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Add a New Field Group','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox">
|
||||
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="UM_preview_registration" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Review Registration Details','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Review Registration Details','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="UM_fields" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Fields Manager','ultimatemember'); ?></h3>
|
||||
<h3><?php _e('Fields Manager','ultimate-member'); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="UM_fonticons" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php printf(__('Choose from %s available icons','ultimatemember'), count( $ultimatemember->icons->all ) ); ?></h3>
|
||||
<h3><?php printf(__('Choose from %s available icons','ultimate-member'), count( $ultimatemember->icons->all ) ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body">
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
|
||||
<?php if ( $ultimatemember->query->has_post_meta('_um_core', 'admin' ) ) { ?>
|
||||
<p class="disabled-on-off">
|
||||
<label class="um-admin-half"><?php _e('Can access wp-admin?','ultimatemember'); ?> <?php $this->tooltip( __('The core admin role must always have access to wp-admin / WordPress backend','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can access wp-admin?','ultimate-member'); ?> <?php $this->tooltip( __('The core admin role must always have access to wp-admin / WordPress backend','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 1); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimatemember'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimate-member'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 0); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
<?php } else { ?>
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can access wp-admin?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to access the admin dashboard. If turned on the WordPress toolbar will appear at top of the page.','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can access wp-admin?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to access the admin dashboard. If turned on the WordPress toolbar will appear at top of the page.','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 0); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimatemember'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimate-member'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 1); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
<?php } ?>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can edit other member accounts?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to edit accounts of other members','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can edit other member accounts?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to edit accounts of other members','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_everyone', 0, true, 1, 'edit-roles', 'xxx'); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="edit-roles">
|
||||
<label class="um-admin-half"><?php _e('Can edit these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can edit, choose none to allow role to edit all member roles','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can edit these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can edit, choose none to allow role to edit all member roles','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select multiple="multiple" name="_um_can_edit_roles[]" id="_um_can_edit_roles" class="umaf-selectjs" style="width: 300px">
|
||||
@@ -41,12 +41,12 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can delete other member accounts?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to edit the profile fields of certain roles only','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can delete other member accounts?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to edit the profile fields of certain roles only','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_everyone', 0, true, 1, 'delete-roles', 'xxx'); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="delete-roles">
|
||||
<label class="um-admin-half"><?php _e('Can delete these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can delete, choose none to allow role to delete all member roles','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can delete these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can delete, choose none to allow role to delete all member roles','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select multiple="multiple" name="_um_can_delete_roles[]" id="_um_can_delete_roles" class="umaf-selectjs" style="width: 300px">
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after account is deleted','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role deletes their own account','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after account is deleted','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role deletes their own account','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_after_delete" id="_um_after_delete" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_delete">
|
||||
<option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Homepage','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Custom URL','ultimatemember'); ?></option>
|
||||
<option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Homepage','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Custom URL','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_after_delete">
|
||||
<label class="um-admin-half" for="_um_delete_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they delete account','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half" for="_um_delete_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they delete account','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_delete_redirect_url', null, 'na'); ?>" name="_um_delete_redirect_url" id="_um_delete_redirect_url" />
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can edit their profile?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role edit his own profile?','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can edit their profile?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role edit his own profile?','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_profile', 1); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can delete their account?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to delete their account and end their membership on your site','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can delete their account?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to delete their account and end their membership on your site','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_profile', 1); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can view default homepage?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this user role to view your site\'s homepage','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can view default homepage?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this user role to view your site\'s homepage','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_default_homepage', 1, true, 1, 'xxx', 'redirect-home-url'); ?>
|
||||
@@ -12,7 +12,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="redirect-home-url">
|
||||
<label class="um-admin-half" for="_um_redirect_homepage"><?php _e('Custom Homepage Redirect','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to if they try to view your site\'s homepage ','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half" for="_um_redirect_homepage"><?php _e('Custom Homepage Redirect','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to if they try to view your site\'s homepage ','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_redirect_homepage', null, 'na'); ?>" name="_um_redirect_homepage" id="_um_redirect_homepage" />
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after login','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logins to your site','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after login','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logins to your site','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_after_login" id="_um_after_login" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_login">
|
||||
<option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to profile','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
|
||||
<option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Refresh active page','ultimatemember'); ?></option>
|
||||
<option value="redirect_admin" <?php selected('redirect_admin', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to WordPress Admin','ultimatemember'); ?></option>
|
||||
<option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to profile','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
|
||||
<option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Refresh active page','ultimate-member'); ?></option>
|
||||
<option value="redirect_admin" <?php selected('redirect_admin', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to WordPress Admin','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_after_login">
|
||||
<label class="um-admin-half" for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they login with their account','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half" for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they login with their account','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_redirect_url', null, 'na'); ?>" name="_um_login_redirect_url" id="_um_login_redirect_url" />
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after logout','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logouts of your site','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after logout','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logouts of your site','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_after_logout" id="_um_after_logout" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_logout">
|
||||
<option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Homepage','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Custom URL','ultimatemember'); ?></option>
|
||||
<option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Homepage','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Custom URL','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_after_logout">
|
||||
<label class="um-admin-half" for="_um_logout_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they logout from site','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half" for="_um_logout_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they logout from site','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_logout_redirect_url', null, 'na'); ?>" name="_um_logout_redirect_url" id="_um_logout_redirect_url" />
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can view other member profiles?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role view all member profiles?', 'ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can view other member profiles?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role view all member profiles?', 'ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_view_all', 1, true, 1, 'view-roles', 'xxx'); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="view-roles">
|
||||
<label class="um-admin-half"><?php _e('Can view these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can view, choose none to allow role to view all member roles', 'ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can view these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can view, choose none to allow role to view all member roles', 'ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select multiple="multiple" name="_um_can_view_roles[]" id="_um_can_view_roles" class="umaf-selectjs" style="width: 300px">
|
||||
@@ -21,12 +21,12 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can make their profile private?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role make their profile private?','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can make their profile private?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role make their profile private?','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_make_private_profile'); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Can view/access private profiles?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role view private profiles?','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Can view/access private profiles?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role view private profiles?','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_private_profile'); ?></span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Registration Status','ultimatemember'); ?> <?php $this->tooltip( __('Select the status you would like this user role to have after they register on your site','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Registration Status','ultimate-member'); ?> <?php $this->tooltip( __('Select the status you would like this user role to have after they register on your site','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_status" id="_um_status" class="umaf-selectjs um-adm-conditional" style="width: 300px"
|
||||
data-cond1="approved" data-cond1-show="approved"
|
||||
data-cond2="checkmail" data-cond2-show="checkmail"
|
||||
data-cond3="pending" data-cond3-show="pending">
|
||||
<option value="approved" <?php selected('approved', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Auto Approve','ultimatemember'); ?></option>
|
||||
<option value="checkmail" <?php selected('checkmail', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Email Activation','ultimatemember'); ?></option>
|
||||
<option value="pending" <?php selected('pending', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Admin Review','ultimatemember'); ?></option>
|
||||
<option value="approved" <?php selected('approved', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Auto Approve','ultimate-member'); ?></option>
|
||||
<option value="checkmail" <?php selected('checkmail', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Email Activation','ultimate-member'); ?></option>
|
||||
<option value="pending" <?php selected('pending', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Admin Review','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
<div class="approved">
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_auto_approve_act" id="_um_auto_approve_act" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_auto_approve_act">
|
||||
<option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to profile','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
|
||||
<option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to profile','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_auto_approve_act">
|
||||
<label class="um-admin-half" for="_um_auto_approve_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half" for="_um_auto_approve_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_auto_approve_url', null, 'na'); ?>" name="_um_auto_approve_url" id="_um_auto_approve_url" />
|
||||
@@ -50,7 +50,7 @@
|
||||
<div class="checkmail">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Login user after validating the activation link?','ultimatemember'); ?> <?php $this->tooltip( __('Login the user after validating the activation link','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Login user after validating the activation link?','ultimate-member'); ?> <?php $this->tooltip( __('Login the user after validating the activation link','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<?php $this->ui_on_off('_um_login_email_activate', 0); ?>
|
||||
@@ -59,30 +59,30 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_checkmail_action" id="_um_checkmail_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
|
||||
data-cond1="show_message" data-cond1-show="_um_checkmail_action-1"
|
||||
data-cond2="redirect_url" data-cond2-show="_um_checkmail_action-2">
|
||||
<option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Show custom message','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
|
||||
<option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Show custom message','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_checkmail_action-1">
|
||||
<label class="um-admin-half"><?php _e('Personalize the custom message','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Personalize the custom message','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<textarea name="_um_checkmail_message" id="_um_checkmail_message"><?php echo $ultimatemember->query->get_meta_value('_um_checkmail_message', null, __('Thank you for registering. Before you can login we need you to activate your account by clicking the activation link in the email we just sent you.','ultimatemember') ); ?></textarea>
|
||||
<textarea name="_um_checkmail_message" id="_um_checkmail_message"><?php echo $ultimatemember->query->get_meta_value('_um_checkmail_message', null, __('Thank you for registering. Before you can login we need you to activate your account by clicking the activation link in the email we just sent you.','ultimate-member') ); ?></textarea>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_checkmail_action-2">
|
||||
<label class="um-admin-half" for="_um_checkmail_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half" for="_um_checkmail_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_checkmail_url', null, 'na'); ?>" name="_um_checkmail_url" id="_um_checkmail_url" />
|
||||
@@ -91,7 +91,7 @@
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half" for="_um_url_email_activate"><?php _e('URL redirect after e-mail activation','ultimatemember'); ?> <?php $this->tooltip( __('If you want users to go to a specific page other than login page after e-mail activation, enter the URL here.','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half" for="_um_url_email_activate"><?php _e('URL redirect after e-mail activation','ultimate-member'); ?> <?php $this->tooltip( __('If you want users to go to a specific page other than login page after e-mail activation, enter the URL here.','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_url_email_activate', null, 'na'); ?>" name="_um_url_email_activate" id="_um_url_email_activate" />
|
||||
@@ -107,30 +107,30 @@
|
||||
|
||||
<div class="pending">
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<select name="_um_pending_action" id="_um_pending_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
|
||||
data-cond1="show_message" data-cond1-show="_um_pending_action-1"
|
||||
data-cond2="redirect_url" data-cond2-show="_um_pending_action-2">
|
||||
<option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Show custom message','ultimatemember'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
|
||||
<option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Show custom message','ultimate-member'); ?></option>
|
||||
<option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
|
||||
</select>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_pending_action-1">
|
||||
<label class="um-admin-half"><?php _e('Personalize the custom message','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Personalize the custom message','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<textarea name="_um_pending_message" id="_um_pending_message"><?php echo $ultimatemember->query->get_meta_value('_um_pending_message', null, __('Thank you for applying for membership to our site. We will review your details and send you an email letting you know whether your application has been successful or not.','ultimatemember') ); ?></textarea>
|
||||
<textarea name="_um_pending_message" id="_um_pending_message"><?php echo $ultimatemember->query->get_meta_value('_um_pending_message', null, __('Thank you for applying for membership to our site. We will review your details and send you an email letting you know whether your application has been successful or not.','ultimate-member') ); ?></textarea>
|
||||
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p class="_um_pending_action-2">
|
||||
<label class="um-admin-half" for="_um_pending_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
|
||||
<label class="um-admin-half" for="_um_pending_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
|
||||
<span class="um-admin-half">
|
||||
|
||||
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_pending_url', null, 'na'); ?>" name="_um_pending_url" id="_um_pending_url" />
|
||||
|
||||
@@ -16,16 +16,16 @@ $url = add_query_arg('wp_role', $saved_r, $url);
|
||||
<div class="">
|
||||
|
||||
<p>
|
||||
<label class="um-admin-half"><?php _e('Link to WordPress role','ultimatemember'); ?> <?php $this->tooltip( __('Users who get this community role will be assigned this WordPress role automatically','ultimatemember') ); ?></label>
|
||||
<label class="um-admin-half"><?php _e('Link to WordPress role','ultimate-member'); ?> <?php $this->tooltip( __('Users who get this community role will be assigned this WordPress role automatically','ultimate-member') ); ?></label>
|
||||
<span class="um-admin-half">
|
||||
<select name="_um_synced_role" id="_um_synced_role">
|
||||
<option value="0"><?php _e('None','ultimatemember'); ?></option>
|
||||
<option value="0"><?php _e('None','ultimate-member'); ?></option>
|
||||
<?php wp_dropdown_roles( $saved_r ); ?>
|
||||
</select>
|
||||
</span>
|
||||
</p><div class="um-admin-clear"></div>
|
||||
|
||||
<p><a href="<?php echo $url; ?>" id="_um_button_sync_update_button" class="button"><?php _e('Sync / update all existing users','ultimatemember'); ?></a></p>
|
||||
<p><a href="<?php echo $url; ?>" id="_um_button_sync_update_button" class="button"><?php _e('Sync / update all existing users','ultimate-member'); ?></a></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
<h1>Welcome to Ultimate Member</h1>
|
||||
|
||||
<div class="about-text"><?php _e('Thank you for installing! Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress.','ultimatemember'); ?></div>
|
||||
<div class="about-text"><?php _e('Thank you for installing! Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress.','ultimate-member'); ?></div>
|
||||
|
||||
<div class="wp-badge um-badge">Version <?php echo ultimatemember_version; ?></div>
|
||||
|
||||
<p class="um-admin-notice ultimatemember-actions">
|
||||
<a href="<?php echo admin_url('admin.php?page=um_options'); ?>" class="button button-primary"><?php _e('Settings','ultimatemember'); ?></a>
|
||||
<a href="http://docs.ultimatemember.com/" class="button button-secondary" target="_blank"><?php _e('Docs','ultimatemember'); ?></a>
|
||||
<a href="https://wordpress.org/support/plugin/ultimate-member" class="button button-secondary" target="_blank"><?php _e('Support','ultimatemember'); ?></a>
|
||||
<a href="<?php echo admin_url('admin.php?page=um_options'); ?>" class="button button-primary"><?php _e('Settings','ultimate-member'); ?></a>
|
||||
<a href="http://docs.ultimatemember.com/" class="button button-secondary" target="_blank"><?php _e('Docs','ultimate-member'); ?></a>
|
||||
<a href="https://wordpress.org/support/plugin/ultimate-member" class="button button-secondary" target="_blank"><?php _e('Support','ultimate-member'); ?></a>
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://ultimatemember.com/" data-text="<?php echo esc_attr( $tweets[0] ); ?>" data-via="umplugin" data-size="large">Tweet</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
</p>
|
||||
|
||||
@@ -55,6 +55,6 @@ if(isset($_FILES[$id]['name'])) {
|
||||
}
|
||||
|
||||
} else {
|
||||
$ret['error'] = __('A theme or plugin compatibility issue','ultimatemember');
|
||||
$ret['error'] = __('A theme or plugin compatibility issue','ultimate-member');
|
||||
}
|
||||
echo json_encode($ret);
|
||||
|
||||
@@ -53,6 +53,6 @@ if(isset($_FILES[$id]['name'])) {
|
||||
}
|
||||
|
||||
} else {
|
||||
$ret['error'] = __('A theme or plugin compatibility issue','ultimatemember');
|
||||
$ret['error'] = __('A theme or plugin compatibility issue','ultimate-member');
|
||||
}
|
||||
echo json_encode($ret);
|
||||
|
||||
+5
-5
@@ -28,19 +28,19 @@ class UM_Account {
|
||||
function core_tabs() {
|
||||
|
||||
$tabs[100]['general']['icon'] = 'um-faicon-user';
|
||||
$tabs[100]['general']['title'] = __('Account','ultimatemember');
|
||||
$tabs[100]['general']['title'] = __('Account','ultimate-member');
|
||||
|
||||
$tabs[200]['password']['icon'] = 'um-faicon-asterisk';
|
||||
$tabs[200]['password']['title'] = __('Change Password','ultimatemember');
|
||||
$tabs[200]['password']['title'] = __('Change Password','ultimate-member');
|
||||
|
||||
$tabs[300]['privacy']['icon'] = 'um-faicon-lock';
|
||||
$tabs[300]['privacy']['title'] = __('Privacy','ultimatemember');
|
||||
$tabs[300]['privacy']['title'] = __('Privacy','ultimate-member');
|
||||
|
||||
$tabs[400]['notifications']['icon'] = 'um-faicon-envelope';
|
||||
$tabs[400]['notifications']['title'] = __('Notifications','ultimatemember');
|
||||
$tabs[400]['notifications']['title'] = __('Notifications','ultimate-member');
|
||||
|
||||
$tabs[9999]['delete']['icon'] = 'um-faicon-trash-o';
|
||||
$tabs[9999]['delete']['title'] = __('Delete Account','ultimatemember');
|
||||
$tabs[9999]['delete']['title'] = __('Delete Account','ultimate-member');
|
||||
|
||||
return $tabs;
|
||||
}
|
||||
|
||||
+22
-22
@@ -43,7 +43,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $changes['hide_in_members'] ) && $changes['hide_in_members'] == __('No','ultimatemember') ) {
|
||||
if ( isset( $changes['hide_in_members'] ) && $changes['hide_in_members'] == __('No','ultimate-member') ) {
|
||||
delete_user_meta( um_user('ID'), 'hide_in_members' );
|
||||
unset( $changes['hide_in_members'] );
|
||||
}
|
||||
@@ -111,23 +111,23 @@
|
||||
$account_name_require = um_get_option("account_name_require");
|
||||
|
||||
if ( isset($_POST['first_name']) && ( strlen(trim( $_POST['first_name'] ) ) == 0 && $account_name_require ) ) {
|
||||
$ultimatemember->form->add_error('first_name', __('You must provide your first name','ultimatemember') );
|
||||
$ultimatemember->form->add_error('first_name', __('You must provide your first name','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset($_POST['last_name']) && ( strlen(trim( $_POST['last_name'] ) ) == 0 && $account_name_require ) ) {
|
||||
$ultimatemember->form->add_error('last_name', __('You must provide your last name','ultimatemember') );
|
||||
$ultimatemember->form->add_error('last_name', __('You must provide your last name','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset($_POST['user_email']) && strlen(trim( $_POST['user_email'] ) ) == 0 ) {
|
||||
$ultimatemember->form->add_error('user_email', __('You must provide your e-mail','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_email', __('You must provide your e-mail','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset($_POST['user_email']) && !is_email( $_POST['user_email'] ) ) {
|
||||
$ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( email_exists( $_POST['user_email'] ) && email_exists( $_POST['user_email'] ) != get_current_user_id() ) {
|
||||
$ultimatemember->form->add_error('user_email', __('Email already linked to another account','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_email', __('Email already linked to another account','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,27 +141,27 @@
|
||||
|
||||
if ( $_POST['current_user_password'] == '' || ! wp_check_password( $_POST['current_user_password'], $user->data->user_pass, $user->data->ID ) ) {
|
||||
|
||||
$ultimatemember->form->add_error('current_user_password', __('This is not your password','ultimatemember') );
|
||||
$ultimatemember->form->add_error('current_user_password', __('This is not your password','ultimate-member') );
|
||||
$ultimatemember->account->current_tab = 'password';
|
||||
} else { // correct password
|
||||
|
||||
if ( $_POST['user_password'] != $_POST['confirm_user_password'] && $_POST['user_password'] ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your new password does not match','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your new password does not match','ultimate-member') );
|
||||
$ultimatemember->account->current_tab = 'password';
|
||||
}
|
||||
|
||||
if ( um_get_option('account_require_strongpass') ) {
|
||||
|
||||
if ( strlen( utf8_decode( $_POST['user_password'] ) ) < 8 ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( strlen( utf8_decode( $_POST['user_password'] ) ) > 30 ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( !$ultimatemember->validation->strong_pass( $_POST['user_password'] ) ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
|
||||
$ultimatemember->account->current_tab = 'password';
|
||||
}
|
||||
|
||||
@@ -171,17 +171,17 @@
|
||||
}
|
||||
|
||||
if ( ! empty( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
|
||||
$ultimatemember->form->add_error('user_login', __('Your username is invalid','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_login', __('Your username is invalid','ultimate-member') );
|
||||
return;
|
||||
}
|
||||
}
|
||||
// delete account
|
||||
if ( isset( $_POST['um_account_submit'] ) && $_POST['_um_account_tab'] == "delete" ) {
|
||||
if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
|
||||
$ultimatemember->form->add_error('single_user_password', __('You must enter your password','ultimatemember') );
|
||||
$ultimatemember->form->add_error('single_user_password', __('You must enter your password','ultimate-member') );
|
||||
} else {
|
||||
if ( ! wp_check_password( $_POST['single_user_password'], $user->data->user_pass, $user->data->ID ) ) {
|
||||
$ultimatemember->form->add_error('single_user_password', __('This is not your password','ultimatemember') );
|
||||
$ultimatemember->form->add_error('single_user_password', __('This is not your password','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
<?php do_action('um_after_account_delete'); ?>
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Delete Account','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Delete Account','ultimate-member'); ?>" class="um-button" /></div>
|
||||
<?php do_action('um_after_account_delete_button'); ?>
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
@@ -259,7 +259,7 @@
|
||||
<?php do_action('um_after_account_privacy'); ?>
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Privacy','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Privacy','ultimate-member'); ?>" class="um-button" /></div>
|
||||
<?php do_action('um_after_account_privacy_button'); ?>
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
@@ -289,7 +289,7 @@
|
||||
<?php do_action('um_after_account_general'); ?>
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Account','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Account','ultimate-member'); ?>" class="um-button" /></div>
|
||||
<?php do_action('um_after_account_general_button'); ?>
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
@@ -319,7 +319,7 @@
|
||||
<?php do_action('um_after_account_password'); ?>
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Password','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Password','ultimate-member'); ?>" class="um-button" /></div>
|
||||
<?php do_action('um_after_account_password_button'); ?>
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
@@ -346,7 +346,7 @@
|
||||
|
||||
<?php if ( class_exists('UM_Messaging_API') || class_exists('UM_Followers_API') ) { ?>
|
||||
<div class="um-field">
|
||||
<div class="um-field-label"><label for=""><?php _e('Email me when','ultimatemember'); ?></label><div class="um-clear"></div></div>
|
||||
<div class="um-field-label"><label for=""><?php _e('Email me when','ultimate-member'); ?></label><div class="um-clear"></div></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
<?php do_action('um_after_account_notifications'); ?>
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Notifications','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Notifications','ultimate-member'); ?>" class="um-button" /></div>
|
||||
<?php do_action('um_after_account_notifications_button'); ?>
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
@@ -382,7 +382,7 @@
|
||||
|
||||
<div class="um-account-name">
|
||||
<a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name'); ?></a>
|
||||
<div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimatemember'); ?></a></div>
|
||||
<div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimate-member'); ?></a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -417,7 +417,7 @@
|
||||
|
||||
<div class="um-account-name uimob800-hide">
|
||||
<a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name', 'html'); ?></a>
|
||||
<div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimatemember'); ?></a></div>
|
||||
<div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimate-member'); ?></a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
|
||||
}else{
|
||||
$arr_options['status'] = 'error';
|
||||
$arr_options['message'] = __( 'This is not possible for security reasons.','ultimatemember');
|
||||
$arr_options['message'] = __( 'This is not possible for security reasons.','ultimate-member');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
if ( isset( $_REQUEST['uid'] ) ) {
|
||||
if ( is_super_admin( $_REQUEST['uid'] ) )
|
||||
wp_die( __( 'Super administrators can not be modified.','ultimatemember' ) );
|
||||
wp_die( __( 'Super administrators can not be modified.','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $_REQUEST['um_action'] ) && $_REQUEST['um_action'] != "edit" && ! current_user_can( 'edit_users' ) ){
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset($_REQUEST['uid'])){
|
||||
@@ -78,7 +78,7 @@
|
||||
break;
|
||||
|
||||
case 'um_delete':
|
||||
if ( !um_current_user_can( 'delete', $uid ) ) wp_die( __('You do not have permission to delete this user.','ultimatemember') );
|
||||
if ( !um_current_user_can( 'delete', $uid ) ) wp_die( __('You do not have permission to delete this user.','ultimate-member') );
|
||||
um_fetch_user( $uid );
|
||||
$ultimatemember->user->delete();
|
||||
exit( wp_redirect( $ultimatemember->permalinks->get_current_url( true ) ) );
|
||||
|
||||
+51
-51
@@ -96,7 +96,7 @@
|
||||
foreach( $fields as $key => $array ) {
|
||||
if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
|
||||
if ( !$ultimatemember->form->has_error( $key ) && isset( $args[$key] ) && in_array( $args[$key], $words ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimate-member') );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@
|
||||
$um_profile_photo = um_profile('profile_photo');
|
||||
|
||||
if ( get_post_meta( $form_id, '_um_profile_photo_required', true ) && ( empty( $args['profile_photo'] ) && empty( $um_profile_photo ) ) ) {
|
||||
$ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimatemember'), 'Profile Photo' ) );
|
||||
$ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimate-member'), 'Profile Photo' ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -188,24 +188,24 @@
|
||||
}
|
||||
|
||||
if ( isset( $array['type'] ) && $array['type'] == 'checkbox' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
|
||||
}
|
||||
|
||||
if ( defined('um_user_tags_path') && isset( $array['type'] ) && $array['type'] == 'user_tags' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
|
||||
}
|
||||
|
||||
if ( isset( $array['type'] ) && $array['type'] == 'radio' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
|
||||
}
|
||||
|
||||
if ( isset( $array['type'] ) && $array['type'] == 'multiselect' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
|
||||
}
|
||||
|
||||
if ( $key == 'role_select' || $key == 'role_radio' ) {
|
||||
if ( isset( $array['required'] ) && $array['required'] == 1 && ( !isset( $args['role'] ) || empty( $args['role'] ) ) ) {
|
||||
$ultimatemember->form->add_error('role', __('Please specify account type.','ultimatemember') );
|
||||
$ultimatemember->form->add_error('role', __('Please specify account type.','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,25 +213,25 @@
|
||||
|
||||
if ( isset( $array['required'] ) && $array['required'] == 1 ) {
|
||||
if ( !isset($args[$key]) || $args[$key] == '' ) {
|
||||
$ultimatemember->form->add_error($key, sprintf( __('%s is required','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf( __('%s is required','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['max_words'] ) && $array['max_words'] > 0 ) {
|
||||
if ( str_word_count( $args[$key] ) > $array['max_words'] ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('You are only allowed to enter a maximum of %s words','ultimatemember'), $array['max_words']) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('You are only allowed to enter a maximum of %s words','ultimate-member'), $array['max_words']) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['min_chars'] ) && $array['min_chars'] > 0 ) {
|
||||
if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) < $array['min_chars'] ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Your %s must contain at least %s characters','ultimatemember'), $array['label'], $array['min_chars']) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Your %s must contain at least %s characters','ultimate-member'), $array['label'], $array['min_chars']) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['max_chars'] ) && $array['max_chars'] > 0 ) {
|
||||
if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) > $array['max_chars'] ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Your %s must contain less than %s characters','ultimatemember'), $array['label'], $array['max_chars']) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Your %s must contain less than %s characters','ultimate-member'), $array['label'], $array['max_chars']) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,47 +240,47 @@
|
||||
if( $profile_show_html_bio == 1 && $key !== "description" ){
|
||||
if ( isset( $array['html'] ) && $array['html'] == 0 ) {
|
||||
if ( wp_strip_all_tags( $args[$key] ) != trim( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('You can not use HTML tags here','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('You can not use HTML tags here','ultimate-member') );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['force_good_pass'] ) && $array['force_good_pass'] == 1 ) {
|
||||
if ( !$ultimatemember->validation->strong_pass( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['force_confirm_pass'] ) && $array['force_confirm_pass'] == 1 ) {
|
||||
if ( $args[ 'confirm_' . $key] == '' && !$ultimatemember->form->has_error($key) ) {
|
||||
$ultimatemember->form->add_error( 'confirm_' . $key , __('Please confirm your password','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'confirm_' . $key , __('Please confirm your password','ultimate-member') );
|
||||
}
|
||||
if ( $args[ 'confirm_' . $key] != $args[$key] && !$ultimatemember->form->has_error($key) ) {
|
||||
$ultimatemember->form->add_error( 'confirm_' . $key , __('Your passwords do not match','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'confirm_' . $key , __('Your passwords do not match','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['min_selections'] ) && $array['min_selections'] > 0 ) {
|
||||
if ( ( !isset($args[$key]) ) || ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) < $array['min_selections'] ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please select at least %s choices','ultimatemember'), $array['min_selections'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please select at least %s choices','ultimate-member'), $array['min_selections'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['max_selections'] ) && $array['max_selections'] > 0 ) {
|
||||
if ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) > $array['max_selections'] ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('You can only select up to %s choices','ultimatemember'), $array['max_selections'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('You can only select up to %s choices','ultimate-member'), $array['max_selections'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['min'] ) && is_numeric( $args[ $key ] ) ) {
|
||||
if ( isset( $args[ $key ] ) && $args[ $key ] < $array['min'] ) {
|
||||
$ultimatemember->form->add_error( $key, sprintf(__('Minimum number limit is %s','ultimatemember'), $array['min'] ) );
|
||||
$ultimatemember->form->add_error( $key, sprintf(__('Minimum number limit is %s','ultimate-member'), $array['min'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $array['max'] ) && is_numeric( $args[ $key ] ) ) {
|
||||
if ( isset( $args[ $key ] ) && $args[ $key ] > $array['max'] ) {
|
||||
$ultimatemember->form->add_error( $key, sprintf(__('Maximum number limit is %s','ultimatemember'), $array['max'] ) );
|
||||
$ultimatemember->form->add_error( $key, sprintf(__('Maximum number limit is %s','ultimate-member'), $array['max'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,87 +296,87 @@
|
||||
case 'numeric':
|
||||
|
||||
if ( $args[$key] && !is_numeric( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Please enter numbers only in this field','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Please enter numbers only in this field','ultimate-member') );
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'phone_number':
|
||||
if ( !$ultimatemember->validation->is_phone_number( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Please enter a valid phone number','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Please enter a valid phone number','ultimate-member') );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'youtube_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'youtube.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'soundcloud_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'soundcloud.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'facebook_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'facebook.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'twitter_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'twitter.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'instagram_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'instagram.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'google_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'plus.google.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'linkedin_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'linkedin.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'vk_url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'vk.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'url':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Please enter a valid URL','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Please enter a valid URL','ultimate-member') );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'skype':
|
||||
if ( !$ultimatemember->validation->is_url( $args[$key], 'skype.com' ) ) {
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
|
||||
$ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'unique_username':
|
||||
|
||||
if ( $args[$key] == '' ) {
|
||||
$ultimatemember->form->add_error($key, __('You must provide a username','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('You must provide a username','ultimate-member') );
|
||||
} else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Your username is already taken','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Your username is already taken','ultimate-member') );
|
||||
} else if ( is_email( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Username cannot be an email','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Username cannot be an email','ultimate-member') );
|
||||
} else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimate-member') );
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -384,13 +384,13 @@
|
||||
case 'unique_username_or_email':
|
||||
|
||||
if ( $args[$key] == '' ) {
|
||||
$ultimatemember->form->add_error($key, __('You must provide a username','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('You must provide a username','ultimate-member') );
|
||||
} else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Your username is already taken','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Your username is already taken','ultimate-member') );
|
||||
} else if ( $mode == 'register' && email_exists( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
|
||||
} else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimate-member') );
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -408,30 +408,30 @@
|
||||
$email_exists = email_exists( $args[ $key ] );
|
||||
|
||||
if ( $args[ $key ] == '' && in_array( $key, array('user_email') ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('You must provide your email','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('You must provide your email','ultimate-member') );
|
||||
} else if ( in_array( $mode, array('register') ) && $email_exists ) {
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
|
||||
} else if ( in_array( $mode, array('profile') ) && $email_exists && $email_exists != $args['user_id'] ) {
|
||||
$ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimate-member') );
|
||||
} else if ( !is_email( $args[ $key ] ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('This is not a valid email','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('This is not a valid email','ultimate-member') );
|
||||
} else if ( !$ultimatemember->validation->safe_username( $args[ $key ] ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('Your email contains invalid characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('Your email contains invalid characters','ultimate-member') );
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
if ( $args[ $key ] != '' && !is_email( $args[ $key ] ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('This is not a valid email','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('This is not a valid email','ultimate-member') );
|
||||
} else if ( $args[ $key ] != '' && email_exists( $args[ $key ] ) ) {
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
|
||||
$ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
|
||||
} else if ( $args[ $key ] != '' ) {
|
||||
|
||||
$users = get_users('meta_value='.$args[ $key ]);
|
||||
|
||||
foreach ( $users as $user ) {
|
||||
if( $user->ID != $args['user_id'] ){
|
||||
$ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -456,7 +456,7 @@
|
||||
$meta_key_exists = get_users( $args_unique_meta );
|
||||
|
||||
if( $meta_key_exists ){
|
||||
$ultimatemember->form->add_error( $key , __('You must provide a unique value','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key , __('You must provide a unique value','ultimate-member') );
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -466,7 +466,7 @@
|
||||
if ( $args[$key] != '' ) {
|
||||
|
||||
if( ! ctype_alpha( str_replace(' ', '', $args[$key] ) ) ){
|
||||
$ultimatemember->form->add_error( $key , __('You must provide alphabetic letters','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key , __('You must provide alphabetic letters','ultimate-member') );
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -476,7 +476,7 @@
|
||||
if ( $args[$key] != '' ) {
|
||||
|
||||
if( ! ctype_lower( str_replace(' ', '',$args[$key] ) ) ){
|
||||
$ultimatemember->form->add_error( $key , __('You must provide lowercase letters.','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $key , __('You must provide lowercase letters.','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@
|
||||
|
||||
if( $profile_show_bio ){
|
||||
if ( strlen( utf8_decode( $args['description'] ) ) > $max_chars && $max_chars ) {
|
||||
$ultimatemember->form->add_error('description', sprintf(__('Your user description must contain less than %s characters','ultimatemember'), $max_chars ) );
|
||||
$ultimatemember->form->add_error('description', sprintf(__('Your user description must contain less than %s characters','ultimate-member'), $max_chars ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+15
-15
@@ -15,15 +15,15 @@
|
||||
|
||||
|
||||
if ( isset( $args['username'] ) && $args['username'] == '' ) {
|
||||
$ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $args['user_login'] ) && $args['user_login'] == '' ) {
|
||||
$ultimatemember->form->add_error( 'user_login', __('Please enter your username','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'user_login', __('Please enter your username','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $args['user_email'] ) && $args['user_email'] == '' ) {
|
||||
$ultimatemember->form->add_error( 'user_email', __('Please enter your email','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'user_email', __('Please enter your email','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $args['username'] ) ) {
|
||||
@@ -47,13 +47,13 @@
|
||||
|
||||
if ( !username_exists( $user_name ) ) {
|
||||
if ( $is_email ) {
|
||||
$ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that email address','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that email address','ultimate-member') );
|
||||
} else {
|
||||
$ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that username','ultimatemember') );
|
||||
$ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that username','ultimate-member') );
|
||||
}
|
||||
} else {
|
||||
if ( $args['user_password'] == '' ) {
|
||||
$ultimatemember->form->add_error( 'user_password', __('Please enter your password','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'user_password', __('Please enter your password','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
if ( $user && wp_check_password( $args['user_password'], $user->data->user_pass, $user->ID) ) {
|
||||
$ultimatemember->login->auth_id = username_exists( $user_name );
|
||||
} else {
|
||||
$ultimatemember->form->add_error( 'user_password', __('Password is incorrect. Please try again.','ultimatemember') );
|
||||
$ultimatemember->form->add_error( 'user_password', __('Password is incorrect. Please try again.','ultimate-member') );
|
||||
}
|
||||
|
||||
// add a way for other plugins like wp limit login
|
||||
@@ -76,12 +76,12 @@
|
||||
|
||||
if ( is_wp_error( $user ) && ! in_array( $user->get_error_code(), $ignore_codes ) ) {
|
||||
|
||||
$ultimatemember->form->add_error( $user->get_error_code(), __( $user->get_error_message() ,'ultimatemember') );
|
||||
$ultimatemember->form->add_error( $user->get_error_code(), __( $user->get_error_message() ,'ultimate-member') );
|
||||
}
|
||||
|
||||
if( is_wp_error( $authenticate_user ) && ! in_array( $authenticate_user->get_error_code(), $ignore_codes ) ){
|
||||
|
||||
$ultimatemember->form->add_error( $authenticate_user->get_error_code(), __( $authenticate_user->get_error_message() ,'ultimatemember') );
|
||||
$ultimatemember->form->add_error( $authenticate_user->get_error_code(), __( $authenticate_user->get_error_message() ,'ultimate-member') );
|
||||
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
$rememberme = ( isset($args['rememberme']) ) ? 1 : 0;
|
||||
|
||||
if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) !== FALSE ){
|
||||
wp_die( __('This action has been prevented for security measures.','ultimatemember') );
|
||||
wp_die( __('This action has been prevented for security measures.','ultimate-member') );
|
||||
}
|
||||
|
||||
$ultimatemember->user->auto_login( um_user('ID'), $rememberme );
|
||||
@@ -260,18 +260,18 @@
|
||||
<div class="um-col-alt">
|
||||
|
||||
<?php if ( isset( $args['show_rememberme'] ) && $args['show_rememberme'] ) {
|
||||
echo $ultimatemember->fields->checkbox('rememberme', __('Keep me signed in','ultimatemember') );
|
||||
echo $ultimatemember->fields->checkbox('rememberme', __('Keep me signed in','ultimate-member') );
|
||||
echo '<div class="um-clear"></div>';
|
||||
} ?>
|
||||
|
||||
<?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
|
||||
|
||||
<div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimatemember'); ?></a></div>
|
||||
<div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
|
||||
<div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimate-member'); ?></a></div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-center"><input type="submit" value="<?php echo __( $args['primary_btn_word'],'ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-center"><input type="submit" value="<?php echo __( $args['primary_btn_word'],'ultimate-member'); ?>" class="um-button" /></div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
@@ -294,7 +294,7 @@
|
||||
?>
|
||||
|
||||
<div class="um-col-alt-b">
|
||||
<a href="<?php echo um_get_core_page('password-reset'); ?>" class="um-link-alt"><?php _e('Forgot your password?','ultimatemember'); ?></a>
|
||||
<a href="<?php echo um_get_core_page('password-reset'); ?>" class="um-link-alt"><?php _e('Forgot your password?','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
<input type="hidden" name="um_search" id="um_search" value="1" />
|
||||
|
||||
<a href="#" class="um-button um-do-search"><?php _e('Search','ultimatemember'); ?></a><a href="<?php echo $ultimatemember->permalinks->get_current_url( true ); ?>" class="um-button um-alt"><?php _e('Reset','ultimatemember'); ?></a>
|
||||
<a href="#" class="um-button um-do-search"><?php _e('Search','ultimate-member'); ?></a><a href="<?php echo $ultimatemember->permalinks->get_current_url( true ); ?>" class="um-button um-alt"><?php _e('Reset','ultimate-member'); ?></a>
|
||||
|
||||
</div><div class="um-clear"></div>
|
||||
|
||||
@@ -131,12 +131,12 @@
|
||||
|
||||
<div class="um-members-pagidrop uimob340-show uimob500-show">
|
||||
|
||||
<?php _e('Jump to page:','ultimatemember'); ?>
|
||||
<?php _e('Jump to page:','ultimate-member'); ?>
|
||||
|
||||
<?php if ( um_members('pages_to_show') && is_array( um_members('pages_to_show') ) ) { ?>
|
||||
<select onChange="window.location.href=this.value" class="um-s2" style="width: 100px">
|
||||
<?php foreach( um_members('pages_to_show') as $i ) { ?>
|
||||
<option value="<?php echo $ultimatemember->permalinks->add_query( 'members_page', $i ); ?>" <?php selected($i, um_members('page')); ?>><?php printf(__('%s of %d','ultimatemember'), $i, um_members('total_pages') ); ?></option>
|
||||
<option value="<?php echo $ultimatemember->permalinks->add_query( 'members_page', $i ); ?>" <?php selected($i, um_members('page')); ?>><?php printf(__('%s of %d','ultimate-member'), $i, um_members('total_pages') ); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
@@ -146,13 +146,13 @@
|
||||
<div class="um-members-pagi uimob340-hide uimob500-hide">
|
||||
|
||||
<?php if ( um_members('page') != 1 ) { ?>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('First Page','ultimatemember'); ?>"><i class="um-faicon-angle-double-left"></i></a>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('First Page','ultimate-member'); ?>"><i class="um-faicon-angle-double-left"></i></a>
|
||||
<?php } else { ?>
|
||||
<span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-left"></i></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( um_members('page') > 1 ) { ?>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') - 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Previous','ultimatemember'); ?>"><i class="um-faicon-angle-left"></i></a>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') - 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Previous','ultimate-member'); ?>"><i class="um-faicon-angle-left"></i></a>
|
||||
<?php } else { ?>
|
||||
<span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-left"></i></span>
|
||||
<?php } ?>
|
||||
@@ -172,13 +172,13 @@
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( um_members('page') != um_members('total_pages') ) { ?>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') + 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Next','ultimatemember'); ?>"><i class="um-faicon-angle-right"></i></a>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') + 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Next','ultimate-member'); ?>"><i class="um-faicon-angle-right"></i></a>
|
||||
<?php } else { ?>
|
||||
<span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-right"></i></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( um_members('page') != um_members('total_pages') ) { ?>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('total_pages') ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Last Page','ultimatemember'); ?>"><i class="um-faicon-angle-double-right"></i></a>
|
||||
<a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('total_pages') ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Last Page','ultimate-member'); ?>"><i class="um-faicon-angle-double-right"></i></a>
|
||||
<?php } else { ?>
|
||||
<span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-right"></i></span>
|
||||
<?php } ?>
|
||||
|
||||
+13
-13
@@ -61,7 +61,7 @@
|
||||
$success = '';
|
||||
|
||||
if ( ! get_option('users_can_register') && $mode == 'register' ) {
|
||||
$err = __('Registration is currently disabled','ultimatemember');
|
||||
$err = __('Registration is currently disabled','ultimate-member');
|
||||
}
|
||||
|
||||
if ( isset( $_REQUEST['updated'] ) && !empty( $_REQUEST['updated'] ) && !$ultimatemember->form->errors ) {
|
||||
@@ -72,15 +72,15 @@
|
||||
break;
|
||||
|
||||
case 'account':
|
||||
$success = __('Your account was updated successfully.','ultimatemember');
|
||||
$success = __('Your account was updated successfully.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'password_changed':
|
||||
$success = __('You have successfully changed your password.','ultimatemember');
|
||||
$success = __('You have successfully changed your password.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'account_active':
|
||||
$success = __('Your account is now active! You can login.','ultimatemember');
|
||||
$success = __('Your account is now active! You can login.','ultimate-member');
|
||||
break;
|
||||
|
||||
}
|
||||
@@ -92,39 +92,39 @@
|
||||
default:
|
||||
$err = apply_filters("um_custom_error_message_handler", $err, $_REQUEST['err']);
|
||||
if ( !$err )
|
||||
$err = __('An error has been encountered','ultimatemember');
|
||||
$err = __('An error has been encountered','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'registration_disabled':
|
||||
$err = __('Registration is currently disabled','ultimatemember');
|
||||
$err = __('Registration is currently disabled','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'blocked_email':
|
||||
$err = __('This email address has been blocked.','ultimatemember');
|
||||
$err = __('This email address has been blocked.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'blocked_domain':
|
||||
$err = __('We do not accept registrations from that domain.','ultimatemember');
|
||||
$err = __('We do not accept registrations from that domain.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'blocked_ip':
|
||||
$err = __('Your IP address has been blocked.','ultimatemember');
|
||||
$err = __('Your IP address has been blocked.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'inactive':
|
||||
$err = __('Your account has been disabled.','ultimatemember');
|
||||
$err = __('Your account has been disabled.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'awaiting_admin_review':
|
||||
$err = __('Your account has not been approved yet.','ultimatemember');
|
||||
$err = __('Your account has not been approved yet.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'awaiting_email_confirmation':
|
||||
$err = __('Your account is awaiting e-mail verification.','ultimatemember');
|
||||
$err = __('Your account is awaiting e-mail verification.','ultimate-member');
|
||||
break;
|
||||
|
||||
case 'rejected':
|
||||
$err = __('Your membership request has been rejected.','ultimatemember');
|
||||
$err = __('Your membership request has been rejected.','ultimate-member');
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
@@ -96,16 +96,16 @@
|
||||
global $ultimatemember;
|
||||
|
||||
if ( $_POST[ $ultimatemember->honeypot ] != '' )
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
wp_die('Hello, spam bot!','ultimate-member');
|
||||
|
||||
$form_timestamp = trim($_POST['timestamp']);
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
wp_die( __('Hello, spam bot!','ultimate-member') );
|
||||
|
||||
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
|
||||
|
||||
$user = "";
|
||||
|
||||
@@ -116,11 +116,11 @@
|
||||
}
|
||||
|
||||
if ( empty( $user ) ) {
|
||||
$ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimatemember') );
|
||||
$ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( ( !is_email( $user ) && !username_exists( $user ) ) || ( is_email( $user ) && !email_exists( $user ) ) ) {
|
||||
$ultimatemember->form->add_error('username_b', __('We can\'t find an account registered with that address or username','ultimatemember') );
|
||||
$ultimatemember->form->add_error('username_b', __('We can\'t find an account registered with that address or username','ultimate-member') );
|
||||
} else {
|
||||
|
||||
if ( is_email( $user ) ) {
|
||||
@@ -139,7 +139,7 @@
|
||||
}else{
|
||||
$limit = um_get_option('reset_password_limit_number');
|
||||
if ( $attempts >= $limit ) {
|
||||
$ultimatemember->form->add_error('username_b', __('You have reached the limit for requesting password change for this user already. Contact support if you cannot open the email','ultimatemember') );
|
||||
$ultimatemember->form->add_error('username_b', __('You have reached the limit for requesting password change for this user already. Contact support if you cannot open the email','ultimate-member') );
|
||||
} else {
|
||||
update_user_meta( $user_id, 'password_rst_attempts', $attempts + 1 );
|
||||
}
|
||||
@@ -158,17 +158,17 @@
|
||||
global $ultimatemember;
|
||||
|
||||
if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
wp_die('Hello, spam bot!','ultimate-member');
|
||||
}
|
||||
|
||||
$form_timestamp = trim($_POST['timestamp']);
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
wp_die( __('Hello, spam bot!','ultimate-member') );
|
||||
|
||||
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 ){
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
|
||||
}
|
||||
|
||||
$reset_pass_hash = '';
|
||||
@@ -182,35 +182,35 @@
|
||||
is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id() ||
|
||||
!is_user_logged_in() && isset( $_REQUEST['hash'] ) && $reset_pass_hash != $_REQUEST['hash'] && um_is_core_page('password-reset')
|
||||
){
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $args['user_password'] ) && empty( $args['user_password'] ) ) {
|
||||
$ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_get_option('reset_require_strongpass') ) {
|
||||
|
||||
if ( strlen( utf8_decode( $args['user_password'] ) ) < 8 ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( strlen( utf8_decode( $args['user_password'] ) ) > 30 ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( !$ultimatemember->validation->strong_pass( $args['user_password'] ) ) {
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
|
||||
$ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( isset( $args['confirm_user_password'] ) && empty( $args['confirm_user_password'] ) ) {
|
||||
$ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimatemember') );
|
||||
$ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( isset( $args['user_password'] ) && isset( $args['confirm_user_password'] ) && $args['user_password'] != $args['confirm_user_password'] ) {
|
||||
$ultimatemember->form->add_error('confirm_user_password', __('Your passwords do not match','ultimatemember') );
|
||||
$ultimatemember->form->add_error('confirm_user_password', __('Your passwords do not match','ultimate-member') );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
|
||||
<div class="um-center"><input type="submit" value="<?php _e('Reset my password','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-center"><input type="submit" value="<?php _e('Reset my password','ultimate-member'); ?>" class="um-button" /></div>
|
||||
|
||||
<div class="um-clear"></div>
|
||||
|
||||
@@ -291,7 +291,7 @@
|
||||
|
||||
<div class="um-col-alt um-col-alt-b">
|
||||
|
||||
<div class="um-center"><input type="submit" value="<?php _e('Change my password','ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-center"><input type="submit" value="<?php _e('Change my password','ultimate-member'); ?>" class="um-button" /></div>
|
||||
|
||||
<div class="um-clear"></div>
|
||||
|
||||
|
||||
+17
-17
@@ -53,7 +53,7 @@
|
||||
if ( um_current_user_can('edit', $args['user_id'] ) ) {
|
||||
$ultimatemember->user->set( $args['user_id'] );
|
||||
} else {
|
||||
wp_die( __('You are not allowed to edit this user.','ultimatemember') );
|
||||
wp_die( __('You are not allowed to edit this user.','ultimate-member') );
|
||||
}
|
||||
} else if ( isset( $args['_user_id'] ) ) {
|
||||
$ultimatemember->user->set( $args['_user_id'] );
|
||||
@@ -197,7 +197,7 @@
|
||||
<span class="um-cover-overlay-s">
|
||||
<ins>
|
||||
<i class="um-faicon-picture-o"></i>
|
||||
<span class="um-cover-overlay-t">'.__('Change your cover photo','ultimatemember').'</span>
|
||||
<span class="um-cover-overlay-t">'.__('Change your cover photo','ultimate-member').'</span>
|
||||
</ins>
|
||||
</span>
|
||||
</span>';
|
||||
@@ -213,9 +213,9 @@
|
||||
if ( $ultimatemember->fields->editing ) {
|
||||
|
||||
$items = array(
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width">'.__('Change cover photo','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-reset-cover-photo" data-user_id="'.um_profile_id().'">'.__('Remove','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width">'.__('Change cover photo','ultimate-member').'</a>',
|
||||
'<a href="#" class="um-reset-cover-photo" data-user_id="'.um_profile_id().'">'.__('Remove','ultimate-member').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
|
||||
);
|
||||
|
||||
echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', $items );
|
||||
@@ -255,7 +255,7 @@
|
||||
|
||||
if ( !isset( $ultimatemember->user->cannot_edit ) ) { ?>
|
||||
|
||||
<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="<?php _e('Upload a cover photo','ultimatemember'); ?>"></i></span></a>
|
||||
<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="<?php _e('Upload a cover photo','ultimate-member'); ?>"></i></span></a>
|
||||
|
||||
<?php }
|
||||
|
||||
@@ -328,8 +328,8 @@
|
||||
if ( !um_profile('profile_photo') ) { // has profile photo
|
||||
|
||||
$items = array(
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Upload photo','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Upload photo','ultimate-member').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
|
||||
);
|
||||
|
||||
$items = apply_filters('um_user_photo_menu_view', $items );
|
||||
@@ -339,9 +339,9 @@
|
||||
} else if ( $ultimatemember->fields->editing == true ) {
|
||||
|
||||
$items = array(
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Change photo','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-reset-profile-photo" data-user_id="'.um_profile_id().'" data-default_src="'.um_get_default_avatar_uri().'">'.__('Remove photo','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
|
||||
'<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Change photo','ultimate-member').'</a>',
|
||||
'<a href="#" class="um-reset-profile-photo" data-user_id="'.um_profile_id().'" data-default_src="'.um_get_default_avatar_uri().'">'.__('Remove photo','ultimate-member').'</a>',
|
||||
'<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
|
||||
);
|
||||
|
||||
$items = apply_filters('um_user_photo_menu_edit', $items );
|
||||
@@ -401,7 +401,7 @@
|
||||
<?php } else if ( $ultimatemember->fields->editing == true && $args['show_bio'] ) { ?>
|
||||
|
||||
<div class="um-meta-text">
|
||||
<textarea id="um-meta-bio" data-character-limit="<?php echo um_get_option('profile_bio_maxchars'); ?>" placeholder="<?php _e('Tell us a bit about yourself...','ultimatemember'); ?>" name="<?php echo 'description-' . $args['form_id']; ?>" id="<?php echo 'description-' . $args['form_id']; ?>"><?php if ( um_user('description') ) { echo um_user('description'); } ?></textarea>
|
||||
<textarea id="um-meta-bio" data-character-limit="<?php echo um_get_option('profile_bio_maxchars'); ?>" placeholder="<?php _e('Tell us a bit about yourself...','ultimate-member'); ?>" name="<?php echo 'description-' . $args['form_id']; ?>" id="<?php echo 'description-' . $args['form_id']; ?>"><?php if ( um_user('description') ) { echo um_user('description'); } ?></textarea>
|
||||
<span class="um-meta-bio-character um-right"><span class="um-bio-limit"><?php echo um_get_option('profile_bio_maxchars'); ?></span></span>
|
||||
<?php
|
||||
if ( $ultimatemember->fields->is_error('description') ) {
|
||||
@@ -414,7 +414,7 @@
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-profile-status <?php echo um_user('account_status'); ?>">
|
||||
<span><?php printf(__('This user account status is %s','ultimatemember'), um_user('account_status_name') ); ?></span>
|
||||
<span><?php printf(__('This user account status is %s','ultimate-member'), um_user('account_status_name') ); ?></span>
|
||||
</div>
|
||||
|
||||
<?php do_action('um_after_header_meta', um_user('ID'), $args ); ?>
|
||||
@@ -499,10 +499,10 @@
|
||||
<?php
|
||||
|
||||
$items = array(
|
||||
'editprofile' => '<a href="'.um_edit_profile_url().'" class="real_url">'.__('Edit Profile','ultimatemember').'</a>',
|
||||
'myaccount' => '<a href="'.um_get_core_page('account').'" class="real_url">'.__('My Account','ultimatemember').'</a>',
|
||||
'logout' => '<a href="'.um_get_core_page('logout').'" class="real_url">'.__('Logout','ultimatemember').'</a>',
|
||||
'cancel' => '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
|
||||
'editprofile' => '<a href="'.um_edit_profile_url().'" class="real_url">'.__('Edit Profile','ultimate-member').'</a>',
|
||||
'myaccount' => '<a href="'.um_get_core_page('account').'" class="real_url">'.__('My Account','ultimate-member').'</a>',
|
||||
'logout' => '<a href="'.um_get_core_page('logout').'" class="real_url">'.__('Logout','ultimate-member').'</a>',
|
||||
'cancel' => '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
|
||||
);
|
||||
|
||||
$cancel = $items['cancel'];
|
||||
|
||||
@@ -328,12 +328,12 @@
|
||||
|
||||
<?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
|
||||
|
||||
<div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimatemember'); ?></a></div>
|
||||
<div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
|
||||
<div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimate-member'); ?></a></div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-center"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
|
||||
<div class="um-center"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
|
||||
?>
|
||||
|
||||
<li><a href="<?php echo um_get_core_page('account'); ?>"><?php _e('Your account','ultimatemember'); ?></a></li>
|
||||
<li><a href="<?php echo esc_url( add_query_arg('redirect_to', $ultimatemember->permalinks->get_current_url(true), um_get_core_page('logout') ) ); ?>"><?php _e('Logout','ultimatemember'); ?></a></li>
|
||||
<li><a href="<?php echo um_get_core_page('account'); ?>"><?php _e('Your account','ultimate-member'); ?></a></li>
|
||||
<li><a href="<?php echo esc_url( add_query_arg('redirect_to', $ultimatemember->permalinks->get_current_url(true), um_get_core_page('logout') ) ); ?>"><?php _e('Logout','ultimate-member'); ?></a></li>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
+27
-27
@@ -131,7 +131,7 @@ class UM_REST_API {
|
||||
*/
|
||||
private function missing_auth() {
|
||||
$error = array();
|
||||
$error['error'] = __( 'You must specify both a token and API key!', 'ultimatemember' );
|
||||
$error['error'] = __( 'You must specify both a token and API key!', 'ultimate-member');
|
||||
|
||||
$this->data = $error;
|
||||
$this->output( 401 );
|
||||
@@ -142,7 +142,7 @@ class UM_REST_API {
|
||||
*/
|
||||
private function invalid_auth() {
|
||||
$error = array();
|
||||
$error['error'] = __( 'Your request could not be authenticated', 'ultimatemember' );
|
||||
$error['error'] = __( 'Your request could not be authenticated', 'ultimate-member');
|
||||
|
||||
$this->data = $error;
|
||||
$this->output( 401 );
|
||||
@@ -153,7 +153,7 @@ class UM_REST_API {
|
||||
*/
|
||||
private function invalid_key() {
|
||||
$error = array();
|
||||
$error['error'] = __( 'Invalid API key', 'ultimatemember' );
|
||||
$error['error'] = __( 'Invalid API key', 'ultimate-member');
|
||||
|
||||
$this->data = $error;
|
||||
$this->output( 401 );
|
||||
@@ -291,12 +291,12 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
|
||||
if ( !$id ) {
|
||||
$error['error'] = __('You must provide a user ID','ultimatemember');
|
||||
$error['error'] = __('You must provide a user ID','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
if ( !$data ) {
|
||||
$error['error'] = __('You need to provide data to update','ultimatemember');
|
||||
$error['error'] = __('You need to provide data to update','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -305,20 +305,20 @@ class UM_REST_API {
|
||||
switch ( $data ) {
|
||||
case 'status':
|
||||
$ultimatemember->user->set_status( $value );
|
||||
$response['success'] = __('User status has been changed.','ultimatemember');
|
||||
$response['success'] = __('User status has been changed.','ultimate-member');
|
||||
break;
|
||||
case 'role':
|
||||
$ultimatemember->user->set_role( $value );
|
||||
$response['success'] = __('User level has been changed.','ultimatemember');
|
||||
$response['success'] = __('User level has been changed.','ultimate-member');
|
||||
break;
|
||||
case 'wp_role':
|
||||
$wp_user_object = new WP_User( $id );
|
||||
$wp_user_object->set_role( $value );
|
||||
$response['success'] = __('User WordPress role has been changed.','ultimatemember');
|
||||
$response['success'] = __('User WordPress role has been changed.','ultimate-member');
|
||||
break;
|
||||
default:
|
||||
update_user_meta( $id, $data, esc_attr( $value ) );
|
||||
$response['success'] = __('User meta has been changed.','ultimatemember');
|
||||
$response['success'] = __('User meta has been changed.','ultimate-member');
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
|
||||
if ( !$id ) {
|
||||
$error['error'] = __('You must provide a user ID','ultimatemember');
|
||||
$error['error'] = __('You must provide a user ID','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ class UM_REST_API {
|
||||
global $um_followers;
|
||||
$results = $um_followers->api->followers( $id );
|
||||
if ( !$results ) {
|
||||
$error['error'] = __('No users were found','ultimatemember');
|
||||
$error['error'] = __('No users were found','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
$response['followers']['count'] = $um_followers->api->count_followers_plain( $id );
|
||||
@@ -355,7 +355,7 @@ class UM_REST_API {
|
||||
$response['followers']['users'][$k]['display_name'] = $user->display_name;
|
||||
}
|
||||
} else {
|
||||
$error['error'] = __('Invalid request','ultimatemember');
|
||||
$error['error'] = __('Invalid request','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
|
||||
if ( !$id ) {
|
||||
$error['error'] = __('You must provide a user ID','ultimatemember');
|
||||
$error['error'] = __('You must provide a user ID','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ class UM_REST_API {
|
||||
global $um_followers;
|
||||
$results = $um_followers->api->following( $id );
|
||||
if ( !$results ) {
|
||||
$error['error'] = __('No users were found','ultimatemember');
|
||||
$error['error'] = __('No users were found','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
$response['following']['count'] = $um_followers->api->count_following_plain( $id );
|
||||
@@ -392,7 +392,7 @@ class UM_REST_API {
|
||||
$response['following']['users'][$k]['display_name'] = $user->display_name;
|
||||
}
|
||||
} else {
|
||||
$error['error'] = __('Invalid request','ultimatemember');
|
||||
$error['error'] = __('Invalid request','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -480,20 +480,20 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
|
||||
if ( !isset( $id ) ) {
|
||||
$error['error'] = __('You must provide a user ID','ultimatemember');
|
||||
$error['error'] = __('You must provide a user ID','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
$user = get_userdata( $id );
|
||||
if ( !$user ) {
|
||||
$error['error'] = __('Invalid user specified','ultimatemember');
|
||||
$error['error'] = __('Invalid user specified','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
um_fetch_user( $id );
|
||||
$ultimatemember->user->delete();
|
||||
|
||||
$response['success'] = __('User has been successfully deleted.','ultimatemember');
|
||||
$response['success'] = __('User has been successfully deleted.','ultimate-member');
|
||||
|
||||
return $response;
|
||||
}
|
||||
@@ -509,13 +509,13 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
|
||||
if ( !isset( $id ) ) {
|
||||
$error['error'] = __('You must provide a user ID','ultimatemember');
|
||||
$error['error'] = __('You must provide a user ID','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
$user = get_userdata( $id );
|
||||
if ( !$user ) {
|
||||
$error['error'] = __('Invalid user specified','ultimatemember');
|
||||
$error['error'] = __('Invalid user specified','ultimate-member');
|
||||
return $error;
|
||||
}
|
||||
|
||||
@@ -637,7 +637,7 @@ class UM_REST_API {
|
||||
$error = array();
|
||||
// Make sure our query is valid
|
||||
if ( ! in_array( $query, $accepted ) ) {
|
||||
$error['error'] = __( 'Invalid query!', 'ultimatemember' );
|
||||
$error['error'] = __( 'Invalid query!', 'ultimate-member');
|
||||
|
||||
$this->data = $error;
|
||||
$this->output();
|
||||
@@ -746,20 +746,20 @@ class UM_REST_API {
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="um_set_api_key"><?php _e( 'Ultimate Member REST API', 'ultimatemember' ); ?></label>
|
||||
<label for="um_set_api_key"><?php _e( 'Ultimate Member REST API', 'ultimate-member'); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<?php if ( empty( $user->um_user_public_key ) ) { ?>
|
||||
<p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
|
||||
<span class="description"><?php _e( 'Generate API Key', 'ultimatemember' ); ?></span></p>
|
||||
<span class="description"><?php _e( 'Generate API Key', 'ultimate-member'); ?></span></p>
|
||||
<?php } else { ?>
|
||||
<p>
|
||||
<strong><?php _e( 'Public key:', 'ultimatemember' ); ?> </strong><span id="publickey"><?php echo $user->um_user_public_key; ?></span><br/>
|
||||
<strong><?php _e( 'Secret key:', 'ultimatemember' ); ?> </strong><span id="privatekey"><?php echo $user->um_user_secret_key; ?></span><br/>
|
||||
<strong><?php _e( 'Token:', 'ultimatemember' ); ?> </strong><span id="token"><?php echo $this->get_token( $user->ID ); ?></span>
|
||||
<strong><?php _e( 'Public key:', 'ultimate-member'); ?> </strong><span id="publickey"><?php echo $user->um_user_public_key; ?></span><br/>
|
||||
<strong><?php _e( 'Secret key:', 'ultimate-member'); ?> </strong><span id="privatekey"><?php echo $user->um_user_secret_key; ?></span><br/>
|
||||
<strong><?php _e( 'Token:', 'ultimate-member'); ?> </strong><span id="token"><?php echo $this->get_token( $user->ID ); ?></span>
|
||||
</p>
|
||||
<p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
|
||||
<span class="description"><?php _e( 'Revoke API Keys', 'ultimatemember' ); ?></span></p>
|
||||
<span class="description"><?php _e( 'Revoke API Keys', 'ultimate-member'); ?></span></p>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
+579
-579
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -12,7 +12,7 @@ class UM_Cron {
|
||||
// Adds once weekly to the existing schedules.
|
||||
$schedules['weekly'] = array(
|
||||
'interval' => 604800,
|
||||
'display' => __( 'Once Weekly', 'ultimatemember' )
|
||||
'display' => __( 'Once Weekly', 'ultimate-member')
|
||||
);
|
||||
|
||||
return $schedules;
|
||||
|
||||
+13
-13
@@ -23,7 +23,7 @@ class UM_DateTime {
|
||||
$diff = (int) abs( $to - $from );
|
||||
if ( $diff < 60 ) {
|
||||
|
||||
$since = __('just now','ultimatemember');
|
||||
$since = __('just now','ultimate-member');
|
||||
|
||||
} elseif ( $diff < HOUR_IN_SECONDS ) {
|
||||
|
||||
@@ -31,9 +31,9 @@ class UM_DateTime {
|
||||
if ( $mins <= 1 )
|
||||
$mins = 1;
|
||||
if ( $mins == 1 ) {
|
||||
$since = sprintf( __('%s min','ultimatemember'), $mins );
|
||||
$since = sprintf( __('%s min','ultimate-member'), $mins );
|
||||
} else {
|
||||
$since = sprintf( __('%s mins','ultimatemember'), $mins );
|
||||
$since = sprintf( __('%s mins','ultimate-member'), $mins );
|
||||
}
|
||||
|
||||
} elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
|
||||
@@ -42,9 +42,9 @@ class UM_DateTime {
|
||||
if ( $hours <= 1 )
|
||||
$hours = 1;
|
||||
if ( $hours == 1 ) {
|
||||
$since = sprintf( __('%s hr','ultimatemember'), $hours );
|
||||
$since = sprintf( __('%s hr','ultimate-member'), $hours );
|
||||
} else {
|
||||
$since = sprintf( __('%s hrs','ultimatemember'), $hours );
|
||||
$since = sprintf( __('%s hrs','ultimate-member'), $hours );
|
||||
}
|
||||
|
||||
} elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
|
||||
@@ -53,22 +53,22 @@ class UM_DateTime {
|
||||
if ( $days <= 1 )
|
||||
$days = 1;
|
||||
if ( $days == 1 ) {
|
||||
$since = sprintf( __('Yesterday at %s','ultimatemember'), date('g:ia', $from ) );
|
||||
$since = sprintf( __('Yesterday at %s','ultimate-member'), date('g:ia', $from ) );
|
||||
} else {
|
||||
$since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
|
||||
$since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
|
||||
}
|
||||
|
||||
} elseif ( $diff < 30 * DAY_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
|
||||
|
||||
$since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
|
||||
$since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
|
||||
|
||||
} elseif ( $diff < YEAR_IN_SECONDS && $diff >= 30 * DAY_IN_SECONDS ) {
|
||||
|
||||
$since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
|
||||
$since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
|
||||
|
||||
} elseif ( $diff >= YEAR_IN_SECONDS ) {
|
||||
|
||||
$since = sprintf(__('%s at %s','ultimatemember'), date( 'F d, Y', $from ), date('g:ia', $from ) );
|
||||
$since = sprintf(__('%s at %s','ultimate-member'), date( 'F d, Y', $from ), date('g:ia', $from ) );
|
||||
|
||||
}
|
||||
|
||||
@@ -85,11 +85,11 @@ class UM_DateTime {
|
||||
$age = date('Y') - $then_year;
|
||||
if( strtotime('+' . $age . ' years', $then_ts) > current_time( 'timestamp' ) ) $age--;
|
||||
if ( $age == 1 )
|
||||
return sprintf(__('%s year old','ultimatemember'), $age );
|
||||
return sprintf(__('%s year old','ultimate-member'), $age );
|
||||
if ( $age > 1 )
|
||||
return sprintf(__('%s years old','ultimatemember'), $age );
|
||||
return sprintf(__('%s years old','ultimate-member'), $age );
|
||||
if ( $age == 0 )
|
||||
return __('Less than 1 year old','ultimatemember');
|
||||
return __('Less than 1 year old','ultimate-member');
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ class UM_Enqueue {
|
||||
wp_enqueue_script('um_datetime_locale');
|
||||
}
|
||||
|
||||
if(is_object($post) && has_shortcode($post->post_content,'ultimatemember')) {
|
||||
if(is_object($post) && has_shortcode($post->post_content,'ultimatemember' )) {
|
||||
wp_dequeue_script('jquery-form');
|
||||
}
|
||||
}
|
||||
|
||||
+25
-25
@@ -746,7 +746,7 @@ class UM_Fields {
|
||||
return $fields[$key]['title'];
|
||||
if ( isset( $fields[$key]['label'] ) )
|
||||
return $fields[$key]['label'];
|
||||
return __('Custom Field','ultimatemember');
|
||||
return __('Custom Field','ultimate-member');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1021,18 +1021,18 @@ class UM_Fields {
|
||||
if ( $array['min_width'] == '' && $array['crop'] == 3 ) $array['min_width'] = 600;
|
||||
if ( $array['min_height'] == '' && $array['crop'] == 3 ) $array['min_height'] = 600;
|
||||
|
||||
if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimatemember');
|
||||
if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimate-member');
|
||||
if (!isset($array['allowed_types'])) {
|
||||
$array['allowed_types'] = "gif,jpg,jpeg,png";
|
||||
} else {
|
||||
$array['allowed_types'] = implode(',',$array['allowed_types']);
|
||||
}
|
||||
if (!isset($array['upload_text'])) $array['upload_text'] = '';
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimatemember');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimatemember');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimatemember');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimatemember');
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimate-member');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimate-member');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimate-member');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimate-member');
|
||||
if (!isset($array['max_size'])) $array['max_size'] = 999999999;
|
||||
if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
|
||||
if (!isset($array['icon']) ) $array['icon'] = '';
|
||||
@@ -1049,11 +1049,11 @@ class UM_Fields {
|
||||
$array['allowed_types'] = implode(',',$array['allowed_types']);
|
||||
}
|
||||
if (!isset($array['upload_text'])) $array['upload_text'] = '';
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid file.",'ultimatemember');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This file is too large!",'ultimatemember');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This file is too small!",'ultimatemember');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one file",'ultimatemember');
|
||||
if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
|
||||
if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid file.",'ultimate-member');
|
||||
if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This file is too large!",'ultimate-member');
|
||||
if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This file is too small!",'ultimate-member');
|
||||
if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one file",'ultimate-member');
|
||||
if (!isset($array['max_size'])) $array['max_size'] = 999999999;
|
||||
if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
|
||||
if (!isset($array['icon']) ) $array['icon'] = '';
|
||||
@@ -1334,7 +1334,7 @@ class UM_Fields {
|
||||
$output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
|
||||
|
||||
if ( isset( $data['label'] ) ) {
|
||||
$output .= $this->field_label( __('Current Password','ultimatemember'), $key, $data);
|
||||
$output .= $this->field_label( __('Current Password','ultimate-member'), $key, $data);
|
||||
}
|
||||
|
||||
$output .= '<div class="um-field-area">';
|
||||
@@ -1363,7 +1363,7 @@ class UM_Fields {
|
||||
|
||||
if ( $this->set_mode == 'account' && um_is_core_page('account') || $this->set_mode == 'password' && um_is_core_page('password-reset') ) {
|
||||
|
||||
$output .= $this->field_label( __('New Password','ultimatemember'), $key, $data);
|
||||
$output .= $this->field_label( __('New Password','ultimate-member'), $key, $data);
|
||||
|
||||
} else if ( isset( $data['label'] ) ) {
|
||||
|
||||
@@ -1395,7 +1395,7 @@ class UM_Fields {
|
||||
$output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
|
||||
|
||||
if ( isset( $data['label'] ) ) {
|
||||
$output .= $this->field_label( sprintf(__('Confirm %s','ultimatemember'), $data['label'] ), $key, $data);
|
||||
$output .= $this->field_label( sprintf(__('Confirm %s','ultimate-member'), $data['label'] ), $key, $data);
|
||||
}
|
||||
|
||||
$output .= '<div class="um-field-area">';
|
||||
@@ -1617,7 +1617,7 @@ class UM_Fields {
|
||||
$output .= $this->field_label($label, $key, $data);
|
||||
}
|
||||
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
|
||||
|
||||
$output .= '<div class="um-field-area" style="text-align: center">';
|
||||
|
||||
@@ -1636,7 +1636,7 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-single-image-preview show '. $crop_class .'" data-crop="'.$crop_data.'" data-key="'.$key.'">
|
||||
<a href="#" class="cancel"><i class="um-icon-close"></i></a>' . $img . '
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimatemember') . '</a>';
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimate-member') . '</a>';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1671,8 +1671,8 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-modal-footer">
|
||||
<div class="um-modal-right">
|
||||
<a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimatemember').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Apply','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimate-member').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Apply','ultimate-member') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
|
||||
</div>
|
||||
<div class="um-clear"></div>
|
||||
</div>';
|
||||
@@ -1701,7 +1701,7 @@ class UM_Fields {
|
||||
$output .= $this->field_label($label, $key, $data);
|
||||
}
|
||||
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
|
||||
$modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
|
||||
|
||||
$output .= '<div class="um-field-area" style="text-align: center">';
|
||||
|
||||
@@ -1717,7 +1717,7 @@ class UM_Fields {
|
||||
<span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
|
||||
</a>
|
||||
</div>
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimatemember') . '</a>';
|
||||
</div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimate-member') . '</a>';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1759,8 +1759,8 @@ class UM_Fields {
|
||||
|
||||
$output .= '<div class="um-modal-footer">
|
||||
<div class="um-modal-right">
|
||||
<a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Save','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
|
||||
<a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Save','ultimate-member') . '</a>
|
||||
<a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
|
||||
</div>
|
||||
<div class="um-clear"></div>
|
||||
</div>';
|
||||
@@ -2664,9 +2664,9 @@ class UM_Fields {
|
||||
}
|
||||
|
||||
if ( um_is_myprofile() ) {
|
||||
$output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimatemember'), um_edit_profile_url() ) . '</span></p>';
|
||||
$output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimate-member'), um_edit_profile_url() ) . '</span></p>';
|
||||
} else {
|
||||
$output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimatemember') . '</span></p>';
|
||||
$output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimate-member') . '</span></p>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -374,7 +374,7 @@ class UM_Files {
|
||||
if ( $data == null ) {
|
||||
$data = apply_filters("um_custom_image_handle_{$field}", '' );
|
||||
if ( !$data ) {
|
||||
$error = __('This media type is not recognized.','ultimatemember');
|
||||
$error = __('This media type is not recognized.','ultimate-member');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -382,15 +382,15 @@ class UM_Files {
|
||||
$data = apply_filters("um_image_handle_{$field}__option", $data );
|
||||
|
||||
if ( $fileinfo['invalid_image'] == true ) {
|
||||
$error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
|
||||
$error = sprintf(__('Your image is invalid or too large!','ultimate-member') );
|
||||
} elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
|
||||
$error = ( isset( $data['extension_error'] ) && !empty( $data['extension_error'] ) ) ? $data['extension_error'] : 'not allowed';
|
||||
} elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
|
||||
$error = $data['min_size_error'];
|
||||
} elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
|
||||
$error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_width']);
|
||||
$error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimate-member'), $data['min_width']);
|
||||
} elseif ( isset($data['min_height']) && ( $fileinfo['height'] < $data['min_height'] ) ) {
|
||||
$error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_height']);
|
||||
$error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimate-member'), $data['min_height']);
|
||||
}
|
||||
|
||||
return $error;
|
||||
@@ -442,7 +442,7 @@ class UM_Files {
|
||||
unlink( $is_temp );
|
||||
rmdir( dirname( $is_temp ) );
|
||||
} else {
|
||||
wp_die( __('Ultimate Member: Not a valid temp file','ultimatemember') );
|
||||
wp_die( __('Ultimate Member: Not a valid temp file','ultimate-member') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ class UM_Files {
|
||||
function new_user_upload( $user_id, $source, $key ) {
|
||||
|
||||
if( ! is_numeric( $user_id ) ){
|
||||
wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimatemember') );
|
||||
wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimate-member') );
|
||||
}
|
||||
|
||||
$user_id = trim( $user_id );
|
||||
@@ -541,13 +541,13 @@ class UM_Files {
|
||||
$this->new_user( $user_id );
|
||||
|
||||
if ( is_user_logged_in() && ( get_current_user_id() != $user_id ) && !um_user_can('can_edit_everyone') ) {
|
||||
wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
|
||||
wp_die( __('Unauthorized to do this attempt.','ultimate-member') );
|
||||
}
|
||||
|
||||
$allow_frontend_image_uploads = apply_filters('um_allow_frontend_image_uploads', false, $user_id, $key );
|
||||
|
||||
if ( $allow_frontend_image_uploads == false && !is_user_logged_in() && ( $key == 'profile_photo' || $key == 'cover_photo' ) ) {
|
||||
wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
|
||||
wp_die( __('Unauthorized to do this attempt.','ultimate-member') );
|
||||
}
|
||||
|
||||
$ext = '.' . pathinfo($source, PATHINFO_EXTENSION);
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
'type' => 'switch',
|
||||
'title' => $addon[0],
|
||||
'desc' => $addon[1],
|
||||
'on' => __('Activated','ultimatemember'),
|
||||
'off' => __('Deactivated','ultimatemember'),
|
||||
'on' => __('Activated','ultimate-member'),
|
||||
'off' => __('Deactivated','ultimate-member'),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
$sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-plug',
|
||||
'title' => __( 'Extensions','ultimatemember'),
|
||||
'title' => __( 'Extensions','ultimate-member'),
|
||||
|
||||
);
|
||||
|
||||
$sections[] = array(
|
||||
|
||||
'subsection' => true,
|
||||
'title' => __( 'Tools','ultimatemember'),
|
||||
'title' => __( 'Tools','ultimate-member'),
|
||||
'fields' => $array,
|
||||
|
||||
);
|
||||
@@ -54,7 +54,7 @@
|
||||
$sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-key',
|
||||
'title' => __( 'Licenses','ultimatemember'),
|
||||
'title' => __( 'Licenses','ultimate-member'),
|
||||
'fields' => $fields,
|
||||
'subsection' => false,
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
$asterisk = um_get_option('form_asterisk');
|
||||
if ( $asterisk && isset( $data['required'] ) && $data['required'] == 1 )
|
||||
$label = $label . '<span class="um-req" title="'.__('Required','ultimatemember').'">*</span>';
|
||||
$label = $label . '<span class="um-req" title="'.__('Required','ultimate-member').'">*</span>';
|
||||
|
||||
return $label;
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
function um_profile_field_filter_hook__soundcloud_track( $value, $data ) {
|
||||
|
||||
if ( !is_numeric( $value ) ) {
|
||||
return __('Invalid soundcloud track ID','ultimatemember');
|
||||
return __('Invalid soundcloud track ID','ultimate-member');
|
||||
}
|
||||
|
||||
$value = '<div class="um-soundcloud">
|
||||
@@ -79,7 +79,7 @@
|
||||
add_filter('um_profile_field_filter_hook__user_registered', 'um_profile_field_filter_hook__user_registered', 99, 2);
|
||||
function um_profile_field_filter_hook__user_registered( $value, $data ) {
|
||||
$value = strtotime($value);
|
||||
$value = sprintf(__('Joined %s','ultimatemember'), date_i18n('F d, Y', $value) );
|
||||
$value = sprintf(__('Joined %s','ultimate-member'), date_i18n('F d, Y', $value) );
|
||||
return $value;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
add_filter('um_profile_field_filter_hook___um_last_login', 'um_profile_field_filter_hook__last_login', 99, 2);
|
||||
function um_profile_field_filter_hook__last_login( $value, $data ) {
|
||||
|
||||
$value = sprintf( __('Last login: %s','ultimatemember'), um_user_last_login( um_user('ID') ) );
|
||||
$value = sprintf( __('Last login: %s','ultimate-member'), um_user_last_login( um_user('ID') ) );
|
||||
|
||||
return $value;
|
||||
}
|
||||
@@ -451,7 +451,7 @@
|
||||
$arr_options = array();
|
||||
if( is_array( $options ) ){
|
||||
foreach ( $options as $item ) {
|
||||
$arr_options[] = __( $item, 'ultimatemember' );
|
||||
$arr_options[] = __( $item, 'ultimate-member');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
if ( isset( $_REQUEST['err'] ) && !empty( $_REQUEST['err'] ) ) {
|
||||
switch( $_REQUEST['err'] ) {
|
||||
case 'blocked_email':
|
||||
$err = __('This email address has been blocked.','ultimatemember');
|
||||
$err = __('This email address has been blocked.','ultimate-member');
|
||||
break;
|
||||
case 'blocked_ip':
|
||||
$err = __('Your IP address has been blocked.','ultimatemember');
|
||||
$err = __('Your IP address has been blocked.','ultimate-member');
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -75,16 +75,16 @@
|
||||
|
||||
switch( $status ) {
|
||||
case 'inactive':
|
||||
return new WP_Error( $status, __('Your account has been disabled.','ultimatemember') );
|
||||
return new WP_Error( $status, __('Your account has been disabled.','ultimate-member') );
|
||||
break;
|
||||
case 'awaiting_admin_review':
|
||||
return new WP_Error( $status, __('Your account has not been approved yet.','ultimatemember') );
|
||||
return new WP_Error( $status, __('Your account has not been approved yet.','ultimate-member') );
|
||||
break;
|
||||
case 'awaiting_email_confirmation':
|
||||
return new WP_Error( $status, __('Your account is awaiting e-mail verification.','ultimatemember') );
|
||||
return new WP_Error( $status, __('Your account is awaiting e-mail verification.','ultimate-member') );
|
||||
break;
|
||||
case 'rejected':
|
||||
return new WP_Error( $status, __('Your membership request has been rejected.','ultimatemember') );
|
||||
return new WP_Error( $status, __('Your membership request has been rejected.','ultimate-member') );
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
function um_profile_tabs( $tabs ) {
|
||||
|
||||
$tabs['main'] = array(
|
||||
'name' => __('About','ultimatemember'),
|
||||
'name' => __('About','ultimate-member'),
|
||||
'icon' => 'um-faicon-user'
|
||||
);
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
if( $file_size >= 999999999 ){
|
||||
|
||||
}else{
|
||||
$args['cover_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimatemember').': <span>'.$file_size.$unit.'</span> )</small>';
|
||||
$args['cover_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimate-member').': <span>'.$file_size.$unit.'</span> )</small>';
|
||||
}
|
||||
return $args;
|
||||
}
|
||||
@@ -99,7 +99,7 @@
|
||||
if( $file_size >= 999999999 ){
|
||||
|
||||
}else{
|
||||
$args['profile_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimatemember').': <span>'.$file_size.$unit.'</span> )</small>';
|
||||
$args['profile_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimate-member').': <span>'.$file_size.$unit.'</span> )</small>';
|
||||
}
|
||||
return $args;
|
||||
}
|
||||
|
||||
+16
-16
@@ -8,13 +8,13 @@
|
||||
|
||||
$actions = null;
|
||||
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
|
||||
$actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimatemember') );
|
||||
$actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimatemember') );
|
||||
$actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimatemember') );
|
||||
$actions['um_deactivate'] = array( 'label' => __('Deactivate','ultimatemember') );
|
||||
$actions['um_reenable'] = array( 'label' => __('Reactivate','ultimatemember') );
|
||||
//$actions['um_delete'] = array( 'label' => __('Delete','ultimatemember') );
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
|
||||
$actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimate-member') );
|
||||
$actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimate-member') );
|
||||
$actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimate-member') );
|
||||
$actions['um_deactivate'] = array( 'label' => __('Deactivate','ultimate-member') );
|
||||
$actions['um_reenable'] = array( 'label' => __('Reactivate','ultimate-member') );
|
||||
//$actions['um_delete'] = array( 'label' => __('Delete','ultimate-member') );
|
||||
|
||||
return $actions;
|
||||
}
|
||||
@@ -32,38 +32,38 @@
|
||||
if ( current_user_can('manage_options') ) {
|
||||
|
||||
if ( um_user('account_status') == 'awaiting_admin_review' ){
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
|
||||
$actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimatemember') );
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
|
||||
$actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_user('account_status') == 'rejected' ) {
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
|
||||
$actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_user('account_status') == 'approved' ) {
|
||||
$actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimatemember') );
|
||||
$actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_user('account_status') == 'awaiting_email_confirmation' ) {
|
||||
$actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimatemember') );
|
||||
$actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_user('account_status') != 'inactive' ) {
|
||||
$actions['um_deactivate'] = array( 'label' => __('Deactivate this account','ultimatemember') );
|
||||
$actions['um_deactivate'] = array( 'label' => __('Deactivate this account','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_user('account_status') == 'inactive' ) {
|
||||
$actions['um_reenable'] = array( 'label' => __('Reactivate this account','ultimatemember') );
|
||||
$actions['um_reenable'] = array( 'label' => __('Reactivate this account','ultimate-member') );
|
||||
}
|
||||
|
||||
if ( um_current_user_can( 'delete', um_profile_id() ) ) {
|
||||
$actions['um_delete'] = array( 'label' => __('Delete this user','ultimatemember') );
|
||||
$actions['um_delete'] = array( 'label' => __('Delete this user','ultimate-member') );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( current_user_can('delete_users') ) {
|
||||
$actions['um_switch_user'] = array( 'label' => __('Login as this user','ultimatemember') );
|
||||
$actions['um_switch_user'] = array( 'label' => __('Login as this user','ultimate-member') );
|
||||
}
|
||||
|
||||
|
||||
|
||||
+4
-4
@@ -122,7 +122,7 @@ class UM_Form {
|
||||
}
|
||||
|
||||
if ( isset( $custom_field_roles ) && is_array( $custom_field_roles ) && ! empty( $role ) && ! in_array( $role , $custom_field_roles ) ) {
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
|
||||
}
|
||||
|
||||
$this->post_form['role'] = $role;
|
||||
@@ -138,7 +138,7 @@ class UM_Form {
|
||||
}
|
||||
|
||||
if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
wp_die('Hello, spam bot!','ultimate-member');
|
||||
}
|
||||
|
||||
if ( !in_array( $this->form_data['mode'], array('login') ) ) {
|
||||
@@ -147,10 +147,10 @@ class UM_Form {
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
wp_die( __('Hello, spam bot!','ultimate-member') );
|
||||
|
||||
if ( !current_user_can('manage_options') && $live_timestamp - $form_timestamp < 6 && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
|
||||
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
|
||||
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -97,7 +97,7 @@ class UM_Members {
|
||||
|
||||
?>
|
||||
|
||||
<select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $attrs['label'] ), 'ultimatemember'); ?>">
|
||||
<select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $attrs['label'] ), 'ultimate-member'); ?>">
|
||||
|
||||
<option></option>
|
||||
|
||||
@@ -115,7 +115,7 @@ class UM_Members {
|
||||
|
||||
?>
|
||||
|
||||
<option value="<?php echo $opt; ?>" <?php um_select_if_in_query_params( $filter, $opt ); ?>><?php echo __( $v, 'ultimatemember'); ?></option>
|
||||
<option value="<?php echo $opt; ?>" <?php um_select_if_in_query_params( $filter, $opt ); ?>><?php echo __( $v, 'ultimate-member'); ?></option>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
@@ -129,7 +129,7 @@ class UM_Members {
|
||||
|
||||
?>
|
||||
|
||||
<input type="text" autocomplete="off" name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" placeholder="<?php echo isset( $attrs['label'] ) ? __( $attrs['label'], 'ultimatemember') : ''; ?>" value='<?php echo esc_attr( um_queried_search_value( $filter, false ) ); ?>' />
|
||||
<input type="text" autocomplete="off" name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" placeholder="<?php echo isset( $attrs['label'] ) ? __( $attrs['label'], 'ultimate-member') : ''; ?>" value='<?php echo esc_attr( um_queried_search_value( $filter, false ) ); ?>' />
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class UM_Password {
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
if ( $_REQUEST['hash'] != um_user('reset_pass_hash') ){
|
||||
wp_die( __('This is not a valid hash, or it has expired.','ultimatemember') );
|
||||
wp_die( __('This is not a valid hash, or it has expired.','ultimate-member') );
|
||||
}
|
||||
|
||||
$ultimatemember->user->profile['reset_pass_hash_token'] = current_time( 'timestamp' );
|
||||
|
||||
@@ -169,7 +169,7 @@ class UM_Permalinks {
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
if ( strtolower($_REQUEST['hash']) !== strtolower( um_user('account_secret_hash') ) )
|
||||
wp_die( __( 'This activation link is expired or have already been used.','ultimatemember' ) );
|
||||
wp_die( __( 'This activation link is expired or have already been used.','ultimate-member') );
|
||||
|
||||
$ultimatemember->user->approve();
|
||||
$redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');
|
||||
|
||||
+9
-9
@@ -46,9 +46,9 @@ class UM_Setup {
|
||||
'_um_profile_photo' => '1',
|
||||
'_um_cover_photos' => '1',
|
||||
'_um_show_name' => '1',
|
||||
'_um_directory_header' => __('{total_users} Members','ultimatemember'),
|
||||
'_um_directory_header_single' => __('{total_users} Member','ultimatemember'),
|
||||
'_um_directory_no_users' => __('We are sorry. We cannot find any users who match your search criteria.','ultimatemember'),
|
||||
'_um_directory_header' => __('{total_users} Members','ultimate-member'),
|
||||
'_um_directory_header_single' => __('{total_users} Member','ultimate-member'),
|
||||
'_um_directory_no_users' => __('We are sorry. We cannot find any users who match your search criteria.','ultimate-member'),
|
||||
'_um_profiles_per_page' => 12,
|
||||
'_um_profiles_per_page_mobile' => 6,
|
||||
'_um_core' => 'members',
|
||||
@@ -134,12 +134,12 @@ class UM_Setup {
|
||||
'_um_register_max_width' => '450px',
|
||||
'_um_register_align' => 'center',
|
||||
'_um_register_icons' => 'label',
|
||||
'_um_register_primary_btn_word' => __('Register','ultimatemember'),
|
||||
'_um_register_primary_btn_word' => __('Register','ultimate-member'),
|
||||
'_um_register_primary_btn_color' => '#3ba1da',
|
||||
'_um_register_primary_btn_hover' => '#44b0ec',
|
||||
'_um_register_primary_btn_text' => '#fff',
|
||||
'_um_register_secondary_btn' => 1,
|
||||
'_um_register_secondary_btn_word' => __('Login','ultimatemember'),
|
||||
'_um_register_secondary_btn_word' => __('Login','ultimate-member'),
|
||||
'_um_register_secondary_btn_color' => '#eee',
|
||||
'_um_register_secondary_btn_hover' => '#e5e5e5',
|
||||
'_um_register_secondary_btn_text' => '#666',
|
||||
@@ -148,21 +148,21 @@ class UM_Setup {
|
||||
'_um_login_max_width' => '450px',
|
||||
'_um_login_align' => 'center',
|
||||
'_um_login_icons' => 'label',
|
||||
'_um_login_primary_btn_word' => __('Login','ultimatemember'),
|
||||
'_um_login_primary_btn_word' => __('Login','ultimate-member'),
|
||||
'_um_login_primary_btn_color' => '#3ba1da',
|
||||
'_um_login_primary_btn_hover' => '#44b0ec',
|
||||
'_um_login_primary_btn_text' => '#fff',
|
||||
'_um_login_forgot_pass_link' => 1,
|
||||
'_um_login_show_rememberme' => 1,
|
||||
'_um_login_secondary_btn' => 1,
|
||||
'_um_login_secondary_btn_word' => __('Register','ultimatemember'),
|
||||
'_um_login_secondary_btn_word' => __('Register','ultimate-member'),
|
||||
'_um_login_secondary_btn_color' => '#eee',
|
||||
'_um_login_secondary_btn_hover' => '#e5e5e5',
|
||||
'_um_login_secondary_btn_text' => '#666',
|
||||
'_um_login_secondary_btn_url' => '',
|
||||
'_um_directory_template' => 'members',
|
||||
'_um_directory_header' => __('{total_users} Members','ultimatemember'),
|
||||
'_um_directory_header_single' => __('{total_users} Member','ultimatemember'),
|
||||
'_um_directory_header' => __('{total_users} Members','ultimate-member'),
|
||||
'_um_directory_header_single' => __('{total_users} Member','ultimate-member'),
|
||||
);
|
||||
|
||||
$this->core_form_meta_all = apply_filters('um_core_form_meta_all', $this->core_form_meta_all );
|
||||
|
||||
@@ -510,12 +510,12 @@
|
||||
}
|
||||
|
||||
if ( $k == 'timestamp' ) {
|
||||
$k = __('date submitted','ultimatemember');
|
||||
$k = __('date submitted','ultimate-member');
|
||||
$v = date("d M Y H:i", $v);
|
||||
}
|
||||
|
||||
if ( $style ) {
|
||||
if ( !$v ) $v = __('(empty)','ultimatemember');
|
||||
if ( !$v ) $v = __('(empty)','ultimate-member');
|
||||
$output .= "<p><label>$k</label><span>$v</span></p>";
|
||||
} else {
|
||||
$output .= "$k: $v" . "\r\n";
|
||||
|
||||
@@ -8,7 +8,7 @@ class UM_Shortcodes {
|
||||
|
||||
$this->loop = '';
|
||||
|
||||
add_shortcode('ultimatemember', array(&$this, 'ultimatemember'), 1);
|
||||
add_shortcode('ultimatemember', array(&$this, 'ultimatemember' ), 1);
|
||||
|
||||
add_shortcode('um_loggedin', array(&$this, 'um_loggedin'));
|
||||
add_shortcode('um_loggedout', array(&$this, 'um_loggedout'));
|
||||
@@ -202,7 +202,7 @@ class UM_Shortcodes {
|
||||
ob_start();
|
||||
|
||||
$defaults = array(
|
||||
'lock_text' => __('This content has been restricted to logged in users only. Please <a href="{login_referrer}">login</a> to view this content.', 'ultimatemember'),
|
||||
'lock_text' => __('This content has been restricted to logged in users only. Please <a href="{login_referrer}">login</a> to view this content.', 'ultimate-member'),
|
||||
'show_lock' => 'yes',
|
||||
);
|
||||
|
||||
@@ -411,7 +411,7 @@ class UM_Shortcodes {
|
||||
function get_templates($excluded = null) {
|
||||
|
||||
if ($excluded) {
|
||||
$array[$excluded] = __('Default Template', 'ultimatemember');
|
||||
$array[$excluded] = __('Default Template', 'ultimate-member');
|
||||
}
|
||||
|
||||
$paths[] = glob(um_path . 'templates/' . '*.php');
|
||||
|
||||
@@ -144,12 +144,12 @@ class UM_Tracking {
|
||||
|
||||
echo '<div class="updated um-admin-notice"><p>';
|
||||
|
||||
echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a 20% discount which you can use to purchase our core extensions bundle. No sensitive data is tracked.', 'ultimatemember' );
|
||||
echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a 20% discount which you can use to purchase our core extensions bundle. No sensitive data is tracked.', 'ultimate-member');
|
||||
|
||||
echo '</p>';
|
||||
|
||||
echo '<p><a href="' . esc_url( $optin_url ) . '" class="button button-primary">' . __( 'Allow tracking', 'ultimatemember' ) . '</a>';
|
||||
echo ' <a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow tracking', 'ultimatemember' ) . '</a></p></div>';
|
||||
echo '<p><a href="' . esc_url( $optin_url ) . '" class="button button-primary">' . __( 'Allow tracking', 'ultimate-member') . '</a>';
|
||||
echo ' <a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow tracking', 'ultimate-member') . '</a></p></div>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -64,12 +64,12 @@ class UM_User_posts {
|
||||
function add_tab( $tabs ){
|
||||
|
||||
$tabs['posts'] = array(
|
||||
'name' => __('Posts','ultimatemember'),
|
||||
'name' => __('Posts','ultimate-member'),
|
||||
'icon' => 'um-faicon-pencil',
|
||||
);
|
||||
|
||||
$tabs['comments'] = array(
|
||||
'name' => __('Comments','ultimatemember'),
|
||||
'name' => __('Comments','ultimate-member'),
|
||||
'icon' => 'um-faicon-comment',
|
||||
);
|
||||
|
||||
|
||||
+9
-9
@@ -61,12 +61,12 @@ class UM_User {
|
||||
|
||||
$um_user_role = get_user_meta($user->ID,'role',true);
|
||||
?>
|
||||
<h2><?php _e('Ultimate Member','ultimatemember') ?></h2>
|
||||
<h2><?php _e('Ultimate Member','ultimate-member') ?></h2>
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="um_role"><?php _e( 'Community Role', 'ultimatemember' ); ?></label>
|
||||
<label for="um_role"><?php _e( 'Community Role', 'ultimate-member'); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<select name="um_role" id="um_role">
|
||||
@@ -74,7 +74,7 @@ class UM_User {
|
||||
<option value="<?php echo $key; ?>" <?php selected( $um_user_role, $key ); ?> ><?php echo $value; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<span class="description"><?php _e( 'Assign or change the community role for this user', 'ultimatemember' ); ?></span>
|
||||
<span class="description"><?php _e( 'Assign or change the community role for this user', 'ultimate-member'); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -237,23 +237,23 @@ class UM_User {
|
||||
}
|
||||
|
||||
if ( $this->usermeta['account_status'][0] == 'approved' ) {
|
||||
$this->usermeta['account_status_name'][0] = __('Approved','ultimatemember');
|
||||
$this->usermeta['account_status_name'][0] = __('Approved','ultimate-member');
|
||||
}
|
||||
|
||||
if ( $this->usermeta['account_status'][0] == 'awaiting_email_confirmation' ) {
|
||||
$this->usermeta['account_status_name'][0] = __('Awaiting E-mail Confirmation','ultimatemember');
|
||||
$this->usermeta['account_status_name'][0] = __('Awaiting E-mail Confirmation','ultimate-member');
|
||||
}
|
||||
|
||||
if ( $this->usermeta['account_status'][0] == 'awaiting_admin_review' ) {
|
||||
$this->usermeta['account_status_name'][0] = __('Pending Review','ultimatemember');
|
||||
$this->usermeta['account_status_name'][0] = __('Pending Review','ultimate-member');
|
||||
}
|
||||
|
||||
if ( $this->usermeta['account_status'][0] == 'rejected' ) {
|
||||
$this->usermeta['account_status_name'][0] = __('Membership Rejected','ultimatemember');
|
||||
$this->usermeta['account_status_name'][0] = __('Membership Rejected','ultimate-member');
|
||||
}
|
||||
|
||||
if ( $this->usermeta['account_status'][0] == 'inactive' ) {
|
||||
$this->usermeta['account_status_name'][0] = __('Membership Inactive','ultimatemember');
|
||||
$this->usermeta['account_status_name'][0] = __('Membership Inactive','ultimate-member');
|
||||
}
|
||||
|
||||
// add user meta
|
||||
@@ -841,7 +841,7 @@ class UM_User {
|
||||
*/
|
||||
function is_private_profile( $user_id ) {
|
||||
$privacy = get_user_meta( $user_id, 'profile_privacy', true );
|
||||
if ( $privacy == __('Only me','ultimatemember') ) {
|
||||
if ( $privacy == __('Only me','ultimate-member') ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -10,10 +10,10 @@ class um_search_widget extends WP_Widget {
|
||||
'um_search_widget',
|
||||
|
||||
// Widget name will appear in UI
|
||||
__('Ultimate Member - Search', 'ultimatemember'),
|
||||
__('Ultimate Member - Search', 'ultimate-member'),
|
||||
|
||||
// Widget description
|
||||
array( 'description' => __( 'Shows users they follow in a widget.', 'ultimatemember' ), )
|
||||
array( 'description' => __( 'Shows users they follow in a widget.', 'ultimate-member'), )
|
||||
);
|
||||
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class um_search_widget extends WP_Widget {
|
||||
if ( isset( $instance[ 'title' ] ) ) {
|
||||
$title = $instance[ 'title' ];
|
||||
} else {
|
||||
$title = __( 'Search Users', 'ultimatemember' );
|
||||
$title = __( 'Search Users', 'ultimate-member');
|
||||
}
|
||||
|
||||
if ( isset( $instance[ 'max' ] ) ) {
|
||||
|
||||
@@ -6,7 +6,7 @@ Description: The easiest way to create powerful online communities and beautiful
|
||||
Version: 1.3.84
|
||||
Author: Ultimate Member
|
||||
Author URI: http://ultimatemember.com/
|
||||
Text Domain: ultimatemember
|
||||
Text Domain: ultimate-member
|
||||
Domain Path: /languages
|
||||
*/
|
||||
defined('ABSPATH') || exit;
|
||||
@@ -17,7 +17,7 @@ Domain Path: /languages
|
||||
define('um_url',plugin_dir_url(__FILE__ ));
|
||||
define('um_path',plugin_dir_path(__FILE__ ));
|
||||
define('um_plugin', plugin_basename( __FILE__ ) );
|
||||
define('UM_TEXTDOMAIN', 'ultimatemember');
|
||||
define('UM_TEXTDOMAIN', 'ultimate-member');
|
||||
|
||||
define('ultimatemember_version', $plugin_data['Version'] );
|
||||
|
||||
@@ -49,13 +49,13 @@ Domain Path: /languages
|
||||
***/
|
||||
function ultimatemember_plugin_links( $links ) {
|
||||
|
||||
$more_links[] = '<a href="http://docs.ultimatemember.com/">' . __('Docs','ultimatemember') . '</a>';
|
||||
$more_links[] = '<a href="http://docs.ultimatemember.com/">' . __('Docs','ultimate-member') . '</a>';
|
||||
|
||||
$more_links[] = '<a href="'.admin_url().'admin.php?page=um_options">' . __('Settings','ultimatemember') . '</a>';
|
||||
$more_links[] = '<a href="'.admin_url().'admin.php?page=um_options">' . __('Settings','ultimate-member') . '</a>';
|
||||
|
||||
$links = $more_links + $links;
|
||||
|
||||
$links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="um-delete" title="'.__('Remove this plugin','ultimatemember').'">' . __( 'Uninstall','ultimatemember' ) . '</a>';
|
||||
$links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="um-delete" title="'.__('Remove this plugin','ultimate-member').'">' . __( 'Uninstall','ultimate-member') . '</a>';
|
||||
|
||||
return $links;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
echo '<div class="um-field-block">';
|
||||
|
||||
echo '<p>' . __('We have sent you a password reset link to your e-mail. Please check your inbox.','ultimatemember') . '</p>';
|
||||
echo '<p>' . __('We have sent you a password reset link to your e-mail. Please check your inbox.','ultimate-member') . '</p>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="um-item">
|
||||
<div class="um-item-link"><i class="um-icon-chatboxes"></i><a href="<?php echo get_comment_link( $comment->comment_ID ); ?>"><?php echo get_comment_excerpt( $comment->comment_ID ); ?></a></div>
|
||||
<div class="um-item-meta">
|
||||
<span><?php printf(__('On <a href="%1$s">%2$s</a>','ultimatemember'), get_permalink($comment->comment_post_ID), get_the_title($comment->comment_post_ID) ); ?></span>
|
||||
<span><?php printf(__('On <a href="%1$s">%2$s</a>','ultimate-member'), get_permalink($comment->comment_post_ID), get_the_title($comment->comment_post_ID) ); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<?php if ( isset($ultimatemember->shortcodes->modified_args) && count($ultimatemember->shortcodes->loop) >= 10 ) { ?>
|
||||
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="<?php echo $ultimatemember->shortcodes->modified_args; ?>"><?php _e('load more comments','ultimatemember'); ?></a>
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="<?php echo $ultimatemember->shortcodes->modified_args; ?>"><?php _e('load more comments','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -11,7 +11,7 @@
|
||||
<?php if ( count($ultimatemember->shortcodes->loop) >= 10 ) { ?>
|
||||
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php echo um_user('ID'); ?>"><?php _e('load more comments','ultimatemember'); ?></a>
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php echo um_user('ID'); ?>"><?php _e('load more comments','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -20,6 +20,6 @@
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-profile-note"><span><?php echo ( um_profile_id() == get_current_user_id() ) ? __('You have not made any comments.','ultimatemember') : __('This user has not made any comments.','ultimatemember'); ?></span></div>
|
||||
<div class="um-profile-note"><span><?php echo ( um_profile_id() == get_current_user_id() ) ? __('You have not made any comments.','ultimate-member') : __('This user has not made any comments.','ultimate-member'); ?></span></div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -13,9 +13,9 @@
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-item-meta">
|
||||
<span><?php echo sprintf(__('%s ago','ultimatemember'), human_time_diff( get_the_time('U'), current_time('timestamp') ) ); ?></span>
|
||||
<span><?php echo __('in','ultimatemember');?>: <?php the_category( ', ' ); ?></span>
|
||||
<span><?php comments_number( __('no comments','ultimatemember'), __('1 comment','ultimatemember'), __('% comments','ultimatemember') ); ?></span>
|
||||
<span><?php echo sprintf(__('%s ago','ultimate-member'), human_time_diff( get_the_time('U'), current_time('timestamp') ) ); ?></span>
|
||||
<span><?php echo __('in','ultimate-member');?>: <?php the_category( ', ' ); ?></span>
|
||||
<span><?php comments_number( __('no comments','ultimate-member'), __('1 comment','ultimate-member'), __('% comments','ultimate-member') ); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<?php if ( isset($ultimatemember->shortcodes->modified_args) && $ultimatemember->shortcodes->loop->have_posts() && $ultimatemember->shortcodes->loop->found_posts >= 10 ) { ?>
|
||||
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="<?php echo $ultimatemember->shortcodes->modified_args; ?>"><?php _e('load more posts','ultimatemember'); ?></a>
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="<?php echo $ultimatemember->shortcodes->modified_args; ?>"><?php _e('load more posts','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -13,7 +13,7 @@
|
||||
<?php if ( $ultimatemember->shortcodes->loop->found_posts >= 10 ) { ?>
|
||||
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="post,10,10,<?php echo um_user('ID'); ?>"><?php _e('load more posts','ultimatemember'); ?></a>
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="post,10,10,<?php echo um_user('ID'); ?>"><?php _e('load more posts','ultimate-member'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-profile-note"><span><?php echo ( um_profile_id() == get_current_user_id() ) ? __('You have not created any posts.','ultimatemember') : __('This user has not created any posts.','ultimatemember'); ?></span></div>
|
||||
<div class="um-profile-note"><span><?php echo ( um_profile_id() == get_current_user_id() ) ? __('You have not created any posts.','ultimate-member') : __('This user has not created any posts.','ultimate-member'); ?></span></div>
|
||||
|
||||
<?php } wp_reset_postdata(); ?>
|
||||
+542
-542
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -49,23 +49,23 @@ class UM_API {
|
||||
);
|
||||
|
||||
$this->addons['bp_avatar_transfer'] = array(
|
||||
__('BuddyPress Avatar Transfer', 'ultimatemember'),
|
||||
__('This add-on enables you to migrate your custom user photos from BuddyPress to use with Ultimate Member.', 'ultimatemember'),
|
||||
__('BuddyPress Avatar Transfer', 'ultimate-member'),
|
||||
__('This add-on enables you to migrate your custom user photos from BuddyPress to use with Ultimate Member.', 'ultimate-member'),
|
||||
);
|
||||
|
||||
$this->addons['gravatar_transfer'] = array(
|
||||
__('Gravatar Transfer', 'ultimatemember'),
|
||||
__('This add-on enables you to link gravatar photos to user accounts with their email address.', 'ultimatemember'),
|
||||
__('Gravatar Transfer', 'ultimate-member'),
|
||||
__('This add-on enables you to link gravatar photos to user accounts with their email address.', 'ultimate-member'),
|
||||
);
|
||||
|
||||
$this->addons['generate_random_users'] = array(
|
||||
__('Generate Dummies', 'ultimatemember'),
|
||||
__('This add-on enables you to generate dummies.', 'ultimatemember'),
|
||||
__('Generate Dummies', 'ultimate-member'),
|
||||
__('This add-on enables you to generate dummies.', 'ultimate-member'),
|
||||
);
|
||||
|
||||
$this->addons['install_info'] = array(
|
||||
__('System Info', 'ultimatemember'),
|
||||
__('This add-on enables you to download system information file.', 'ultimatemember'),
|
||||
__('System Info', 'ultimate-member'),
|
||||
__('This add-on enables you to download system information file.', 'ultimate-member'),
|
||||
);
|
||||
|
||||
// include widgets
|
||||
|
||||
Reference in New Issue
Block a user