Ultimate Member – User Profile & Membership Plugin - Version 1.3.85

Version Description

Download this release

Release Info

Developer champsupertramp
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 1.3.85
Comparing to
See all releases

Code changes from version 1.3.84 to 1.3.85

Files changed (102) hide show
  1. addons/{system_info.php → install_info.php} +17 -17
  2. admin/core/um-admin-actions-ajax.php +2 -2
  3. admin/core/um-admin-actions-fields.php +1 -1
  4. admin/core/um-admin-actions-modal.php +13 -13
  5. admin/core/um-admin-actions-user.php +1 -1
  6. admin/core/um-admin-actions.php +24 -24
  7. admin/core/um-admin-builder.php +5 -5
  8. admin/core/um-admin-columns.php +1 -1
  9. admin/core/um-admin-dashboard.php +8 -8
  10. admin/core/um-admin-dragdrop.php +5 -5
  11. admin/core/um-admin-enqueue.php +1 -1
  12. admin/core/um-admin-metabox.php +16 -16
  13. admin/core/um-admin-notices.php +18 -18
  14. admin/core/um-admin-redux.php +3 -3
  15. admin/core/um-admin-roles.php +7 -7
  16. admin/core/um-admin-users.php +16 -16
  17. admin/templates/access/settings.php +8 -8
  18. admin/templates/dashboard/language-contrib.php +2 -2
  19. admin/templates/dashboard/language-download.php +2 -2
  20. admin/templates/dashboard/language-update.php +2 -2
  21. admin/templates/dashboard/users.php +6 -6
  22. admin/templates/directory/appearance.php +1 -1
  23. admin/templates/directory/general.php +14 -14
  24. admin/templates/directory/pagination.php +3 -3
  25. admin/templates/directory/profile.php +9 -9
  26. admin/templates/directory/profile_card.php +5 -5
  27. admin/templates/directory/search.php +10 -10
  28. admin/templates/form/builder.php +2 -2
  29. admin/templates/form/login_css.php +1 -1
  30. admin/templates/form/login_customize.php +16 -16
  31. admin/templates/form/login_settings.php +3 -3
  32. admin/templates/form/mode.php +4 -4
  33. admin/templates/form/profile_css.php +1 -1
  34. admin/templates/form/profile_customize.php +35 -35
  35. admin/templates/form/profile_settings.php +1 -1
  36. admin/templates/form/register_css.php +1 -1
  37. admin/templates/form/register_customize.php +15 -15
  38. admin/templates/modal/dynamic_edit_field.php +3 -3
  39. admin/templates/modal/dynamic_edit_row.php +3 -3
  40. admin/templates/modal/dynamic_form_preview.php +2 -2
  41. admin/templates/modal/dynamic_new_divider.php +3 -3
  42. admin/templates/modal/dynamic_new_field.php +3 -3
  43. admin/templates/modal/dynamic_new_group.php +3 -3
  44. admin/templates/modal/dynamic_registration_preview.php +1 -1
  45. admin/templates/modal/fields.php +1 -1
  46. admin/templates/modal/fonticons.php +1 -1
  47. admin/templates/role/admin.php +8 -8
  48. admin/templates/role/delete.php +4 -4
  49. admin/templates/role/general.php +2 -2
  50. admin/templates/role/home.php +2 -2
  51. admin/templates/role/login.php +6 -6
  52. admin/templates/role/logout.php +4 -4
  53. admin/templates/role/profile.php +4 -4
  54. admin/templates/role/register.php +22 -22
  55. admin/templates/role/sync.php +3 -3
  56. admin/templates/welcome/about_header.php +4 -4
  57. assets/js/um-account.js +2 -2
  58. assets/js/um-conditional.js +340 -0
  59. assets/js/um-functions.js +0 -333
  60. assets/js/um-scripts.js +10 -2
  61. assets/js/um.min.js +8 -8
  62. core/lib/upload/um-file-upload.php +16 -4
  63. core/lib/upload/um-image-upload.php +1 -1
  64. core/um-account.php +5 -5
  65. core/um-actions-account.php +26 -24
  66. core/um-actions-ajax.php +1 -1
  67. core/um-actions-core.php +3 -3
  68. core/um-actions-form.php +64 -49
  69. core/um-actions-login.php +15 -15
  70. core/um-actions-members.php +7 -7
  71. core/um-actions-misc.php +13 -13
  72. core/um-actions-password.php +19 -18
  73. core/um-actions-profile.php +46 -18
  74. core/um-actions-register.php +3 -3
  75. core/um-actions-user.php +2 -2
  76. core/um-api.php +30 -27
  77. core/um-builtin.php +579 -579
  78. core/um-cron.php +1 -1
  79. core/um-datetime.php +13 -13
  80. core/um-enqueue.php +1 -1
  81. core/um-fields.php +51 -49
  82. core/um-files.php +10 -8
  83. core/um-filters-addons.php +5 -5
  84. core/um-filters-fields.php +6 -5
  85. core/um-filters-login.php +6 -6
  86. core/um-filters-profile.php +3 -3
  87. core/um-filters-user.php +16 -16
  88. core/um-form.php +5 -5
  89. core/um-members.php +3 -3
  90. core/um-password.php +1 -1
  91. core/um-permalinks.php +3 -3
  92. core/um-rewrite.php +4 -0
  93. core/um-setup.php +9 -9
  94. core/um-short-functions.php +4 -2
  95. core/um-shortcodes.php +3 -3
  96. core/um-tracking.php +3 -3
  97. core/um-user-posts.php +2 -2
  98. core/um-user.php +9 -9
  99. core/widgets/um-search-widget.php +3 -3
  100. index.php +6 -6
  101. languages/ultimate-member-en.mo +0 -0
  102. languages/ultimate-member-en.po +6618 -0
addons/{system_info.php → install_info.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class UM_ADDON_system_info {
4
 
5
  function __construct() {
6
 
@@ -16,8 +16,8 @@ class UM_ADDON_system_info {
16
  function admin_menu() {
17
 
18
  global $ultimatemember;
19
- $this->addon = $ultimatemember->addons['system_info'];
20
- add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'um_system_info', array(&$this, 'content') );
21
 
22
  }
23
 
@@ -26,14 +26,14 @@ class UM_ADDON_system_info {
26
 
27
  switch ( $hook ) {
28
 
29
- case 'download_system_info':
30
 
31
  nocache_headers();
32
 
33
  header( "Content-type: text/plain" );
34
- header( 'Content-Disposition: attachment; filename="ultimatemember-system-info.txt"' );
35
 
36
- echo wp_strip_all_tags( $_POST['um-sysinfo'] );
37
  exit;
38
 
39
  break;
@@ -81,13 +81,13 @@ class UM_ADDON_system_info {
81
  echo $this->content;
82
  } else { ?>
83
 
84
- <form action="<?php echo esc_url( admin_url( 'admin.php?page=um_system_info' ) ); ?>" method="post" dir="ltr">
85
- <textarea style="width:100%; height:400px;" readonly="readonly" onclick="this.focus();this.select()" id="system-info-textarea" name="um-sysinfo" title="<?php _e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'edd' ); ?>">
86
- ### Begin System Info ###
87
 
88
  ## Please include this information when posting support requests ##
89
 
90
- <?php do_action( 'um_system_info_before' ); ?>
91
 
92
  --- Site Info ---
93
 
@@ -170,7 +170,7 @@ Exclude CSS/JS on Home: <?php if( um_get_option( 'js_css_exlcude_home' ) == 1
170
 
171
  --- UM Pages Configuration ---
172
 
173
- <?php do_action("um_system_info_before_page_config") ?>
174
  User: <?php echo get_permalink( um_get_option('core_user') ) . "\n"; ?>
175
  Account: <?php echo get_permalink( um_get_option('core_account') ) . "\n"; ?>
176
  Members: <?php echo get_permalink( um_get_option('core_members') ) . "\n"; ?>
@@ -178,7 +178,7 @@ Register: <?php echo get_permalink( um_get_option('core_register') ) . "\n"
178
  Login: <?php echo get_permalink( um_get_option('core_login') ) . "\n"; ?>
179
  Logout: <?php echo get_permalink( um_get_option('core_logout') ) . "\n"; ?>
180
  Password Reset: <?php echo get_permalink( um_get_option('core_password-reset') ) . "\n"; ?>
181
- <?php do_action("um_system_info_after_page_config") ?>
182
 
183
  -- UM Users Configuration ---
184
 
@@ -376,16 +376,16 @@ foreach ( $plugins as $plugin_path ) {
376
  endif;
377
  ?>
378
  <?php
379
- do_action( 'um_system_info_after' );
380
  ?>
381
 
382
 
383
 
384
 
385
- ### End System Info ###</textarea>
386
  <p class="submit">
387
- <input type="hidden" name="um-addon-hook" value="download_system_info" />
388
- <?php submit_button( 'Download System Info File', 'primary', 'download_system_info', false ); ?>
389
  </p>
390
  </form>
391
 
@@ -416,4 +416,4 @@ do_action( 'um_system_info_after' );
416
 
417
  }
418
 
419
- $UM_ADDON_system_info = new UM_ADDON_system_info();
1
  <?php
2
 
3
+ class UM_ADDON_install_info {
4
 
5
  function __construct() {
6
 
16
  function admin_menu() {
17
 
18
  global $ultimatemember;
19
+ $this->addon = $ultimatemember->addons['install_info'];
20
+ add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'um_install_info', array(&$this, 'content') );
21
 
22
  }
23
 
26
 
27
  switch ( $hook ) {
28
 
29
+ case 'download_install_info':
30
 
31
  nocache_headers();
32
 
33
  header( "Content-type: text/plain" );
34
+ header( 'Content-Disposition: attachment; filename="ultimatemember-install-info.txt"' );
35
 
36
+ echo wp_strip_all_tags( $_POST['um-install-info'] );
37
  exit;
38
 
39
  break;
81
  echo $this->content;
82
  } else { ?>
83
 
84
+ <form action="<?php echo esc_url( admin_url( 'admin.php?page=um_install_info' ) ); ?>" method="post" dir="ltr">
85
+ <textarea style="width:100%; height:400px;" readonly="readonly" onclick="this.focus();this.select()" id="install-info-textarea" name="um-install-info" title="<?php _e( 'To copy the Install info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'edd' ); ?>">
86
+ ### Begin Install Info ###
87
 
88
  ## Please include this information when posting support requests ##
89
 
90
+ <?php do_action( 'um_install_info_before' ); ?>
91
 
92
  --- Site Info ---
93
 
170
 
171
  --- UM Pages Configuration ---
172
 
173
+ <?php do_action("um_install_info_before_page_config") ?>
174
  User: <?php echo get_permalink( um_get_option('core_user') ) . "\n"; ?>
175
  Account: <?php echo get_permalink( um_get_option('core_account') ) . "\n"; ?>
176
  Members: <?php echo get_permalink( um_get_option('core_members') ) . "\n"; ?>
178
  Login: <?php echo get_permalink( um_get_option('core_login') ) . "\n"; ?>
179
  Logout: <?php echo get_permalink( um_get_option('core_logout') ) . "\n"; ?>
180
  Password Reset: <?php echo get_permalink( um_get_option('core_password-reset') ) . "\n"; ?>
181
+ <?php do_action("um_install_info_after_page_config") ?>
182
 
183
  -- UM Users Configuration ---
184
 
376
  endif;
377
  ?>
378
  <?php
379
+ do_action( 'um_install_info_after' );
380
  ?>
381
 
382
 
383
 
384
 
385
+ ### End Install Info ###</textarea>
386
  <p class="submit">
387
+ <input type="hidden" name="um-addon-hook" value="download_install_info" />
388
+ <?php submit_button( 'Download Install Info File', 'primary', 'download_install_info', false ); ?>
389
  </p>
390
  </form>
391
 
416
 
417
  }
418
 
419
+ $UM_ADDON_install_info = new UM_ADDON_install_info();
admin/core/um-admin-actions-ajax.php CHANGED
@@ -8,7 +8,7 @@
8
  function ultimatemember_do_ajax_action(){
9
  global $ultimatemember;
10
 
11
- if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
12
 
13
  extract($_POST);
14
 
@@ -60,7 +60,7 @@
60
  $arr_options = array();
61
 
62
  if( ! current_user_can('manage_options') ){
63
- wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
64
  }
65
 
66
  $um_callback_func = $_POST['um_option_callback'];
8
  function ultimatemember_do_ajax_action(){
9
  global $ultimatemember;
10
 
11
+ if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
12
 
13
  extract($_POST);
14
 
60
  $arr_options = array();
61
 
62
  if( ! current_user_can('manage_options') ){
63
+ wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
64
  }
65
 
66
  $um_callback_func = $_POST['um_option_callback'];
admin/core/um-admin-actions-fields.php CHANGED
@@ -8,7 +8,7 @@
8
  function ultimatemember_admin_update_field(){
9
  global $ultimatemember;
10
 
11
- if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
12
 
13
  $output['error'] = null;
14
 
8
  function ultimatemember_admin_update_field(){
9
  global $ultimatemember;
10
 
11
+ if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
12
 
13
  $output['error'] = null;
14
 
admin/core/um-admin-actions-modal.php CHANGED
@@ -27,7 +27,7 @@
27
 
28
  <div class="um-admin-btn-content">
29
 
30
- <p class="um-admin-reset-conditions"><a href="#" class="button button-primary"><?php _e('Reset all rules','ultimatemember'); ?></a></p>
31
  <div class="um-admin-clear"></div>
32
 
33
  <?php
@@ -95,7 +95,7 @@
95
 
96
  $metabox = new UM_Admin_Metabox();
97
 
98
- if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimatemember') );
99
 
100
  extract($_POST);
101
 
@@ -120,7 +120,7 @@
120
  ?>
121
 
122
  <div class="um-admin-metabox">
123
- <p class="_icon_search"><input type="text" name="_icon_search" id="_icon_search" value="" placeholder="<?php _e('Search Icons...','ultimatemember'); ?>" /></p>
124
  </div>
125
 
126
  <div class="um-admin-icons">
@@ -139,9 +139,10 @@
139
 
140
  ob_start();
141
  $form_fields = $ultimatemember->query->get_attr( 'custom_fields', $arg2 );
 
142
  ?>
143
 
144
- <h4><?php _e('Setup New Field','ultimatemember'); ?></h4>
145
  <div class="um-admin-btns">
146
 
147
  <?php
@@ -157,7 +158,7 @@
157
 
158
  </div>
159
 
160
- <h4><?php _e('Predefined Fields','ultimatemember'); ?></h4>
161
  <div class="um-admin-btns">
162
 
163
  <?php
@@ -167,24 +168,23 @@
167
  if ( !isset( $array['account_only'] ) && !isset( $array['private_use'] ) ) {
168
  ?>
169
 
170
- <a href="#" class="button" <?php disabled( in_array( $field_key, array_keys( $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>
171
 
172
- <?php } } } else { echo '<p>' . __('None','ultimatemember') . '</p>'; } ?>
173
 
174
  </div>
175
 
176
- <h4><?php _e('Custom Fields','ultimatemember'); ?></h4>
177
  <div class="um-admin-btns">
178
 
179
  <?php
180
  if ( $ultimatemember->builtin->custom_fields ) {
181
  foreach ($ultimatemember->builtin->custom_fields as $field_key => $array) {
182
-
183
  ?>
184
 
185
- <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 ); ?><span class="remove"></span></a>
186
 
187
- <?php } } else { echo '<p>' . __('You did not create any custom fields', 'ultimatemember') . '</p>'; } ?>
188
 
189
  </div>
190
 
@@ -218,7 +218,7 @@
218
 
219
  if ( !isset( $col1 ) ) {
220
 
221
- echo '<p>'. __('This field type is not setup correcty.', 'ultimatemember') . '</p>';
222
 
223
  } else {
224
 
@@ -288,7 +288,7 @@
288
 
289
  if ( !isset( $col1 ) ) {
290
 
291
- echo '<p>'. __('This field type is not setup correcty.', 'ultimatemember') . '</p>';
292
 
293
  } else {
294
 
27
 
28
  <div class="um-admin-btn-content">
29
 
30
+ <p class="um-admin-reset-conditions"><a href="#" class="button button-primary"><?php _e('Reset all rules','ultimate-member'); ?></a></p>
31
  <div class="um-admin-clear"></div>
32
 
33
  <?php
95
 
96
  $metabox = new UM_Admin_Metabox();
97
 
98
+ if ( !is_user_logged_in() || !current_user_can('manage_options') ) die( __('Please login as administrator','ultimate-member') );
99
 
100
  extract($_POST);
101
 
120
  ?>
121
 
122
  <div class="um-admin-metabox">
123
+ <p class="_icon_search"><input type="text" name="_icon_search" id="_icon_search" value="" placeholder="<?php _e('Search Icons...','ultimate-member'); ?>" /></p>
124
  </div>
125
 
126
  <div class="um-admin-icons">
139
 
140
  ob_start();
141
  $form_fields = $ultimatemember->query->get_attr( 'custom_fields', $arg2 );
142
+ $form_fields = array_values( array_filter( array_keys( $form_fields ) ) );
143
  ?>
144
 
145
+ <h4><?php _e('Setup New Field','ultimate-member'); ?></h4>
146
  <div class="um-admin-btns">
147
 
148
  <?php
158
 
159
  </div>
160
 
161
+ <h4><?php _e('Predefined Fields','ultimate-member'); ?></h4>
162
  <div class="um-admin-btns">
163
 
164
  <?php
168
  if ( !isset( $array['account_only'] ) && !isset( $array['private_use'] ) ) {
169
  ?>
170
 
171
+ <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>
172
 
173
+ <?php } } } else { echo '<p>' . __('None','ultimate-member') . '</p>'; } ?>
174
 
175
  </div>
176
 
177
+ <h4><?php _e('Custom Fields','ultimate-member'); ?></h4>
178
  <div class="um-admin-btns">
179
 
180
  <?php
181
  if ( $ultimatemember->builtin->custom_fields ) {
182
  foreach ($ultimatemember->builtin->custom_fields as $field_key => $array) {
 
183
  ?>
184
 
185
+ <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>
186
 
187
+ <?php } } else { echo '<p>' . __('You did not create any custom fields', 'ultimate-member') . '</p>'; } ?>
188
 
189
  </div>
190
 
218
 
219
  if ( !isset( $col1 ) ) {
220
 
221
+ echo '<p>'. __('This field type is not setup correcty.', 'ultimate-member') . '</p>';
222
 
223
  } else {
224
 
288
 
289
  if ( !isset( $col1 ) ) {
290
 
291
+ echo '<p>'. __('This field type is not setup correcty.', 'ultimate-member') . '</p>';
292
 
293
  } else {
294
 
admin/core/um-admin-actions-user.php CHANGED
@@ -36,7 +36,7 @@
36
 
37
  case 'um_delete':
38
  if ( is_admin() )
39
- wp_die('This action is not allowed in backend.','ultimatemember');
40
  $ultimatemember->user->delete();
41
  break;
42
 
36
 
37
  case 'um_delete':
38
  if ( is_admin() )
39
+ wp_die('This action is not allowed in backend.','ultimate-member');
40
  $ultimatemember->user->delete();
41
  break;
42
 
admin/core/um-admin-actions.php CHANGED
@@ -16,7 +16,7 @@
16
  ?>
17
  <table id="table_my_custom_field" style="display:none;">
18
  <tr>
19
- <th><label for="um_role"><?php _e( 'Community Role', 'ultimatemember' ); ?></label></th>
20
  <td>
21
  <select name="um_role" id="um_role">
22
  <?php foreach( $ultimatemember->query->get_roles() as $key => $value ) { ?>
@@ -75,28 +75,28 @@
75
  global $ultimatemember;
76
 
77
  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">';
78
- echo '<label>' . __('Content Availability','ultimatemember') . '</label>';
79
- echo '<label><input type="radio" name="_um_accessible" value="0" checked /> '. __('Content accessible to Everyone','ultimatemember') . '</label>
80
- <label><input type="radio" name="_um_accessible" value="1" /> ' . __('Content accessible to Logged Out Users','ultimatemember') . '</label>
81
- <label><input type="radio" name="_um_accessible" value="2" /> ' . __('Content accessible to Logged In Users','ultimatemember') . '</label>';
82
  echo '<p class="description">Who can see content/posts in this category.</p>';
83
  echo '</div>';
84
 
85
  echo '<div class="form-field term-roles-wrap">';
86
- echo '<label>' . __('Roles who can see the content','ultimatemember') . '</label>';
87
  foreach($ultimatemember->query->get_roles() as $role_id => $role) {
88
  echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" /> ' . $role . '</label>';
89
  }
90
- echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimatemember') . '</p>';
91
- echo '<label>' . __('Content Restriction Redirect URL','ultimatemember') . '</label>';
92
  echo '<input type="text" name="_um_redirect" id="_um_redirect" value="" />';
93
- echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
94
  echo '</div>';
95
 
96
  echo '<div class="form-field term-redirect-wrap">';
97
- echo '<label>' . __('Content Restriction Redirect URL','ultimatemember') . '</label>';
98
  echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="" />';
99
- echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
100
  echo '</div>';
101
 
102
  }
@@ -112,15 +112,15 @@
112
  $_um_roles= (isset( $termMeta['_um_roles'] ) )? $termMeta['_um_roles'] : '';
113
 
114
  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" >';
115
- echo "<th scope='row'><label>" . __('Content Availability','ultimatemember') . "</label></th>";
116
- echo '<td><label><input type="radio" name="_um_accessible" value="0" ' . checked( 0, $_um_accessible, 0 ) . ' /> '. __('Content accessible to Everyone','ultimatemember') . '</label><br />
117
- <label><input type="radio" name="_um_accessible" value="1" ' . checked( 1, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged Out Users','ultimatemember') . '</label><br />
118
- <label><input type="radio" name="_um_accessible" value="2" ' . checked( 2, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged In Users','ultimatemember') . '</label>';
119
  echo '<p class="description">Who can see content/posts in this category.</p>';
120
  echo "</td></tr>";
121
 
122
  echo "<tr class='form-field form-required term-roles-wrap'>";
123
- echo "<th scope='row'><label>" . __('Roles who can see the content','ultimatemember') . "</label></th>";
124
  echo '<td>';
125
  foreach($ultimatemember->query->get_roles() as $role_id => $role) {
126
  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 @@
130
  }
131
  echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" ' . $checked . ' /> ' . $role . '</label>&nbsp;&nbsp;';
132
  }
133
- echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimatemember') . '</p>';
134
  echo "</td></tr>";
135
  echo "<tr class='form-field form-required term-roles-wrap'>";
136
- echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimatemember') . "</label></th>";
137
  echo '<td>';
138
  echo '<input type="text" name="_um_redirect" id="_um_redirect" value="' . $_um_redirect . '" />';
139
- echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
140
  echo "</td></tr>";
141
 
142
  echo "<tr class='form-field form-required term-redirect-wrap'>";
143
- echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimatemember') . "</label></th>";
144
  echo '<td>';
145
  echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="' . $_um_redirect2 . '" />';
146
- echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '</p>';
147
  echo "</td></tr>";
148
 
149
  }
@@ -217,13 +217,13 @@
217
 
218
  ?>
219
 
220
- <h4><?php _e('This is a translation of UM profile page?','ultimatemember'); ?></h4>
221
 
222
  <p>
223
  <span><?php $instance->ui_on_off( '_um_wpml_user', 0 ); ?></span>
224
  </p>
225
 
226
- <h4><?php _e('This is a translation of UM account page?','ultimatemember'); ?></h4>
227
 
228
  <p>
229
  <span><?php $instance->ui_on_off( '_um_wpml_account', 0 ); ?></span>
@@ -304,7 +304,7 @@
304
 
305
  $n = array(
306
  'post_type' => 'um_form',
307
- 'post_title' => sprintf(__('Duplicate of %s','ultimatemember'), get_the_title($post_id) ),
308
  'post_status' => 'publish',
309
  'post_author' => um_user('ID'),
310
  );
16
  ?>
17
  <table id="table_my_custom_field" style="display:none;">
18
  <tr>
19
+ <th><label for="um_role"><?php _e( 'Community Role', 'ultimate-member'); ?></label></th>
20
  <td>
21
  <select name="um_role" id="um_role">
22
  <?php foreach( $ultimatemember->query->get_roles() as $key => $value ) { ?>
75
  global $ultimatemember;
76
 
77
  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">';
78
+ echo '<label>' . __('Content Availability','ultimate-member') . '</label>';
79
+ echo '<label><input type="radio" name="_um_accessible" value="0" checked /> '. __('Content accessible to Everyone','ultimate-member') . '</label>
80
+ <label><input type="radio" name="_um_accessible" value="1" /> ' . __('Content accessible to Logged Out Users','ultimate-member') . '</label>
81
+ <label><input type="radio" name="_um_accessible" value="2" /> ' . __('Content accessible to Logged In Users','ultimate-member') . '</label>';
82
  echo '<p class="description">Who can see content/posts in this category.</p>';
83
  echo '</div>';
84
 
85
  echo '<div class="form-field term-roles-wrap">';
86
+ echo '<label>' . __('Roles who can see the content','ultimate-member') . '</label>';
87
  foreach($ultimatemember->query->get_roles() as $role_id => $role) {
88
  echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" /> ' . $role . '</label>';
89
  }
90
+ echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimate-member') . '</p>';
91
+ echo '<label>' . __('Content Restriction Redirect URL','ultimate-member') . '</label>';
92
  echo '<input type="text" name="_um_redirect" id="_um_redirect" value="" />';
93
+ echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
94
  echo '</div>';
95
 
96
  echo '<div class="form-field term-redirect-wrap">';
97
+ echo '<label>' . __('Content Restriction Redirect URL','ultimate-member') . '</label>';
98
  echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="" />';
99
+ echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
100
  echo '</div>';
101
 
102
  }
112
  $_um_roles= (isset( $termMeta['_um_roles'] ) )? $termMeta['_um_roles'] : '';
113
 
114
  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" >';
115
+ echo "<th scope='row'><label>" . __('Content Availability','ultimate-member') . "</label></th>";
116
+ echo '<td><label><input type="radio" name="_um_accessible" value="0" ' . checked( 0, $_um_accessible, 0 ) . ' /> '. __('Content accessible to Everyone','ultimate-member') . '</label><br />
117
+ <label><input type="radio" name="_um_accessible" value="1" ' . checked( 1, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged Out Users','ultimate-member') . '</label><br />
118
+ <label><input type="radio" name="_um_accessible" value="2" ' . checked( 2, $_um_accessible, 0 ) . ' /> ' . __('Content accessible to Logged In Users','ultimate-member') . '</label>';
119
  echo '<p class="description">Who can see content/posts in this category.</p>';
120
  echo "</td></tr>";
121
 
122
  echo "<tr class='form-field form-required term-roles-wrap'>";
123
+ echo "<th scope='row'><label>" . __('Roles who can see the content','ultimate-member') . "</label></th>";
124
  echo '<td>';
125
  foreach($ultimatemember->query->get_roles() as $role_id => $role) {
126
  if ( ( isset( $_um_roles ) && is_array( $_um_roles ) && in_array($role_id, $_um_roles ) ) || ( isset( $_um_roles ) && $role_id == $_um_roles ) ) {
130
  }
131
  echo '<label><input type="checkbox" name="_um_roles[]" value="' . $role_id . '" ' . $checked . ' /> ' . $role . '</label>&nbsp;&nbsp;';
132
  }
133
+ echo '<p class="description">' . __('This is applicable only if you restrict the content to logged-in users.','ultimate-member') . '</p>';
134
  echo "</td></tr>";
135
  echo "<tr class='form-field form-required term-roles-wrap'>";
136
+ echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimate-member') . "</label></th>";
137
  echo '<td>';
138
  echo '<input type="text" name="_um_redirect" id="_um_redirect" value="' . $_um_redirect . '" />';
139
+ echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
140
  echo "</td></tr>";
141
 
142
  echo "<tr class='form-field form-required term-redirect-wrap'>";
143
+ echo "<th scope='row'><label>" . __('Content Restriction Redirect URL','ultimate-member') . "</label></th>";
144
  echo '<td>';
145
  echo '<input type="text" name="_um_redirect2" id="_um_redirect2" value="' . $_um_redirect2 . '" />';
146
+ echo '<p class="description">' . __('Users who cannot see content will get redirected to that URL.','ultimate-member') . '</p>';
147
  echo "</td></tr>";
148
 
149
  }
217
 
218
  ?>
219
 
220
+ <h4><?php _e('This is a translation of UM profile page?','ultimate-member'); ?></h4>
221
 
222
  <p>
223
  <span><?php $instance->ui_on_off( '_um_wpml_user', 0 ); ?></span>
224
  </p>
225
 
226
+ <h4><?php _e('This is a translation of UM account page?','ultimate-member'); ?></h4>
227
 
228
  <p>
229
  <span><?php $instance->ui_on_off( '_um_wpml_account', 0 ); ?></span>
304
 
305
  $n = array(
306
  'post_type' => 'um_form',
307
+ 'post_title' => sprintf(__('Duplicate of %s','ultimate-member'), get_the_title($post_id) ),
308
  'post_status' => 'publish',
309
  'post_author' => um_user('ID'),
310
  );
admin/core/um-admin-builder.php CHANGED
@@ -94,8 +94,8 @@ class UM_Admin_Builder {
94
 
95
  <!-- Master Row Actions -->
96
  <div class="um-admin-drag-row-icons">
97
- <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>
98
- <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>
99
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
100
  </div><div class="um-admin-clear"></div>
101
 
@@ -164,11 +164,11 @@ class UM_Admin_Builder {
164
 
165
  <!-- Master Row Actions -->
166
  <div class="um-admin-drag-row-icons">
167
- <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>
168
- <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>
169
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
170
  <?php if ( $row_id != '_um_row_1' ) {?>
171
- <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>
172
  <?php } ?>
173
  </div><div class="um-admin-clear"></div>
174
 
94
 
95
  <!-- Master Row Actions -->
96
  <div class="um-admin-drag-row-icons">
97
+ <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>
98
+ <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>
99
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
100
  </div><div class="um-admin-clear"></div>
101
 
164
 
165
  <!-- Master Row Actions -->
166
  <div class="um-admin-drag-row-icons">
167
+ <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>
168
+ <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>
169
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
170
  <?php if ( $row_id != '_um_row_1' ) {?>
171
+ <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>
172
  <?php } ?>
173
  </div><div class="um-admin-clear"></div>
174
 
admin/core/um-admin-columns.php CHANGED
@@ -22,7 +22,7 @@ class UM_Admin_Columns {
22
  function post_row_actions($actions, $post){
23
  //check for your post type
24
  if ($post->post_type =="um_form"){
25
- $actions['um_duplicate'] = '<a href="' . $this->duplicate_uri( $post->ID ) . '">' . __('Duplicate','ultimatemember') . '</a>';
26
  }
27
  return $actions;
28
  }
22
  function post_row_actions($actions, $post){
23
  //check for your post type
24
  if ($post->post_type =="um_form"){
25
+ $actions['um_duplicate'] = '<a href="' . $this->duplicate_uri( $post->ID ) . '">' . __('Duplicate','ultimate-member') . '</a>';
26
  }
27
  return $actions;
28
  }
admin/core/um-admin-dashboard.php CHANGED
@@ -41,7 +41,7 @@ class UM_Admin_Dashboard {
41
  // Change the footer text
42
  if ( ! get_option( 'um_admin_footer_text_rated' ) ) {
43
 
44
- $footer_text = sprintf( __( 'If you like Ultimate Member please consider leaving a %s&#9733;&#9733;&#9733;&#9733;&#9733;%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>' );
45
 
46
  $footer_text .= "<script type='text/javascript'>
47
  jQuery('a.um-admin-rating-link').click(function() {
@@ -174,19 +174,19 @@ class UM_Admin_Dashboard {
174
 
175
  /** custom metaboxes for dashboard defined here **/
176
 
177
- add_meta_box('um-metaboxes-contentbox-1', __('Users Overview','ultimatemember'), array(&$this, 'users_overview'), $this->pagehook, 'core', 'core');
178
 
179
- add_meta_box('um-metaboxes-mainbox-1', __('Latest from our blog','ultimatemember'), array(&$this, 'um_news'), $this->pagehook, 'normal', 'core');
180
 
181
- add_meta_box('um-metaboxes-sidebox-1', __('Purge Temp Files','ultimatemember'), array(&$this, 'purge_temp'), $this->pagehook, 'side', 'core');
182
- add_meta_box('um-metaboxes-sidebox-2', __('User Cache','ultimatemember'), array(&$this, 'user_cache'), $this->pagehook, 'side', 'core');
183
 
184
  if ( $this->language_avaialable_not_installed() ) {
185
- add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'dl_language'), $this->pagehook, 'side', 'core');
186
  } else if ( $this->language_avaialable_installed() ) {
187
- add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'up_language'), $this->pagehook, 'side', 'core');
188
  } else if ( $this->language_not_available() ) {
189
- add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimatemember'), array(&$this, 'ct_language'), $this->pagehook, 'side', 'core');
190
  }
191
 
192
  }
41
  // Change the footer text
42
  if ( ! get_option( 'um_admin_footer_text_rated' ) ) {
43
 
44
+ $footer_text = sprintf( __( 'If you like Ultimate Member please consider leaving a %s&#9733;&#9733;&#9733;&#9733;&#9733;%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>' );
45
 
46
  $footer_text .= "<script type='text/javascript'>
47
  jQuery('a.um-admin-rating-link').click(function() {
174
 
175
  /** custom metaboxes for dashboard defined here **/
176
 
177
+ add_meta_box('um-metaboxes-contentbox-1', __('Users Overview','ultimate-member'), array(&$this, 'users_overview'), $this->pagehook, 'core', 'core');
178
 
179
+ add_meta_box('um-metaboxes-mainbox-1', __('Latest from our blog','ultimate-member'), array(&$this, 'um_news'), $this->pagehook, 'normal', 'core');
180
 
181
+ add_meta_box('um-metaboxes-sidebox-1', __('Purge Temp Files','ultimate-member'), array(&$this, 'purge_temp'), $this->pagehook, 'side', 'core');
182
+ add_meta_box('um-metaboxes-sidebox-2', __('User Cache','ultimate-member'), array(&$this, 'user_cache'), $this->pagehook, 'side', 'core');
183
 
184
  if ( $this->language_avaialable_not_installed() ) {
185
+ add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'dl_language'), $this->pagehook, 'side', 'core');
186
  } else if ( $this->language_avaialable_installed() ) {
187
+ add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'up_language'), $this->pagehook, 'side', 'core');
188
  } else if ( $this->language_not_available() ) {
189
+ add_meta_box('um-metaboxes-sidebox-2', __('Language','ultimate-member'), array(&$this, 'ct_language'), $this->pagehook, 'side', 'core');
190
  }
191
 
192
  }
admin/core/um-admin-dragdrop.php CHANGED
@@ -146,10 +146,10 @@ class UM_Admin_DragDrop {
146
  <div class="um-col-demon-row" style="display:none;">
147
 
148
  <div class="um-admin-drag-row-icons">
149
- <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>
150
- <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>
151
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
152
- <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>
153
  </div><div class="um-admin-clear"></div>
154
 
155
  <div class="um-admin-drag-rowsubs">
@@ -163,7 +163,7 @@ class UM_Admin_DragDrop {
163
 
164
  <div class="um-admin-drag-rowsub-icons">
165
  <span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
166
- <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>
167
  </div><div class="um-admin-clear"></div>
168
 
169
  <div class="um-admin-drag-col">
@@ -188,7 +188,7 @@ class UM_Admin_DragDrop {
188
 
189
  <div class="um-admin-drag-rowsub-icons">
190
  <span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
191
- <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>
192
  </div><div class="um-admin-clear"></div>
193
 
194
  <div class="um-admin-drag-col">
146
  <div class="um-col-demon-row" style="display:none;">
147
 
148
  <div class="um-admin-drag-row-icons">
149
+ <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>
150
+ <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>
151
  <span class="um-admin-drag-row-start"><i class="um-icon-arrow-move"></i></span>
152
+ <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>
153
  </div><div class="um-admin-clear"></div>
154
 
155
  <div class="um-admin-drag-rowsubs">
163
 
164
  <div class="um-admin-drag-rowsub-icons">
165
  <span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
166
+ <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>
167
  </div><div class="um-admin-clear"></div>
168
 
169
  <div class="um-admin-drag-col">
188
 
189
  <div class="um-admin-drag-rowsub-icons">
190
  <span class="um-admin-drag-rowsub-start"><i class="um-icon-arrow-move"></i></span>
191
+ <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>
192
  </div><div class="um-admin-clear"></div>
193
 
194
  <div class="um-admin-drag-col">
admin/core/um-admin-enqueue.php CHANGED
@@ -232,7 +232,7 @@ class UM_Admin_Enqueue {
232
 
233
  if ( !is_admin() ) return false;
234
 
235
- if ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
236
 
237
  if ( $screen_id == 'nav-menus' ) return true;
238
 
232
 
233
  if ( !is_admin() ) return false;
234
 
235
+ if ( strstr( $screen_id, 'ultimatemember' ) || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') )return true;
236
 
237
  if ( $screen_id == 'nav-menus' ) return true;
238
 
admin/core/um-admin-metabox.php CHANGED
@@ -23,7 +23,7 @@ class UM_Admin_Metabox {
23
  function is_UM_admin(){
24
  global $current_screen;
25
  $screen_id = $current_screen->id;
26
- if ( is_admin() && ( strstr( $screen_id, 'ultimatemember') || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') ) )
27
  return true;
28
  return false;
29
  }
@@ -251,23 +251,23 @@ class UM_Admin_Metabox {
251
  ***/
252
  function add_metabox_role() {
253
 
254
- add_meta_box('um-admin-form-sync', __('Sync with WordPress Role','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'side', 'default');
255
 
256
- add_meta_box('um-admin-form-admin', __('Administrative Permissions','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
257
 
258
- add_meta_box('um-admin-form-general', __('General Permissions','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
259
 
260
- add_meta_box('um-admin-form-profile', __('Profile Access','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
261
 
262
- add_meta_box('um-admin-form-home', __('Homepage Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
263
 
264
- add_meta_box('um-admin-form-register', __('Registration Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
265
 
266
- add_meta_box('um-admin-form-login', __('Login Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
267
 
268
- add_meta_box('um-admin-form-logout', __('Logout Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
269
 
270
- add_meta_box('um-admin-form-delete', __('Delete Options','ultimatemember'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
271
 
272
  do_action('um_admin_custom_role_metaboxes');
273
 
@@ -464,7 +464,7 @@ class UM_Admin_Metabox {
464
  case '_visibility':
465
  ?>
466
 
467
- <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>
468
  <select name="_visibility" id="_visibility" class="umaf-selectjs" style="width: 100%">
469
  <option value="all" <?php selected( 'all', $this->edit_mode_value ); ?>>View everywhere</option>
470
  <option value="edit" <?php selected( 'edit', $this->edit_mode_value ); ?>>Edit mode only</option>
@@ -687,7 +687,7 @@ class UM_Admin_Metabox {
687
  case '_divider_text':
688
  ?>
689
 
690
- <p><label for="_divider_text">Optional Text <?php $this->tooltip( __('Optional text to include with the divider','ultimatemember') ); ?></label>
691
  <input type="text" name="_divider_text" id="_divider_text" value="<?php echo ( $this->edit_mode_value ) ? $this->edit_mode_value : ''; ?>" />
692
  </p>
693
 
@@ -878,7 +878,7 @@ class UM_Admin_Metabox {
878
  case '_force_good_pass':
879
  ?>
880
 
881
- <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>
882
  <?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 ); ?>
883
  </p>
884
 
@@ -888,7 +888,7 @@ class UM_Admin_Metabox {
888
  case '_force_confirm_pass':
889
  ?>
890
 
891
- <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>
892
  <?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 ); ?>
893
  </p>
894
 
@@ -1252,7 +1252,7 @@ class UM_Admin_Metabox {
1252
  case '_min':
1253
  ?>
1254
 
1255
- <p><label for="_min">Minimum Number <?php $this->tooltip( __('Minimum number that can be entered in this field','ultimatemember') ); ?></label>
1256
  <input type="text" name="_min" id="_min" value="<?php echo $this->edit_mode_value; ?>" />
1257
  </p>
1258
 
@@ -1262,7 +1262,7 @@ class UM_Admin_Metabox {
1262
  case '_max':
1263
  ?>
1264
 
1265
- <p><label for="_max">Maximum Number <?php $this->tooltip( __('Maximum number that can be entered in this field','ultimatemember') ); ?></label>
1266
  <input type="text" name="_max" id="_max" value="<?php echo $this->edit_mode_value; ?>" />
1267
  </p>
1268
 
23
  function is_UM_admin(){
24
  global $current_screen;
25
  $screen_id = $current_screen->id;
26
+ if ( is_admin() && ( strstr( $screen_id, 'ultimatemember' ) || strstr( $screen_id, 'um_') || strstr($screen_id, 'user') || strstr($screen_id, 'profile') ) )
27
  return true;
28
  return false;
29
  }
251
  ***/
252
  function add_metabox_role() {
253
 
254
+ add_meta_box('um-admin-form-sync', __('Sync with WordPress Role','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'side', 'default');
255
 
256
+ add_meta_box('um-admin-form-admin', __('Administrative Permissions','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
257
 
258
+ add_meta_box('um-admin-form-general', __('General Permissions','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
259
 
260
+ add_meta_box('um-admin-form-profile', __('Profile Access','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
261
 
262
+ add_meta_box('um-admin-form-home', __('Homepage Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
263
 
264
+ add_meta_box('um-admin-form-register', __('Registration Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
265
 
266
+ add_meta_box('um-admin-form-login', __('Login Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
267
 
268
+ add_meta_box('um-admin-form-logout', __('Logout Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
269
 
270
+ add_meta_box('um-admin-form-delete', __('Delete Options','ultimate-member'), array(&$this, 'load_metabox_role'), 'um_role', 'normal', 'default');
271
 
272
  do_action('um_admin_custom_role_metaboxes');
273
 
464
  case '_visibility':
465
  ?>
466
 
467
+ <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>
468
  <select name="_visibility" id="_visibility" class="umaf-selectjs" style="width: 100%">
469
  <option value="all" <?php selected( 'all', $this->edit_mode_value ); ?>>View everywhere</option>
470
  <option value="edit" <?php selected( 'edit', $this->edit_mode_value ); ?>>Edit mode only</option>
687
  case '_divider_text':
688
  ?>
689
 
690
+ <p><label for="_divider_text">Optional Text <?php $this->tooltip( __('Optional text to include with the divider','ultimate-member') ); ?></label>
691
  <input type="text" name="_divider_text" id="_divider_text" value="<?php echo ( $this->edit_mode_value ) ? $this->edit_mode_value : ''; ?>" />
692
  </p>
693
 
878
  case '_force_good_pass':
879
  ?>
880
 
881
+ <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>
882
  <?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 ); ?>
883
  </p>
884
 
888
  case '_force_confirm_pass':
889
  ?>
890
 
891
+ <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>
892
  <?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 ); ?>
893
  </p>
894
 
1252
  case '_min':
1253
  ?>
1254
 
1255
+ <p><label for="_min">Minimum Number <?php $this->tooltip( __('Minimum number that can be entered in this field','ultimate-member') ); ?></label>
1256
  <input type="text" name="_min" id="_min" value="<?php echo $this->edit_mode_value; ?>" />
1257
  </p>
1258
 
1262
  case '_max':
1263
  ?>
1264
 
1265
+ <p><label for="_max">Maximum Number <?php $this->tooltip( __('Maximum number that can be entered in this field','ultimate-member') ); ?></label>
1266
  <input type="text" name="_max" id="_max" value="<?php echo $this->edit_mode_value; ?>" />
1267
  </p>
1268
 
admin/core/um-admin-notices.php CHANGED
@@ -47,7 +47,7 @@ class UM_Admin_Notices {
47
 
48
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
49
 
50
- 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') );
51
 
52
  echo '</p></div>';
53
 
@@ -59,7 +59,7 @@ class UM_Admin_Notices {
59
 
60
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
61
 
62
- 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') );
63
 
64
  echo '</p></div>';
65
 
@@ -81,20 +81,20 @@ class UM_Admin_Notices {
81
  }
82
 
83
  if ( $err ) {
84
- 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>';
85
  }
86
 
87
  if ( isset( $pages['user'] ) ) {
88
  $test = get_post( $pages['user'] );
89
  if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
90
- echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: User page can not be a child page.','ultimatemember') . '</p></div>';
91
  }
92
  }
93
 
94
  if ( isset( $pages['account'] ) ) {
95
  $test = get_post( $pages['account'] );
96
  if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
97
- echo '<div class="updated" style="border-color: #3ba1da;"><p>' . __('Ultimate Member Setup Error: Account page can not be a child page.','ultimatemember') . '</p></div>';
98
  }
99
  }
100
 
@@ -125,7 +125,7 @@ class UM_Admin_Notices {
125
  if ( !$hide_locale_notice ) {
126
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
127
 
128
- 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') );
129
 
130
  echo '</p></div>';
131
  }
@@ -138,7 +138,7 @@ class UM_Admin_Notices {
138
 
139
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
140
 
141
- 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') );
142
 
143
  echo '</p></div>';
144
 
@@ -175,42 +175,42 @@ class UM_Admin_Notices {
175
 
176
  $ignore = admin_url('users.php');
177
 
178
- $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);
179
- $messages[0]['err_content'] .= '<p><a href="'. esc_html( $confirm_uri ) .'" class="button-primary">' . __('Remove','ultimatemember') . '</a>&nbsp;&nbsp;<a href="'.$ignore.'" class="button">' . __('Undo','ultimatemember') . '</a></p>';
180
 
181
  break;
182
 
183
  case 'language_updated':
184
- $messages[0]['content'] = __('Your translation files have been updated successfully.','ultimatemember');
185
  break;
186
 
187
  case 'purged_temp':
188
- $messages[0]['content'] = __('Your temp uploads directory is now clean.','ultimatemember');
189
  break;
190
 
191
  case 'cleared_cache':
192
- $messages[0]['content'] = __('Your user cache is now removed.','ultimatemember');
193
  break;
194
 
195
  case 'form_duplicated':
196
- $messages[0]['content'] = __('The form has been duplicated successfully.','ultimatemember');
197
  break;
198
 
199
  case 'user_updated':
200
- $messages[0]['content'] = __('User has been updated.','ultimatemember');
201
  break;
202
 
203
  case 'users_updated':
204
- $messages[0]['content'] = __('Users have been updated.','ultimatemember');
205
  break;
206
 
207
  case 'users_role_updated':
208
- $messages[0]['content'] = __('Changed roles.','ultimatemember');
209
  break;
210
 
211
  case 'err_users_updated':
212
- $messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimatemember');
213
- $messages[1]['content'] = __('Other users have been updated.','ultimatemember');
214
 
215
  }
216
 
47
 
48
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
49
 
50
+ 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') );
51
 
52
  echo '</p></div>';
53
 
59
 
60
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
61
 
62
+ 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') );
63
 
64
  echo '</p></div>';
65
 
81
  }
82
 
83
  if ( $err ) {
84
+ 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>';
85
  }
86
 
87
  if ( isset( $pages['user'] ) ) {
88
  $test = get_post( $pages['user'] );
89
  if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
90
+ 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>';
91
  }
92
  }
93
 
94
  if ( isset( $pages['account'] ) ) {
95
  $test = get_post( $pages['account'] );
96
  if ( isset( $test->post_parent ) && $test->post_parent > 0 ) {
97
+ 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>';
98
  }
99
  }
100
 
125
  if ( !$hide_locale_notice ) {
126
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
127
 
128
+ 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') );
129
 
130
  echo '</p></div>';
131
  }
138
 
139
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
140
 
141
+ 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') );
142
 
143
  echo '</p></div>';
144
 
175
 
176
  $ignore = admin_url('users.php');
177
 
178
+ $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);
179
+ $messages[0]['err_content'] .= '<p><a href="'. esc_html( $confirm_uri ) .'" class="button-primary">' . __('Remove','ultimate-member') . '</a>&nbsp;&nbsp;<a href="'.$ignore.'" class="button">' . __('Undo','ultimate-member') . '</a></p>';
180
 
181
  break;
182
 
183
  case 'language_updated':
184
+ $messages[0]['content'] = __('Your translation files have been updated successfully.','ultimate-member');
185
  break;
186
 
187
  case 'purged_temp':
188
+ $messages[0]['content'] = __('Your temp uploads directory is now clean.','ultimate-member');
189
  break;
190
 
191
  case 'cleared_cache':
192
+ $messages[0]['content'] = __('Your user cache is now removed.','ultimate-member');
193
  break;
194
 
195
  case 'form_duplicated':
196
+ $messages[0]['content'] = __('The form has been duplicated successfully.','ultimate-member');
197
  break;
198
 
199
  case 'user_updated':
200
+ $messages[0]['content'] = __('User has been updated.','ultimate-member');
201
  break;
202
 
203
  case 'users_updated':
204
+ $messages[0]['content'] = __('Users have been updated.','ultimate-member');
205
  break;
206
 
207
  case 'users_role_updated':
208
+ $messages[0]['content'] = __('Changed roles.','ultimate-member');
209
  break;
210
 
211
  case 'err_users_updated':
212
+ $messages[0]['err_content'] = __('Super administrators cannot be modified.','ultimate-member');
213
+ $messages[1]['content'] = __('Other users have been updated.','ultimate-member');
214
 
215
  }
216
 
admin/core/um-admin-redux.php CHANGED
@@ -52,12 +52,12 @@
52
 
53
  $this->args = array(
54
  'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name.
55
- 'display_name' => __('Ultimate Member', 'ultimatemember'), // Name that appears at the top of your panel
56
  'display_version' => ultimatemember_version, // Version that appears at the top of your panel
57
  'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
58
  'allow_sub_menu' => false, // Show the sections below the admin menu item or not
59
- 'menu_title' => __('Settings', 'ultimatemember'),
60
- 'page_title' => __('Settings', 'ultimatemember'),
61
 
62
  'google_api_key' => '', // Must be defined to add google fonts to the typography module
63
  'async_typography' => true, // Use a asynchronous font on the front end or font string
52
 
53
  $this->args = array(
54
  'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name.
55
+ 'display_name' => __('Ultimate Member', 'ultimate-member'), // Name that appears at the top of your panel
56
  'display_version' => ultimatemember_version, // Version that appears at the top of your panel
57
  'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
58
  'allow_sub_menu' => false, // Show the sections below the admin menu item or not
59
+ 'menu_title' => __('Settings', 'ultimate-member'),
60
+ 'page_title' => __('Settings', 'ultimate-member'),
61
 
62
  'google_api_key' => '', // Must be defined to add google fonts to the typography module
63
  'async_typography' => true, // Use a asynchronous font on the front end or font string
admin/core/um-admin-roles.php CHANGED
@@ -29,10 +29,10 @@ class UM_Admin_Roles {
29
  $admin = new UM_Admin_Metabox();
30
 
31
  $new_columns['cb'] = '<input type="checkbox" />';
32
- $new_columns['title'] = __('Role Title','ultimatemember');
33
- $new_columns['count'] = __('No. of Members','ultimatemember') . $admin->_tooltip( __('The total number of members who have this role on your site','ultimatemember') );
34
- $new_columns['core'] = __('Core / Built-in','ultimatemember') . $admin->_tooltip( __('A core role is installed by default and may not be removed','ultimatemember') );
35
- $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') );
36
 
37
  return $new_columns;
38
 
@@ -55,9 +55,9 @@ class UM_Admin_Roles {
55
  }
56
  $data = $ultimatemember->query->role_data($role);
57
  if ( isset( $data['can_access_wpadmin'] ) && $data['can_access_wpadmin'] == 1 ){
58
- 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>';
59
  } else {
60
- echo __('No','ultimatemember');
61
  }
62
  break;
63
 
@@ -73,7 +73,7 @@ class UM_Admin_Roles {
73
 
74
  case 'core':
75
  if ( $ultimatemember->query->is_core( $id ) ) {
76
- echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('Core','ultimatemember').'"><i class="um-faicon-check"></i></span>';
77
  } else {
78
  echo '&mdash;';
79
  }
29
  $admin = new UM_Admin_Metabox();
30
 
31
  $new_columns['cb'] = '<input type="checkbox" />';
32
+ $new_columns['title'] = __('Role Title','ultimate-member');
33
+ $new_columns['count'] = __('No. of Members','ultimate-member') . $admin->_tooltip( __('The total number of members who have this role on your site','ultimate-member') );
34
+ $new_columns['core'] = __('Core / Built-in','ultimate-member') . $admin->_tooltip( __('A core role is installed by default and may not be removed','ultimate-member') );
35
+ $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') );
36
 
37
  return $new_columns;
38
 
55
  }
56
  $data = $ultimatemember->query->role_data($role);
57
  if ( isset( $data['can_access_wpadmin'] ) && $data['can_access_wpadmin'] == 1 ){
58
+ 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>';
59
  } else {
60
+ echo __('No','ultimate-member');
61
  }
62
  break;
63
 
73
 
74
  case 'core':
75
  if ( $ultimatemember->query->is_core( $id ) ) {
76
+ echo '<span class="um-adm-ico um-admin-tipsy-n" title="'.__('Core','ultimate-member').'"><i class="um-faicon-check"></i></span>';
77
  } else {
78
  echo '&mdash;';
79
  }
admin/core/um-admin-users.php CHANGED
@@ -32,10 +32,10 @@ class UM_Admin_Users {
32
  $user_id = $user_object->ID;
33
  um_fetch_user( $user_id );
34
 
35
- $actions['frontend_profile'] = "<a class='' href='" . um_user_profile_url() . "'>" . __( 'View profile','ultimatemember') . "</a>";
36
 
37
  if ( um_user('submitted') ) {
38
- $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>';
39
  }
40
 
41
  $actions = apply_filters('um_admin_user_row_actions', $actions, $user_id );
@@ -126,11 +126,11 @@ class UM_Admin_Users {
126
  }
127
 
128
  $status = array(
129
- 'approved' => __('Approved','ultimatemember'),
130
- 'awaiting_admin_review' => __('Pending review','ultimatemember'),
131
- 'awaiting_email_confirmation' => __('Waiting e-mail confirmation','ultimatemember'),
132
- 'inactive' => __('Inactive','ultimatemember'),
133
- 'rejected' => __('Rejected','ultimatemember')
134
  );
135
 
136
  $ultimatemember->query->count_users_by_status( 'unassigned' );
@@ -175,7 +175,7 @@ class UM_Admin_Users {
175
  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']) ){
176
 
177
  if ( ! current_user_can( 'edit_users' ) )
178
- wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
179
 
180
  check_admin_referer('bulk-users');
181
 
@@ -233,7 +233,7 @@ class UM_Admin_Users {
233
  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']) ){
234
 
235
  if ( ! current_user_can( 'edit_users' ) )
236
- wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
237
 
238
  check_admin_referer('bulk-users');
239
 
@@ -304,9 +304,9 @@ class UM_Admin_Users {
304
 
305
  <div style="float:right;margin:0 4px">
306
 
307
- <label class="screen-reader-text" for="um_filter_role"><?php _e('Filter by','ultimatemember'); ?></label>
308
  <select name="um_filter_role[]" id="um_filter_role" class="" style="width: 120px">
309
- <option value="0"><?php _e('Filter by','ultimatemember'); ?></option>
310
  <?php
311
  $roles = $ultimatemember->query->get_roles();
312
  $um_filter_role = '';
@@ -325,9 +325,9 @@ class UM_Admin_Users {
325
 
326
  <div style="float:right;margin:0 4px">
327
 
328
- <label class="screen-reader-text" for="um_bulk_action"><?php _e('UM Action','ultimatemember'); ?></label>
329
  <select name="um_bulk_action[]" id="um_bulk_action" class="" style="width: 200px">
330
- <option value="0"><?php _e('UM Action','ultimatemember'); ?></option>
331
  <?php echo $ultimatemember->user->get_bulk_admin_actions(); ?>
332
  </select>
333
 
@@ -337,14 +337,14 @@ class UM_Admin_Users {
337
 
338
  <div style="float:right;margin:0 4px">
339
 
340
- <label class="screen-reader-text" for="um_change_role"><?php _e('Community role&hellip;','ultimatemember'); ?></label>
341
  <select name="um_change_role[]" id="um_change_role" class="" style="width: 160px">
342
  <?php foreach($ultimatemember->query->get_roles( $add_default = 'Community role&hellip;' ) as $key => $value) { ?>
343
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
344
  <?php } ?>
345
  </select>
346
 
347
- <input name="um_changeit" id="um_changeit" class="button" value="<?php _e('Change','ultimatemember'); ?>" type="submit" />
348
 
349
  </div>
350
 
@@ -363,7 +363,7 @@ class UM_Admin_Users {
363
 
364
  $admin = new UM_Admin_Metabox();
365
 
366
- $columns['um_role'] = __('Community Role','ultimatemember') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimatemember') );
367
 
368
  return $columns;
369
  }
32
  $user_id = $user_object->ID;
33
  um_fetch_user( $user_id );
34
 
35
+ $actions['frontend_profile'] = "<a class='' href='" . um_user_profile_url() . "'>" . __( 'View profile','ultimate-member') . "</a>";
36
 
37
  if ( um_user('submitted') ) {
38
+ $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>';
39
  }
40
 
41
  $actions = apply_filters('um_admin_user_row_actions', $actions, $user_id );
126
  }
127
 
128
  $status = array(
129
+ 'approved' => __('Approved','ultimate-member'),
130
+ 'awaiting_admin_review' => __('Pending review','ultimate-member'),
131
+ 'awaiting_email_confirmation' => __('Waiting e-mail confirmation','ultimate-member'),
132
+ 'inactive' => __('Inactive','ultimate-member'),
133
+ 'rejected' => __('Rejected','ultimate-member')
134
  );
135
 
136
  $ultimatemember->query->count_users_by_status( 'unassigned' );
175
  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']) ){
176
 
177
  if ( ! current_user_can( 'edit_users' ) )
178
+ wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
179
 
180
  check_admin_referer('bulk-users');
181
 
233
  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']) ){
234
 
235
  if ( ! current_user_can( 'edit_users' ) )
236
+ wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
237
 
238
  check_admin_referer('bulk-users');
239
 
304
 
305
  <div style="float:right;margin:0 4px">
306
 
307
+ <label class="screen-reader-text" for="um_filter_role"><?php _e('Filter by','ultimate-member'); ?></label>
308
  <select name="um_filter_role[]" id="um_filter_role" class="" style="width: 120px">
309
+ <option value="0"><?php _e('Filter by','ultimate-member'); ?></option>
310
  <?php
311
  $roles = $ultimatemember->query->get_roles();
312
  $um_filter_role = '';
325
 
326
  <div style="float:right;margin:0 4px">
327
 
328
+ <label class="screen-reader-text" for="um_bulk_action"><?php _e('UM Action','ultimate-member'); ?></label>
329
  <select name="um_bulk_action[]" id="um_bulk_action" class="" style="width: 200px">
330
+ <option value="0"><?php _e('UM Action','ultimate-member'); ?></option>
331
  <?php echo $ultimatemember->user->get_bulk_admin_actions(); ?>
332
  </select>
333
 
337
 
338
  <div style="float:right;margin:0 4px">
339
 
340
+ <label class="screen-reader-text" for="um_change_role"><?php _e('Community role&hellip;','ultimate-member'); ?></label>
341
  <select name="um_change_role[]" id="um_change_role" class="" style="width: 160px">
342
  <?php foreach($ultimatemember->query->get_roles( $add_default = 'Community role&hellip;' ) as $key => $value) { ?>
343
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
344
  <?php } ?>
345
  </select>
346
 
347
+ <input name="um_changeit" id="um_changeit" class="button" value="<?php _e('Change','ultimate-member'); ?>" type="submit" />
348
 
349
  </div>
350
 
363
 
364
  $admin = new UM_Admin_Metabox();
365
 
366
+ $columns['um_role'] = __('Community Role','ultimate-member') . $admin->_tooltip( __('This is the membership role set by Ultimate Member plugin','ultimate-member') );
367
 
368
  return $columns;
369
  }
admin/templates/access/settings.php CHANGED
@@ -6,7 +6,7 @@
6
 
7
  ?>
8
 
9
- <h4><?php _e('Apply custom access settings?','ultimatemember'); ?> <?php $this->tooltip( __('Switch to yes to override global access settings','ultimatemember'), 'e'); ?></h4>
10
 
11
  <p>
12
  <span><?php $metabox->ui_on_off('_um_custom_access_settings', 0, true, 1, '_um_custom_access_settings', 'xxx'); ?> </span>
@@ -14,15 +14,15 @@
14
 
15
  <div class="_um_custom_access_settings">
16
 
17
- <h4><?php _e('Content Availability','ultimatemember'); ?> <?php $this->tooltip( __('Who can access this content?','ultimatemember'), 'e'); ?></h4>
18
 
19
  <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">
20
 
21
  <?php $value = get_post_meta($post->ID, '_um_accessible', true); ?>
22
 
23
- <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 />
24
- <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 />
25
- <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>
26
 
27
  <?php do_action( 'um_admin_extend_access_settings' ); ?>
28
 
@@ -30,7 +30,7 @@
30
 
31
  <div class="um-admin-access-loggedout">
32
 
33
- <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>
34
 
35
  <p class="description">
36
 
@@ -44,7 +44,7 @@
44
 
45
  <div class="um-admin-access-roles">
46
 
47
- <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>
48
 
49
  <p class="description">
50
 
@@ -57,7 +57,7 @@
57
 
58
  </p>
59
 
60
- <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>
61
 
62
  <p class="description">
63
 
6
 
7
  ?>
8
 
9
+ <h4><?php _e('Apply custom access settings?','ultimate-member'); ?> <?php $this->tooltip( __('Switch to yes to override global access settings','ultimate-member'), 'e'); ?></h4>
10
 
11
  <p>
12
  <span><?php $metabox->ui_on_off('_um_custom_access_settings', 0, true, 1, '_um_custom_access_settings', 'xxx'); ?> </span>
14
 
15
  <div class="_um_custom_access_settings">
16
 
17
+ <h4><?php _e('Content Availability','ultimate-member'); ?> <?php $this->tooltip( __('Who can access this content?','ultimate-member'), 'e'); ?></h4>
18
 
19
  <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">
20
 
21
  <?php $value = get_post_meta($post->ID, '_um_accessible', true); ?>
22
 
23
+ <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 />
24
+ <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 />
25
+ <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>
26
 
27
  <?php do_action( 'um_admin_extend_access_settings' ); ?>
28
 
30
 
31
  <div class="um-admin-access-loggedout">
32
 
33
+ <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>
34
 
35
  <p class="description">
36
 
44
 
45
  <div class="um-admin-access-roles">
46
 
47
+ <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>
48
 
49
  <p class="description">
50
 
57
 
58
  </p>
59
 
60
+ <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>
61
 
62
  <p class="description">
63
 
admin/templates/dashboard/language-contrib.php CHANGED
@@ -1,3 +1,3 @@
1
- <p><?php printf(__('Ultimate Member is not yet available in your language: <strong>%1$s</strong>.','ultimatemember'), $locale); ?></p>
2
 
3
- <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>
1
+ <p><?php printf(__('Ultimate Member is not yet available in your language: <strong>%1$s</strong>.','ultimate-member'), $locale); ?></p>
2
 
3
+ <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>
admin/templates/dashboard/language-download.php CHANGED
@@ -1,3 +1,3 @@
1
- <p><?php printf(__('Ultimate Member is available in your language: <strong>%1$s (%2$s)</strong>.','ultimatemember'), $ultimatemember->available_languages[$locale], $locale); ?></p>
2
 
3
- <p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Download Translation','ultimatemember'); ?></a></p>
1
+ <p><?php printf(__('Ultimate Member is available in your language: <strong>%1$s (%2$s)</strong>.','ultimate-member'), $ultimatemember->available_languages[$locale], $locale); ?></p>
2
 
3
+ <p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Download Translation','ultimate-member'); ?></a></p>
admin/templates/dashboard/language-update.php CHANGED
@@ -1,3 +1,3 @@
1
- <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>
2
 
3
- <p><a href="<?php echo add_query_arg( 'um_adm_action', 'um_language_downloader' ); ?>" class="button"><?php _e('Force Update Translation','ultimatemember'); ?></a></p>
1
+ <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>
2
 
3
+ <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>
admin/templates/dashboard/users.php CHANGED
@@ -4,17 +4,17 @@
4
 
5
  <tr class="first">
6
  <td class="first b"><a href="<?php echo admin_url('users.php'); ?>"><?php echo $ultimatemember->query->count_users(); ?></a></td>
7
- <td class="t"><a href="<?php echo admin_url('users.php'); ?>"><?php _e('Users','ultimatemember'); ?></a></td>
8
  </tr>
9
 
10
  <tr>
11
  <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>
12
- <td class="t"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php _e('Approved','ultimatemember'); ?></a></td>
13
  </tr>
14
 
15
  <tr>
16
  <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>
17
- <td class="t"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php _e('Rejected','ultimatemember'); ?></a></td>
18
  </tr>
19
 
20
  </table>
@@ -27,17 +27,17 @@
27
 
28
  <tr class="first">
29
  <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>
30
- <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>
31
  </tr>
32
 
33
  <tr>
34
  <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>
35
- <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>
36
  </tr>
37
 
38
  <tr>
39
  <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>
40
- <td class="t"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php _e('Inactive','ultimatemember'); ?></a></td>
41
  </tr>
42
 
43
  </table>
4
 
5
  <tr class="first">
6
  <td class="first b"><a href="<?php echo admin_url('users.php'); ?>"><?php echo $ultimatemember->query->count_users(); ?></a></td>
7
+ <td class="t"><a href="<?php echo admin_url('users.php'); ?>"><?php _e('Users','ultimate-member'); ?></a></td>
8
  </tr>
9
 
10
  <tr>
11
  <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>
12
+ <td class="t"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php _e('Approved','ultimate-member'); ?></a></td>
13
  </tr>
14
 
15
  <tr>
16
  <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>
17
+ <td class="t"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php _e('Rejected','ultimate-member'); ?></a></td>
18
  </tr>
19
 
20
  </table>
27
 
28
  <tr class="first">
29
  <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>
30
+ <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>
31
  </tr>
32
 
33
  <tr>
34
  <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>
35
+ <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>
36
  </tr>
37
 
38
  <tr>
39
  <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>
40
+ <td class="t"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php _e('Inactive','ultimate-member'); ?></a></td>
41
  </tr>
42
 
43
  </table>
admin/templates/directory/appearance.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="um-admin-metabox">
2
 
3
- <p><label for="_um_directory_template"><?php _e('Template','ultimatemember'); ?></label>
4
  <select name="_um_directory_template" id="_um_directory_template" class="umaf-selectjs" style="width: 100%">
5
 
6
  <?php foreach($ultimatemember->shortcodes->get_templates( 'members' ) as $key => $value) { ?>
1
  <div class="um-admin-metabox">
2
 
3
+ <p><label for="_um_directory_template"><?php _e('Template','ultimate-member'); ?></label>
4
  <select name="_um_directory_template" id="_um_directory_template" class="umaf-selectjs" style="width: 100%">
5
 
6
  <?php foreach($ultimatemember->shortcodes->get_templates( 'members' ) as $key => $value) { ?>
admin/templates/directory/general.php CHANGED
@@ -21,7 +21,7 @@
21
  <input type="hidden" name="_um_mode" id="_um_mode" value="directory" />
22
 
23
  <p>
24
- <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>
25
  <span class="um-admin-half">
26
 
27
  <select multiple="multiple" name="_um_roles[]" id="_um_roles" class="umaf-selectjs" style="width: 300px">
@@ -34,7 +34,7 @@
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p>
37
- <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>
38
  <span class="um-admin-half">
39
 
40
  <?php $this->ui_on_off('_um_has_profile_photo'); ?>
@@ -43,7 +43,7 @@
43
  </p><div class="um-admin-clear"></div>
44
 
45
  <p>
46
- <label class="um-admin-half"><?php _e('Only show members who have uploaded a cover photo','ultimatemember'); ?></label>
47
  <span class="um-admin-half">
48
 
49
  <?php $this->ui_on_off('_um_has_cover_photo'); ?>
@@ -52,18 +52,18 @@
52
  </p><div class="um-admin-clear"></div>
53
 
54
  <p>
55
- <label class="um-admin-half"><?php _e('Sort users by','ultimatemember'); ?> <?php $this->tooltip('Sort users by a specific parameter in the directory'); ?></label>
56
  <span class="um-admin-half">
57
 
58
  <select name="_um_sortby" id="_um_sortby" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1='other' data-cond1-show='custom-field'>
59
- <option value="user_registered_desc" <?php selected('user_registered_desc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('New users first','ultimatemember'); ?></option>
60
- <option value="user_registered_asc" <?php selected('user_registered_asc', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Old users first','ultimatemember'); ?></option>
61
- <option value="last_login" <?php selected('last_login', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last login','ultimatemember'); ?></option>
62
- <option value="display_name" <?php selected('display_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Display Name','ultimatemember'); ?></option>
63
- <option value="first_name" <?php selected('first_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('First Name','ultimatemember'); ?></option>
64
- <option value="last_name" <?php selected('last_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last Name','ultimatemember'); ?></option>
65
- <option value="random" <?php selected('random', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Random','ultimatemember'); ?></option>
66
- <option value="other" <?php selected('other', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Other (custom field)','ultimatemember'); ?></option>
67
  <?php do_action('um_admin_directory_sort_users_select', '_um_sortby'); ?>
68
  </select>
69
 
@@ -71,7 +71,7 @@
71
  </p><div class="um-admin-clear"></div>
72
 
73
  <p class="custom-field">
74
- <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>
75
  <span class="um-admin-half">
76
 
77
  <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 @@
80
  </p><div class="um-admin-clear"></div>
81
 
82
  <p>
83
- <label class="um-admin-half"><?php _e('Only show specific users (Enter one username per line)','ultimatemember'); ?></label>
84
  <span class="um-admin-half">
85
 
86
  <textarea name="_um_show_these_users" id="_um_show_these_users"><?php echo $show_these_users; ?></textarea>
21
  <input type="hidden" name="_um_mode" id="_um_mode" value="directory" />
22
 
23
  <p>
24
+ <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>
25
  <span class="um-admin-half">
26
 
27
  <select multiple="multiple" name="_um_roles[]" id="_um_roles" class="umaf-selectjs" style="width: 300px">
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p>
37
+ <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>
38
  <span class="um-admin-half">
39
 
40
  <?php $this->ui_on_off('_um_has_profile_photo'); ?>
43
  </p><div class="um-admin-clear"></div>
44
 
45
  <p>
46
+ <label class="um-admin-half"><?php _e('Only show members who have uploaded a cover photo','ultimate-member'); ?></label>
47
  <span class="um-admin-half">
48
 
49
  <?php $this->ui_on_off('_um_has_cover_photo'); ?>
52
  </p><div class="um-admin-clear"></div>
53
 
54
  <p>
55
+ <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>
56
  <span class="um-admin-half">
57
 
58
  <select name="_um_sortby" id="_um_sortby" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1='other' data-cond1-show='custom-field'>
59
+ <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>
60
+ <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>
61
+ <option value="last_login" <?php selected('last_login', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last login','ultimate-member'); ?></option>
62
+ <option value="display_name" <?php selected('display_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Display Name','ultimate-member'); ?></option>
63
+ <option value="first_name" <?php selected('first_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('First Name','ultimate-member'); ?></option>
64
+ <option value="last_name" <?php selected('last_name', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Last Name','ultimate-member'); ?></option>
65
+ <option value="random" <?php selected('random', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Random','ultimate-member'); ?></option>
66
+ <option value="other" <?php selected('other', $ultimatemember->query->get_meta_value('_um_sortby') ); ?>><?php _e('Other (custom field)','ultimate-member'); ?></option>
67
  <?php do_action('um_admin_directory_sort_users_select', '_um_sortby'); ?>
68
  </select>
69
 
71
  </p><div class="um-admin-clear"></div>
72
 
73
  <p class="custom-field">
74
+ <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>
75
  <span class="um-admin-half">
76
 
77
  <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
  </p><div class="um-admin-clear"></div>
81
 
82
  <p>
83
+ <label class="um-admin-half"><?php _e('Only show specific users (Enter one username per line)','ultimate-member'); ?></label>
84
  <span class="um-admin-half">
85
 
86
  <textarea name="_um_show_these_users" id="_um_show_these_users"><?php echo $show_these_users; ?></textarea>
admin/templates/directory/pagination.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="">
4
 
5
  <p>
6
- <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>
7
  <span class="um-admin-half">
8
 
9
  <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 @@
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p>
15
- <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>
16
  <span class="um-admin-half">
17
 
18
  <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 @@
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
- <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>
25
  <span class="um-admin-half">
26
 
27
  <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
  <div class="">
4
 
5
  <p>
6
+ <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>
7
  <span class="um-admin-half">
8
 
9
  <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
  </p><div class="um-admin-clear"></div>
13
 
14
  <p>
15
+ <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>
16
  <span class="um-admin-half">
17
 
18
  <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
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
+ <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>
25
  <span class="um-admin-half">
26
 
27
  <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" />
admin/templates/directory/profile.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Enable Profile Photo','ultimatemember'); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_profile_photo', 1); ?>
@@ -12,7 +12,7 @@
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p>
15
- <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>
16
  <span class="um-admin-half">
17
 
18
  <?php $this->ui_on_off('_um_cover_photos', 1); ?>
@@ -21,7 +21,7 @@
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
- <label class="um-admin-half"><?php _e('Show display name','ultimatemember'); ?></label>
25
  <span class="um-admin-half">
26
 
27
  <?php $this->ui_on_off('_um_show_name', 1, true, 1, 'name-options', 'xxx'); ?>
@@ -30,7 +30,7 @@
30
  </p><div class="um-admin-clear"></div>
31
 
32
  <p>
33
- <label class="um-admin-half"><?php _e('Show tagline below profile name','ultimatemember'); ?></label>
34
  <span class="um-admin-half">
35
 
36
  <?php $this->ui_on_off('_um_show_tagline', 0, true, 1, 'tagline-options', 'xxx'); ?>
@@ -39,7 +39,7 @@
39
  </p><div class="um-admin-clear"></div>
40
 
41
  <p class="tagline-options">
42
- <label class=""><?php _e('Choose field(s) to display in tagline','ultimatemember'); ?></label>
43
 
44
  <?php
45
 
@@ -87,7 +87,7 @@
87
  </p><div class="um-admin-clear"></div>
88
 
89
  <p>
90
- <label class="um-admin-half"><?php _e('Show extra user information below tagline?','ultimatemember'); ?></label>
91
  <span class="um-admin-half">
92
 
93
  <?php $this->ui_on_off('_um_show_userinfo', 0, true, 1, 'reveal-options', 'xxx'); ?>
@@ -96,7 +96,7 @@
96
  </p><div class="um-admin-clear"></div>
97
 
98
  <p class="reveal-options">
99
- <label class="um-admin-half"><?php _e('Enable reveal section transition by default','ultimatemember'); ?></label>
100
  <span class="um-admin-half">
101
 
102
  <?php $this->ui_on_off('_um_userinfo_animate', 1); ?>
@@ -105,7 +105,7 @@
105
  </p><div class="um-admin-clear"></div>
106
 
107
  <p class="reveal-options">
108
- <label class=""><?php _e('Choose field(s) to display in reveal section','ultimatemember'); ?></label>
109
 
110
  <?php
111
 
@@ -153,7 +153,7 @@
153
  </p><div class="um-admin-clear"></div>
154
 
155
  <p class="reveal-options">
156
- <label class="um-admin-half"><?php _e('Show social connect icons','ultimatemember'); ?></label>
157
  <span class="um-admin-half">
158
 
159
  <?php $this->ui_on_off('_um_show_social', 0); ?>
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Enable Profile Photo','ultimate-member'); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_profile_photo', 1); ?>
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p>
15
+ <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>
16
  <span class="um-admin-half">
17
 
18
  <?php $this->ui_on_off('_um_cover_photos', 1); ?>
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
+ <label class="um-admin-half"><?php _e('Show display name','ultimate-member'); ?></label>
25
  <span class="um-admin-half">
26
 
27
  <?php $this->ui_on_off('_um_show_name', 1, true, 1, 'name-options', 'xxx'); ?>
30
  </p><div class="um-admin-clear"></div>
31
 
32
  <p>
33
+ <label class="um-admin-half"><?php _e('Show tagline below profile name','ultimate-member'); ?></label>
34
  <span class="um-admin-half">
35
 
36
  <?php $this->ui_on_off('_um_show_tagline', 0, true, 1, 'tagline-options', 'xxx'); ?>
39
  </p><div class="um-admin-clear"></div>
40
 
41
  <p class="tagline-options">
42
+ <label class=""><?php _e('Choose field(s) to display in tagline','ultimate-member'); ?></label>
43
 
44
  <?php
45
 
87
  </p><div class="um-admin-clear"></div>
88
 
89
  <p>
90
+ <label class="um-admin-half"><?php _e('Show extra user information below tagline?','ultimate-member'); ?></label>
91
  <span class="um-admin-half">
92
 
93
  <?php $this->ui_on_off('_um_show_userinfo', 0, true, 1, 'reveal-options', 'xxx'); ?>
96
  </p><div class="um-admin-clear"></div>
97
 
98
  <p class="reveal-options">
99
+ <label class="um-admin-half"><?php _e('Enable reveal section transition by default','ultimate-member'); ?></label>
100
  <span class="um-admin-half">
101
 
102
  <?php $this->ui_on_off('_um_userinfo_animate', 1); ?>
105
  </p><div class="um-admin-clear"></div>
106
 
107
  <p class="reveal-options">
108
+ <label class=""><?php _e('Choose field(s) to display in reveal section','ultimate-member'); ?></label>
109
 
110
  <?php
111
 
153
  </p><div class="um-admin-clear"></div>
154
 
155
  <p class="reveal-options">
156
+ <label class="um-admin-half"><?php _e('Show social connect icons','ultimate-member'); ?></label>
157
  <span class="um-admin-half">
158
 
159
  <?php $this->ui_on_off('_um_show_social', 0); ?>
admin/templates/directory/profile_card.php CHANGED
@@ -1,22 +1,22 @@
1
  <div class="um-admin-metabox">
2
 
3
- <p><label for="_um_css_profile_card_bg"><?php _e('Profile card background','ultimatemember'); ?></label>
4
  <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" />
5
  </p>
6
 
7
- <p><label for="_um_css_profile_card_text"><?php _e('Profile card text','ultimatemember'); ?></label>
8
  <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" />
9
  </p>
10
 
11
- <p><label for="_um_css_card_bordercolor"><?php _e('Profile card border color','ultimatemember'); ?></label>
12
  <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" />
13
  </p>
14
 
15
- <p><label for="_um_css_img_bordercolor"><?php _e('Profile photo border color','ultimatemember'); ?></label>
16
  <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" />
17
  </p>
18
 
19
- <p><label for="_um_css_card_thickness"><?php _e('Profile card border thickness','ultimatemember'); ?></label>
20
  <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" />
21
  </p>
22
 
1
  <div class="um-admin-metabox">
2
 
3
+ <p><label for="_um_css_profile_card_bg"><?php _e('Profile card background','ultimate-member'); ?></label>
4
  <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" />
5
  </p>
6
 
7
+ <p><label for="_um_css_profile_card_text"><?php _e('Profile card text','ultimate-member'); ?></label>
8
  <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" />
9
  </p>
10
 
11
+ <p><label for="_um_css_card_bordercolor"><?php _e('Profile card border color','ultimate-member'); ?></label>
12
  <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" />
13
  </p>
14
 
15
+ <p><label for="_um_css_img_bordercolor"><?php _e('Profile photo border color','ultimate-member'); ?></label>
16
  <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" />
17
  </p>
18
 
19
+ <p><label for="_um_css_card_thickness"><?php _e('Profile card border thickness','ultimate-member'); ?></label>
20
  <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" />
21
  </p>
22
 
admin/templates/directory/search.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="">
4
 
5
  <p>
6
- <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>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_search', 0, true, 1, 'search-options', 'xxx'); ?>
@@ -12,7 +12,7 @@
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p class="search-options">
15
- <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>
16
  <span class="um-admin-half">
17
 
18
  <?php $this->ui_on_off('_um_must_search', 0); ?>
@@ -21,7 +21,7 @@
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p class="search-options">
24
- <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>
25
  <span class="um-admin-half">
26
 
27
  <select multiple="multiple" name="_um_roles_can_search[]" id="_um_roles_can_search" class="umaf-selectjs" style="width: 300px">
@@ -34,7 +34,7 @@
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p class="search-options">
37
- <label class=""><?php _e('Choose field(s) to enable in search','ultimatemember'); ?></label>
38
 
39
  <?php
40
 
@@ -86,28 +86,28 @@
86
  </p><div class="um-admin-clear"></div>
87
 
88
  <p class="search-options">
89
- <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>
90
  <span class="um-admin-half">
91
 
92
- <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') ); ?>" />
93
 
94
  </span>
95
  </p><div class="um-admin-clear"></div>
96
 
97
  <p class="search-options">
98
- <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>
99
  <span class="um-admin-half">
100
 
101
- <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') ); ?>" />
102
 
103
  </span>
104
  </p><div class="um-admin-clear"></div>
105
 
106
  <p class="search-options">
107
- <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>
108
  <span class="um-admin-half">
109
 
110
- <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') ); ?>" />
111
 
112
  </span>
113
  </p><div class="um-admin-clear"></div>
3
  <div class="">
4
 
5
  <p>
6
+ <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>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_search', 0, true, 1, 'search-options', 'xxx'); ?>
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p class="search-options">
15
+ <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>
16
  <span class="um-admin-half">
17
 
18
  <?php $this->ui_on_off('_um_must_search', 0); ?>
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p class="search-options">
24
+ <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>
25
  <span class="um-admin-half">
26
 
27
  <select multiple="multiple" name="_um_roles_can_search[]" id="_um_roles_can_search" class="umaf-selectjs" style="width: 300px">
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p class="search-options">
37
+ <label class=""><?php _e('Choose field(s) to enable in search','ultimate-member'); ?></label>
38
 
39
  <?php
40
 
86
  </p><div class="um-admin-clear"></div>
87
 
88
  <p class="search-options">
89
+ <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>
90
  <span class="um-admin-half">
91
 
92
+ <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') ); ?>" />
93
 
94
  </span>
95
  </p><div class="um-admin-clear"></div>
96
 
97
  <p class="search-options">
98
+ <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>
99
  <span class="um-admin-half">
100
 
101
+ <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') ); ?>" />
102
 
103
  </span>
104
  </p><div class="um-admin-clear"></div>
105
 
106
  <p class="search-options">
107
+ <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>
108
  <span class="um-admin-half">
109
 
110
+ <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') ); ?>" />
111
 
112
  </span>
113
  </p><div class="um-admin-clear"></div>
admin/templates/form/builder.php CHANGED
@@ -11,7 +11,7 @@
11
 
12
  <div class="um-admin-drag-ctrls-demo um-admin-drag-ctrls">
13
 
14
- <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>
15
 
16
  </div>
17
 
@@ -25,7 +25,7 @@
25
 
26
  </div>
27
 
28
- <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>
29
 
30
  </div>
31
 
11
 
12
  <div class="um-admin-drag-ctrls-demo um-admin-drag-ctrls">
13
 
14
+ <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>
15
 
16
  </div>
17
 
25
 
26
  </div>
27
 
28
+ <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>
29
 
30
  </div>
31
 
admin/templates/form/login_css.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
- <label><?php _e('Custom CSS','ultimatemember'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimatemember'), 'e'); ?></label>
5
  <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>
6
  </p><div class="um-admin-clear"></div>
7
 
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
+ <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>
5
  <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>
6
  </p><div class="um-admin-clear"></div>
7
 
admin/templates/form/login_customize.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
- <label><?php _e('Use global settings?','ultimatemember'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling &amp; appearance', 'e'); ?></label>
5
  <span>
6
 
7
  <?php $this->ui_on_off('_um_login_use_globals', 1, true, 1, 'xxx', 'login-customize'); ?>
@@ -11,7 +11,7 @@
11
 
12
  <div class="login-customize">
13
 
14
- <p><label for="_um_login_template"><?php _e('Template','ultimatemember'); ?></label>
15
  <select name="_um_login_template" id="_um_login_template" class="umaf-selectjs" style="width: 100%">
16
 
17
  <?php foreach($ultimatemember->shortcodes->get_templates( 'login' ) as $key => $value) { ?>
@@ -23,11 +23,11 @@
23
  </select>
24
  </p>
25
 
26
- <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>
27
  <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" />
28
  </p>
29
 
30
- <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>
31
  <select name="_um_login_align" id="_um_login_align" class="umaf-selectjs" style="width: 100%">
32
 
33
  <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 @@
37
  </select>
38
  </p>
39
 
40
- <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>
41
  <select name="_um_login_icons" id="_um_login_icons" class="umaf-selectjs" style="width: 100%">
42
 
43
  <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 @@
47
  </select>
48
  </p>
49
 
50
- <p><label for="_um_login_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
51
  <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" />
52
  </p>
53
 
54
- <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>
55
  <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'); ?>" />
56
  </p>
57
 
58
- <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>
59
  <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'); ?>" />
60
  </p>
61
 
62
- <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>
63
  <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'); ?>" />
64
  </p>
65
 
66
  <p>
67
- <label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
68
  <span>
69
 
70
  <?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 @@
72
  </span>
73
  </p><div class="um-admin-clear"></div>
74
 
75
- <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>
76
  <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" />
77
  </p>
78
 
79
- <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>
80
  <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'); ?>" />
81
  </p>
82
 
83
- <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>
84
  <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'); ?>" />
85
  </p>
86
 
87
- <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>
88
  <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'); ?>" />
89
  </p>
90
 
91
  <p>
92
- <label><?php _e('Show Forgot Password Link?','ultimatemember'); ?></label>
93
  <span>
94
 
95
  <?php $this->ui_on_off('_um_login_forgot_pass_link', um_get_option('login_forgot_pass_link') ); ?>
@@ -98,7 +98,7 @@
98
  </p><div class="um-admin-clear"></div>
99
 
100
  <p>
101
- <label><?php _e('Show "Remember Me"?','ultimatemember'); ?></label>
102
  <span>
103
 
104
  <?php $this->ui_on_off('_um_login_show_rememberme', um_get_option('login_show_rememberme') ); ?>
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
+ <label><?php _e('Use global settings?','ultimate-member'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling &amp; appearance', 'e'); ?></label>
5
  <span>
6
 
7
  <?php $this->ui_on_off('_um_login_use_globals', 1, true, 1, 'xxx', 'login-customize'); ?>
11
 
12
  <div class="login-customize">
13
 
14
+ <p><label for="_um_login_template"><?php _e('Template','ultimate-member'); ?></label>
15
  <select name="_um_login_template" id="_um_login_template" class="umaf-selectjs" style="width: 100%">
16
 
17
  <?php foreach($ultimatemember->shortcodes->get_templates( 'login' ) as $key => $value) { ?>
23
  </select>
24
  </p>
25
 
26
+ <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>
27
  <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" />
28
  </p>
29
 
30
+ <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>
31
  <select name="_um_login_align" id="_um_login_align" class="umaf-selectjs" style="width: 100%">
32
 
33
  <option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_login_align', null, um_get_option('login_align') ) ); ?>>Centered</option>
37
  </select>
38
  </p>
39
 
40
+ <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>
41
  <select name="_um_login_icons" id="_um_login_icons" class="umaf-selectjs" style="width: 100%">
42
 
43
  <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
  </select>
48
  </p>
49
 
50
+ <p><label for="_um_login_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
51
  <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" />
52
  </p>
53
 
54
+ <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>
55
  <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'); ?>" />
56
  </p>
57
 
58
+ <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>
59
  <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'); ?>" />
60
  </p>
61
 
62
+ <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>
63
  <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'); ?>" />
64
  </p>
65
 
66
  <p>
67
+ <label><?php _e('Show Secondary Button','ultimate-member'); ?></label>
68
  <span>
69
 
70
  <?php $this->ui_on_off('_um_login_secondary_btn', um_get_option('login_secondary_btn'), true, 1, 'login-secondary-btn', 'xxx'); ?>
72
  </span>
73
  </p><div class="um-admin-clear"></div>
74
 
75
+ <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>
76
  <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" />
77
  </p>
78
 
79
+ <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>
80
  <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'); ?>" />
81
  </p>
82
 
83
+ <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>
84
  <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'); ?>" />
85
  </p>
86
 
87
+ <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>
88
  <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'); ?>" />
89
  </p>
90
 
91
  <p>
92
+ <label><?php _e('Show Forgot Password Link?','ultimate-member'); ?></label>
93
  <span>
94
 
95
  <?php $this->ui_on_off('_um_login_forgot_pass_link', um_get_option('login_forgot_pass_link') ); ?>
98
  </p><div class="um-admin-clear"></div>
99
 
100
  <p>
101
+ <label><?php _e('Show "Remember Me"?','ultimate-member'); ?></label>
102
  <span>
103
 
104
  <?php $this->ui_on_off('_um_login_show_rememberme', um_get_option('login_show_rememberme') ); ?>
admin/templates/form/login_settings.php CHANGED
@@ -1,9 +1,9 @@
1
  <div class="um-admin-metabox">
2
 
3
- <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>
4
  <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">
5
 
6
- <option value="0" <?php selected('0', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>><?php _e('Default','ultimatemember'); ?></option>
7
  <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to profile</option>
8
  <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to URL</option>
9
  <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 @@
13
  </p>
14
 
15
  <p class="_um_login_after_login">
16
- <label for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip('', 'e'); ?></label>
17
  <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" />
18
  </p>
19
 
1
  <div class="um-admin-metabox">
2
 
3
+ <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>
4
  <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">
5
 
6
+ <option value="0" <?php selected('0', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>><?php _e('Default','ultimate-member'); ?></option>
7
  <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to profile</option>
8
  <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Redirect to URL</option>
9
  <option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_login_after_login', null, 0 ) ); ?>>Refresh active page</option>
13
  </p>
14
 
15
  <p class="_um_login_after_login">
16
+ <label for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip('', 'e'); ?></label>
17
  <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" />
18
  </p>
19
 
admin/templates/form/mode.php CHANGED
@@ -3,14 +3,14 @@
3
  <div class="um-admin-boxed-links um-admin-ajaxlink <?php if ( $is_core ) echo 'is-core-form'; ?>">
4
 
5
  <?php if ( $is_core ) { ?>
6
- <p><?php _e('<strong>Note:</strong> Form type cannot be changed for the default forms.','ultimatemember'); ?></p>
7
  <?php } ?>
8
 
9
- <a href="#" data-role="register"><?php _e('Registration Form','ultimatemember'); ?></a>
10
 
11
- <a href="#" data-role="profile"><?php _e('Profile Form','ultimatemember'); ?></a>
12
 
13
- <a href="#" data-role="login"><?php _e('Login Form','ultimatemember'); ?></a>
14
 
15
  <input type="hidden" name="_um_mode" id="_um_mode" value="<?php echo $ultimatemember->query->get_meta_value('_um_mode', null, 'register' ); ?>" />
16
 
3
  <div class="um-admin-boxed-links um-admin-ajaxlink <?php if ( $is_core ) echo 'is-core-form'; ?>">
4
 
5
  <?php if ( $is_core ) { ?>
6
+ <p><?php _e('<strong>Note:</strong> Form type cannot be changed for the default forms.','ultimate-member'); ?></p>
7
  <?php } ?>
8
 
9
+ <a href="#" data-role="register"><?php _e('Registration Form','ultimate-member'); ?></a>
10
 
11
+ <a href="#" data-role="profile"><?php _e('Profile Form','ultimate-member'); ?></a>
12
 
13
+ <a href="#" data-role="login"><?php _e('Login Form','ultimate-member'); ?></a>
14
 
15
  <input type="hidden" name="_um_mode" id="_um_mode" value="<?php echo $ultimatemember->query->get_meta_value('_um_mode', null, 'register' ); ?>" />
16
 
admin/templates/form/profile_css.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
- <label><?php _e('Custom CSS','ultimatemember'); ?> <?php $this->tooltip( __('Enter custom css that will be applied to this form only','ultimatemember'), 'e'); ?></label>
5
  <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>
6
  </p><div class="um-admin-clear"></div>
7
 
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
+ <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>
5
  <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>
6
  </p><div class="um-admin-clear"></div>
7
 
admin/templates/form/profile_customize.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
- <label><?php _e('Use global settings?','ultimatemember'); ?> <?php $this->tooltip('Switch to no if you want to customize this form settings, styling &amp; appearance', 'e'); ?></label>
5
  <span>
6
 
7
  <?php $this->ui_on_off('_um_profile_use_globals', 1, true, 1, 'xxx', 'profile-customize'); ?>
@@ -11,7 +11,7 @@
11
 
12
  <div class="profile-customize">
13
 
14
- <p><label for="_um_profile_role"><?php _e('Make this profile role-specific','ultimatemember'); ?></label>
15
  <select name="_um_profile_role" id="_um_profile_role" class="umaf-selectjs" style="width: 100%">
16
 
17
  <?php foreach($ultimatemember->query->get_roles( $add_default = 'All roles' ) as $key => $value) { ?>
@@ -23,7 +23,7 @@
23
  </select>
24
  </p>
25
 
26
- <p><label for="_um_profile_template"><?php _e('Template','ultimatemember'); ?></label>
27
  <select name="_um_profile_template" id="_um_profile_template" class="umaf-selectjs" style="width: 100%">
28
 
29
  <?php foreach($ultimatemember->shortcodes->get_templates( 'profile' ) as $key => $value) { ?>
@@ -35,15 +35,15 @@
35
  </select>
36
  </p>
37
 
38
- <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>
39
  <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" />
40
  </p>
41
 
42
- <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>
43
  <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" />
44
  </p>
45
 
46
- <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>
47
  <select name="_um_profile_align" id="_um_profile_align" class="umaf-selectjs" style="width: 100%">
48
 
49
  <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 @@
53
  </select>
54
  </p>
55
 
56
- <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>
57
  <select name="_um_profile_icons" id="_um_profile_icons" class="umaf-selectjs" style="width: 100%">
58
 
59
  <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 @@
63
  </select>
64
  </p>
65
 
66
- <p><label for="_um_profile_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip('Customize the button text', 'e'); ?></label>
67
  <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" />
68
  </p>
69
 
70
- <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>
71
  <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'); ?>" />
72
  </p>
73
 
74
- <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>
75
  <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'); ?>" />
76
  </p>
77
 
78
- <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>
79
  <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'); ?>" />
80
  </p>
81
 
82
  <p>
83
- <label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
84
  <span>
85
 
86
  <?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 @@
88
  </span>
89
  </p><div class="um-admin-clear"></div>
90
 
91
- <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>
92
  <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" />
93
  </p>
94
 
95
- <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>
96
  <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'); ?>" />
97
  </p>
98
 
99
- <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>
100
  <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'); ?>" />
101
  </p>
102
 
103
- <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>
104
  <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'); ?>" />
105
  </p>
106
 
107
- <p><label for="_um_profile_main_bg"><?php _e('Base Background Color','ultimatemember'); ?></label>
108
  <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'); ?>" />
109
  </p>
110
 
111
- <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>
112
  <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'); ?>" />
113
  </p>
114
 
115
- <p><label for="_um_profile_cover_enabled"><?php _e('Enable Cover Photos','ultimatemember'); ?></label>
116
  <span>
117
 
118
  <?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 @@
120
  </span>
121
  </p>
122
 
123
- <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>
124
  <select name="_um_profile_cover_ratio" id="_um_profile_cover_ratio" class="umaf-selectjs" style="width: 100%">
125
 
126
  <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 @@
130
  </select>
131
  </p>
132
 
133
- <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>
134
  <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" />
135
  </p>
136
 
137
- <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>
138
  <select name="_um_profile_photocorner" id="_um_profile_photocorner" class="umaf-selectjs" style="width: 100%">
139
 
140
- <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>
141
- <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>
142
- <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>
143
 
144
  </select>
145
  </p>
146
 
147
- <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>
148
  <span>
149
 
150
  <?php $this->ui_on_off('_um_profile_photo_required'); ?>
@@ -152,32 +152,32 @@
152
  </span>
153
  </p>
154
 
155
- <p><label for="_um_profile_header_bg"><?php _e('Header Background Color','ultimatemember'); ?></label>
156
  <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'); ?>" />
157
  </p>
158
 
159
- <p><label for="_um_profile_header_text"><?php _e('Header Meta Text Color','ultimatemember'); ?></label>
160
  <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'); ?>" />
161
  </p>
162
 
163
- <p><label for="_um_profile_header_link_color"><?php _e('Header Link Color','ultimatemember'); ?></label>
164
  <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'); ?>" />
165
  </p>
166
 
167
- <p><label for="_um_profile_header_link_hcolor"><?php _e('Header Link Hover','ultimatemember'); ?></label>
168
  <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'); ?>" />
169
  </p>
170
 
171
- <p><label for="_um_profile_header_icon_color"><?php _e('Header Icon Link Color','ultimatemember'); ?></label>
172
  <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'); ?>" />
173
  </p>
174
 
175
- <p><label for="_um_profile_header_icon_hcolor"><?php _e('Header Icon Link Hover','ultimatemember'); ?></label>
176
  <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'); ?>" />
177
  </p>