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>
178
 
179
  <p>
180
- <label><?php _e('Show display name in profile header?','ultimatemember'); ?></label>
181
  <span>
182
 
183
  <?php $this->ui_on_off('_um_profile_show_name', 1 ); ?>
@@ -186,7 +186,7 @@
186
  </p><div class="um-admin-clear"></div>
187
 
188
  <p>
189
- <label><?php _e('Show social links in profile header?','ultimatemember'); ?></label>
190
  <span>
191
 
192
  <?php $this->ui_on_off('_um_profile_show_social_links', 0 ); ?>
@@ -195,7 +195,7 @@
195
  </p><div class="um-admin-clear"></div>
196
 
197
  <p>
198
- <label><?php _e('Show user description in profile header?','ultimatemember'); ?></label>
199
  <span>
200
 
201
  <?php $this->ui_on_off('_um_profile_show_bio', 1 ); ?>
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_profile_use_globals', 1, true, 1, 'xxx', 'profile-customize'); ?>
11
 
12
  <div class="profile-customize">
13
 
14
+ <p><label for="_um_profile_role"><?php _e('Make this profile role-specific','ultimate-member'); ?></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
  </select>
24
  </p>
25
 
26
+ <p><label for="_um_profile_template"><?php _e('Template','ultimate-member'); ?></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
  </select>
36
  </p>
37
 
38
+ <p><label for="_um_profile_max_width"><?php _e('Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
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)','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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
  </select>
54
  </p>
55
 
56
+ <p><label for="_um_profile_icons"><?php _e('Field Icons','ultimate-member'); ?> <?php $this->tooltip('Whether to show field icons and where to show them relative to the field', 'e'); ?></label>
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
  </select>
64
  </p>
65
 
66
+ <p><label for="_um_profile_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?></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
  </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','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?> <?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','ultimate-member'); ?></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','ultimate-member'); ?> <?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','ultimate-member'); ?></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
  </span>
121
  </p>
122
 
123
+ <p class="cover-photo-opts"><label for="_um_profile_cover_ratio"><?php _e('Cover photo ratio','ultimate-member'); ?> <?php $this->tooltip('The shortcode is centered by default unless you specify otherwise here', 'e'); ?></label>
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
  </select>
131
  </p>
132
 
133
+ <p><label for="_um_profile_photosize"><?php _e('Profile Photo Size','ultimate-member'); ?> <?php $this->tooltip('Set the profile photo size in pixels here', 'e'); ?></label>
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','ultimate-member'); ?> <?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','ultimate-member'); ?></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','ultimate-member'); ?></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','ultimate-member'); ?></option>
143
 
144
  </select>
145
  </p>
146
 
147
+ <p><label for="_um_profile_photo_required"><?php _e('Make Profile Photo Required','ultimate-member'); ?><?php $this->tooltip('Require user to update a profile photo when updating their profile', 'e'); ?></label>
148
  <span>
149
 
150
  <?php $this->ui_on_off('_um_profile_photo_required'); ?>
152
  </span>
153
  </p>
154
 
155
+ <p><label for="_um_profile_header_bg"><?php _e('Header Background Color','ultimate-member'); ?></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','ultimate-member'); ?></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','ultimate-member'); ?></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','ultimate-member'); ?></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','ultimate-member'); ?></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','ultimate-member'); ?></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>
178
 
179
  <p>
180
+ <label><?php _e('Show display name in profile header?','ultimate-member'); ?></label>
181
  <span>
182
 
183
  <?php $this->ui_on_off('_um_profile_show_name', 1 ); ?>
186
  </p><div class="um-admin-clear"></div>
187
 
188
  <p>
189
+ <label><?php _e('Show social links in profile header?','ultimate-member'); ?></label>
190
  <span>
191
 
192
  <?php $this->ui_on_off('_um_profile_show_social_links', 0 ); ?>
195
  </p><div class="um-admin-clear"></div>
196
 
197
  <p>
198
+ <label><?php _e('Show user description in profile header?','ultimate-member'); ?></label>
199
  <span>
200
 
201
  <?php $this->ui_on_off('_um_profile_show_bio', 1 ); ?>
admin/templates/form/profile_settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
- <label class=""><?php _e('Field(s) to show in user meta','ultimatemember'); ?></label>
5
 
6
  <?php
7
 
1
  <div class="um-admin-metabox">
2
 
3
  <p>
4
+ <label class=""><?php _e('Field(s) to show in user meta','ultimate-member'); ?></label>
5
 
6
  <?php
7
 
admin/templates/form/register_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_register_custom_css" id="_um_register_custom_css" class="tall"><?php echo $ultimatemember->query->get_meta_value('_um_register_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_register_custom_css" id="_um_register_custom_css" class="tall"><?php echo $ultimatemember->query->get_meta_value('_um_register_custom_css', null, 'na' ); ?></textarea>
6
  </p><div class="um-admin-clear"></div>
7
 
admin/templates/form/register_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','ultimatemember'), 'e'); ?></label>
5
  <span>
6
 
7
  <?php $this->ui_on_off('_um_register_use_globals', 1, true, 1, 'xxx', 'register-customize'); ?>
@@ -11,7 +11,7 @@
11
 
12
  <div class="register-customize">
13
 
14
- <p><label for="_um_register_role"><?php _e('Assign role to form','ultimatemember'); ?></label>
15
  <select name="_um_register_role" id="_um_register_role" class="umaf-selectjs" style="width: 100%">
16
 
17
  <?php foreach($ultimatemember->query->get_roles( $add_default = 'Default' ) as $key => $value) { ?>
@@ -23,7 +23,7 @@
23
  </select>
24
  </p>
25
 
26
- <p><label for="_um_register_template"><?php _e('Template','ultimatemember'); ?></label>
27
  <select name="_um_register_template" id="_um_register_template" class="umaf-selectjs" style="width: 100%">
28
 
29
  <?php foreach($ultimatemember->shortcodes->get_templates( 'register' ) as $key => $value) { ?>
@@ -35,11 +35,11 @@
35
  </select>
36
  </p>
37
 
38
- <p><label for="_um_register_max_width"><?php _e('Max. Width (px)','ultimatemember'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
39
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_max_width', null, um_get_option('register_max_width') ); ?>" name="_um_register_max_width" id="_um_register_max_width" />
40
  </p>
41
 
42
- <p><label for="_um_register_align"><?php _e('Alignment','ultimatemember'); ?> <?php $this->tooltip( __('The shortcode is centered by default unless you specify otherwise here','ultimatemember'), 'e'); ?></label>
43
  <select name="_um_register_align" id="_um_register_align" class="umaf-selectjs" style="width: 100%">
44
 
45
  <option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_register_align', null, um_get_option('register_align') ) ); ?>>Centered</option>
@@ -49,7 +49,7 @@
49
  </select>
50
  </p>
51
 
52
- <p><label for="_um_register_icons"><?php _e('Field Icons','ultimatemember'); ?> <?php $this->tooltip( __('Whether to show field icons and where to show them relative to the field','ultimatemember'), 'e'); ?></label>
53
  <select name="_um_register_icons" id="_um_register_icons" class="umaf-selectjs" style="width: 100%">
54
 
55
  <option value="field" <?php selected('field', $ultimatemember->query->get_meta_value('_um_register_icons', null, um_get_option('register_icons') ) ); ?>>Show inside text field</option>
@@ -59,24 +59,24 @@
59
  </select>
60
  </p>
61
 
62
- <p><label for="_um_register_primary_btn_word"><?php _e('Primary Button Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the button text','ultimatemember'), 'e'); ?></label>
63
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_word', null, um_get_option('register_primary_btn_word') ); ?>" name="_um_register_primary_btn_word" id="_um_register_primary_btn_word" />
64
  </p>
65
 
66
- <p><label for="_um_register_primary_btn_color"><?php _e('Primary Button Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button color','ultimatemember'), 'e'); ?></label>
67
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_color', null, um_get_option('primary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_color" id="_um_register_primary_btn_color" data-default-color="<?php echo um_get_option('primary_btn_color'); ?>" />
68
  </p>
69
 
70
- <p><label for="_um_register_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button hover color','ultimatemember'), 'e'); ?></label>
71
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_hover', null, um_get_option('primary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_hover" id="_um_register_primary_btn_hover" data-default-color="<?php echo um_get_option('primary_btn_hover'); ?>" />
72
  </p>
73
 
74
- <p><label for="_um_register_primary_btn_text"><?php _e('Primary Button Text Color','ultimatemember'); ?> <?php $this->tooltip(__('Override the default primary button text color','ultimatemember'), 'e'); ?></label>
75
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_text', null, um_get_option('primary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_text" id="_um_register_primary_btn_text" data-default-color="<?php echo um_get_option('primary_btn_text'); ?>" />
76
  </p>
77
 
78
  <p>
79
- <label><?php _e('Show Secondary Button','ultimatemember'); ?></label>
80
  <span>
81
 
82
  <?php $this->ui_on_off('_um_register_secondary_btn', um_get_option('register_secondary_btn'), true, 1, 'register-secondary-btn', 'xxx'); ?>
@@ -84,19 +84,19 @@
84
  </span>
85
  </p><div class="um-admin-clear"></div>
86
 
87
- <p class="register-secondary-btn"><label for="_um_register_secondary_btn_word"><?php _e('Secondary Button Text','ultimatemember'); ?> <?php $this->tooltip( __('Customize the button text','ultimatemember'), 'e'); ?></label>
88
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_word', null, um_get_option('register_secondary_btn_word') ); ?>" name="_um_register_secondary_btn_word" id="_um_register_secondary_btn_word" />
89
  </p>
90
 
91
- <p class="register-secondary-btn"><label for="_um_register_secondary_btn_color"><?php _e('Secondary Button Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button color','ultimatemember'), 'e'); ?></label>
92
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_color', null, um_get_option('secondary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_color" id="_um_register_secondary_btn_color" data-default-color="<?php echo um_get_option('secondary_btn_color'); ?>" />
93
  </p>
94
 
95
- <p class="register-secondary-btn"><label for="_um_register_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button hover color','ultimatemember'), 'e'); ?></label>
96
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_hover', null, um_get_option('secondary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_hover" id="_um_register_secondary_btn_hover" data-default-color="<?php echo um_get_option('secondary_btn_hover'); ?>" />
97
  </p>
98
 
99
- <p class="register-secondary-btn"><label for="_um_register_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimatemember'); ?> <?php $this->tooltip( __('Override the default secondary button text color','ultimatemember'), 'e'); ?></label>
100
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_text', null, um_get_option('secondary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_text" id="_um_register_secondary_btn_text" data-default-color="<?php echo um_get_option('secondary_btn_text'); ?>" />
101
  </p>
102
 
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','ultimate-member'), 'e'); ?></label>
5
  <span>
6
 
7
  <?php $this->ui_on_off('_um_register_use_globals', 1, true, 1, 'xxx', 'register-customize'); ?>
11
 
12
  <div class="register-customize">
13
 
14
+ <p><label for="_um_register_role"><?php _e('Assign role to form','ultimate-member'); ?></label>
15
  <select name="_um_register_role" id="_um_register_role" class="umaf-selectjs" style="width: 100%">
16
 
17
  <?php foreach($ultimatemember->query->get_roles( $add_default = 'Default' ) as $key => $value) { ?>
23
  </select>
24
  </p>
25
 
26
+ <p><label for="_um_register_template"><?php _e('Template','ultimate-member'); ?></label>
27
  <select name="_um_register_template" id="_um_register_template" class="umaf-selectjs" style="width: 100%">
28
 
29
  <?php foreach($ultimatemember->shortcodes->get_templates( 'register' ) as $key => $value) { ?>
35
  </select>
36
  </p>
37
 
38
+ <p><label for="_um_register_max_width"><?php _e('Max. Width (px)','ultimate-member'); ?> <?php $this->tooltip('The maximum width of shortcode in pixels e.g. 600px', 'e'); ?></label>
39
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_max_width', null, um_get_option('register_max_width') ); ?>" name="_um_register_max_width" id="_um_register_max_width" />
40
  </p>
41
 
42
+ <p><label for="_um_register_align"><?php _e('Alignment','ultimate-member'); ?> <?php $this->tooltip( __('The shortcode is centered by default unless you specify otherwise here','ultimate-member'), 'e'); ?></label>
43
  <select name="_um_register_align" id="_um_register_align" class="umaf-selectjs" style="width: 100%">
44
 
45
  <option value="center" <?php selected('center', $ultimatemember->query->get_meta_value('_um_register_align', null, um_get_option('register_align') ) ); ?>>Centered</option>
49
  </select>
50
  </p>
51
 
52
+ <p><label for="_um_register_icons"><?php _e('Field Icons','ultimate-member'); ?> <?php $this->tooltip( __('Whether to show field icons and where to show them relative to the field','ultimate-member'), 'e'); ?></label>
53
  <select name="_um_register_icons" id="_um_register_icons" class="umaf-selectjs" style="width: 100%">
54
 
55
  <option value="field" <?php selected('field', $ultimatemember->query->get_meta_value('_um_register_icons', null, um_get_option('register_icons') ) ); ?>>Show inside text field</option>
59
  </select>
60
  </p>
61
 
62
+ <p><label for="_um_register_primary_btn_word"><?php _e('Primary Button Text','ultimate-member'); ?> <?php $this->tooltip( __('Customize the button text','ultimate-member'), 'e'); ?></label>
63
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_word', null, um_get_option('register_primary_btn_word') ); ?>" name="_um_register_primary_btn_word" id="_um_register_primary_btn_word" />
64
  </p>
65
 
66
+ <p><label for="_um_register_primary_btn_color"><?php _e('Primary Button Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button color','ultimate-member'), 'e'); ?></label>
67
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_color', null, um_get_option('primary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_color" id="_um_register_primary_btn_color" data-default-color="<?php echo um_get_option('primary_btn_color'); ?>" />
68
  </p>
69
 
70
+ <p><label for="_um_register_primary_btn_hover"><?php _e('Primary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button hover color','ultimate-member'), 'e'); ?></label>
71
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_hover', null, um_get_option('primary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_hover" id="_um_register_primary_btn_hover" data-default-color="<?php echo um_get_option('primary_btn_hover'); ?>" />
72
  </p>
73
 
74
+ <p><label for="_um_register_primary_btn_text"><?php _e('Primary Button Text Color','ultimate-member'); ?> <?php $this->tooltip(__('Override the default primary button text color','ultimate-member'), 'e'); ?></label>
75
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_primary_btn_text', null, um_get_option('primary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_primary_btn_text" id="_um_register_primary_btn_text" data-default-color="<?php echo um_get_option('primary_btn_text'); ?>" />
76
  </p>
77
 
78
  <p>
79
+ <label><?php _e('Show Secondary Button','ultimate-member'); ?></label>
80
  <span>
81
 
82
  <?php $this->ui_on_off('_um_register_secondary_btn', um_get_option('register_secondary_btn'), true, 1, 'register-secondary-btn', 'xxx'); ?>
84
  </span>
85
  </p><div class="um-admin-clear"></div>
86
 
87
+ <p class="register-secondary-btn"><label for="_um_register_secondary_btn_word"><?php _e('Secondary Button Text','ultimate-member'); ?> <?php $this->tooltip( __('Customize the button text','ultimate-member'), 'e'); ?></label>
88
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_word', null, um_get_option('register_secondary_btn_word') ); ?>" name="_um_register_secondary_btn_word" id="_um_register_secondary_btn_word" />
89
  </p>
90
 
91
+ <p class="register-secondary-btn"><label for="_um_register_secondary_btn_color"><?php _e('Secondary Button Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button color','ultimate-member'), 'e'); ?></label>
92
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_color', null, um_get_option('secondary_btn_color') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_color" id="_um_register_secondary_btn_color" data-default-color="<?php echo um_get_option('secondary_btn_color'); ?>" />
93
  </p>
94
 
95
+ <p class="register-secondary-btn"><label for="_um_register_secondary_btn_hover"><?php _e('Secondary Button Hover Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button hover color','ultimate-member'), 'e'); ?></label>
96
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_hover', null, um_get_option('secondary_btn_hover') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_hover" id="_um_register_secondary_btn_hover" data-default-color="<?php echo um_get_option('secondary_btn_hover'); ?>" />
97
  </p>
98
 
99
+ <p class="register-secondary-btn"><label for="_um_register_secondary_btn_text"><?php _e('Secondary Button Text Color','ultimate-member'); ?> <?php $this->tooltip( __('Override the default secondary button text color','ultimate-member'), 'e'); ?></label>
100
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_register_secondary_btn_text', null, um_get_option('secondary_btn_text') ); ?>" class="um-admin-colorpicker" name="_um_register_secondary_btn_text" id="_um_register_secondary_btn_text" data-default-color="<?php echo um_get_option('secondary_btn_text'); ?>" />
101
  </p>
102
 
admin/templates/modal/dynamic_edit_field.php CHANGED
@@ -3,7 +3,7 @@
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
- <h3><?php _e('Edit Field','ultimatemember'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
@@ -11,8 +11,8 @@
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
- <input type="submit" value="<?php _e('Update','ultimatemember'); ?>" class="button-primary" />
15
- <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
16
  </div>
17
 
18
  </form>
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
+ <h3><?php _e('Edit Field','ultimate-member'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
+ <input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
15
+ <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
16
  </div>
17
 
18
  </form>
admin/templates/modal/dynamic_edit_row.php CHANGED
@@ -3,7 +3,7 @@
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
- <h3><?php _e('Edit Row Settings','ultimatemember'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
@@ -11,8 +11,8 @@
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
- <input type="submit" value="<?php _e('Update','ultimatemember'); ?>" class="button-primary" />
15
- <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
16
  </div>
17
 
18
  </form>
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
+ <h3><?php _e('Edit Row Settings','ultimate-member'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
+ <input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
15
+ <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
16
  </div>
17
 
18
  </form>
admin/templates/modal/dynamic_form_preview.php CHANGED
@@ -1,7 +1,7 @@
1
  <div id="UM_preview_form" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
- <h3><?php _e('Live Form Preview','ultimatemember'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
@@ -9,7 +9,7 @@
9
  </div>
10
 
11
  <div class="um-admin-modal-foot">
12
- <a href="#" class="button-primary" data-action="UM_remove_modal"><?php _e('Continue editing','ultimatemember'); ?></a>
13
  </div>
14
 
15
  </div>
1
  <div id="UM_preview_form" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
+ <h3><?php _e('Live Form Preview','ultimate-member'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
9
  </div>
10
 
11
  <div class="um-admin-modal-foot">
12
+ <a href="#" class="button-primary" data-action="UM_remove_modal"><?php _e('Continue editing','ultimate-member'); ?></a>
13
  </div>
14
 
15
  </div>
admin/templates/modal/dynamic_new_divider.php CHANGED
@@ -3,7 +3,7 @@
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
- <h3><?php _e('Add a New Divider','ultimatemember'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
@@ -11,8 +11,8 @@
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
- <input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
15
- <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
16
  </div>
17
 
18
  </form>
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
+ <h3><?php _e('Add a New Divider','ultimate-member'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
+ <input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
15
+ <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
16
  </div>
17
 
18
  </form>
admin/templates/modal/dynamic_new_field.php CHANGED
@@ -3,7 +3,7 @@
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
- <h3><?php _e('Add a New Field','ultimatemember'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
@@ -11,8 +11,8 @@
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
- <input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
15
- <a href="#" data-modal="UM_fields" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
16
  </div>
17
 
18
  </form>
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
+ <h3><?php _e('Add a New Field','ultimate-member'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
+ <input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
15
+ <a href="#" data-modal="UM_fields" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
16
  </div>
17
 
18
  </form>
admin/templates/modal/dynamic_new_group.php CHANGED
@@ -3,7 +3,7 @@
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
- <h3><?php _e('Add a New Field Group','ultimatemember'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
@@ -11,8 +11,8 @@
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
- <input type="submit" value="<?php _e('Add','ultimatemember'); ?>" class="button-primary" />
15
- <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimatemember'); ?></a>
16
  </div>
17
 
18
  </form>
3
  <form action="" method="post" class="um_add_field">
4
 
5
  <div class="um-admin-modal-head">
6
+ <h3><?php _e('Add a New Field Group','ultimate-member'); ?></h3>
7
  </div>
8
 
9
  <div class="um-admin-modal-body um-admin-metabox">
11
  </div>
12
 
13
  <div class="um-admin-modal-foot">
14
+ <input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
15
+ <a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
16
  </div>
17
 
18
  </form>
admin/templates/modal/dynamic_registration_preview.php CHANGED
@@ -1,7 +1,7 @@
1
  <div id="UM_preview_registration" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
- <h3><?php _e('Review Registration Details','ultimatemember'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
1
  <div id="UM_preview_registration" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
+ <h3><?php _e('Review Registration Details','ultimate-member'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
admin/templates/modal/fields.php CHANGED
@@ -1,7 +1,7 @@
1
  <div id="UM_fields" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
- <h3><?php _e('Fields Manager','ultimatemember'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
1
  <div id="UM_fields" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
+ <h3><?php _e('Fields Manager','ultimate-member'); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
admin/templates/modal/fonticons.php CHANGED
@@ -1,7 +1,7 @@
1
  <div id="UM_fonticons" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
- <h3><?php printf(__('Choose from %s available icons','ultimatemember'), count( $ultimatemember->icons->all ) ); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
1
  <div id="UM_fonticons" style="display:none">
2
 
3
  <div class="um-admin-modal-head">
4
+ <h3><?php printf(__('Choose from %s available icons','ultimate-member'), count( $ultimatemember->icons->all ) ); ?></h3>
5
  </div>
6
 
7
  <div class="um-admin-modal-body">
admin/templates/role/admin.php CHANGED
@@ -4,31 +4,31 @@
4
 
5
  <?php if ( $ultimatemember->query->has_post_meta('_um_core', 'admin' ) ) { ?>
6
  <p class="disabled-on-off">
7
- <label class="um-admin-half"><?php _e('Can access wp-admin?','ultimatemember'); ?> <?php $this->tooltip( __('The core admin role must always have access to wp-admin / WordPress backend','ultimatemember') ); ?></label>
8
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 1); ?></span>
9
  </p><div class="um-admin-clear"></div>
10
  <p>
11
- <label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimatemember'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimatemember') ); ?></label>
12
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 0); ?></span>
13
  </p><div class="um-admin-clear"></div>
14
  <?php } else { ?>
15
  <p>
16
- <label class="um-admin-half"><?php _e('Can access wp-admin?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to access the admin dashboard. If turned on the WordPress toolbar will appear at top of the page.','ultimatemember') ); ?></label>
17
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 0); ?></span>
18
  </p><div class="um-admin-clear"></div>
19
  <p>
20
- <label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimatemember'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimatemember') ); ?></label>
21
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 1); ?></span>
22
  </p><div class="um-admin-clear"></div>
23
  <?php } ?>
24
 
25
  <p>
26
- <label class="um-admin-half"><?php _e('Can edit other member accounts?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to edit accounts of other members','ultimatemember') ); ?></label>
27
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_everyone', 0, true, 1, 'edit-roles', 'xxx'); ?></span>
28
  </p><div class="um-admin-clear"></div>
29
 
30
  <p class="edit-roles">
31
- <label class="um-admin-half"><?php _e('Can edit these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can edit, choose none to allow role to edit all member roles','ultimatemember') ); ?></label>
32
  <span class="um-admin-half">
33
 
34
  <select multiple="multiple" name="_um_can_edit_roles[]" id="_um_can_edit_roles" class="umaf-selectjs" style="width: 300px">
@@ -41,12 +41,12 @@
41
  </p><div class="um-admin-clear"></div>
42
 
43
  <p>
44
- <label class="um-admin-half"><?php _e('Can delete other member accounts?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to edit the profile fields of certain roles only','ultimatemember') ); ?></label>
45
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_everyone', 0, true, 1, 'delete-roles', 'xxx'); ?></span>
46
  </p><div class="um-admin-clear"></div>
47
 
48
  <p class="delete-roles">
49
- <label class="um-admin-half"><?php _e('Can delete these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can delete, choose none to allow role to delete all member roles','ultimatemember') ); ?></label>
50
  <span class="um-admin-half">
51
 
52
  <select multiple="multiple" name="_um_can_delete_roles[]" id="_um_can_delete_roles" class="umaf-selectjs" style="width: 300px">
4
 
5
  <?php if ( $ultimatemember->query->has_post_meta('_um_core', 'admin' ) ) { ?>
6
  <p class="disabled-on-off">
7
+ <label class="um-admin-half"><?php _e('Can access wp-admin?','ultimate-member'); ?> <?php $this->tooltip( __('The core admin role must always have access to wp-admin / WordPress backend','ultimate-member') ); ?></label>
8
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 1); ?></span>
9
  </p><div class="um-admin-clear"></div>
10
  <p>
11
+ <label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimate-member'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimate-member') ); ?></label>
12
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 0); ?></span>
13
  </p><div class="um-admin-clear"></div>
14
  <?php } else { ?>
15
  <p>
16
+ <label class="um-admin-half"><?php _e('Can access wp-admin?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to access the admin dashboard. If turned on the WordPress toolbar will appear at top of the page.','ultimate-member') ); ?></label>
17
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_wpadmin', 0); ?></span>
18
  </p><div class="um-admin-clear"></div>
19
  <p>
20
+ <label class="um-admin-half"><?php _e('Force hiding adminbar in frontend?','ultimate-member'); ?> <?php $this->tooltip( __('Show/hide the adminbar on frontend','ultimate-member') ); ?></label>
21
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_not_see_adminbar', 1); ?></span>
22
  </p><div class="um-admin-clear"></div>
23
  <?php } ?>
24
 
25
  <p>
26
+ <label class="um-admin-half"><?php _e('Can edit other member accounts?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to edit accounts of other members','ultimate-member') ); ?></label>
27
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_everyone', 0, true, 1, 'edit-roles', 'xxx'); ?></span>
28
  </p><div class="um-admin-clear"></div>
29
 
30
  <p class="edit-roles">
31
+ <label class="um-admin-half"><?php _e('Can edit these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can edit, choose none to allow role to edit all member roles','ultimate-member') ); ?></label>
32
  <span class="um-admin-half">
33
 
34
  <select multiple="multiple" name="_um_can_edit_roles[]" id="_um_can_edit_roles" class="umaf-selectjs" style="width: 300px">
41
  </p><div class="um-admin-clear"></div>
42
 
43
  <p>
44
+ <label class="um-admin-half"><?php _e('Can delete other member accounts?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to edit the profile fields of certain roles only','ultimate-member') ); ?></label>
45
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_everyone', 0, true, 1, 'delete-roles', 'xxx'); ?></span>
46
  </p><div class="um-admin-clear"></div>
47
 
48
  <p class="delete-roles">
49
+ <label class="um-admin-half"><?php _e('Can delete these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can delete, choose none to allow role to delete all member roles','ultimate-member') ); ?></label>
50
  <span class="um-admin-half">
51
 
52
  <select multiple="multiple" name="_um_can_delete_roles[]" id="_um_can_delete_roles" class="umaf-selectjs" style="width: 300px">
admin/templates/role/delete.php CHANGED
@@ -3,19 +3,19 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Action to be taken after account is deleted','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role deletes their own account','ultimatemember') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_delete" id="_um_after_delete" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_delete">
10
- <option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Homepage','ultimatemember'); ?></option>
11
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Custom URL','ultimatemember'); ?></option>
12
  </select>
13
 
14
  </span>
15
  </p><div class="um-admin-clear"></div>
16
 
17
  <p class="_um_after_delete">
18
- <label class="um-admin-half" for="_um_delete_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they delete account','ultimatemember') ); ?></label>
19
  <span class="um-admin-half">
20
 
21
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_delete_redirect_url', null, 'na'); ?>" name="_um_delete_redirect_url" id="_um_delete_redirect_url" />
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Action to be taken after account is deleted','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role deletes their own account','ultimate-member') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_delete" id="_um_after_delete" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_delete">
10
+ <option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Homepage','ultimate-member'); ?></option>
11
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_delete') ); ?>><?php _e('Go to Custom URL','ultimate-member'); ?></option>
12
  </select>
13
 
14
  </span>
15
  </p><div class="um-admin-clear"></div>
16
 
17
  <p class="_um_after_delete">
18
+ <label class="um-admin-half" for="_um_delete_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they delete account','ultimate-member') ); ?></label>
19
  <span class="um-admin-half">
20
 
21
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_delete_redirect_url', null, 'na'); ?>" name="_um_delete_redirect_url" id="_um_delete_redirect_url" />
admin/templates/role/general.php CHANGED
@@ -3,12 +3,12 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Can edit their profile?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role edit his own profile?','ultimatemember') ); ?></label>
7
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_profile', 1); ?></span>
8
  </p><div class="um-admin-clear"></div>
9
 
10
  <p>
11
- <label class="um-admin-half"><?php _e('Can delete their account?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this role to delete their account and end their membership on your site','ultimatemember') ); ?></label>
12
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_profile', 1); ?></span>
13
  </p><div class="um-admin-clear"></div>
14
 
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Can edit their profile?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role edit his own profile?','ultimate-member') ); ?></label>
7
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_edit_profile', 1); ?></span>
8
  </p><div class="um-admin-clear"></div>
9
 
10
  <p>
11
+ <label class="um-admin-half"><?php _e('Can delete their account?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this role to delete their account and end their membership on your site','ultimate-member') ); ?></label>
12
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_delete_profile', 1); ?></span>
13
  </p><div class="um-admin-clear"></div>
14
 
admin/templates/role/home.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Can view default homepage?','ultimatemember'); ?> <?php $this->tooltip( __('Allow this user role to view your site\'s homepage','ultimatemember') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_default_homepage', 1, true, 1, 'xxx', 'redirect-home-url'); ?>
@@ -12,7 +12,7 @@
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p class="redirect-home-url">
15
- <label class="um-admin-half" for="_um_redirect_homepage"><?php _e('Custom Homepage Redirect','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to if they try to view your site\'s homepage ','ultimatemember') ); ?></label>
16
  <span class="um-admin-half">
17
 
18
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_redirect_homepage', null, 'na'); ?>" name="_um_redirect_homepage" id="_um_redirect_homepage" />
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Can view default homepage?','ultimate-member'); ?> <?php $this->tooltip( __('Allow this user role to view your site\'s homepage','ultimate-member') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <?php $this->ui_on_off('_um_default_homepage', 1, true, 1, 'xxx', 'redirect-home-url'); ?>
12
  </p><div class="um-admin-clear"></div>
13
 
14
  <p class="redirect-home-url">
15
+ <label class="um-admin-half" for="_um_redirect_homepage"><?php _e('Custom Homepage Redirect','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to if they try to view your site\'s homepage ','ultimate-member') ); ?></label>
16
  <span class="um-admin-half">
17
 
18
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_redirect_homepage', null, 'na'); ?>" name="_um_redirect_homepage" id="_um_redirect_homepage" />
admin/templates/role/login.php CHANGED
@@ -3,21 +3,21 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Action to be taken after login','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logins to your site','ultimatemember') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_login" id="_um_after_login" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_login">
10
- <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to profile','ultimatemember'); ?></option>
11
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
12
- <option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Refresh active page','ultimatemember'); ?></option>
13
- <option value="redirect_admin" <?php selected('redirect_admin', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to WordPress Admin','ultimatemember'); ?></option>
14
  </select>
15
 
16
  </span>
17
  </p><div class="um-admin-clear"></div>
18
 
19
  <p class="_um_after_login">
20
- <label class="um-admin-half" for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they login with their account','ultimatemember') ); ?></label>
21
  <span class="um-admin-half">
22
 
23
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_login_redirect_url', null, 'na'); ?>" name="_um_login_redirect_url" id="_um_login_redirect_url" />
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Action to be taken after login','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logins to your site','ultimate-member') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_login" id="_um_after_login" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_login">
10
+ <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to profile','ultimate-member'); ?></option>
11
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
12
+ <option value="refresh" <?php selected('refresh', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Refresh active page','ultimate-member'); ?></option>
13
+ <option value="redirect_admin" <?php selected('redirect_admin', $ultimatemember->query->get_meta_value('_um_after_login') ); ?>><?php _e('Redirect to WordPress Admin','ultimate-member'); ?></option>
14
  </select>
15
 
16
  </span>
17
  </p><div class="um-admin-clear"></div>
18
 
19
  <p class="_um_after_login">
20
+ <label class="um-admin-half" for="_um_login_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they login with their account','ultimate-member') ); ?></label>
21
  <span class="um-admin-half">
22
 
23
  <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" />
admin/templates/role/logout.php CHANGED
@@ -3,19 +3,19 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Action to be taken after logout','ultimatemember'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logouts of your site','ultimatemember') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_logout" id="_um_after_logout" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_logout">
10
- <option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Homepage','ultimatemember'); ?></option>
11
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Custom URL','ultimatemember'); ?></option>
12
  </select>
13
 
14
  </span>
15
  </p><div class="um-admin-clear"></div>
16
 
17
  <p class="_um_after_logout">
18
- <label class="um-admin-half" for="_um_logout_redirect_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they logout from site','ultimatemember') ); ?></label>
19
  <span class="um-admin-half">
20
 
21
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_logout_redirect_url', null, 'na'); ?>" name="_um_logout_redirect_url" id="_um_logout_redirect_url" />
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Action to be taken after logout','ultimate-member'); ?> <?php $this->tooltip( __('Select what happens when a user with this role logouts of your site','ultimate-member') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_after_logout" id="_um_after_logout" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_after_logout">
10
+ <option value="redirect_home" <?php selected('redirect_home', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Homepage','ultimate-member'); ?></option>
11
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_after_logout') ); ?>><?php _e('Go to Custom URL','ultimate-member'); ?></option>
12
  </select>
13
 
14
  </span>
15
  </p><div class="um-admin-clear"></div>
16
 
17
  <p class="_um_after_logout">
18
+ <label class="um-admin-half" for="_um_logout_redirect_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?> <?php $this->tooltip( __('Set a url to redirect this user role to after they logout from site','ultimate-member') ); ?></label>
19
  <span class="um-admin-half">
20
 
21
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_logout_redirect_url', null, 'na'); ?>" name="_um_logout_redirect_url" id="_um_logout_redirect_url" />
admin/templates/role/profile.php CHANGED
@@ -3,12 +3,12 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Can view other member profiles?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role view all member profiles?', 'ultimatemember') ); ?></label>
7
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_view_all', 1, true, 1, 'view-roles', 'xxx'); ?></span>
8
  </p><div class="um-admin-clear"></div>
9
 
10
  <p class="view-roles">
11
- <label class="um-admin-half"><?php _e('Can view these user roles only','ultimatemember'); ?> <?php $this->tooltip( __('Which roles that role can view, choose none to allow role to view all member roles', 'ultimatemember') ); ?></label>
12
  <span class="um-admin-half">
13
 
14
  <select multiple="multiple" name="_um_can_view_roles[]" id="_um_can_view_roles" class="umaf-selectjs" style="width: 300px">
@@ -21,12 +21,12 @@
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
- <label class="um-admin-half"><?php _e('Can make their profile private?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role make their profile private?','ultimatemember') ); ?></label>
25
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_make_private_profile'); ?></span>
26
  </p><div class="um-admin-clear"></div>
27
 
28
  <p>
29
- <label class="um-admin-half"><?php _e('Can view/access private profiles?','ultimatemember'); ?> <?php $this->tooltip( __('Can this role view private profiles?','ultimatemember') ); ?></label>
30
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_private_profile'); ?></span>
31
  </p><div class="um-admin-clear"></div>
32
 
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Can view other member profiles?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role view all member profiles?', 'ultimate-member') ); ?></label>
7
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_view_all', 1, true, 1, 'view-roles', 'xxx'); ?></span>
8
  </p><div class="um-admin-clear"></div>
9
 
10
  <p class="view-roles">
11
+ <label class="um-admin-half"><?php _e('Can view these user roles only','ultimate-member'); ?> <?php $this->tooltip( __('Which roles that role can view, choose none to allow role to view all member roles', 'ultimate-member') ); ?></label>
12
  <span class="um-admin-half">
13
 
14
  <select multiple="multiple" name="_um_can_view_roles[]" id="_um_can_view_roles" class="umaf-selectjs" style="width: 300px">
21
  </p><div class="um-admin-clear"></div>
22
 
23
  <p>
24
+ <label class="um-admin-half"><?php _e('Can make their profile private?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role make their profile private?','ultimate-member') ); ?></label>
25
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_make_private_profile'); ?></span>
26
  </p><div class="um-admin-clear"></div>
27
 
28
  <p>
29
+ <label class="um-admin-half"><?php _e('Can view/access private profiles?','ultimate-member'); ?> <?php $this->tooltip( __('Can this role view private profiles?','ultimate-member') ); ?></label>
30
  <span class="um-admin-half"><?php $this->ui_on_off('_um_can_access_private_profile'); ?></span>
31
  </p><div class="um-admin-clear"></div>
32
 
admin/templates/role/register.php CHANGED
@@ -3,16 +3,16 @@
3
  <div class="">
4
 
5
  <p>
6
- <label class="um-admin-half"><?php _e('Registration Status','ultimatemember'); ?> <?php $this->tooltip( __('Select the status you would like this user role to have after they register on your site','ultimatemember') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_status" id="_um_status" class="umaf-selectjs um-adm-conditional" style="width: 300px"
10
  data-cond1="approved" data-cond1-show="approved"
11
  data-cond2="checkmail" data-cond2-show="checkmail"
12
  data-cond3="pending" data-cond3-show="pending">
13
- <option value="approved" <?php selected('approved', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Auto Approve','ultimatemember'); ?></option>
14
- <option value="checkmail" <?php selected('checkmail', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Email Activation','ultimatemember'); ?></option>
15
- <option value="pending" <?php selected('pending', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Admin Review','ultimatemember'); ?></option>
16
  </select>
17
 
18
  </span>
@@ -22,19 +22,19 @@
22
 
23
  <div class="approved">
24
  <p>
25
- <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
26
  <span class="um-admin-half">
27
 
28
  <select name="_um_auto_approve_act" id="_um_auto_approve_act" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_auto_approve_act">
29
- <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to profile','ultimatemember'); ?></option>
30
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
31
  </select>
32
 
33
  </span>
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p class="_um_auto_approve_act">
37
- <label class="um-admin-half" for="_um_auto_approve_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
38
  <span class="um-admin-half">
39
 
40
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_auto_approve_url', null, 'na'); ?>" name="_um_auto_approve_url" id="_um_auto_approve_url" />
@@ -50,7 +50,7 @@
50
  <div class="checkmail">
51
 
52
  <p>
53
- <label class="um-admin-half"><?php _e('Login user after validating the activation link?','ultimatemember'); ?> <?php $this->tooltip( __('Login the user after validating the activation link','ultimatemember') ); ?></label>
54
  <span class="um-admin-half">
55
 
56
  <?php $this->ui_on_off('_um_login_email_activate', 0); ?>
@@ -59,30 +59,30 @@
59
  </p><div class="um-admin-clear"></div>
60
 
61
  <p>
62
- <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
63
  <span class="um-admin-half">
64
 
65
  <select name="_um_checkmail_action" id="_um_checkmail_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
66
  data-cond1="show_message" data-cond1-show="_um_checkmail_action-1"
67
  data-cond2="redirect_url" data-cond2-show="_um_checkmail_action-2">
68
- <option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Show custom message','ultimatemember'); ?></option>
69
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
70
  </select>
71
 
72
  </span>
73
  </p><div class="um-admin-clear"></div>
74
 
75
  <p class="_um_checkmail_action-1">
76
- <label class="um-admin-half"><?php _e('Personalize the custom message','ultimatemember'); ?></label>
77
  <span class="um-admin-half">
78
 
79
- <textarea name="_um_checkmail_message" id="_um_checkmail_message"><?php echo $ultimatemember->query->get_meta_value('_um_checkmail_message', null, __('Thank you for registering. Before you can login we need you to activate your account by clicking the activation link in the email we just sent you.','ultimatemember') ); ?></textarea>
80
 
81
  </span>
82
  </p><div class="um-admin-clear"></div>
83
 
84
  <p class="_um_checkmail_action-2">
85
- <label class="um-admin-half" for="_um_checkmail_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
86
  <span class="um-admin-half">
87
 
88
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_checkmail_url', null, 'na'); ?>" name="_um_checkmail_url" id="_um_checkmail_url" />
@@ -91,7 +91,7 @@
91
  </p><div class="um-admin-clear"></div>
92
 
93
  <p>
94
- <label class="um-admin-half" for="_um_url_email_activate"><?php _e('URL redirect after e-mail activation','ultimatemember'); ?> <?php $this->tooltip( __('If you want users to go to a specific page other than login page after e-mail activation, enter the URL here.','ultimatemember') ); ?></label>
95
  <span class="um-admin-half">
96
 
97
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_url_email_activate', null, 'na'); ?>" name="_um_url_email_activate" id="_um_url_email_activate" />
@@ -107,30 +107,30 @@
107
 
108
  <div class="pending">
109
  <p>
110
- <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
111
  <span class="um-admin-half">
112
 
113
  <select name="_um_pending_action" id="_um_pending_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
114
  data-cond1="show_message" data-cond1-show="_um_pending_action-1"
115
  data-cond2="redirect_url" data-cond2-show="_um_pending_action-2">
116
- <option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Show custom message','ultimatemember'); ?></option>
117
- <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Redirect to URL','ultimatemember'); ?></option>
118
  </select>
119
 
120
  </span>
121
  </p><div class="um-admin-clear"></div>
122
 
123
  <p class="_um_pending_action-1">
124
- <label class="um-admin-half"><?php _e('Personalize the custom message','ultimatemember'); ?></label>
125
  <span class="um-admin-half">
126
 
127
- <textarea name="_um_pending_message" id="_um_pending_message"><?php echo $ultimatemember->query->get_meta_value('_um_pending_message', null, __('Thank you for applying for membership to our site. We will review your details and send you an email letting you know whether your application has been successful or not.','ultimatemember') ); ?></textarea>
128
 
129
  </span>
130
  </p><div class="um-admin-clear"></div>
131
 
132
  <p class="_um_pending_action-2">
133
- <label class="um-admin-half" for="_um_pending_url"><?php _e('Set Custom Redirect URL','ultimatemember'); ?></label>
134
  <span class="um-admin-half">
135
 
136
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_pending_url', null, 'na'); ?>" name="_um_pending_url" id="_um_pending_url" />
3
  <div class="">
4
 
5
  <p>
6
+ <label class="um-admin-half"><?php _e('Registration Status','ultimate-member'); ?> <?php $this->tooltip( __('Select the status you would like this user role to have after they register on your site','ultimate-member') ); ?></label>
7
  <span class="um-admin-half">
8
 
9
  <select name="_um_status" id="_um_status" class="umaf-selectjs um-adm-conditional" style="width: 300px"
10
  data-cond1="approved" data-cond1-show="approved"
11
  data-cond2="checkmail" data-cond2-show="checkmail"
12
  data-cond3="pending" data-cond3-show="pending">
13
+ <option value="approved" <?php selected('approved', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Auto Approve','ultimate-member'); ?></option>
14
+ <option value="checkmail" <?php selected('checkmail', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Email Activation','ultimate-member'); ?></option>
15
+ <option value="pending" <?php selected('pending', $ultimatemember->query->get_meta_value('_um_status') ); ?>><?php _e('Require Admin Review','ultimate-member'); ?></option>
16
  </select>
17
 
18
  </span>
22
 
23
  <div class="approved">
24
  <p>
25
+ <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
26
  <span class="um-admin-half">
27
 
28
  <select name="_um_auto_approve_act" id="_um_auto_approve_act" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1="redirect_url" data-cond1-show="_um_auto_approve_act">
29
+ <option value="redirect_profile" <?php selected('redirect_profile', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to profile','ultimate-member'); ?></option>
30
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_auto_approve_act') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
31
  </select>
32
 
33
  </span>
34
  </p><div class="um-admin-clear"></div>
35
 
36
  <p class="_um_auto_approve_act">
37
+ <label class="um-admin-half" for="_um_auto_approve_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
38
  <span class="um-admin-half">
39
 
40
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_auto_approve_url', null, 'na'); ?>" name="_um_auto_approve_url" id="_um_auto_approve_url" />
50
  <div class="checkmail">
51
 
52
  <p>
53
+ <label class="um-admin-half"><?php _e('Login user after validating the activation link?','ultimate-member'); ?> <?php $this->tooltip( __('Login the user after validating the activation link','ultimate-member') ); ?></label>
54
  <span class="um-admin-half">
55
 
56
  <?php $this->ui_on_off('_um_login_email_activate', 0); ?>
59
  </p><div class="um-admin-clear"></div>
60
 
61
  <p>
62
+ <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
63
  <span class="um-admin-half">
64
 
65
  <select name="_um_checkmail_action" id="_um_checkmail_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
66
  data-cond1="show_message" data-cond1-show="_um_checkmail_action-1"
67
  data-cond2="redirect_url" data-cond2-show="_um_checkmail_action-2">
68
+ <option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Show custom message','ultimate-member'); ?></option>
69
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_checkmail_action') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
70
  </select>
71
 
72
  </span>
73
  </p><div class="um-admin-clear"></div>
74
 
75
  <p class="_um_checkmail_action-1">
76
+ <label class="um-admin-half"><?php _e('Personalize the custom message','ultimate-member'); ?></label>
77
  <span class="um-admin-half">
78
 
79
+ <textarea name="_um_checkmail_message" id="_um_checkmail_message"><?php echo $ultimatemember->query->get_meta_value('_um_checkmail_message', null, __('Thank you for registering. Before you can login we need you to activate your account by clicking the activation link in the email we just sent you.','ultimate-member') ); ?></textarea>
80
 
81
  </span>
82
  </p><div class="um-admin-clear"></div>
83
 
84
  <p class="_um_checkmail_action-2">
85
+ <label class="um-admin-half" for="_um_checkmail_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
86
  <span class="um-admin-half">
87
 
88
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_checkmail_url', null, 'na'); ?>" name="_um_checkmail_url" id="_um_checkmail_url" />
91
  </p><div class="um-admin-clear"></div>
92
 
93
  <p>
94
+ <label class="um-admin-half" for="_um_url_email_activate"><?php _e('URL redirect after e-mail activation','ultimate-member'); ?> <?php $this->tooltip( __('If you want users to go to a specific page other than login page after e-mail activation, enter the URL here.','ultimate-member') ); ?></label>
95
  <span class="um-admin-half">
96
 
97
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_url_email_activate', null, 'na'); ?>" name="_um_url_email_activate" id="_um_url_email_activate" />
107
 
108
  <div class="pending">
109
  <p>
110
+ <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimate-member'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimate-member') ); ?></label>
111
  <span class="um-admin-half">
112
 
113
  <select name="_um_pending_action" id="_um_pending_action" class="umaf-selectjs um-adm-conditional" style="width: 300px"
114
  data-cond1="show_message" data-cond1-show="_um_pending_action-1"
115
  data-cond2="redirect_url" data-cond2-show="_um_pending_action-2">
116
+ <option value="show_message" <?php selected('show_message', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Show custom message','ultimate-member'); ?></option>
117
+ <option value="redirect_url" <?php selected('redirect_url', $ultimatemember->query->get_meta_value('_um_pending_action') ); ?>><?php _e('Redirect to URL','ultimate-member'); ?></option>
118
  </select>
119
 
120
  </span>
121
  </p><div class="um-admin-clear"></div>
122
 
123
  <p class="_um_pending_action-1">
124
+ <label class="um-admin-half"><?php _e('Personalize the custom message','ultimate-member'); ?></label>
125
  <span class="um-admin-half">
126
 
127
+ <textarea name="_um_pending_message" id="_um_pending_message"><?php echo $ultimatemember->query->get_meta_value('_um_pending_message', null, __('Thank you for applying for membership to our site. We will review your details and send you an email letting you know whether your application has been successful or not.','ultimate-member') ); ?></textarea>
128
 
129
  </span>
130
  </p><div class="um-admin-clear"></div>
131
 
132
  <p class="_um_pending_action-2">
133
+ <label class="um-admin-half" for="_um_pending_url"><?php _e('Set Custom Redirect URL','ultimate-member'); ?></label>
134
  <span class="um-admin-half">
135
 
136
  <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_pending_url', null, 'na'); ?>" name="_um_pending_url" id="_um_pending_url" />
admin/templates/role/sync.php CHANGED
@@ -16,16 +16,16 @@ $url = add_query_arg('wp_role', $saved_r, $url);
16
  <div class="">
17
 
18
  <p>
19
- <label class="um-admin-half"><?php _e('Link to WordPress role','ultimatemember'); ?> <?php $this->tooltip( __('Users who get this community role will be assigned this WordPress role automatically','ultimatemember') ); ?></label>
20
  <span class="um-admin-half">
21
  <select name="_um_synced_role" id="_um_synced_role">
22
- <option value="0"><?php _e('None','ultimatemember'); ?></option>
23
  <?php wp_dropdown_roles( $saved_r ); ?>
24
  </select>
25
  </span>
26
  </p><div class="um-admin-clear"></div>
27
 
28
- <p><a href="<?php echo $url; ?>" id="_um_button_sync_update_button" class="button"><?php _e('Sync / update all existing users','ultimatemember'); ?></a></p>
29
 
30
  </div>
31
 
16
  <div class="">
17
 
18
  <p>
19
+ <label class="um-admin-half"><?php _e('Link to WordPress role','ultimate-member'); ?> <?php $this->tooltip( __('Users who get this community role will be assigned this WordPress role automatically','ultimate-member') ); ?></label>
20
  <span class="um-admin-half">
21
  <select name="_um_synced_role" id="_um_synced_role">
22
+ <option value="0"><?php _e('None','ultimate-member'); ?></option>
23
  <?php wp_dropdown_roles( $saved_r ); ?>
24
  </select>
25
  </span>
26
  </p><div class="um-admin-clear"></div>
27
 
28
+ <p><a href="<?php echo $url; ?>" id="_um_button_sync_update_button" class="button"><?php _e('Sync / update all existing users','ultimate-member'); ?></a></p>
29
 
30
  </div>
31
 
admin/templates/welcome/about_header.php CHANGED
@@ -12,14 +12,14 @@
12
 
13
  <h1>Welcome to Ultimate Member</h1>
14
 
15
- <div class="about-text"><?php _e('Thank you for installing! Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress.','ultimatemember'); ?></div>
16
 
17
  <div class="wp-badge um-badge">Version <?php echo ultimatemember_version; ?></div>
18
 
19
  <p class="um-admin-notice ultimatemember-actions">
20
- <a href="<?php echo admin_url('admin.php?page=um_options'); ?>" class="button button-primary"><?php _e('Settings','ultimatemember'); ?></a>
21
- <a href="http://docs.ultimatemember.com/" class="button button-secondary" target="_blank"><?php _e('Docs','ultimatemember'); ?></a>
22
- <a href="https://wordpress.org/support/plugin/ultimate-member" class="button button-secondary" target="_blank"><?php _e('Support','ultimatemember'); ?></a>
23
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://ultimatemember.com/" data-text="<?php echo esc_attr( $tweets[0] ); ?>" data-via="umplugin" data-size="large">Tweet</a>
24
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
25
  </p>
12
 
13
  <h1>Welcome to Ultimate Member</h1>
14
 
15
+ <div class="about-text"><?php _e('Thank you for installing! Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress.','ultimate-member'); ?></div>
16
 
17
  <div class="wp-badge um-badge">Version <?php echo ultimatemember_version; ?></div>
18
 
19
  <p class="um-admin-notice ultimatemember-actions">
20
+ <a href="<?php echo admin_url('admin.php?page=um_options'); ?>" class="button button-primary"><?php _e('Settings','ultimate-member'); ?></a>
21
+ <a href="http://docs.ultimatemember.com/" class="button button-secondary" target="_blank"><?php _e('Docs','ultimate-member'); ?></a>
22
+ <a href="https://wordpress.org/support/plugin/ultimate-member" class="button button-secondary" target="_blank"><?php _e('Support','ultimate-member'); ?></a>
23
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://ultimatemember.com/" data-text="<?php echo esc_attr( $tweets[0] ); ?>" data-via="umplugin" data-size="large">Tweet</a>
24
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
25
  </p>
assets/js/um-account.js CHANGED
@@ -6,7 +6,7 @@ jQuery(document).ready(function() {
6
  jQuery('.um-account-tab[data-tab='+current_tab+']').show();
7
  }
8
 
9
- jQuery(document).on('touchstart click','.um-account-side li a',function(e){
10
  e.preventDefault();
11
  var link = jQuery(this);
12
 
@@ -30,7 +30,7 @@ jQuery(document).ready(function() {
30
  });
31
  });
32
 
33
- jQuery(document).on('touchstart click','.um-account-nav a',function(e){
34
  e.preventDefault();
35
 
36
  var tab_ = jQuery(this).attr('data-tab');
6
  jQuery('.um-account-tab[data-tab='+current_tab+']').show();
7
  }
8
 
9
+ jQuery(document).on('click','.um-account-side li a',function(e){
10
  e.preventDefault();
11
  var link = jQuery(this);
12
 
30
  });
31
  });
32
 
33
+ jQuery(document).on('click','.um-account-nav a',function(e){
34
  e.preventDefault();
35
 
36
  var tab_ = jQuery(this).attr('data-tab');
assets/js/um-conditional.js CHANGED
@@ -1,5 +1,345 @@
1
  jQuery(document).ready(function() {
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  jQuery(document).on('input change', '.um-field input[type=text]', function(){
5
  if( um_field_do_init ){
1
  jQuery(document).ready(function() {
2
 
3
+ var um_live_field;
4
+ var um_live_value;
5
+ var um_field_conditions_array = {};
6
+ var um_field_relations = {};
7
+ var um_field_added = [];
8
+ var um_field_loaded = false;
9
+ var um_field_do_init = false;
10
+
11
+ function um_field_init(){
12
+
13
+ jQuery('.um-field[data-key]').each(function(){
14
+ um_field_set_conditions( jQuery(this), true );
15
+ });
16
+
17
+ um_field_relationship();
18
+
19
+ um_field_apply_conditions();
20
+ um_field_loaded = true;
21
+
22
+
23
+
24
+ }
25
+
26
+ function um_field_set_conditions( um_field_dom, add_fade ){
27
+ var um_field_key = um_field_dom.data('key');
28
+ var arr_field = [];
29
+ for (var i = 0; i < 5; i++) {
30
+
31
+ var action0 = um_field_dom.data('cond-'+i+'-action');
32
+ var field0 = um_field_dom.data('cond-'+i+'-field');
33
+ var operator0 = um_field_dom.data('cond-'+i+'-operator');
34
+ var value0 = um_field_dom.data('cond-'+i+'-value');
35
+
36
+ if( typeof value0 !== 'undefined' && um_field_loaded == false ){
37
+ arr_field.push({
38
+ child: um_field_key,
39
+ action: action0,
40
+ field: field0,
41
+ operator: operator0,
42
+ value: value0
43
+ });
44
+
45
+ }
46
+
47
+ } // end for
48
+
49
+ if( jQuery.inArray( um_field_key, um_field_added ) <= -1 && um_field_loaded == false ){
50
+ um_field_added.push( um_field_key );
51
+ um_field_conditions_array[ um_field_key ] = arr_field;
52
+ }
53
+
54
+ }
55
+
56
+ function um_field_apply_conditions(){
57
+
58
+ var field_results = {};
59
+
60
+ jQuery.each( um_field_added, function( i, field_key ){
61
+
62
+ if( um_field_relations[ field_key ].length <= 0 ){
63
+ um_field_relations[ field_key ] = [{
64
+ child: field_key,
65
+ action:'child',
66
+ field: '',
67
+ operator: '',
68
+ }];
69
+ }
70
+
71
+ jQuery.each( um_field_relations[ field_key ], function( ii, conditions ){
72
+
73
+ var add_fade = true;
74
+ var action0 = conditions.action;
75
+ var value0 = conditions.value;
76
+ var operator0 = conditions.operator;
77
+ var field0 = conditions.field;
78
+ var um_field_parent_dom = '';
79
+
80
+ um_field_parent_dom = jQuery('.um-field[data-key="'+field_key+'"]:visible').find('input[type=text],textarea,input[type=checkbox],input[type=radio],select,[class=um-field-block]');
81
+
82
+ var um_field_data = um_get_field_data( um_field_parent_dom );
83
+ var um_live_field = um_field_data.key;
84
+ var um_live_value = um_field_data.value;
85
+
86
+ var um_field_child_dom = jQuery('.um-field[data-key="'+conditions.child+'"]').find('input[type=text],textarea,input[type=checkbox],input[type=radio],select,[class=um-field-block]');
87
+ var um_field_child_dom_hide = jQuery('.um-field[data-key="'+conditions.child+'"]');
88
+
89
+
90
+
91
+ if ( action0 == 'show' && typeof value0 !== 'undefined' ) {
92
+
93
+ if ( operator0 == 'empty' ) {
94
+ if ( !um_live_value || um_live_value == '' ) {
95
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
96
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
97
+ }else{
98
+ um_field_child_dom_hide.hide();
99
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
100
+ }
101
+ }
102
+
103
+ if ( operator0 == 'not empty' ) {
104
+ if ( um_live_value && um_live_value != '' ) {
105
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
106
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
107
+ }else{
108
+ um_field_child_dom_hide.hide();
109
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
110
+ }
111
+ }
112
+
113
+ if ( operator0 == 'equals to' ) {
114
+ if ( value0 == um_live_value ) {
115
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
116
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
117
+ }else{
118
+ um_field_child_dom_hide.hide();
119
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
120
+ }
121
+ }
122
+
123
+ if ( operator0 == 'not equals' ) {
124
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) != parseInt( value0 ) && um_live_value ) {
125
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
126
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
127
+ } else if ( !jQuery.isNumeric( value0 ) && value0 != um_live_value ) {
128
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
129
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
130
+ }else{
131
+ um_field_child_dom_hide.hide();
132
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
133
+ }
134
+ }
135
+
136
+ if ( operator0 == 'greater than' ) {
137
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) > parseInt( value0 ) ) {
138
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
139
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
140
+ }else{
141
+ um_field_child_dom_hide.hide();
142
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
143
+ }
144
+ }
145
+
146
+ if ( operator0 == 'less than' ) {
147
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) < parseInt( value0 ) && um_live_value ) {
148
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
149
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
150
+ }else{
151
+ um_field_child_dom_hide.hide();
152
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
153
+ }
154
+ }
155
+
156
+ if ( operator0 == 'contains' ) {
157
+ if ( um_live_value && um_live_value.indexOf( value0 ) >= 0 ) {
158
+ um_field_show( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
159
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
160
+ }else{
161
+ um_field_child_dom_hide.hide();
162
+ field_results[ conditions.child ] = { act: 'hide', op: operator0 };
163
+ }
164
+ }
165
+
166
+ }
167
+
168
+ if ( action0 == 'hide' && typeof value0 !== 'undefined' ) {
169
+
170
+ if ( operator0 == 'empty' ) {
171
+ if ( !um_live_value || um_live_value == '' ) {
172
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
173
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
174
+ }else{
175
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
176
+ }
177
+ }
178
+
179
+ if ( operator0 == 'not empty' ) {
180
+ if ( um_live_value && um_live_value != '' ) {
181
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
182
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
183
+ }else{
184
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
185
+ }
186
+ }
187
+
188
+ if ( operator0 == 'equals to' ) {
189
+ if ( value0 == um_live_value ) {
190
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
191
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
192
+ }else{
193
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
194
+ }
195
+ }
196
+
197
+ if ( operator0 == 'not equals' ) {
198
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) != parseInt( value0 ) && um_live_value ) {
199
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
200
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
201
+ } else if ( !jQuery.isNumeric( value0 ) && value0 != um_live_value ) {
202
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
203
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
204
+ }else{
205
+ um_field_child_dom_hide.show();
206
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
207
+ }
208
+ }
209
+
210
+ if ( operator0 == 'greater than' ) {
211
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) > parseInt( value0 ) ) {
212
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
213
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
214
+ }else{
215
+ um_field_child_dom_hide.show();
216
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
217
+ }
218
+ }
219
+
220
+ if ( operator0 == 'less than' ) {
221
+ if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) < parseInt( value0 ) && um_live_value ) {
222
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
223
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
224
+ }else{
225
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
226
+ }
227
+ }
228
+
229
+ if ( operator0 == 'contains' ) {
230
+ if ( um_live_value && um_live_value.indexOf( value0 ) >= 0 ) {
231
+ um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field , field_key );
232
+ field_results[ conditions.child ] = { act: action0, op: operator0 };
233
+ }else{
234
+ field_results[ conditions.child ] = { act: 'show', op: operator0 };
235
+ }
236
+ }
237
+
238
+ }
239
+
240
+ var c_child = field_results[ conditions.child ];
241
+
242
+ if( action0 == 'child' && typeof c_child !== 'undefined' ){
243
+ if( c_child.act == 'hide' ){
244
+ jQuery('.um-field[data-key="'+field_key+'"]').hide();
245
+ }else if( c_child.act == 'show' ){
246
+ jQuery('.um-field[data-key="'+field_key+'"]').show();
247
+ }
248
+ }
249
+
250
+ });
251
+
252
+ });
253
+
254
+
255
+
256
+ }
257
+
258
+ function um_field_show( field, add_fade, optr, k, field_key ){
259
+
260
+ field = field.parents('.um-field');
261
+
262
+ if( field.is(':hidden') ){
263
+ if( add_fade ){
264
+ field.fadeIn(1);
265
+ }else{
266
+ field.show();
267
+ }
268
+ //console.log( field_key );
269
+ }
270
+
271
+ }
272
+
273
+ function um_field_hide( field, add_fade, optr, k, field_key ){
274
+
275
+ field = field.parents('.um-field');
276
+
277
+ if( field.is(':visible') ){
278
+ if( add_fade ){
279
+ field.fadeOut(1);
280
+ }else{
281
+ field.hide();
282
+ }
283
+ //console.log( field_key );
284
+ }
285
+ }
286
+
287
+ function um_get_field_data( um_field_dom ){
288
+ um_live_field = um_field_dom.parents('.um-field').data('key');
289
+ um_live_value = um_field_dom.val();
290
+
291
+ if ( um_field_dom.is(':checkbox') ) {
292
+
293
+ if ( um_field_dom.parents('.um-field').find('input:checked').length > 1 ) {
294
+ um_live_value = '';
295
+ um_field_dom.parents('.um-field').find('input:checked').each(function(){
296
+ um_live_value = um_live_value + jQuery(this).val() + ' ';
297
+ });
298
+ } else {
299
+ um_live_value = um_field_dom.parents('.um-field').find('input:checked').val();
300
+ }
301
+
302
+ }
303
+
304
+ if ( um_field_dom.is(':radio') ) {
305
+ um_live_value = um_field_dom.parents('.um-field').find('input[type=radio]:checked').val();
306
+ }
307
+
308
+ return {
309
+ key: um_live_field,
310
+ value: um_live_value
311
+ };
312
+
313
+ }
314
+
315
+ function um_field_relationship(){
316
+ var arr_fields = um_field_conditions_array;
317
+ if( um_field_loaded == false ){
318
+ jQuery.each( arr_fields, function(k, f) {
319
+
320
+ var new_arr_field = [];
321
+ var arr_um_field_exists = [];
322
+
323
+ jQuery.each( arr_fields, function(ii,field) {
324
+ for (var i = 0; i <= field.length; i++ ){
325
+
326
+ if( typeof field[ i ] !== 'undefined' ){
327
+ if( k == field[ i ].field ){
328
+ new_arr_field.push( field[ i ] );
329
+ arr_um_field_exists.push( field[ i ].child );
330
+ }
331
+ }
332
+
333
+
334
+ }
335
+ });
336
+
337
+ um_field_relations[ k ] = new_arr_field;
338
+ });
339
+ }
340
+
341
+
342
+ }
343
 
344
  jQuery(document).on('input change', '.um-field input[type=text]', function(){
345
  if( um_field_do_init ){
assets/js/um-functions.js CHANGED
@@ -1,337 +1,4 @@
1
- var um_live_field;
2
- var um_live_value;
3
- var um_field_conditions_array = {};
4
- var um_field_relations = {};
5
- var um_field_added = [];
6
- var um_field_loaded = false;
7
- var um_field_do_init = false;
8
-
9
- function um_field_init(){
10
-
11
- jQuery('.um-field[data-key]').each(function(){
12
- um_field_set_conditions( jQuery(this), true );
13
- });
14
-
15
- um_field_relationship();
16
-
17
- um_field_apply_conditions();
18
- um_field_loaded = true;
19
-
20
-
21
-
22
- }
23
-
24
- function um_field_set_conditions( um_field_dom, add_fade ){
25
- var um_field_key = um_field_dom.data('key');
26
- var arr_field = [];
27
- for (var i = 0; i < 5; i++) {
28
-
29
- var action0 = um_field_dom.data('cond-'+i+'-action');
30
- var field0 = um_field_dom.data('cond-'+i+'-field');
31
- var operator0 = um_field_dom.data('cond-'+i+'-operator');
32
- var value0 = um_field_dom.data('cond-'+i+'-value');
33
-
34
- if( typeof value0 !== 'undefined' && um_field_loaded == false ){
35
- arr_field.push({
36
- child: um_field_key,
37
- action: action0,
38
- field: field0,
39
- operator: operator0,
40
- value: value0
41
- });
42
-
43
- }
44
-
45
- } // end for
46
-
47
- if( jQuery.inArray( um_field_key, um_field_added ) <= -1 && um_field_loaded == false ){
48
- um_field_added.push( um_field_key );
49
- um_field_conditions_array[ um_field_key ] = arr_field;
50
- }
51
-
52
- }
53
-
54
- function um_field_apply_conditions(){
55
-
56
- var field_results = {};
57
-
58
- jQuery.each( um_field_added, function( i, field_key ){
59
-
60
- if( um_field_relations[ field_key ].length <= 0 ){
61
- um_field_relations[ field_key ] = [{
62
- child: field_key,
63
- action:'child',
64
- field: '',
65
- operator: '',
66
- }];
67
- }
68
-
69
- jQuery.each( um_field_relations[ field_key ], function( ii, conditions ){
70
-
71
- var add_fade = true;
72
- var action0 = conditions.action;
73
- var value0 = conditions.value;
74
- var operator0 = conditions.operator;
75
- var field0 = conditions.field;
76
- var um_field_parent_dom = '';
77
-
78
- if( action0 == 'show' || action0 == 'hide' ){
79
- //console.log( um_field_do_init );
80
- }
81
- um_field_parent_dom = jQuery('.um-field[data-key="'+field_key+'"]:visible').find('input[type=text],textarea,input[type=checkbox],input[type=radio],select');
82
-
83
- var um_field_data = um_get_field_data( um_field_parent_dom );
84
- var um_live_field = um_field_data.key;
85
- var um_live_value = um_field_data.value;
86
-
87
- var um_field_child_dom = jQuery('.um-field[data-key="'+conditions.child+'"]').find('input[type=text],textarea,input[type=checkbox],input[type=radio],select');
88
- var um_field_child_dom_hide = jQuery('.um-field[data-key="'+conditions.child+'"]');
89
-
90
- if ( action0 == 'show' && typeof value0 !== 'undefined' ) {
91
-
92
- if ( operator0 == 'empty' ) {
93
- if ( !um_live_value || um_live_value == '' ) {
94
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
95
- field_results[ conditions.child ] = [ action0, true, operator0 ];
96
- }else{
97
- um_field_child_dom_hide.hide();
98
- }
99
- }
100
-
101
- if ( operator0 == 'not empty' ) {
102
- if ( um_live_value && um_live_value != '' ) {
103
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
104
- field_results[ conditions.child ] = [ action0, true, operator0 ];
105
- }else{
106
- um_field_child_dom_hide.hide();
107
- }
108
- }
109
-
110
- if ( operator0 == 'equals to' ) {
111
- if ( value0 == um_live_value ) {
112
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
113
- field_results[ conditions.child ] = [ action0, true, operator0 ];
114
- }else{
115
- um_field_child_dom_hide.hide();
116
- }
117
- }
118
-
119
- if ( operator0 == 'not equals' ) {
120
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) != parseInt( value0 ) && um_live_value ) {
121
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
122
- field_results[ conditions.child ] = [ action0, true, operator0 ];
123
- } else if ( !jQuery.isNumeric( value0 ) && value0 != um_live_value ) {
124
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
125
- field_results[ conditions.child ] = [ action0, true, operator0 ];
126
- }else{
127
- um_field_child_dom_hide.hide();
128
- }
129
- }
130
-
131
- if ( operator0 == 'greater than' ) {
132
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) > parseInt( value0 ) ) {
133
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
134
- field_results[ conditions.child ] = [ action0, true, operator0 ];
135
- }else{
136
- um_field_child_dom_hide.hide();
137
- }
138
- }
139
-
140
- if ( operator0 == 'less than' ) {
141
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) < parseInt( value0 ) && um_live_value ) {
142
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
143
- field_results[ conditions.child ] = [ action0, true, operator0 ];
144
- }else{
145
- um_field_child_dom_hide.hide();
146
- }
147
- }
148
-
149
- if ( operator0 == 'contains' ) {
150
- if ( um_live_value && um_live_value.indexOf( value0 ) >= 0 ) {
151
- um_field_show( um_field_child_dom, add_fade, operator0, um_live_field );
152
- field_results[ conditions.child ] = [ action0, true, operator0 ];
153
- }else{
154
- um_field_child_dom_hide.hide();
155
- }
156
- }
157
-
158
- }
159
-
160
- if ( action0 == 'hide' && typeof value0 !== 'undefined' ) {
161
-
162
- if ( operator0 == 'empty' ) {
163
- if ( !um_live_value || um_live_value == '' ) {
164
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
165
- field_results[ conditions.child ] = [ action0, true, operator0 ];
166
- }else{
167
- um_field_child_dom_hide.show();
168
- }
169
- }
170
-
171
- if ( operator0 == 'not empty' ) {
172
- if ( um_live_value && um_live_value != '' ) {
173
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
174
- field_results[ conditions.child ] = [ action0, true, operator0 ];
175
- }else{
176
- um_field_child_dom_hide.show();
177
- }
178
- }
179
-
180
- if ( operator0 == 'equals to' ) {
181
- if ( value0 == um_live_value ) {
182
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
183
- field_results[ conditions.child ] = [ action0, true, operator0 ];
184
- }else{
185
- um_field_child_dom_hide.show();
186
- }
187
- }
188
-
189
- if ( operator0 == 'not equals' ) {
190
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) != parseInt( value0 ) && um_live_value ) {
191
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
192
- field_results[ conditions.child ] = [ action0, true, operator0 ];
193
- } else if ( !jQuery.isNumeric( value0 ) && value0 != um_live_value ) {
194
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
195
- field_results[ conditions.child ] = [ action0, true, operator0 ];
196
- }else{
197
- um_field_child_dom_hide.show();
198
- }
199
- }
200
-
201
- if ( operator0 == 'greater than' ) {
202
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) > parseInt( value0 ) ) {
203
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
204
- field_results[ conditions.child ] = [ action0, true, operator0 ];
205
- }else{
206
- um_field_child_dom_hide.show();
207
- }
208
- }
209
-
210
- if ( operator0 == 'less than' ) {
211
- if ( jQuery.isNumeric( value0 ) && parseInt( um_live_value ) < parseInt( value0 ) && um_live_value ) {
212
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
213
- field_results[ conditions.child ] = [ action0, true, operator0 ];
214
- }else{
215
- um_field_child_dom_hide.show();
216
- }
217
- }
218
-
219
- if ( operator0 == 'contains' ) {
220
- if ( um_live_value && um_live_value.indexOf( value0 ) >= 0 ) {
221
- um_field_hide( um_field_child_dom, add_fade, operator0, um_live_field );
222
- field_results[ conditions.child ] = [ action0, true, operator0 ];
223
- }else{
224
- um_field_child_dom_hide.show();
225
- }
226
- }
227
-
228
- }
229
- });
230
-
231
- });
232
-
233
-
234
- // jQuery.each( field_results, function( k, options ){
235
-
236
- // var field = jQuery('.um-field[data-key='+k+']');
237
-
238
- // if( options[0] == "show" && options[1] == true ){
239
- // field.fadeIn();
240
- // }
241
-
242
- // if( options[0] == "hide" && options[1] == true ){
243
- // field.hide();
244
- // }
245
-
246
- // });
247
-
248
- // console.log( field_results );
249
-
250
-
251
- }
252
-
253
- function um_field_show( field, add_fade, optr, k ){
254
-
255
- field = field.parents('.um-field');
256
-
257
- if( field.is(':hidden') ){
258
- if( add_fade ){
259
- field.fadeIn();
260
- }else{
261
- field.show();
262
- }
263
- }
264
- //console.log('show um field "'+k+'" operator:'+optr );
265
- }
266
-
267
- function um_field_hide( field, add_fade, optr, k ){
268
-
269
- field = field.parents('.um-field');
270
-
271
- if( field.is(':visible') ){
272
- if( add_fade ){
273
- field.fadeOut();
274
- }else{
275
- field.hide();
276
- }
277
- }
278
- //console.log('hide um field "'+k+'" operator:'+optr );
279
- }
280
-
281
- function um_get_field_data( um_field_dom ){
282
- um_live_field = um_field_dom.parents('.um-field').data('key');
283
- um_live_value = um_field_dom.val();
284
-
285
- if ( um_field_dom.is(':checkbox') ) {
286
- if ( um_field_dom.parents('.um-field').find('input:checked').length > 1 ) {
287
- um_live_value = '';
288
- um_field_dom.parents('.um-field').find('input:checked').each(function(){
289
- um_live_value = um_live_value + um_field_dom.val() + ' ';
290
- });
291
- } else {
292
- um_live_value = um_field_dom.parents('.um-field').find('input:checked').val();
293
- }
294
- }
295
-
296
- if ( um_field_dom.is(':radio') ) {
297
- um_live_value = um_field_dom.parents('.um-field').find('input[type=radio]:checked').val();
298
- }
299
-
300
- return {
301
- key: um_live_field,
302
- value: um_live_value
303
- };
304
-
305
- }
306
 
307
- function um_field_relationship(){
308
- var arr_fields = um_field_conditions_array;
309
- if( um_field_loaded == false ){
310
- jQuery.each( arr_fields, function(k, f) {
311
-
312
- var new_arr_field = [];
313
- var arr_um_field_exists = [];
314
-
315
- jQuery.each( arr_fields, function(ii,field) {
316
- for (var i = 0; i <= field.length; i++ ){
317
-
318
- if( typeof field[ i ] !== 'undefined' ){
319
- if( k == field[ i ].field ){
320
- new_arr_field.push( field[ i ] );
321
- arr_um_field_exists.push( field[ i ].child );
322
- }
323
- }
324
-
325
-
326
- }
327
- });
328
-
329
- um_field_relations[ k ] = new_arr_field;
330
- });
331
- }
332
-
333
-
334
- }
335
 
336
  function UM_check_password_matched() {
337
  jQuery(document).on('keyup', 'input[data-key=user_password],input[data-key=confirm_user_password]', function(e) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  function UM_check_password_matched() {
4
  jQuery(document).on('keyup', 'input[data-key=user_password],input[data-key=confirm_user_password]', function(e) {
assets/js/um-scripts.js CHANGED
@@ -144,7 +144,7 @@ jQuery(document).ready(function() {
144
  parent.find('.um-single-image-preview img').attr('src','');
145
  parent.find('.um-single-image-preview').hide();
146
  parent.find('.um-btn-auto-width').html('Upload');
147
- parent.find('input[type=hidden]').val('');
148
 
149
  jQuery.ajax({
150
  url: um_scripts.ajaxurl,
@@ -164,7 +164,7 @@ jQuery(document).ready(function() {
164
  var src = jQuery(this).parents('.um-field').find('.um-single-fileinfo a').attr('href');
165
  parent.find('.um-single-file-preview').hide();
166
  parent.find('.um-btn-auto-width').html('Upload');
167
- parent.find('input[type=hidden]').val('');
168
 
169
  jQuery.ajax({
170
  url: um_scripts.ajaxurl,
@@ -294,6 +294,14 @@ jQuery(document).ready(function() {
294
  jQuery(this).parents('form').submit();
295
  });
296
 
 
 
 
 
 
 
 
 
297
 
298
  var um_select_options_cache = {};
299
 
144
  parent.find('.um-single-image-preview img').attr('src','');
145
  parent.find('.um-single-image-preview').hide();
146
  parent.find('.um-btn-auto-width').html('Upload');
147
+ parent.find('input[type=hidden]').val('empty_file');
148
 
149
  jQuery.ajax({
150
  url: um_scripts.ajaxurl,
164
  var src = jQuery(this).parents('.um-field').find('.um-single-fileinfo a').attr('href');
165
  parent.find('.um-single-file-preview').hide();
166
  parent.find('.um-btn-auto-width').html('Upload');
167
+ parent.find('input[type=hidden]').val('empty_file');
168
 
169
  jQuery.ajax({
170
  url: um_scripts.ajaxurl,
294
  jQuery(this).parents('form').submit();
295
  });
296
 
297
+ jQuery('.um-form input[class=um-button][type=submit]').removeAttr('disabled');
298
+
299
+ jQuery(document).one('click', '.um:not(.um-account) .um-form input[class=um-button][type=submit]', function() {
300
+ jQuery(this).attr('disabled','disabled');
301
+ jQuery(this).parents('form').submit();
302
+
303
+ });
304
+
305
 
306
  var um_select_options_cache = {};
307
 
assets/js/um.min.js CHANGED
@@ -1,8 +1,8 @@
1
- function um_field_init(){jQuery(".um-field[data-key]").each(function(){um_field_set_conditions(jQuery(this),!0)}),um_field_relationship(),um_field_apply_conditions(),um_field_loaded=!0}function um_field_set_conditions(e,t){for(var i=e.data("key"),n=[],r=0;r<5;r++){var a=e.data("cond-"+r+"-action"),o=e.data("cond-"+r+"-field"),s=e.data("cond-"+r+"-operator"),l=e.data("cond-"+r+"-value");"undefined"!=typeof l&&0==um_field_loaded&&n.push({child:i,action:a,field:o,operator:s,value:l})}jQuery.inArray(i,um_field_added)<=-1&&0==um_field_loaded&&(um_field_added.push(i),um_field_conditions_array[i]=n)}function um_field_apply_conditions(){var e={};jQuery.each(um_field_added,function(t,i){um_field_relations[i].length<=0&&(um_field_relations[i]=[{child:i,action:"child",field:"",operator:""}]),jQuery.each(um_field_relations[i],function(t,n){var r=!0,a=n.action,o=n.value,s=n.operator,l=(n.field,"");l=jQuery('.um-field[data-key="'+i+'"]:visible').find("input[type=text],textarea,input[type=checkbox],input[type=radio],select");var u=um_get_field_data(l),c=u.key,d=u.value,h=jQuery('.um-field[data-key="'+n.child+'"]').find("input[type=text],textarea,input[type=checkbox],input[type=radio],select"),p=jQuery('.um-field[data-key="'+n.child+'"]');"show"==a&&"undefined"!=typeof o&&("empty"==s&&(d&&""!=d?p.hide():(um_field_show(h,r,s,c),e[n.child]=[a,!0,s])),"not empty"==s&&(d&&""!=d?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):p.hide()),"equals to"==s&&(o==d?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):p.hide()),"not equals"==s&&(jQuery.isNumeric(o)&&parseInt(d)!=parseInt(o)&&d?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):jQuery.isNumeric(o)||o==d?p.hide():(um_field_show(h,r,s,c),e[n.child]=[a,!0,s])),"greater than"==s&&(jQuery.isNumeric(o)&&parseInt(d)>parseInt(o)?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):p.hide()),"less than"==s&&(jQuery.isNumeric(o)&&parseInt(d)<parseInt(o)&&d?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):p.hide()),"contains"==s&&(d&&d.indexOf(o)>=0?(um_field_show(h,r,s,c),e[n.child]=[a,!0,s]):p.hide())),"hide"==a&&"undefined"!=typeof o&&("empty"==s&&(d&&""!=d?p.show():(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s])),"not empty"==s&&(d&&""!=d?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):p.show()),"equals to"==s&&(o==d?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):p.show()),"not equals"==s&&(jQuery.isNumeric(o)&&parseInt(d)!=parseInt(o)&&d?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):jQuery.isNumeric(o)||o==d?p.show():(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s])),"greater than"==s&&(jQuery.isNumeric(o)&&parseInt(d)>parseInt(o)?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):p.show()),"less than"==s&&(jQuery.isNumeric(o)&&parseInt(d)<parseInt(o)&&d?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):p.show()),"contains"==s&&(d&&d.indexOf(o)>=0?(um_field_hide(h,r,s,c),e[n.child]=[a,!0,s]):p.show()))})}),console.log(e)}function um_field_show(e,t,i,n){e=e.parents(".um-field"),e.is(":hidden")&&(t?e.fadeIn():e.show())}function um_field_hide(e,t,i,n){e=e.parents(".um-field"),e.is(":visible")&&(t?e.fadeOut():e.hide())}function um_get_field_data(e){return um_live_field=e.parents(".um-field").data("key"),um_live_value=e.val(),e.is(":checkbox")&&(e.parents(".um-field").find("input:checked").length>1?(um_live_value="",e.parents(".um-field").find("input:checked").each(function(){um_live_value=um_live_value+e.val()+" "})):um_live_value=e.parents(".um-field").find("input:checked").val()),e.is(":radio")&&(um_live_value=e.parents(".um-field").find("input[type=radio]:checked").val()),{key:um_live_field,value:um_live_value}}function um_field_relationship(){var e=um_field_conditions_array;0==um_field_loaded&&jQuery.each(e,function(t,i){var n=[],r=[];jQuery.each(e,function(e,i){for(var a=0;a<=i.length;a++)"undefined"!=typeof i[a]&&t==i[a].field&&(n.push(i[a]),r.push(i[a].child))}),um_field_relations[t]=n})}function UM_check_password_matched(){jQuery(document).on("keyup","input[data-key=user_password],input[data-key=confirm_user_password]",function(e){var t=jQuery("input[data-key=user_password]").val(),i=jQuery("input[data-key=confirm_user_password]").val(),n=jQuery("input[data-key=user_password],input[data-key=confirm_user_password]");t||i?t!==i?n.removeClass("um-validate-matched").addClass("um-validate-not-matched"):n.removeClass("um-validate-not-matched").addClass("um-validate-matched"):n.removeClass("um-validate-matched").removeClass("um-validate-not-matched")})}function UM_hide_menus(){menu=jQuery(".um-dropdown"),menu.parents("div").find("a").removeClass("active"),menu.hide()}function UM_domenus(){jQuery(".um-dropdown").each(function(){var e=jQuery(this),t=jQuery(this).attr("data-element"),i=jQuery(this).attr("data-position");jQuery(t).addClass("um-trigger-menu-on-"+e.attr("data-trigger")),jQuery(window).width()<=1200&&"div.um-profile-edit"==t&&(i="lc"),"lc"==i&&(200>jQuery(t).find("img").width()?left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2+(jQuery(t).find("img").width()-200)/2:left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2,top_=parseInt(jQuery(t).find("a").css("top")),top_?(top_p=jQuery(t).find("img").height()+4+top_,left_gap=4):(top_p=jQuery(t).find("img").height()+4,left_gap=0),4==top_p&&"div.um-cover"==t?top_p=jQuery(t).height()/2+e.height()/2:4==top_p&&(top_p=jQuery(t).height()+20),gap_right=jQuery(t).width()+17,e.css({top:0,width:200,left:"auto",right:gap_right+"px","text-align":"center"}),e.find(".um-dropdown-arr").find("i").removeClass().addClass("um-icon-arrow-right-b"),e.find(".um-dropdown-arr").css({top:"4px",left:"auto",right:"-17px"})),"bc"==i&&(200>jQuery(t).find("img").width()?left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2+(jQuery(t).find("img").width()-200)/2:left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2,top_=parseInt(jQuery(t).find("a").css("top")),top_?(top_p=jQuery(t).find("img").height()+4+top_,left_gap=4):(top_p=jQuery(t).find("img").height()+4,left_gap=0),4==top_p&&"div.um-cover"==t?top_p=jQuery(t).height()/2+e.height()/2:4==top_p&&(top_p=jQuery(t).height()+20),e.css({top:top_p,width:200,left:left_p+left_gap,right:"auto","text-align":"center"}),e.find(".um-dropdown-arr").find("i").removeClass().addClass("um-icon-arrow-up-b"),e.find(".um-dropdown-arr").css({top:"-17px",left:e.width()/2-12,right:"auto"}))})}function um_responsive(){jQuery(".um").each(function(){element_width=jQuery(this).width(),element_width<=340?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob340")):element_width<=500?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob500")):element_width<=800?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob800")):element_width<=960?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob960")):element_width>960&&(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960")),jQuery(".um-account-nav").length>0&&jQuery(".um-account-side").is(":visible")&&0==jQuery(".um-account-tab:visible").length&&jQuery(".um-account-side li a.current").trigger("click"),jQuery(this).css("opacity",1)}),jQuery(".um-cover, .um-member-cover").each(function(){var e=jQuery(this),t=e.data("ratio"),i=e.width(),n=t.split(":");calcHeight=Math.round(i/n[0])+"px",e.height(calcHeight),e.find(".um-cover-add").height(calcHeight)}),jQuery(".um-members").each(function(){UM_Member_Grid(jQuery(this))}),UM_domenus()}function UM_Member_Grid(e){e.masonry({itemSelector:".um-member",columnWidth:".um-member",gutter:".um-gutter-sizer"})}function initImageUpload_UM(e){e.data("upload_help_text")?upload_help_text='<span class="help">'+e.data("upload_help_text")+"</span>":upload_help_text="",e.data("icon")?icon='<span class="icon"><i class="'+e.data("icon")+'"></i></span>':icon="",e.data("upload_text")?upload_text='<span class="str">'+e.data("upload_text")+"</span>":upload_text="",e.uploadFile({url:um_scripts.imageupload,method:"POST",multiple:!1,formData:{key:e.data("key"),set_id:e.data("set_id"),set_mode:e.data("set_mode"),_wpnonce:e.data("nonce"),timestamp:e.data("timestamp")},fileName:e.data("key"),allowedTypes:e.data("allowed_types"),maxFileSize:e.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:e.data("max_size_error"),extErrorStr:e.data("extension_error"),maxFileCountErrorStr:e.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,onSubmit:function(t){e.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(t,i,n){e.selectedFiles=0;try{i=jQuery.parseJSON(i)}catch(e){return void console.log(e,i)}i.error&&""!=i.error?(e.parents(".um-modal-body").append('<div class="um-error-block">'+i.error+"</div>"),e.parents(".um-modal-body").find(".upload-statusbar").hide(0),um_modal_responsive()):jQuery.each(i,function(t,i){var n=e.parents(".um-modal-body").find(".um-single-image-preview img"),r=e.parents(".um-modal-body").find(".um-single-image-preview");n.attr("src",i),n.load(function(){e.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),e.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),r.show(0),um_modal_responsive()})})}})}function initFileUpload_UM(e){e.data("upload_help_text")?upload_help_text='<span class="help">'+e.data("upload_help_text")+"</span>":upload_help_text="",e.data("icon")?icon='<span class="icon"><i class="'+e.data("icon")+'"></i></span>':icon="",e.data("upload_text")?upload_text='<span class="str">'+e.data("upload_text")+"</span>":upload_text="",e.uploadFile({url:um_scripts.fileupload,method:"POST",multiple:!1,formData:{key:e.data("key"),set_id:e.data("set_id"),set_mode:e.data("set_mode"),_wpnonce:e.data("nonce"),timestamp:e.data("timestamp")},fileName:e.data("key"),allowedTypes:e.data("allowed_types"),maxFileSize:e.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:e.data("max_size_error"),extErrorStr:e.data("extension_error"),maxFileCountErrorStr:e.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,onSubmit:function(t){e.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(t,i,n){e.selectedFiles=0,i=jQuery.parseJSON(i),i.error&&""!=i.error?(e.parents(".um-modal-body").append('<div class="um-error-block">'+i.error+"</div>"),e.parents(".um-modal-body").find(".upload-statusbar").hide(0),setTimeout(function(){um_modal_responsive()},1e3)):(jQuery.each(i,function(t,i){e.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),e.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),e.parents(".um-modal-body").find(".um-single-file-preview").show(0),"icon"==t?e.parents(".um-modal-body").find(".um-single-fileinfo i").removeClass().addClass(i):"icon_bg"==t?e.parents(".um-modal-body").find(".um-single-fileinfo span.icon").css({"background-color":i}):"filename"==t?e.parents(".um-modal-body").find(".um-single-fileinfo span.filename").html(i):e.parents(".um-modal-body").find(".um-single-fileinfo a").attr("href",i)}),setTimeout(function(){um_modal_responsive()},1e3))}})}function initCrop_UM(){var e=jQuery(".um-modal .um-single-image-preview img").first(),t=jQuery(".um-modal .um-single-image-preview"),i=e.parent().attr("data-crop"),n=e.parent().attr("data-min_width"),r=e.parent().attr("data-min_height"),a=e.parent().attr("data-ratio");if(jQuery(".um-modal").find("#um_upload_single").attr("data-ratio"))var a=jQuery(".um-modal").find("#um_upload_single").attr("data-ratio"),o=a.split(":"),a=o[0];if(e.length&&""!=e.attr("src")){var s=jQuery(window).height()-(jQuery(".um-modal-footer a").height()+20)-50-jQuery(".um-modal-header:visible").height();if(e.css({height:"auto"}),t.css({height:"auto"}),jQuery(window).height()<=400?(t.css({height:s+"px","max-height":s+"px"}),e.css({height:"auto"})):(e.css({height:"auto","max-height":s+"px"}),t.css({height:e.height(),"max-height":s+"px"})),"square"==i)var l={minWidth:n,minHeight:r,dragCrop:!1,aspectRatio:1,zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}};else if("cover"==i){Math.round(n/a)>0&&(r=Math.round(n/a));var l={minWidth:n,minHeight:r,dragCrop:!1,aspectRatio:a,zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}}}else if("user"==i)var l={minWidth:n,minHeight:r,dragCrop:!0,aspectRatio:"auto",zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}};0!=i&&(e.cropper(l),jQuery(".um-single-image-preview img.cropper-hidden").cropper("destroy"),jQuery(".um-single-image-preview img.lazyloaded").addClass("cropper-hidden"),jQuery(".um-single-image-preview img.lazyloaded").removeClass("lazyloaded"),jQuery(".um-single-image-preview .cropper-container").append('<div class="um-clear"></div>'))}}function um_new_modal(e,t,i,n){var r=jQuery("body").find(".um-modal-overlay");if(0==r.length)if(jQuery(".tipsy").hide(),UM_hide_menus(),jQuery("body,html,textarea").css("overflow","hidden"),jQuery(document).bind("touchmove",function(e){e.preventDefault()}),jQuery(".um-modal").on("touchmove",function(e){e.stopPropagation()}),i?jQuery("body").append('<div class="um-modal-overlay"></div><div class="um-modal is-photo"></div>'):jQuery("body").append('<div class="um-modal-overlay"></div><div class="um-modal no-photo"></div>'),jQuery("#"+e).prependTo(".um-modal"),i){jQuery(".um-modal").find(".um-modal-photo").html("<img />");var a=jQuery(".um-modal-photo img"),o=jQuery(window).width()-60,s=jQuery(window).height()-.25*jQuery(window).height();a.attr("src",n),a.load(function(){jQuery("#"+e).show(),jQuery(".um-modal").show(),a.css({opacity:0}),a.css({"max-width":o}),a.css({"max-height":s}),jQuery(".um-modal").css({width:a.width(),"margin-left":"-"+a.width()/2+"px"}),a.animate({opacity:1},1e3),um_modal_responsive()})}else jQuery("#"+e).show(),jQuery(".um-modal").show(),um_modal_size(t),initImageUpload_UM(jQuery(".um-modal:visible").find(".um-single-image-upload")),initFileUpload_UM(jQuery(".um-modal:visible").find(".um-single-file-upload")),um_modal_responsive()}function um_modal_responsive(){var e=jQuery(".um-modal:visible"),t=jQuery(".um-modal-body.photo:visible");if(t.length){e.removeClass("uimob340"),e.removeClass("uimob500");var i=jQuery(".um-modal-photo img"),n=jQuery(window).width()-60,r=jQuery(window).height()-.25*jQuery(window).height();i.css({opacity:0}),i.css({"max-width":n}),i.css({"max-height":r}),jQuery(".um-modal").css({width:i.width(),"margin-left":"-"+i.width()/2+"px"}),i.animate({opacity:1},1e3);var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(e.length){var o=jQuery(window).width();if(e.removeClass("uimob340"),e.removeClass("uimob500"),o<=340)e.addClass("uimob340"),initCrop_UM(),e.animate({bottom:0},300);else if(o<=500)e.addClass("uimob500"),initCrop_UM(),e.animate({bottom:0},300);else if(o<=800){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(o<=960){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(o>960){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}}}function um_remove_modal(){jQuery("img.cropper-hidden").cropper("destroy"),jQuery("body,html,textarea").css("overflow","auto"),jQuery(document).unbind("touchmove"),jQuery('.um-modal div[id^="um_"]').hide().appendTo("body"),jQuery(".um-modal,.um-modal-overlay").remove()}function um_modal_size(e){jQuery(".um-modal:visible").addClass(e)}function um_modal_add_attr(e,t){jQuery(".um-modal:visible").data(e,t)}function prepare_Modal(){0==jQuery(".um-popup-overlay").length&&(jQuery("body").append('<div class="um-popup-overlay"></div>'),jQuery("body").append('<div class="um-popup"></div>'),jQuery(".um-popup").addClass("loading"),jQuery("body,html").css({overflow:"hidden"}))}function remove_Modal(){jQuery(".um-popup-overlay").length&&(jQuery(".tipsy").remove(),jQuery(".um-popup").empty().remove(),jQuery(".um-popup-overlay").empty().remove(),jQuery("body,html").css({overflow:"auto"}))}function show_Modal(e){jQuery(".um-popup-overlay").length&&(jQuery(".um-popup").removeClass("loading").html(e),jQuery(".um-tip-n").tipsy({gravity:"n",opacity:1,offset:3}),jQuery(".um-tip-w").tipsy({gravity:"w",opacity:1,offset:3}),jQuery(".um-tip-e").tipsy({gravity:"e",opacity:1,offset:3}),jQuery(".um-tip-s").tipsy({gravity:"s",opacity:1,offset:3}))}function responsive_Modal(){jQuery(".um-popup-overlay").length&&(ag_height=jQuery(window).height()-jQuery(".um-popup um-popup-header").outerHeight()-jQuery(".um-popup .um-popup-footer").outerHeight()-80,ag_height>350&&(ag_height=350),jQuery(".um-popup-autogrow:visible").length?(jQuery(".um-popup-autogrow:visible").css({height:ag_height+"px"}),jQuery(".um-popup-autogrow:visible").mCustomScrollbar({theme:"dark-3",mouseWheelPixels:500}).mCustomScrollbar("scrollTo","bottom",{scrollInertia:0})):jQuery(".um-popup-autogrow2:visible").length&&(jQuery(".um-popup-autogrow2:visible").css({"max-height":ag_height+"px"}),jQuery(".um-popup-autogrow2:visible").mCustomScrollbar({theme:"dark-3",mouseWheelPixels:500})))}function um_reset_field(e){jQuery(e).find("div.um-field-area").find("input,textarea,select").not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").removeAttr("selected")}!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?i=t:t={};var e,i,n;!function(t){function r(e,t){return w.call(e,t)}function a(e,t){var i,n,r,a,o,s,l,u,c,d,h,p=t&&t.split("/"),f=y.map,m=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),o=e.length-1,y.nodeIdCompat&&x.test(e[o])&&(e[o]=e[o].replace(x,"")),e=p.slice(0,p.length-1).concat(e),c=0;c<e.length;c+=1)if(h=e[c],"."===h)e.splice(c,1),c-=1;else if(".."===h){if(1===c&&(".."===e[2]||".."===e[0]))break;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((p||m)&&f){for(i=e.split("/"),c=i.length;c>0;c-=1){if(n=i.slice(0,c).join("/"),p)for(d=p.length;d>0;d-=1)if(r=f[p.slice(0,d).join("/")],r&&(r=r[n])){a=r,s=c;break}if(a)break;!l&&m&&m[n]&&(l=m[n],u=c)}!a&&l&&(a=l,s=u),a&&(i.splice(0,s,a),e=i.join("/"))}return e}function o(e,i){return function(){var n=_.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(t,n.concat([e,i]))}}function s(e){return function(t){return a(t,e)}}function l(e){return function(t){g[e]=t}}function u(e){if(r(v,e)){var i=v[e];delete v[e],b[e]=!0,h.apply(t,i)}if(!r(g,e)&&!r(b,e))throw new Error("No "+e);return g[e]}function c(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var h,p,f,m,g={},v={},y={},b={},w=Object.prototype.hasOwnProperty,_=[].slice,x=/\.js$/;f=function(e,t){var i,n=c(e),r=n[0];return e=n[1],r&&(r=a(r,t),i=u(r)),r?e=i&&i.normalize?i.normalize(e,s(t)):a(e,t):(e=a(e,t),n=c(e),r=n[0],e=n[1],r&&(i=u(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:i}},m={require:function(e){return o(e)},exports:function(e){var t=g[e];return"undefined"!=typeof t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:d(e)}}},h=function(e,i,n,a){var s,c,d,h,p,y,w=[],_=typeof n;if(a=a||e,"undefined"===_||"function"===_){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if(h=f(i[p],a),c=h.f,"require"===c)w[p]=m.require(e);else if("exports"===c)w[p]=m.exports(e),y=!0;else if("module"===c)s=w[p]=m.module(e);else if(r(g,c)||r(v,c)||r(b,c))w[p]=u(c);else{if(!h.p)throw new Error(e+" missing "+c);h.p.load(h.n,o(a,!0),l(c),{}),w[p]=g[c]}d=n?n.apply(g[e],w):void 0,e&&(s&&s.exports!==t&&s.exports!==g[e]?g[e]=s.exports:d===t&&y||(g[e]=d))}else e&&(g[e]=n)},e=i=p=function(e,i,n,r,a){if("string"==typeof e)return m[e]?m[e](i):u(f(e,i).f);if(!e.splice){if(y=e,y.deps&&p(y.deps,y.callback),!i)return;i.splice?(e=i,i=n,n=null):e=t}return i=i||function(){},"function"==typeof n&&(n=r,r=a),r?h(t,e,i,n):setTimeout(function(){h(t,e,i,n)},4),p},p.config=function(e){return p(e)},e._defined=g,n=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),r(g,e)||r(v,e)||(v[e]=[e,t,i])},n.amd={jQuery:!0}}(),t.requirejs=e,t.require=i,t.define=n}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,i=[];for(var n in t){var r=t[n];"function"==typeof r&&"constructor"!==n&&i.push(n)}return i}var i={};i.Extend=function(e,t){function i(){this.constructor=e}var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},i.Decorate=function(e,i){function n(){var t=Array.prototype.unshift,n=i.prototype.constructor.length,r=e.prototype.constructor;n>0&&(t.call(arguments,e.prototype.constructor),r=i.prototype.constructor),r.apply(this,arguments)}function r(){this.constructor=n}var a=t(i),o=t(e);i.displayName=e.displayName,n.prototype=new r;for(var s=0;s<o.length;s++){var l=o[s];n.prototype[l]=e.prototype[l]}for(var u=(function(e){var t=function(){};e in n.prototype&&(t=n.prototype[e]);var r=i.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),r.apply(this,arguments)}}),c=0;c<a.length;c++){var d=a[c];n.prototype[d]=u(d)}return n};var n=function(){this.listeners={}};return n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice;this.listeners=this.listeners||{},e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var i=0,n=e.length;n>i;i++)e[i].apply(this,t)},i.Observable=n,i.generateChars=function(e){for(var t="",i=0;e>i;i++){var n=Math.floor(36*Math.random());t+=n.toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var i=t.split("-"),n=e;if(1!==i.length){for(var r=0;r<i.length;r++){var a=i[r];a=a.substring(0,1).toLowerCase()+a.substring(1),a in n||(n[a]={}),r==i.length-1&&(n[a]=e[t]),n=n[a]}delete e[t]}}return e},i.hasScroll=function(t,i){var n=e(i),r=i.style.overflowX,a=i.style.overflowY;return(r!==a||"hidden"!==a&&"visible"!==a)&&("scroll"===r||"scroll"===a||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(t,i){if("1.7"===e.fn.jquery.substr(0,3)){var n=e();e.map(i,function(e){n=n.add(e)}),i=n}t.append(i)},i}),t.define("select2/results",["jquery","./utils"],function(e,t){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);n.append(i(r(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var n=e.results[i],r=this.option(n);t.push(r)}this.$results.append(t)},i.prototype.position=function(e,t){var i=t.find(".select2-results");i.append(e)},i.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var n=e.map(i,function(e){return e.id.toString()}),r=t.$results.find(".select2-results__option[aria-selected]");r.each(function(){var t=e(this),i=e.data(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(r,n)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")});var a=r.filter("[aria-selected=true]");a.length>0?a.first().trigger("mouseenter"):r.first().trigger("mouseenter")})},i.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),i={disabled:!0,loading:!0,text:t(e)},n=this.option(i);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};t.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==t.id&&delete n["aria-selected"],null!=t._resultId&&(i.id=t._resultId),t.title&&(i.title=t.title),t.children&&(n.role="group",n["aria-label"]=t.text,delete n["aria-selected"]);for(var r in n){var a=n[r];i.setAttribute(r,a)}if(t.children){var o=e(i),s=document.createElement("strong");s.className="select2-results__group",e(s),this.template(t,s);for(var l=[],u=0;u<t.children.length;u++){var c=t.children[u],d=this.option(c);l.push(d)}var h=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(l),o.append(s),o.append(h)}else this.template(t,i);return e.data(i,"data",t),i},i.prototype.bind=function(t,i){var n=this,r=t.id+"-results";this.$results.attr("id",r),t.on("results:all",function(e){n.clear(),n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("results:append",function(e){n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("query",function(e){n.hideMessages(),n.showLoading(e)}),t.on("select",function(){t.isOpen()&&n.setClasses()}),t.on("unselect",function(){t.isOpen()&&n.setClasses()}),t.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),t.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e);if(0!==i){var r=i-1;0===e.length&&(r=0);var a=t.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top,s=a.offset().top,l=n.$results.scrollTop()+(s-o);0===r?n.$results.scrollTop(0):0>s-o&&n.$results.scrollTop(l)}}),t.on("results:next",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e),r=i+1;if(!(r>=t.length)){var a=t.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),s=a.offset().top+a.outerHeight(!1),l=n.$results.scrollTop()+s-o;0===r?n.$results.scrollTop(0):s>o&&n.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){n.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,a=e.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):a&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var i=e(this),r=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:t,data:r}):n.trigger("close",{})):void n.trigger("select",{originalEvent:t,data:r})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var i=e(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:e(this)})})},i.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),i=t.index(e),n=this.$results.offset().top,r=e.offset().top,a=this.$results.scrollTop()+(r-n),o=r-n;a-=2*e.outerHeight(!1),2>=i?this.$results.scrollTop(0):(o>this.$results.outerHeight()||0>o)&&this.$results.scrollTop(a)}},i.prototype.template=function(t,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),a=n(t,i);null==a?i.style.display="none":"string"==typeof a?i.innerHTML=r(a):e(i).append(a)},i}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},n.prototype.bind=function(e,t){var n=this,r=(e.id+"-container",e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),
2
- n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},n.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var i=e(t.target),n=i.closest(".select2"),r=e(".select2.select2-container--open");r.each(function(){var t=e(this);if(this!=n[0]){var i=t.data("element");i.select2("close")}})})},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){var i=t.find(".selection");i.append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var i=this;r.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("selection:update",function(e){i.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(t,i);i.empty().append(n),i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,i){function n(e,t){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(t,i){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.options.get("disabled")){var i=e(this),n=i.parent(),a=n.data("data");r.trigger("unselect",{originalEvent:t,data:a})}})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(e,t))},n.prototype.selectionContainer=function(){var t=e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return t},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],a=this.selectionContainer(),o=this.display(r,a);a.append(o),a.prop("title",r.title||r.text),a.data("data",r),t.push(a)}var s=this.$selection.find(".select2-selection__rendered");i.appendMany(s,t)}},n}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id,n=t.length>1;if(n||i)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function i(){}return i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){n._handleClear(e)}),t.on("keypress",function(e){n._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();for(var n=i.data("data"),r=0;r<n.length;r++){var a={data:n[r]};if(this.trigger("unselect",a),a.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(e,i,n){n.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=e('<span class="select2-selection__clear">&times;</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,i){function n(e,t,i){e.call(this,t,i)}return n.prototype.render=function(t){var i=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=t.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===i.BACKSPACE&&""===r.$search.val()){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var a=n.data("data");r.searchRemoveChoice(a),e.preventDefault()}}});var a=document.documentMode,o=a&&11>=a;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return o?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)return void r.$selection.off("input.search input.searchcheck");var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&r.handleSearch(e)})},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},n}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,i,n){var r=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];t.call(this,i,n),i.on("*",function(t,i){if(-1!==e.inArray(t,a)){i=i||{};var n=e.Event("select2:"+t,{params:i});r.$element.trigger(n),-1!==e.inArray(t,o)&&(i.prevented=n.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var n=t(e);i._cache[e]=n}return new i(i._cache[e])},i}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var n=t.id+"-result-";return n+=e.generateChars(4),n+=null!=i.id?"-"+i.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=i(this),r=n.item(e);t.push(r)}),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,i(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var r=[];e=[e],e.push.apply(e,n);for(var a=0;a<e.length;a++){var o=e[a].id;-1===i.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,i(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current(function(n){for(var r=[],a=0;a<n.length;a++){var o=n[a].id;o!==e.id&&-1===i.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")})},n.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",function(e){i.select(e.data)}),e.on("unselect",function(e){i.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},n.prototype.query=function(e,t){var n=[],r=this,a=this.$element.children();a.each(function(){var t=i(this);if(t.is("option")||t.is("optgroup")){var a=r.item(t),o=r.matches(e,a);null!==o&&n.push(o)}}),t({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=i(t),r=this._normalizeItem(e);return r.element=t,i.data(t,"data",r),n},n.prototype.item=function(e){var t={};if(t=i.data(e[0],"data"),null!=t)return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],a=0;a<n.length;a++){var o=i(n[a]),s=this.item(o);r.push(s)}t.children=r}return t=this._normalizeItem(t),t.element=e[0],i.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){i.isPlainObject(e)||(e={id:e,text:e}),e=i.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},t,e)},n.prototype.matches=function(e,t){var i=this.options.get("matcher");return i(e,t)},n}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,i){function n(e,t){var i=t.get("data")||[];n.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(i))}return t.Extend(n,e),n.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,i){return i.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){function n(e){return function(){return i(this).val()==e.id}}for(var r=this,a=this.$element.find("option"),o=a.map(function(){return r.item(i(this)).id}).get(),s=[],l=0;l<e.length;l++){var u=this._normalizeItem(e[l]);if(i.inArray(u.id,o)>=0){var c=a.filter(n(u)),d=this.item(c),h=i.extend(!0,{},u,d),p=this.option(h);c.replaceWith(p)}else{var f=this.option(u);if(u.children){var m=this.convertToOptions(u.children);t.appendMany(f,m)}s.push(f)}}return s},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,i){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,n){var r=i.ajax(e);return r.then(t),r.fail(n),r}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){function n(){var n=a.transport(a,function(n){var a=r.processResults(n,e);r.options.get("debug")&&window.console&&console.error&&(a&&a.results&&i.isArray(a.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(a)},function(){r.trigger("results:message",{message:"errorLoading"})});r._request=n}var r=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var a=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof a.url&&(a.url=a.url.call(this.$element,e)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,e)),this.ajaxOptions.delay&&""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),t.define("select2/data/tags",["jquery"],function(e){function t(t,i,n){var r=n.get("tags"),a=n.get("createTag");void 0!==a&&(this.createTag=a);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,i,n),e.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return t.prototype.query=function(e,t,i){function n(e,a){for(var o=e.results,s=0;s<o.length;s++){var l=o[s],u=null!=l.children&&!n({results:l.children},!0),c=l.text===t.term;if(c||u)return!a&&(e.data=o,void i(e))}if(a)return!0;var d=r.createTag(t);if(null!=d){var h=r.option(d);h.attr("data-select2-tag",!0),r.addOptions([h]),r.insertTag(o,d)}e.results=o,i(e)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,i):void e.call(this,t,n)},t.prototype.createTag=function(t,i){var n=e.trim(i.term);return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){var i=(this._lastTag,this.$element.find("option[data-select2-tag]"));i.each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(e,t,i){function n(e){r.trigger("select",{data:e})}var r=this;t.term=t.term||"";var a=this.tokenizer(t,this.options,n);a.term!==t.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),t.term=a.term),e.call(this,t,i)},t.prototype.tokenizer=function(t,i,n,r){for(var a=n.get("tokenSeparators")||[],o=i.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var u=o[s];if(-1!==e.inArray(u,a)){var c=o.substr(0,s),d=e.extend({},i,{term:c}),h=l(d);null!=h?(r(h),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){var n=this;this.current(function(r){var a=null!=r?r.length:0;return n.maximumSelectionLength>0&&a>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void e.call(n,t,i)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function i(){}return i.prototype.render=function(t){var i=t.call(this),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),i.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),i.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val("")}),i.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=r.showSearch(e);t?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide")}})},i.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.showSearch=function(e,t){return!0},i}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var r=t[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),i.on("query",function(e){r.lastParams=e,r.loading=!0}),i.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,r.$loadingMore[0]);if(!r.loading&&t){var i=r.$results.offset().top+r.$results.outerHeight(!1),n=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1);i+50>=n&&r.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function i(t,i,n){this.$dropdownParent=n.get("dropdownParent")||e(document.body),t.call(this,i,n)}return i.prototype.bind=function(e,t,i){var n=this,r=!1;e.call(this,t,i),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var r=this,a="scroll.select2."+n.id,o="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(a,function(t){var i=e(this).data("select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(a+" "+o+" "+s,function(e){r._positionDropdown(),r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,a="resize.select2."+n.id,o="orientationchange.select2."+n.id,s=this.$container.parents().filter(t.hasScroll);s.off(r),e(window).off(r+" "+a+" "+o)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<a.top-s.height,c=l.bottom>a.bottom+s.height,d={left:a.left,top:o.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();d.top-=p.top,d.left-=p.left,i||n||(r="below"),c||!u||i?!u&&c&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(d.top=o.top-s.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),
3
- this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var i=0,n=0;n<t.length;n++){var r=t[n];r.children?i+=e(r.children):i++}return i}function t(e,t,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,n)}return t.prototype.showSearch=function(t,i){return!(e(i.data.results)<this.minimumResultsForSearch)&&t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("close",function(){n._handleSelectOnClose()})},e.prototype._handleSelectOnClose=function(){var e=this.getHighlightedResults();if(!(e.length<1)){var t=e.data("data");null!=t.element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",function(e){n._selectTriggered(e)}),t.on("unselect",function(e){n._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){var t=e.minimum-e.input.length,i="Please enter "+t+" or more characters";return i},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,i,n,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,b,w,_,x,j,C,S,k,$,D){function T(){this.reset()}T.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=h,d.minimumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=u.Decorate(d.dataAdapter,m)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=u.Decorate(d.dataAdapter,g)),null!=d.query){var D=t(d.amdBase+"compat/query");d.dataAdapter=u.Decorate(d.dataAdapter,D)}if(null!=d.initSelection){var T=t(d.amdBase+"compat/initSelection");d.dataAdapter=u.Decorate(d.dataAdapter,T)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,j)),null!=d.placeholder&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,k))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var Q=u.Decorate(w,_);d.dropdownAdapter=Q}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,S)),d.closeOnSelect&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,$)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var O=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=u.Decorate(d.dropdownAdapter,O)}d.dropdownAdapter=u.Decorate(d.dropdownAdapter,C)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=r:d.selectionAdapter=n,null!=d.placeholder&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,a)),d.allowClear&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,o)),d.multiple&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var A=t(d.amdBase+"compat/containerCss");d.selectionAdapter=u.Decorate(d.selectionAdapter,A)}d.selectionAdapter=u.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var M=d.language.split("-"),E=M[0];d.language=[d.language,E]}else d.language=[d.language];if(e.isArray(d.language)){var I=new c;d.language.push("en");for(var P=d.language,L=0;L<P.length;L++){var R=P[L],H={};try{H=c.loadPath(R)}catch(e){try{R=this.defaults.amdLanguageBase+R,H=c.loadPath(R)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+R+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend(H)}d.translations=I}else{var B=c.loadPath(this.defaults.amdLanguageBase+"en"),z=new c(d.language);z.extend(B),d.translations=z}return d},T.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function i(n,r){if(""===e.trim(n.term))return r;if(r.children&&r.children.length>0){for(var a=e.extend(!0,{},r),o=r.children.length-1;o>=0;o--){var s=r.children[o],l=i(n,s);null==l&&a.children.splice(o,1)}return a.children.length>0?a:i(n,a)}var u=t(r.text).toUpperCase(),c=t(n.term).toUpperCase();return u.indexOf(c)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:D,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},T.prototype.set=function(t,i){var n=e.camelCase(t),r={};r[n]=i;var a=u._convertData(r);e.extend(this.defaults,a)};var Q=new T;return Q}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,i,n){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),this.options=i.apply(this.options),r&&r.is("input")){var a=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,a)}}return r.prototype.fromElement=function(e){var i=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var r={};r=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var a=t.extend(!0,{},r);a=n._convertData(a);for(var o in a)t.inArray(o,i)>-1||(t.isPlainObject(this.options[o])?t.extend(this.options[o],a[o]):this.options[o]=a[o]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,i,n){var r=function(e,i){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var o=this.render();this._placeContainer(o);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){c.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return 0>=r?"auto":r+"px"}if("style"==t){var a=e.attr("style");if("string"!=typeof a)return null;for(var o=a.split(";"),s=0,l=o.length;l>s;s+=1){var u=o[s].replace(/\s/g,""),c=u.match(i);if(null!==c&&c.length>=1)return c[1]}return null}return t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){e.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(n,r){-1===e.inArray(n,i)&&t.trigger(n,r)})},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(i){e.trigger("results:all",{data:i,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(i){e.trigger("results:append",{data:i,query:t})})}),this.on("keypress",function(t){var i=t.which;e.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&t.altKey?(e.close(),t.preventDefault()):i===n.ENTER?(e.trigger("results:select",{}),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype.trigger=function(e,t){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in n){var a=n[e],o={prevented:!1,name:e,args:t};if(i.call(this,a,o),o.prevented)return void(t.prevented=!0)}i.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];e.isArray(i)&&(i=e.map(i,function(e){return e.toString()})),this.$element.val(i).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},r}),t.define("select2/compat/utils",["jquery"],function(e){function t(t,i,n){var r,a,o=[];r=e.trim(t.attr("class")),r&&(r=""+r,e(r.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)})),r=e.trim(i.attr("class")),r&&(r=""+r,e(r.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(a=n(this),null!=a&&o.push(a))})),t.attr("class",o.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function i(e){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),a=this.options.get("containerCssClass")||"";e.isFunction(a)&&(a=a(this.$element));var o=this.options.get("adaptContainerCssClass");if(o=o||i,-1!==a.indexOf(":all:")){a=a.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(r,this.$element,o),r.css(l),r.addClass(a),r},n}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function i(e){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),a=this.options.get("dropdownCssClass")||"";e.isFunction(a)&&(a=a(this.$element));var o=this.options.get("adaptDropdownCssClass");if(o=o||i,-1!==a.indexOf(":all:")){a=a.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(r,this.$element,o),r.css(l),r.addClass(a),r},n}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=i.get("initSelection"),this._isInitialized=!1,e.call(this,t,i)}return t.prototype.current=function(t,i){var n=this;return this._isInitialized?void t.call(this,i):void this.initSelection.call(null,this.$element,function(t){n._isInitialized=!0,e.isArray(t)||(t=[t]),i(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===t.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,i)}return t.prototype.current=function(t,i){function n(t,i){var r=[];return t.selected||-1!==e.inArray(t.id,i)?(t.selected=!0,r.push(t)):t.selected=!1,t.children&&r.push.apply(r,n(t.children,i)),r}for(var r=[],a=0;a<this._currentData.length;a++){var o=this._currentData[a];r.push.apply(r,n(o,this.$element.val().split(this._valueSeparator)))}i(r)},t.prototype.select=function(t,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(i.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var i=this;t.selected=!1,this.current(function(e){for(var n=[],r=0;r<e.length;r++){var a=e[r];t.id!=a.id&&n.push(a.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("change")})},t.prototype.query=function(e,t,i){for(var n=[],r=0;r<this._currentData.length;r++){var a=this._currentData[r],o=this.matches(t,a);null!==o&&n.push(o)}i({results:n})},t.prototype.addOptions=function(t,i){var n=e.map(i,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,n)},t}),t.define("select2/compat/matcher",["jquery"],function(e){function t(t){function i(i,n){var r=e.extend(!0,{},n);if(null==i.term||""===e.trim(i.term))return r;if(n.children){for(var a=n.children.length-1;a>=0;a--){var o=n.children[a],s=t(i.term,o.text,o);s||r.children.splice(a,1)}if(r.children.length>0)return r}return t(i.term,n.text,n)?r:null}return i}return t}),t.define("select2/compat/query",[],function(){function e(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.callback=i;var n=this.options.get("query");n.call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,i){e.call(this,t,i)}return e.prototype.position=function(e,t,i){var n=i.find(".dropdown-wrapper");n.append(t),t.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(n.join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(n.join(" "),function(e){e.stopPropagation()})},e}),function(i){"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(e)}(function(e){function t(t){var o=t||window.event,s=l.call(arguments,1),u=0,d=0,h=0,p=0,f=0,m=0;if(t=e.event.fix(o),t.type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),u=0===h?d:h,"deltaY"in o&&(h=-1*o.deltaY,u=h),"deltaX"in o&&(d=o.deltaX,0===h&&(u=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");u*=g,h*=g,d*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");u*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!a||a>p)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,d/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/a),d=Math[d>=1?"floor":"ceil"](d/a),h=Math[h>=1?"floor":"ceil"](h/a),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=h,t.deltaFactor=a,t.offsetX=f,t.offsetY=m,t.deltaMode=0,s.unshift(t,u,d,h),r&&clearTimeout(r),r=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function i(){a=null}function n(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var u=o.length;u;)e.event.fixHooks[o[--u]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,i,n){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var n=e.extend(!0,{},t);new i(e(this),n)}),this;if("string"==typeof t){var n;return this.each(function(){var i=e(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");var r=Array.prototype.slice.call(arguments,1);n=i[t].apply(i,r)}),e.inArray(t,r)>-1?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i}),jQuery(document).ready(function(){jQuery(document).on("click",".um-popup-overlay",function(){remove_Modal()}),jQuery(document).on("click",'.um-modal-overlay, a[data-action="um_remove_modal"]',function(){um_remove_modal()}),jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"], .um-modal a',function(e){return e.preventDefault(),!1}),jQuery(document).on("click",".um-modal .um-single-file-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-modal-body"),i=jQuery(this).parents(".um-modal-body").find(".um-single-fileinfo a").attr("href");return t.find(".um-single-file-preview").hide(),t.find(".ajax-upload-dragdrop").show(),t.find(".um-modal-btn.um-finish-upload").addClass("disabled"),um_modal_responsive(),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um-modal .um-single-image-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-modal-body"),i=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview img").attr("src");return jQuery("img.cropper-hidden").cropper("destroy"),t.find(".um-single-image-preview img").attr("src",""),t.find(".um-single-image-preview").hide(),t.find(".ajax-upload-dragdrop").show(),t.find(".um-modal-btn.um-finish-upload").addClass("disabled"),um_modal_responsive(),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um-finish-upload.file",function(){var e=jQuery(this).attr("data-key"),t=jQuery(this).parents(".um-modal-body").find(".um-single-file-preview").html();um_remove_modal(),jQuery(".um-single-file-preview[data-key="+e+"]").fadeIn().html(t),jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find(".um-btn-auto-width").html(jQuery(this).attr("data-change")),jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find("input[type=hidden]").val(jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find(".um-single-fileinfo a").attr("href"))}),jQuery(document).on("click",".um-finish-upload.image",function(){var e=jQuery(this),t=jQuery(this).attr("data-key"),i=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview"),n=i.find("img").attr("src"),r=i.attr("data-coord");if(jQuery(this).parents("#um_upload_single").attr("data-user_id"))var a=jQuery(this).parents("#um_upload_single").attr("data-user_id");else var a=0;r?(jQuery(this).html(jQuery(this).attr("data-processing")).addClass("disabled"),jQuery.ajax({url:um_scripts.ajaxurl,type:"POST",data:{action:"ultimatemember_resize_image",src:n,coord:r,user_id:a,key:t},success:function(i){d=new Date,"profile_photo"==t&&jQuery(".um-profile-photo-img img").attr("src",i+"?"+d.getTime()),"cover_photo"==t&&(jQuery(".um-cover-e").empty().html('<img src="'+i+"?"+d.getTime()+'" alt="" />'),jQuery(".um").hasClass("um-editing")&&jQuery(".um-cover-overlay").show()),jQuery(".um-single-image-preview[data-key="+t+"]").fadeIn().find("img").attr("src",i+"?"+d.getTime()),um_remove_modal(),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find(".um-btn-auto-width").html(e.attr("data-change")),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find("input[type=hidden]").val(i)}})):(d=new Date,jQuery(".um-single-image-preview[data-key="+t+"]").fadeIn().find("img").attr("src",n+"?"+d.getTime()),um_remove_modal(),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find(".um-btn-auto-width").html(e.attr("data-change")),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find("input[type=hidden]").val(n))}),jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"]',function(e){var t=jQuery(this).attr("data-modal");if(jQuery(this).data("modal-size"))var i=jQuery(this).data("modal-size");else var i="normal";jQuery(this).data("modal-copy")?(jQuery("#"+t).html(jQuery(this).parents(".um-field").find(".um-modal-hidden-content").html()),jQuery(this).parents(".um-profile-photo").attr("data-user_id")&&jQuery("#"+t).attr("data-user_id",jQuery(this).parents(".um-profile-photo").attr("data-user_id")),jQuery(this).parents(".um-cover").attr("data-ratio")&&jQuery("#"+t).attr("data-ratio",jQuery(this).parents(".um-cover").attr("data-ratio")),jQuery(this).parents(".um-cover").attr("data-user_id")&&jQuery("#"+t).attr("data-user_id",jQuery(this).parents(".um-cover").attr("data-user_id")),um_new_modal(t,i)):um_new_modal(t,i)})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(i))}function i(t){var i=t.target,n=e(i);if(!n.is("[type=submit],[type=image]")){var r=n.closest("[type=submit]");if(0===r.length)return;i=r[0]}var a=this;if(a.clk=i,"image"==i.type)if(void 0!==t.offsetX)a.clk_x=t.offsetX,a.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=n.offset();a.clk_x=t.pageX-o.left,a.clk_y=t.pageY-o.top}else a.clk_x=t.pageX-i.offsetLeft,a.clk_y=t.pageY-i.offsetTop;setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},100)}function n(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var r={};r.fileapi=void 0!==e("<input type='file'/>").get(0).files,r.formdata=void 0!==window.FormData;var a=!!e.fn.prop;e.fn.attr2=function(){if(!a)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function i(i){var n,r,a=e.param(i,t.traditional).split("&"),o=a.length,s=[];for(n=0;n<o;n++)a[n]=a[n].replace(/\+/g," "),r=a[n].split("="),s.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return s}function o(n){for(var r=new FormData,a=0;a<n.length;a++)r.append(n[a].name,n[a].value);
4
- if(t.extraData){var o=i(t.extraData);for(a=0;a<o.length;a++)o[a]&&r.append(o[a][0],o[a][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});t.uploadProgress&&(s.xhr=function(){var i=e.ajaxSettings.xhr();return i.upload&&i.upload.addEventListener("progress",function(e){var i=0,n=e.loaded||e.position,r=e.total;e.lengthComputable&&(i=Math.ceil(n/r*100)),t.uploadProgress(e,n,r,i)},!1),i}),s.data=null;var u=s.beforeSend;return s.beforeSend=function(e,i){t.formData?i.data=t.formData:i.data=r,u&&u.call(this,e,i)},e.ajax(s)}function s(i){function r(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){n("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){n("cannot get iframe.contentDocument: "+i),t=e.document}return t}function o(){function t(){try{var e=r(v).readyState;n("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(e){n("Server abort: ",e," (",e.name,")"),s(k),x&&clearTimeout(x),x=void 0}}var i=d.attr2("target"),a=d.attr2("action"),o="multipart/form-data",u=d.attr("enctype")||d.attr("encoding")||o;j.setAttribute("target",f),l&&!/post/i.test(l)||j.setAttribute("method","POST"),a!=h.url&&j.setAttribute("action",h.url),h.skipEncodingOverride||l&&!/post/i.test(l)||d.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(x=setTimeout(function(){_=!0,s(S)},h.timeout));var c=[];try{if(h.extraData)for(var p in h.extraData)h.extraData.hasOwnProperty(p)&&(e.isPlainObject(h.extraData[p])&&h.extraData[p].hasOwnProperty("name")&&h.extraData[p].hasOwnProperty("value")?c.push(e('<input type="hidden" name="'+h.extraData[p].name+'">').val(h.extraData[p].value).appendTo(j)[0]):c.push(e('<input type="hidden" name="'+p+'">').val(h.extraData[p]).appendTo(j)[0]));h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(t,15);try{j.submit()}catch(e){var m=document.createElement("form").submit;m.apply(j)}}finally{j.setAttribute("action",a),j.setAttribute("enctype",u),i?j.setAttribute("target",i):d.removeAttr("target"),e(c).remove()}}function s(t){if(!y.aborted&&!O){if(Q=r(v),Q||(n("cannot access response document"),t=k),t===S&&y)return y.abort("timeout"),void C.reject(y,"timeout");if(t==k&&y)return y.abort("server abort"),void C.reject(y,"error","server abort");if(Q&&Q.location.href!=h.iframeSrc||_){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var i,a="success";try{if(_)throw"timeout";var o="xml"==h.dataType||Q.XMLDocument||e.isXMLDoc(Q);if(n("isXml="+o),!o&&window.opera&&(null===Q.body||!Q.body.innerHTML)&&--A)return n("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var l=Q.body?Q.body:Q.documentElement;y.responseText=l?l.innerHTML:null,y.responseXML=Q.XMLDocument?Q.XMLDocument:Q,o&&(h.dataType="xml"),y.getResponseHeader=function(e){var t={"content-type":h.dataType};return t[e.toLowerCase()]},l&&(y.status=Number(l.getAttribute("status"))||y.status,y.statusText=l.getAttribute("statusText")||y.statusText);var u=(h.dataType||"").toLowerCase(),c=/(json|script|text)/.test(u);if(c||h.textarea){var d=Q.getElementsByTagName("textarea")[0];if(d)y.responseText=d.value,y.status=Number(d.getAttribute("status"))||y.status,y.statusText=d.getAttribute("statusText")||y.statusText;else if(c){var f=Q.getElementsByTagName("pre")[0],m=Q.getElementsByTagName("body")[0];f?y.responseText=f.textContent?f.textContent:f.innerText:m&&(y.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==u&&!y.responseXML&&y.responseText&&(y.responseXML=M(y.responseText));try{T=I(y,u,h)}catch(e){a="parsererror",y.error=i=e||a}}catch(e){n("error caught: ",e),a="error",y.error=i=e||a}y.aborted&&(n("upload aborted"),a=null),y.status&&(a=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===a?(h.success&&h.success.call(h.context,T,"success",y),C.resolve(y.responseText,"success",y),p&&e.event.trigger("ajaxSuccess",[y,h])):a&&(void 0===i&&(i=y.statusText),h.error&&h.error.call(h.context,y,a,i),C.reject(y,"error",i),p&&e.event.trigger("ajaxError",[y,h,i])),p&&e.event.trigger("ajaxComplete",[y,h]),p&&!--e.active&&e.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,y,a),O=!0,h.timeout&&clearTimeout(x),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),y.responseXML=null},100)}}}var u,c,h,p,f,g,v,y,b,w,_,x,j=d[0],C=e.Deferred();if(C.abort=function(e){y.abort(e)},i)for(c=0;c<m.length;c++)u=e(m[c]),a?u.prop("disabled",!1):u.removeAttr("disabled");if(h=e.extend(!0,{},e.ajaxSettings,t),h.context=h.context||h,f="jqFormIO"+(new Date).getTime(),h.iframeTarget?(g=e(h.iframeTarget),w=g.attr2("name"),w?f=w:g.attr2("name",f)):(g=e('<iframe name="'+f+'" src="'+h.iframeSrc+'" />'),g.css({position:"absolute",top:"-1000px",left:"-1000px"})),v=g[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var i="timeout"===t?"timeout":"aborted";n("aborting upload... "+i),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}g.attr("src",h.iframeSrc),y.error=i,h.error&&h.error.call(h.context,y,i,t),p&&e.event.trigger("ajaxError",[y,h,i]),h.complete&&h.complete.call(h.context,y,i)}},p=h.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[y,h]),h.beforeSend&&h.beforeSend.call(h.context,y,h)===!1)return h.global&&e.active--,C.reject(),C;if(y.aborted)return C.reject(),C;b=j.clk,b&&(w=b.name,w&&!b.disabled&&(h.extraData=h.extraData||{},h.extraData[w]=b.value,"image"==b.type&&(h.extraData[w+".x"]=j.clk_x,h.extraData[w+".y"]=j.clk_y)));var S=1,k=2,$=e("meta[name=csrf-token]").attr("content"),D=e("meta[name=csrf-param]").attr("content");D&&$&&(h.extraData=h.extraData||{},h.extraData[D]=$),h.forceSync?o():setTimeout(o,10);var T,Q,O,A=50,M=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},E=e.parseJSON||function(e){return window.eval("("+e+")")},I=function(t,i,n){var r=t.getResponseHeader("content-type")||"",a="xml"===i||!i&&r.indexOf("xml")>=0,o=a?t.responseXML:t.responseText;return a&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),n&&n.dataFilter&&(o=n.dataFilter(o,i)),"string"==typeof o&&("json"===i||!i&&r.indexOf("json")>=0?o=E(o):("script"===i||!i&&r.indexOf("javascript")>=0)&&e.globalEval(o)),o};return C}if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var l,u,c,d=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),l=t.type||this.attr2("method"),u=t.url||this.attr2("action"),c="string"==typeof u?e.trim(u):"",c=c||window.location.href||"",c&&(c=(c.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:c,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var h={};if(this.trigger("form-pre-serialize",[this,t,h]),h.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=t.traditional;void 0===p&&(p=e.ajaxSettings.traditional);var f,m=[],g=this.formToArray(t.semantic,m);if(t.data&&(t.extraData=t.data,f=e.param(t.data,p)),t.beforeSubmit&&t.beforeSubmit(g,this,t)===!1)return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[g,this,t,h]),h.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var v=e.param(g,p);f&&(v=v?v+"&"+f:f),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+v,t.data=null):t.data=v;var y=[];if(t.resetForm&&y.push(function(){d.resetForm()}),t.clearForm&&y.push(function(){d.clearForm(t.includeHidden)}),!t.dataType&&t.target){var b=t.success||function(){};y.push(function(i){var n=t.replaceTarget?"replaceWith":"html";e(t.target)[n](i).each(b,arguments)})}else t.success&&y.push(t.success);if(t.success=function(e,i,n){for(var r=t.context||this,a=0,o=y.length;a<o;a++)y[a].apply(r,[e,i,n||d,d])},t.error){var w=t.error;t.error=function(e,i,n){var r=t.context||this;w.apply(r,[e,i,n,d])}}if(t.complete){var _=t.complete;t.complete=function(e,i){var n=t.context||this;_.apply(n,[e,i,d])}}var x=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),j=x.length>0,C="multipart/form-data",S=d.attr("enctype")==C||d.attr("encoding")==C,k=r.fileapi&&r.formdata;n("fileAPI :"+k);var $,D=(j||S)&&!k;t.iframe!==!1&&(t.iframe||D)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){$=s(g)}):$=s(g):$=(j||S)&&k?o(g):e.ajax(t),d.removeData("jqxhr").data("jqxhr",$);for(var T=0;T<m.length;T++)m[T]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(r){if(r=r||{},r.delegation=r.delegation&&e.isFunction(e.fn.on),!r.delegation&&0===this.length){var a={s:this.selector,c:this.context};return!e.isReady&&a.s?(n("DOM not ready, queuing ajaxForm"),e(function(){e(a.s,a.c).ajaxForm(r)}),this):(n("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return r.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,r,t).on("click.form-plugin",this.selector,r,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",r,t).bind("click.form-plugin",r,i)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,i){var n=[];if(0===this.length)return n;var a,o=this[0],s=this.attr("id"),l=t?o.getElementsByTagName("*"):o.elements;if(l&&!/MSIE [678]/.test(navigator.userAgent)&&(l=e(l).get()),s&&(a=e(':input[form="'+s+'"]').get(),a.length&&(l=(l||[]).concat(a))),!l||!l.length)return n;var u,c,d,h,p,f,m;for(u=0,f=l.length;u<f;u++)if(p=l[u],d=p.name,d&&!p.disabled)if(t&&o.clk&&"image"==p.type)o.clk==p&&(n.push({name:d,value:e(p).val(),type:p.type}),n.push({name:d+".x",value:o.clk_x},{name:d+".y",value:o.clk_y}));else if(h=e.fieldValue(p,!0),h&&h.constructor==Array)for(i&&i.push(p),c=0,m=h.length;c<m;c++)n.push({name:d,value:h[c]});else if(r.fileapi&&"file"==p.type){i&&i.push(p);var g=p.files;if(g.length)for(c=0;c<g.length;c++)n.push({name:d,value:g[c],type:p.type});else n.push({name:d,value:"",type:p.type})}else null!==h&&"undefined"!=typeof h&&(i&&i.push(p),n.push({name:d,value:h,type:p.type,required:p.required}));if(!t&&o.clk){var v=e(o.clk),y=v[0];d=y.name,d&&!y.disabled&&"image"==y.type&&(n.push({name:d,value:v.val()}),n.push({name:d+".x",value:o.clk_x},{name:d+".y",value:o.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var n=this.name;if(n){var r=e.fieldValue(this,t);if(r&&r.constructor==Array)for(var a=0,o=r.length;a<o;a++)i.push({name:n,value:r[a]});else null!==r&&"undefined"!=typeof r&&i.push({name:this.name,value:r})}}),e.param(i)},e.fn.fieldValue=function(t){for(var i=[],n=0,r=this.length;n<r;n++){var a=this[n],o=e.fieldValue(a,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(i,o):i.push(o))}return i},e.fieldValue=function(t,i){var n=t.name,r=t.type,a=t.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!n||t.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!t.checked||("submit"==r||"image"==r)&&t.form&&t.form.clk!=t||"select"==a&&t.selectedIndex==-1))return null;if("select"==a){var o=t.selectedIndex;if(o<0)return null;for(var s=[],l=t.options,u="select-one"==r,c=u?o+1:l.length,d=u?o:0;d<c;d++){var h=l[d];if(h.selected){var p=h.value;if(p||(p=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),u)return p;s.push(p)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var n=this.type,r=this.tagName.toLowerCase();i.test(n)||"textarea"==r?this.value="":"checkbox"==n||"radio"==n?this.checked=!1:"select"==r?this.selectedIndex=-1:"file"==n?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(n)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=t;else if("option"==this.tagName.toLowerCase()){var n=e(this).parent("select");t&&n[0]&&"select-one"==n[0].type&&n.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}),function(e){void 0==e.fn.ajaxForm;var t={};t.fileapi=void 0!==e("<input type='file'/>").get(0).files,t.formdata=void 0!==window.FormData,e.fn.uploadFile=function(i){function n(){h.afterUploadAll&&!g&&(g=!0,function e(){0!=f.sCounter&&f.sCounter+f.fCounter==f.tCounter?(h.afterUploadAll(f),g=!1):window.setTimeout(e,100)}())}function r(t,i,n){n.on("dragenter",function(t){t.stopPropagation(),t.preventDefault(),e(this).css("border","2px dashed #ddd")}),n.on("dragover",function(e){e.stopPropagation(),e.preventDefault()}),n.on("drop",function(n){e(this).css("border","2px dashed #ddd"),n.preventDefault(),t.errorLog.html("");var r=n.originalEvent.dataTransfer.files;return!i.multiple&&r.length>1?void(i.showError&&e("<div class='um-error-block'>"+i.multiDragErrorStr+"</div>").appendTo(t.errorLog)):void(0!=i.onSelect(r)&&o(i,t,r))}),e(document).on("dragenter",function(e){e.stopPropagation(),e.preventDefault()}),e(document).on("dragover",function(e){e.stopPropagation(),e.preventDefault(),n.css("border","2px dashed #ddd")}),e(document).on("drop",function(e){e.stopPropagation(),e.preventDefault(),n.css("border","2px dashed #ddd")})}function a(t){var i=[];i="string"==jQuery.type(t)?t.split("&"):e.param(t).split("&");var n,r,a=i.length,o=[];for(n=0;n<a;n++)i[n]=i[n].replace(/\+/g," "),r=i[n].split("="),o.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return o}function o(t,i,n){for(var r=0;r<n.length;r++)if(s(i,t,n[r].name))if(t.maxFileSize!=-1&&n[r].size>t.maxFileSize)t.showError&&e("<div class='um-error-block'>"+t.sizeErrorStr+"</div>").appendTo(i.errorLog);else if(t.maxFileCount!=-1&&i.selectedFiles>=t.maxFileCount)t.showError&&e("<div class='um-error-block'>"+t.maxFileCountErrorStr+"</div>").appendTo(i.errorLog);else{i.selectedFiles++;var o=t,l=new FormData,u=t.fileName.replace("[]","");l.append(u,n[r]);var h=t.formData;if(h)for(var p=a(h),f=0;f<p.length;f++)p[f]&&l.append(p[f][0],p[f][1]);o.fileData=l;var m=new c(i,t),g="";g=t.showFileCounter?i.fileCounter+t.fileCounterStyle+n[r].name:n[r].name,m.filename.html(g);var v=e("<form style='display:block; position:absolute;left: 150px;' class='"+i.formGroup+"' method='"+t.method+"' action='"+t.url+"' enctype='"+t.enctype+"'></form>");v.appendTo("body");var y=[];y.push(n[r].name),d(v,o,m,y,i),i.fileCounter++}else t.showError&&e("<div class='um-error-block'>"+t.extErrorStr+"</div>").appendTo(i.errorLog)}function s(e,t,i){var n=t.allowedTypes.toLowerCase().split(","),r=i.split(".").pop().toLowerCase();return!("*"!=t.allowedTypes&&jQuery.inArray(r,n)<0)}function l(t,i){if(t.showFileCounter){var n=e(".upload-filename").length;i.fileCounter=n+1,e(".upload-filename").each(function(i,r){var a=e(this).html().split(t.fileCounterStyle),o=(parseInt(a[0])-1,n+t.fileCounterStyle+a[1]);e(this).html(o),n--})}}function u(i,n,r,a){var h="ajax-upload-id-"+(new Date).getTime(),p=e("<form method='"+r.method+"' action='"+r.url+"' enctype='"+r.enctype+"'></form>"),f="<input type='file' id='"+h+"' name='"+r.fileName+"'/>";r.multiple&&(r.fileName.indexOf("[]")!=r.fileName.length-2&&(r.fileName+="[]"),f="<input type='file' id='"+h+"' name='"+r.fileName+"' multiple/>");var m=e(f).appendTo(p);m.change(function(){i.errorLog.html("");var h=(r.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(y=0;y<this.files.length;y++)h.push(this.files[y].name);if(0==r.onSelect(this.files))return}else{var f=e(this).val(),m=[];if(h.push(f),!s(i,r,f))return void(r.showError&&e("<div class='um-error-block'>"+r.extErrorStr+"</div>").appendTo(i.errorLog));if(m.push({name:f,size:"NA"}),0==r.onSelect(m))return}if(l(r,i),a.unbind("click"),p.hide(),u(i,n,r,a),p.addClass(n),t.fileapi&&t.formdata){p.removeClass(n);var g=this.files;o(r,i,g)}else{for(var v="",y=0;y<h.length;y++)v+=r.showFileCounter?i.fileCounter+r.fileCounterStyle+h[y]+"<br>":h[y]+"<br>",i.fileCounter++;if(r.maxFileCount!=-1&&i.selectedFiles+h.length>r.maxFileCount)return void(r.showError&&e("<div class='um-error-block'>"+r.maxFileCountErrorStr+"</div>").appendTo(i.errorLog));i.selectedFiles+=h.length;var b=new c(i,r);b.filename.html(v),d(p,r,b,h,i)}}),p.css({margin:0,padding:0});var g=e(a).width()+10;10==g&&(g=120);var v=a.height()+10;10==v&&(v=35),a.css({position:"relative",overflow:"hidden",cursor:"default"}),m.css({position:"absolute",cursor:"pointer",top:"0px",width:"100%",height:"34px",left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"}),p.appendTo(a)}function c(t,i){return this.statusbar=e("<div class='upload-statusbar'></div>"),this.filename=e("<div class='upload-filename'></div>").appendTo(this.statusbar),this.progressDiv=e("<div class='upload-progress'>").appendTo(this.statusbar).hide(),this.progressbar=e("<div class='upload-bar "+t.formGroup+"'></div>").appendTo(this.progressDiv),this.abort=e("<div class='upload-red "+t.formGroup+"'>"+i.abortStr+"</div>").appendTo(this.statusbar).hide(),this.cancel=e("<div class='upload-red'>"+i.cancelStr+"</div>").appendTo(this.statusbar).hide(),this.done=e("<div class='upload-green'>"+i.doneStr+"</div>").appendTo(this.statusbar).hide(),this.del=e("<div class='upload-red'>"+i.deletelStr+"</div>").appendTo(this.statusbar).hide(),t.errorLog.after(this.statusbar),this}function d(e,i,r,o,s){var u={cache:!1,contentType:!1,processData:!1,forceSync:!1,data:i.formData,formData:i.fileData,dataType:i.returnType,beforeSubmit:function(t,l,u){if(0!=i.onSubmit.call(this,o)){var c=i.dynamicFormData();if(c){var d=a(c);if(d)for(var h=0;h<d.length;h++)d[h]&&(void 0!=i.fileData?u.formData.append(d[h][0],d[h][1]):u.data[d[h][0]]=d[h][1])}return s.tCounter+=o.length,n(),!0}return r.statusbar.append("<div class='um-error-block'>"+i.uploadErrorStr+"</div>"),r.cancel.show(),e.remove(),r.cancel.click(function(){r.statusbar.remove()}),!1},beforeSend:function(e,n){r.progressDiv.show(),r.cancel.hide(),r.done.hide(),i.showAbort&&(r.abort.show(),r.abort.click(function(){e.abort(),s.selectedFiles-=o.length})),t.formdata?r.progressbar.width("1%"):r.progressbar.width("5%")},uploadProgress:function(e,t,n,a){a>98&&(a=98);var o=a+"%";a>1&&r.progressbar.width(o),i.showProgress&&(r.progressbar.html(o),r.progressbar.css("text-align","center"))},success:function(t,n,a){s.responses.push(t),r.progressbar.width("100%"),i.showProgress&&(r.progressbar.html("100%"),r.progressbar.css("text-align","center")),r.abort.hide(),i.onSuccess.call(this,o,t,a),i.showStatusAfterSuccess?(i.showDone?(r.done.show(),r.done.click(function(){r.statusbar.hide("slow"),r.statusbar.remove()})):r.done.hide(),i.showDelete?(r.del.show(),r.del.click(function(){r.statusbar.hide().remove(),i.deleteCallback&&i.deleteCallback.call(this,t,r),s.selectedFiles-=o.length,l(i,s)})):r.del.hide()):(r.statusbar.hide("slow"),r.statusbar.remove()),e.remove(),s.sCounter+=o.length},error:function(t,n,a){r.abort.hide(),"abort"==t.statusText?(r.statusbar.hide("slow").remove(),l(i,s)):(i.onError.call(this,o,n,a),i.showStatusAfterError?(r.progressDiv.hide(),r.statusbar.append("<span class='um-error-block'>ERROR: "+a+"</span>")):(r.statusbar.hide(),r.statusbar.remove()),s.selectedFiles-=o.length),e.remove(),s.fCounter+=o.length}};i.autoSubmit?e.ajaxSubmit(u):(i.showCancel&&(r.cancel.show(),r.cancel.click(function(){e.remove(),r.statusbar.remove(),s.selectedFiles-=o.length,l(i,s)})),e.ajaxForm(u))}var h=e.extend({url:"",method:"POST",enctype:"multipart/form-data",formData:null,returnType:null,allowedTypes:"*",fileName:"file",formData:{},dynamicFormData:function(){return{}},maxFileSize:-1,maxFileCount:-1,multiple:!0,dragDrop:!0,autoSubmit:!0,showCancel:!0,showAbort:!0,showDone:!0,showDelete:!1,showError:!0,showStatusAfterSuccess:!0,showStatusAfterError:!0,showFileCounter:!0,fileCounterStyle:"). ",showProgress:!1,onSelect:function(e){return!0},onSubmit:function(e,t){},onSuccess:function(e,t,i){},onError:function(e,t,i){},deleteCallback:!1,afterUploadAll:!1,uploadButtonClass:"upload",dragDropStr:"",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag &amp; Drop is not allowed.",extErrorStr:"",sizeErrorStr:"",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:""},i);this.fileCounter=1,this.selectedFiles=0,this.fCounter=0,this.sCounter=0,this.tCounter=0;var p="upload-"+(new Date).getTime();this.formGroup=p,this.hide(),this.errorLog=e("<div></div>"),this.after(this.errorLog),this.responses=[],t.formdata||(h.dragDrop=!1),t.formdata||(h.multiple=!1);var f=this,m=e("<div>"+e(this).html()+"</div>");e(m).addClass(h.uploadButtonClass),function t(){if(e.fn.ajaxForm){if(h.dragDrop){var i=e('<div class="ajax-upload-dragdrop" style="vertical-align:top;"></div>');e(f).before(i),e(i).append(m),e(i).prepend(e(h.dragDropStr)),r(f,h,i)}else e(f).before(m);u(f,p,h,m)}else window.setTimeout(t,10)}(),this.startUpload=function(){e("."+this.formGroup).each(function(t,i){e(this).is("form")&&e(this).submit()})},this.stopUpload=function(){e(".upload-red").each(function(t,i){e(this).hasClass(f.formGroup)&&e(this).click()})},this.getResponses=function(){return this.responses};var g=!1;return this}}(jQuery),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(e){function t(a,o,l,h){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",$.component.nodes(x.open),C.box),C.wrap),C.frame),C.holder,'tabindex="-1"')}function f(){S.data(o,$).addClass(C.input).val(S.data("value")?$.get("select",j.format):a.value),j.editable||S.on("focus."+x.id+" click."+x.id,function(e){e.preventDefault(),$.open()}).on("keydown."+x.id,w),r(a,{haspopup:!0,expanded:!1,readonly:!1,owns:a.id+"_root"})}function m(){r($.$root[0],"hidden",!0)}function g(){$.$holder.on({keydown:w,"focus.toOpen":b,blur:function(){S.removeClass(C.target)},focusin:function(e){$.$root.removeClass(C.focused),e.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=$.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(i).is("input, select, textarea, button, option")||(t.preventDefault(),$.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),i=t.data(),n=t.hasClass(C.navDisabled)||t.hasClass(C.disabled),r=s();r=r&&(r.type||r.href),(n||r&&!e.contains($.$root[0],r))&&$.$holder[0].focus(),!n&&i.nav?$.set("highlight",$.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?($.set("select",i.pick),j.closeOnSelect&&$.close(!0)):i.clear?($.clear(),j.closeOnClear&&$.close(!0)):i.close&&$.close(!0)})}function v(){var t;j.hiddenName===!0?(t=a.name,a.name=""):(t=["string"==typeof j.hiddenPrefix?j.hiddenPrefix:"","string"==typeof j.hiddenSuffix?j.hiddenSuffix:"_submit"],t=t[0]+a.name+t[1]),$._hidden=e('<input type=hidden name="'+t+'"'+(S.data("value")||a.value?' value="'+$.get("select",j.formatSubmit)+'"':"")+">")[0],S.on("change."+x.id,function(){$._hidden.value=a.value?$.get("select",j.formatSubmit):""})}function y(){_&&d?$.$holder.find("."+C.frame).one("transitionend",function(){$.$holder[0].focus()}):$.$holder[0].focus()}function b(e){e.stopPropagation(),S.addClass(C.target),$.$root.addClass(C.focused),$.open()}function w(e){var t=e.keyCode,i=/^(8|46)$/.test(t);return 27==t?($.close(!0),!1):void((32==t||i||!x.open&&$.component.key[t])&&(e.preventDefault(),e.stopPropagation(),i?$.clear().close():$.open()))}if(!a)return t;var _=!1,x={id:a.id||"P"+Math.abs(~~(Math.random()*new Date))},j=l?e.extend(!0,{},l.defaults,h):h||{},C=e.extend({},t.klasses(),j.klass),S=e(a),k=function(){return this.start()},$=k.prototype={constructor:k,$node:S,start:function(){return x&&x.start?$:(x.methods={},x.start=!0,x.open=!1,x.type=a.type,a.autofocus=a==s(),a.readOnly=!j.editable,a.id=a.id||x.id,"text"!=a.type&&(a.type="text"),$.component=new l($,j),$.$root=e('<div class="'+C.picker+'" id="'+a.id+'_root" />'),m(),$.$holder=e(p()).appendTo($.$root),g(),j.formatSubmit&&v(),f(),j.containerHidden?e(j.containerHidden).append($._hidden):S.after($._hidden),j.container?e(j.container).append($.$root):S.after($.$root),$.on({start:$.component.onStart,render:$.component.onRender,stop:$.component.onStop,open:$.component.onOpen,close:$.component.onClose,set:$.component.onSet}).on({start:j.onStart,render:j.onRender,stop:j.onStop,open:j.onOpen,close:j.onClose,set:j.onSet}),_=i($.$holder[0]),a.autofocus&&$.open(),$.trigger("start").trigger("render"))},render:function(t){return t?($.$holder=e(p()),g(),$.$root.html($.$holder)):$.$root.find("."+C.box).html($.component.nodes(x.open)),$.trigger("render")},stop:function(){return x.start?($.close(),$._hidden&&$._hidden.parentNode.removeChild($._hidden),$.$root.remove(),S.removeClass(C.input).removeData(o),setTimeout(function(){S.off("."+x.id)},0),a.type=x.type,a.readOnly=!1,$.trigger("stop"),x.methods={},x.start=!1,$):$},open:function(i){return x.open?$:(S.addClass(C.active),r(a,"expanded",!0),setTimeout(function(){$.$root.addClass(C.opened),r($.$root[0],"hidden",!1)},0),i!==!1&&(x.open=!0,_&&c.css("overflow","hidden").css("padding-right","+="+n()),y(),u.on("click."+x.id+" focusin."+x.id,function(e){var t=e.target;t!=a&&t!=document&&3!=e.which&&$.close(t===$.$holder[0])}).on("keydown."+x.id,function(i){var n=i.keyCode,r=$.component.key[n],a=i.target;27==n?$.close(!0):a!=$.$holder[0]||!r&&13!=n?e.contains($.$root[0],a)&&13==n&&(i.preventDefault(),a.click()):(i.preventDefault(),r?t._.trigger($.component.key.go,$,[t._.trigger(r)]):$.$root.find("."+C.highlighted).hasClass(C.disabled)||($.set("select",$.component.item.highlight),j.closeOnSelect&&$.close(!0)))})),$.trigger("open"))},close:function(e){return e&&(j.editable?a.focus():($.$holder.off("focus.toOpen").focus(),setTimeout(function(){$.$holder.on("focus.toOpen",b)},0))),S.removeClass(C.active),r(a,"expanded",!1),setTimeout(function(){$.$root.removeClass(C.opened+" "+C.focused),r($.$root[0],"hidden",!0)},0),x.open?(x.open=!1,_&&c.css("overflow","").css("padding-right","-="+n()),u.off("."+x.id),$.trigger("close")):$},clear:function(e){return $.set("clear",null,e)},set:function(t,i,n){var r,a,o=e.isPlainObject(t),s=o?t:{};if(n=o&&e.isPlainObject(i)?i:n||{},t){o||(s[t]=i);for(r in s)a=s[r],r in $.component.item&&(void 0===a&&(a=null),$.component.set(r,a,n)),"select"!=r&&"clear"!=r||S.val("clear"==r?"":$.get(r,j.format)).trigger("change");$.render()}return n.muted?$:$.trigger("set",s)},get:function(e,i){if(e=e||"value",null!=x[e])return x[e];if("valueSubmit"==e){if($._hidden)return $._hidden.value;e="value"}if("value"==e)return a.value;if(e in $.component.item){if("string"==typeof i){var n=$.component.get(e);return n?t._.trigger($.component.formats.toString,$.component,[i,n]):""}return $.component.get(e)}},on:function(t,i,n){var r,a,o=e.isPlainObject(t),s=o?t:{};if(t){o||(s[t]=i);for(r in s)a=s[r],n&&(r="_"+r),x.methods[r]=x.methods[r]||[],x.methods[r].push(a)}return $},off:function(){var e,t,i=arguments;for(e=0,namesCount=i.length;e<namesCount;e+=1)t=i[e],t in x.methods&&delete x.methods[t];return $},trigger:function(e,i){var n=function(e){var n=x.methods[e];n&&n.map(function(e){t._.trigger(e,$,[i])})};return n("_"+e),n(e),$}};return new k}function i(e){var t,i="position";return e.currentStyle?t=e.currentStyle[i]:window.getComputedStyle&&(t=getComputedStyle(e)[i]),"fixed"==t}function n(){if(c.height()<=l.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth;t.css("overflow","scroll");var n=e('<div style="width:100%" />').appendTo(t),r=n[0].offsetWidth;return t.remove(),i-r}function r(t,i,n){if(e.isPlainObject(i))for(var r in i)a(t,r,i[r]);else a(t,i,n)}function a(e,t,i){e.setAttribute(("role"==t?"":"aria-")+t,i)}function o(t,i){e.isPlainObject(t)||(t={attribute:i}),i="";for(var n in t){var r=("role"==n?"":"aria-")+n,a=t[n];i+=null==a?"":r+'="'+t[n]+'"'}return i}function s(){try{return document.activeElement}catch(e){}}var l=e(window),u=e(document),c=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var i,n="",r=t._.trigger(e.min,e);r<=t._.trigger(e.max,e,[r]);r+=e.i)i=t._.trigger(e.item,e,[r]),n+=t._.node(e.node,i[0],i[1],i[2]);return n},node:function(t,i,n,r){return i?(i=e.isArray(i)?i.join(""):i,n=n?' class="'+n+'"':"",r=r?" "+r:"","<"+t+n+r+">"+i+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,i){return"function"==typeof e?e.apply(t,i||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1===0},ariaAttr:o},t.extend=function(i,n){e.fn[i]=function(r,a){var o=this.data(i);return"picker"==r?o:o&&"string"==typeof r?t._.trigger(o[r],o,[a]):this.each(function(){var a=e(this);a.data(i)||new t(this,i,n,r)})},e.fn[i].defaults=n.defaults},t}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function i(e,t){var i=this,n=e.$node[0],r=n.value,a=e.$node.data("value"),o=a||r,s=a?t.formatSubmit:t.format,l=function(){return n.currentStyle?"rtl"==n.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-function(e){return e[0]===!0?e.shift():-1}(i.item.disable),i.set("min",t.min).set("max",t.max).set("now"),o?i.set("select",o,{format:s,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(e.set("highlight",[e.get("view").year,i,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(e.set("highlight",[i,e.get("view").month,e.get("highlight").date]),
5
- e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var n=7,r=6,a=e._;i.prototype.set=function(e,t,i){var n=this,r=n.item;return null===t?("clear"==e&&(e="select"),r[e]=t,n):(r["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(r){return t=n[r](e,t,i)}).pop(),"select"==e?n.set("highlight",r.select,i):"highlight"==e?n.set("view",r.highlight,i):e.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&n.disabled(r.select)&&n.set("select",r.select,i),r.highlight&&n.disabled(r.highlight)&&n.set("highlight",r.highlight,i)),n)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,i,n){var r,o=this;return i=void 0===i?e:i,i==-(1/0)||i==1/0?r=i:t.isPlainObject(i)&&a.isInteger(i.pick)?i=i.obj:t.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=a.isDate(i)?i:o.create().obj):i=a.isInteger(i)||a.isDate(i)?o.normalize(new Date(i),n):o.now(e,i,n),{year:r||i.getFullYear(),month:r||i.getMonth(),date:r||i.getDate(),day:r||i.getDay(),obj:r||i,pick:r||i.getTime()}},i.prototype.createRange=function(e,i){var n=this,r=function(e){return e===!0||t.isArray(e)||a.isDate(e)?n.create(e):e};return a.isInteger(e)||(e=r(e)),a.isInteger(i)||(i=r(i)),a.isInteger(e)&&t.isPlainObject(i)?e=[i.year,i.month,i.date+e]:a.isInteger(i)&&t.isPlainObject(e)&&(i=[e.year,e.month,e.date+i]),{from:r(e),to:r(i)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)},i.prototype.navigate=function(e,i,n){var r,a,o,s,l=t.isArray(i),u=t.isPlainObject(i),c=this.item.view;if(l||u){for(u?(a=i.year,o=i.month,s=i.date):(a=+i[0],o=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==o&&(a=c.year,o=c.month),r=new Date(a,o+(n&&n.nav?n.nav:0),1),a=r.getFullYear(),o=r.getMonth();new Date(a,o,s).getMonth()!==o;)s-=1;i=[a,o,s]}return i},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){var i=this;return t?"string"==typeof t?t=i.parse(e,t):a.isInteger(t)&&(t=i.now(e,t,{rel:t})):t="min"==e?-(1/0):1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,i,n){var r,o,s,l,u=this,c=i,d=n&&n.interval?n.interval:1,h=u.item.enable===-1,p=u.item.min,f=u.item.max,m=h&&u.item.disable.filter(function(e){if(t.isArray(e)){var n=u.create(e).pick;n<i.pick?r=!0:n>i.pick&&(o=!0)}return a.isInteger(e)}).length;if((!n||!n.nav&&!n.defaultValue)&&(!h&&u.disabled(i)||h&&u.disabled(i)&&(m||r||o)||!h&&(i.pick<=p.pick||i.pick>=f.pick)))for(h&&!m&&(!o&&d>0||!r&&d<0)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=p.pick?(s=!0,d=1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=f.pick&&(l=!0,d=-1,i=u.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(e){var i=this,n=i.item.disable.filter(function(n){return a.isInteger(n)?e.day===(i.settings.firstDay?n:n-1)%7:t.isArray(n)||a.isDate(n)?e.pick===i.create(n).pick:t.isPlainObject(n)?i.withinRange(n,e):void 0});return n=n.length&&!n.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,i.item.enable===-1?!n:n||e.pick<i.item.min.pick||e.pick>i.item.max.pick},i.prototype.parse=function(e,t,i){var n=this,r={};return t&&"string"==typeof t?(i&&i.format||(i=i||{},i.format=n.settings.format),n.formats.toArray(i.format).map(function(e){var i=n.formats[e],o=i?a.trigger(i,n,[t,r]):e.replace(/^!/,"").length;i&&(r[e]=t.substr(0,o)),t=t.substr(o)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},i.prototype.formats=function(){function e(e,t,i){var n=e.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(n)+1),n.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?a.digits(e):t.date},dd:function(e,t){return e?2:a.lead(t.date)},ddd:function(e,i){return e?t(e):this.settings.weekdaysShort[i.day]},dddd:function(e,i){return e?t(e):this.settings.weekdaysFull[i.day]},m:function(e,t){return e?a.digits(e):t.month+1},mm:function(e,t){return e?2:a.lead(t.month+1)},mmm:function(t,i){var n=this.settings.monthsShort;return t?e(t,n,i):n[i.month]},mmmm:function(t,i){var n=this.settings.monthsFull;return t?e(t,n,i):n[i.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return a.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(e,i){var n=this;return a.isInteger(e)&&a.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(a.isDate(e)||t.isArray(e))&&(a.isDate(i)||t.isArray(i))?n.create(e).pick===n.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&(n.isDateExact(e.from,i.from)&&n.isDateExact(e.to,i.to))},i.prototype.isDateOverlap=function(e,i){var n=this,r=n.settings.firstDay?1:0;return a.isInteger(e)&&(a.isDate(i)||t.isArray(i))?(e=e%7+r,e===n.create(i).day+1):a.isInteger(i)&&(a.isDate(e)||t.isArray(e))?(i=i%7+r,i===n.create(e).day+1):!(!t.isPlainObject(e)||!t.isPlainObject(i))&&n.overlapRanges(e,i)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(t.enable==-1?1:-1)},i.prototype.deactivate=function(e,i){var n=this,r=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),r=[]):i===!0?(n.flipEnable(-1),r=[]):i.map(function(e){for(var i,o=0;o<r.length;o+=1)if(n.isDateExact(e,r[o])){i=!0;break}i||(a.isInteger(e)||a.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,i){var n=this,r=n.item.disable,o=r.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),r=[]):i===!1?(n.flipEnable(-1),r=[]):i.map(function(e){var i,s,l,u;for(l=0;l<o;l+=1){if(s=r[l],n.isDateExact(s,e)){i=r[l]=null,u=!0;break}if(n.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,i=e):t.isArray(e)?(i=e,i[3]||i.push("inverted")):a.isDate(e)&&(i=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(i)for(l=0;l<o;l+=1)if(n.isDateExact(r[l],e)){r[l]=null;break}if(u)for(l=0;l<o;l+=1)if(n.isDateOverlap(r[l],e)){r[l]=null;break}i&&r.push(i)}),r.filter(function(e){return null!=e})},i.prototype.nodes=function(e){var t=this,i=t.settings,o=t.item,s=o.now,l=o.select,u=o.highlight,c=o.view,d=o.disable,h=o.min,p=o.max,f=function(e,t){return i.firstDay&&(e.push(e.shift()),t.push(t.shift())),a.node("thead",a.node("tr",a.group({min:0,max:n-1,i:1,node:"th",item:function(n){return[e[n],i.klass.weekdays,'scope=col title="'+t[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysShort).slice(0),i.weekdaysFull.slice(0)),m=function(e){return a.node("div"," ",i.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=p.year&&c.month>=p.month||!e&&c.year<=h.year&&c.month<=h.month?" "+i.klass.navDisabled:""),"data-nav="+(e||-1)+" "+a.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?i.labelMonthNext:i.labelMonthPrev)+'"')},g=function(){var n=i.showMonthsShort?i.monthsShort:i.monthsFull;return i.selectMonths?a.node("select",a.group({min:0,max:11,i:1,node:"option",item:function(e){return[n[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==h.year&&e<h.month||c.year==p.year&&e>p.month?" disabled":"")]}}),i.klass.selectMonth,(e?"":"disabled")+" "+a.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):a.node("div",n[c.month],i.klass.month)},v=function(){var n=c.year,r=i.selectYears===!0?5:~~(i.selectYears/2);if(r){var o=h.year,s=p.year,l=n-r,u=n+r;if(o>l&&(u+=o-l,l=o),s<u){var d=l-o,f=u-s;l-=d>f?f:d,u=s}return a.node("select",a.group({min:l,max:u,i:1,node:"option",item:function(e){return[e,0,"value="+e+(n==e?" selected":"")]}}),i.klass.selectYear,(e?"":"disabled")+" "+a.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return a.node("div",n,i.klass.year)};return a.node("div",(i.selectYears?v()+g():g()+v())+m()+m(1),i.klass.header)+a.node("table",f+a.node("tbody",a.group({min:0,max:r-1,i:1,node:"tr",item:function(e){var r=i.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[a.group({min:n*e-c.day+r+1,max:function(){return this.min+n-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(i.firstDay?1:0)]);var n=l&&l.pick==e.pick,r=u&&u.pick==e.pick,o=d&&t.disabled(e)||e.pick<h.pick||e.pick>p.pick,f=a.trigger(t.formats.toString,t,[i.format,e]);return[a.node("div",e.date,function(t){return t.push(c.month==e.month?i.klass.infocus:i.klass.outfocus),s.pick==e.pick&&t.push(i.klass.now),n&&t.push(i.klass.selected),r&&t.push(i.klass.highlighted),o&&t.push(i.klass.disabled),t.join(" ")}([i.klass.day]),"data-pick="+e.pick+" "+a.ariaAttr({role:"gridcell",label:f,selected:!(!n||t.$node.val()!==f)||null,activedescendant:!!r||null,disabled:!!o||null})),"",a.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+t.$node[0].id+'_table" '+a.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+a.node("div",a.node("button",i.today,i.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!t.disabled(s)?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id}))+a.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id}))+a.node("button",i.close,i.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id})),i.klass.footer)},i.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",i)}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function i(e,t){var i=this,n=e.$node[0].value,r=e.$node.data("value"),a=r||n,o=r?t.formatSubmit:t.format;i.settings=t,i.$node=e.$node,i.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.interval=t.interval||30,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-function(e){return e[0]===!0?e.shift():-1}(i.item.disable),i.set("min",t.min).set("max",t.max).set("now"),a?i.set("select",a,{format:o}):i.set("select",null).set("highlight",i.item.now),i.key={40:1,38:-1,39:1,37:-1,go:function(e){i.set("highlight",i.item.highlight.pick+e*i.item.interval,{interval:e*i.item.interval}),this.render()}},e.on("render",function(){var i=e.$root.children(),n=i.find("."+t.klass.viewset),r=function(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})},a=function(e,t){r("transform").map(function(i){e.css(i,t)}),r("transition").map(function(i){e.css(i,t)})};n.length&&(a(i,"none"),i[0].scrollTop=~~n.position().top-2*n[0].clientHeight,a(i,""))},1).on("open",function(){e.$root.find("button").attr("disabled",!1)},1).on("close",function(){e.$root.find("button").attr("disabled",!0)},1)}var n=24,r=60,a=12,o=n*r,s=e._;i.prototype.set=function(e,t,i){var n=this,r=n.item;return null===t?("clear"==e&&(e="select"),r[e]=t,n):(r["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(r){return t=n[r](e,t,i)}).pop(),"select"==e?n.set("highlight",r.select,i):"highlight"==e?n.set("view",r.highlight,i):"interval"==e?n.set("min",r.min,i).set("max",r.max,i):e.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&n.disabled(r.select)&&n.set("select",t,i),r.highlight&&n.disabled(r.highlight)&&n.set("highlight",t,i),"min"==e&&n.set("max",r.max,i)),n)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,i,a){var l=this;return i=void 0===i?e:i,s.isDate(i)&&(i=[i.getHours(),i.getMinutes()]),t.isPlainObject(i)&&s.isInteger(i.pick)?i=i.pick:t.isArray(i)?i=+i[0]*r+ +i[1]:s.isInteger(i)||(i=l.now(e,i,a)),"max"==e&&i<l.item.min.pick&&(i+=o),"min"!=e&&"max"!=e&&(i-l.item.min.pick)%l.item.interval!==0&&(i+=l.item.interval),i=l.normalize(e,i,a),{hour:~~(n+i/r)%n,mins:(r+i%r)%r,time:(o+i)%o,pick:i%o}},i.prototype.createRange=function(e,i){var n=this,r=function(e){return e===!0||t.isArray(e)||s.isDate(e)?n.create(e):e};return s.isInteger(e)||(e=r(e)),s.isInteger(i)||(i=r(i)),s.isInteger(e)&&t.isPlainObject(i)?e=[i.hour,i.mins+e*n.settings.interval]:s.isInteger(i)&&t.isPlainObject(e)&&(i=[e.hour,e.mins+i*n.settings.interval]),{from:r(e),to:r(i)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t){var i,n=this.item.interval,a=new Date,o=a.getHours()*r+a.getMinutes(),l=s.isInteger(t);return o-=o%n,i=t<0&&n*t+o<=-n,o+="min"==e&&i?0:n,l&&(o+=n*(i&&"max"!=e?t+1:t)),o},i.prototype.normalize=function(e,t){var i=this.item.interval,n=this.item.min&&this.item.min.pick||0;return t-="min"==e?0:(t-n)%i},i.prototype.measure=function(e,i,a){var o=this;return i||(i="min"==e?[0,0]:[n-1,r-1]),"string"==typeof i?i=o.parse(e,i):i===!0||s.isInteger(i)?i=o.now(e,i,a):t.isPlainObject(i)&&s.isInteger(i.pick)&&(i=o.normalize(e,i.pick,a)),i},i.prototype.validate=function(e,t,i){var n=this,r=i&&i.interval?i.interval:n.item.interval;return n.disabled(t)&&(t=n.shift(t,r)),t=n.scope(t),n.disabled(t)&&(t=n.shift(t,r*-1)),t},i.prototype.disabled=function(e){var i=this,n=i.item.disable.filter(function(n){return s.isInteger(n)?e.hour==n:t.isArray(n)||s.isDate(n)?e.pick==i.create(n).pick:t.isPlainObject(n)?i.withinRange(n,e):void 0});return n=n.length&&!n.filter(function(e){return t.isArray(e)&&"inverted"==e[2]||t.isPlainObject(e)&&e.inverted}).length,i.item.enable===-1?!n:n||e.pick<i.item.min.pick||e.pick>i.item.max.pick},i.prototype.shift=function(e,t){var i=this,n=i.item.min.pick,r=i.item.max.pick;for(t=t||i.item.interval;i.disabled(e)&&(e=i.create(e.pick+=t),!(e.pick<=n||e.pick>=r)););return e},i.prototype.scope=function(e){var t=this.item.min.pick,i=this.item.max.pick;return this.create(e.pick>i?i:e.pick<t?t:e)},i.prototype.parse=function(e,t,i){var n,a,o,l,u,c=this,d={};if(!t||"string"!=typeof t)return t;i&&i.format||(i=i||{},i.format=c.settings.format),c.formats.toArray(i.format).map(function(e){var i,n=c.formats[e],r=n?s.trigger(n,c,[t,d]):e.replace(/^!/,"").length;n&&(i=t.substr(0,r),d[e]=i.match(/^\d+$/)?+i:i),t=t.substr(r)});for(l in d)u=d[l],s.isInteger(u)?l.match(/^(h|hh)$/i)?(n=u,"h"!=l&&"hh"!=l||(n%=12)):"i"==l&&(a=u):l.match(/^a$/i)&&u.match(/^p/i)&&("h"in d||"hh"in d)&&(o=!0);return(o?n+12:n)*r+a},i.prototype.formats={h:function(e,t){return e?s.digits(e):t.hour%a||a},hh:function(e,t){return e?2:s.lead(t.hour%a||a)},H:function(e,t){return e?s.digits(e):""+t.hour%24},HH:function(e,t){return e?s.digits(e):s.lead(t.hour%24)},i:function(e,t){return e?2:s.lead(t.mins)},a:function(e,t){return e?4:o/2>t.time%o?"a.m.":"p.m."},A:function(e,t){return e?2:o/2>t.time%o?"AM":"PM"},toArray:function(e){return e.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return s.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}},i.prototype.isTimeExact=function(e,i){var n=this;return s.isInteger(e)&&s.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(s.isDate(e)||t.isArray(e))&&(s.isDate(i)||t.isArray(i))?n.create(e).pick===n.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&(n.isTimeExact(e.from,i.from)&&n.isTimeExact(e.to,i.to))},i.prototype.isTimeOverlap=function(e,i){var n=this;return s.isInteger(e)&&(s.isDate(i)||t.isArray(i))?e===n.create(i).hour:s.isInteger(i)&&(s.isDate(e)||t.isArray(e))?i===n.create(e).hour:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&n.overlapRanges(e,i)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(t.enable==-1?1:-1)},i.prototype.deactivate=function(e,i){var n=this,r=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),r=[]):i===!0?(n.flipEnable(-1),r=[]):i.map(function(e){for(var i,a=0;a<r.length;a+=1)if(n.isTimeExact(e,r[a])){i=!0;break}i||(s.isInteger(e)||s.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,i){var n=this,r=n.item.disable,a=r.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),r=[]):i===!1?(n.flipEnable(-1),r=[]):i.map(function(e){var i,o,l,u;for(l=0;l<a;l+=1){if(o=r[l],n.isTimeExact(o,e)){i=r[l]=null,u=!0;break}if(n.isTimeOverlap(o,e)){t.isPlainObject(e)?(e.inverted=!0,i=e):t.isArray(e)?(i=e,i[2]||i.push("inverted")):s.isDate(e)&&(i=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(i)for(l=0;l<a;l+=1)if(n.isTimeExact(r[l],e)){r[l]=null;break}if(u)for(l=0;l<a;l+=1)if(n.isTimeOverlap(r[l],e)){r[l]=null;break}i&&r.push(i)}),r.filter(function(e){return null!=e})},i.prototype.i=function(e,t){return s.isInteger(t)&&t>0?t:this.item.interval},i.prototype.nodes=function(e){var t=this,i=t.settings,n=t.item.select,r=t.item.highlight,a=t.item.view,o=t.item.disable;return s.node("ul",s.group({min:t.item.min.pick,max:t.item.max.pick,i:t.item.interval,node:"li",item:function(e){e=t.create(e);var l=e.pick,u=n&&n.pick==l,c=r&&r.pick==l,d=o&&t.disabled(e),h=s.trigger(t.formats.toString,t,[i.format,e]);return[s.trigger(t.formats.toString,t,[s.trigger(i.formatLabel,t,[e])||i.format,e]),function(e){return u&&e.push(i.klass.selected),c&&e.push(i.klass.highlighted),a&&a.pick==l&&e.push(i.klass.viewset),d&&e.push(i.klass.disabled),e.join(" ")}([i.klass.listItem]),"data-pick="+e.pick+" "+s.ariaAttr({role:"option",label:h,selected:!(!u||t.$node.val()!==h)||null,activedescendant:!!c||null,disabled:!!d||null})]}})+s.node("li",s.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+s.ariaAttr({controls:t.$node[0].id})),"",s.ariaAttr({role:"presentation"})),i.klass.list,s.ariaAttr({role:"listbox",controls:t.$node[0].id}))},i.defaults=function(e){return{clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:e+" "+e+"--time",holder:e+"__holder",list:e+"__list",listItem:e+"__list-item",disabled:e+"__list-item--disabled",selected:e+"__list-item--selected",highlighted:e+"__list-item--highlighted",viewset:e+"__list-item--viewset",now:e+"__list-item--now",buttonClear:e+"__button--clear"}}}(e.klasses().picker),e.extend("pickatime",i)}),[].map||(Array.prototype.map=function(e,t){for(var i=this,n=i.length,r=new Array(n),a=0;a<n;a++)a in i&&(r[a]=e.call(t,i[a],a,i));return r}),[].filter||(Array.prototype.filter=function(e){if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=[],r=arguments[1],a=0;a<i;a++)if(a in t){var o=t[a];e.call(r,o,a,t)&&n.push(o)}return n}),[].indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>1&&(n=Number(arguments[1]),n!=n?n=0:0!==n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var r=n>=0?n:Math.max(i-Math.abs(n),0);r<i;r++)if(r in t&&t[r]===e)return r;return-1});var nativeSplit=String.prototype.split,compliantExecNpcg=void 0===/()??/.exec("")[1];String.prototype.split=function(e,t){var i=this;if("[object RegExp]"!==Object.prototype.toString.call(e))return nativeSplit.call(i,e,t);var n,r,a,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),u=0;for(e=new RegExp(e.source,l+"g"),i+="",compliantExecNpcg||(n=new RegExp("^"+e.source+"$(?!\\s)",l)),t=void 0===t?-1>>>0:t>>>0;(r=e.exec(i))&&(a=r.index+r[0].length,!(a>u&&(s.push(i.slice(u,r.index)),!compliantExecNpcg&&r.length>1&&r[0].replace(n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}),r.length>1&&r.index<i.length&&Array.prototype.push.apply(s,r.slice(1)),o=r[0].length,u=a,s.length>=t)));)e.lastIndex===r.index&&e.lastIndex++;return u===i.length?!o&&e.test("")||s.push(""):s.push(i.slice(u)),s.length>t?s.slice(0,t):s},function(e){"use strict";var t={init:function(i){return this.each(function(){this.self=e(this),t.destroy.call(this.self),this.opt=e.extend(!0,{},e.fn.raty.defaults,i),t._adjustCallback.call(this),t._adjustNumber.call(this),"img"!==this.opt.starType&&t._adjustStarType.call(this),t._adjustPath.call(this),t._createStars.call(this),this.opt.cancel&&t._createCancel.call(this),this.opt.precision&&t._adjustPrecision.call(this),t._createScore.call(this),t._apply.call(this,this.opt.score),t._target.call(this,this.opt.score),this.opt.readOnly?t._lock.call(this):(this.style.cursor="pointer",t._binds.call(this)),this.self.data("options",this.opt)})},_adjustCallback:function(){for(var e=["number","readOnly","score","scoreName","target"],t=0;t<e.length;t++)"function"==typeof this.opt[e[t]]&&(this.opt[e[t]]=this.opt[e[t]].call(this))},_adjustNumber:function(){this.opt.number=t._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.charAt(this.opt.path.length-1)&&(this.opt.path+="/")},_adjustPrecision:function(){this.opt.half=!0,this.opt.targetType="score"},_adjustStarType:function(){this.opt.path="";for(var e=["cancelOff","cancelOn","starHalf","starOff","starOn"],t=0;t<e.length;t++)this.opt[e[t]]=this.opt[e[t]].replace(".","-")},_apply:function(e){t._fill.call(this,e),e&&(e>0&&this.score.val(t._between(e,0,this.opt.number)),t._roundStars.call(this,e))},_between:function(e,t,i){return Math.min(Math.max(parseFloat(e),t),i)},_binds:function(){this.cancel&&(t._bindOverCancel.call(this),t._bindClickCancel.call(this),t._bindOutCancel.call(this)),t._bindOver.call(this),t._bindClick.call(this),t._bindOut.call(this)},_bindClick:function(){var t=this;t.stars.on("click.raty",function(i){var n=e(this);t.score.val(t.opt.half||t.opt.precision?t.self.data("score"):this.alt||n.data("alt")),t.opt.click&&t.opt.click.call(t,+t.score.val(),i)})},_bindClickCancel:function(){var e=this;e.cancel.on("click.raty",function(t){e.score.removeAttr("value"),e.opt.click&&e.opt.click.call(e,null,t)})},_bindOut:function(){var e=this;e.self.on("mouseleave.raty",function(i){var n=+e.score.val()||void 0;t._apply.call(e,n),t._target.call(e,n,i),e.opt.mouseout&&e.opt.mouseout.call(e,n,i)})},_bindOutCancel:function(){var e=this;e.cancel.on("mouseleave.raty",function(i){var n=e.opt.cancelOff;if("img"!==e.opt.starType&&(n=e.opt.cancelClass+" "+n),t._setIcon.call(e,this,n),e.opt.mouseout){var r=+e.score.val()||void 0;e.opt.mouseout.call(e,r,i)}})},_bindOver:function(){var e=this,i=e.opt.half?"mousemove.raty":"mouseover.raty";e.stars.on(i,function(i){var n=t._getScoreByPosition.call(e,i,this);t._fill.call(e,n),e.opt.half&&(t._roundStars.call(e,n),e.self.data("score",n)),t._target.call(e,n,i),e.opt.mouseover&&e.opt.mouseover.call(e,n,i)})},_bindOverCancel:function(){var e=this;e.cancel.on("mouseover.raty",function(i){var n=e.opt.path+e.opt.starOff,r=e.opt.cancelOn;"img"===e.opt.starType?e.stars.attr("src",n):(r=e.opt.cancelClass+" "+r,e.stars.attr("class",n)),t._setIcon.call(e,this,r),t._target.call(e,null,i),e.opt.mouseover&&e.opt.mouseover.call(e,null)})},_buildScoreField:function(){return e("<input />",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var t=this.opt.path+this.opt.cancelOff,i=e("<"+this.opt.starType+" />",{title:this.opt.cancelHint,class:this.opt.cancelClass});"img"===this.opt.starType?i.attr({src:t,alt:"x"}):i.attr("data-alt","x").addClass(t),"left"===this.opt.cancelPlace?this.self.prepend("&#160;").prepend(i):this.self.append("&#160;").append(i),this.cancel=i},_createScore:function(){var i=e(this.opt.targetScore);this.score=i.length?i:t._buildScoreField.call(this)},_createStars:function(){for(var i=1;i<=this.opt.number;i++){var n=t._nameForIndex.call(this,i),r={alt:i,src:this.opt.path+this.opt[n]};"img"!==this.opt.starType&&(r={"data-alt":i,class:r.src}),r.title=t._getHint.call(this,i),e("<"+this.opt.starType+" />",r).appendTo(this),this.opt.space&&this.self.append(i<this.opt.number?"&#160;":"")}this.stars=this.self.children(this.opt.starType)},_error:function(t){e(this).text(t),e.error(t)},_fill:function(e){for(var i=0,n=1;n<=this.stars.length;n++){var r,a=this.stars[n-1],o=t._turnOn.call(this,n,e);if(this.opt.iconRange&&this.opt.iconRange.length>i){var s=this.opt.iconRange[i];r=t._getRangeIcon.call(this,s,o),n<=s.range&&t._setIcon.call(this,a,r),n===s.range&&i++}else r=this.opt[o?"starOn":"starOff"],t._setIcon.call(this,a,r)}},_getRangeIcon:function(e,t){return t?e.on||this.opt.starOn:e.off||this.opt.starOff},_getScoreByPosition:function(i,n){var r=parseInt(n.alt||n.getAttribute("data-alt"),10);if(this.opt.half){var a=t._getSize.call(this),o=parseFloat((i.pageX-e(n).offset().left)/a);r=this.opt.precision?r-1+o:r-1+(o>.5?1:.5)}return r},_getSize:function(){var e;return e="img"===this.opt.starType?this.stars[0].width:parseFloat(this.stars.eq(0).css("font-size")),e||t._error.call(this,"Could not be possible get the icon size!"),e},_turnOn:function(e,t){return this.opt.single?e===t:e<=t},_getHint:function(e){var t=this.opt.hints[e-1];return""===t?"":t||e},_lock:function(){var e=parseInt(this.score.val(),10),i=e?t._getHint.call(this,e):this.opt.noRatedMsg;this.style.cursor="",this.title=i,this.score.prop("readonly",!0),this.stars.prop("title",i),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_nameForIndex:function(e){return this.opt.score&&this.opt.score>=e?"starOn":"starOff"},_roundStars:function(e){var i=(e%1).toFixed(2);if(i>this.opt.round.down){var n="starOn";this.opt.halfShow&&i<this.opt.round.up?n="starHalf":i<this.opt.round.full&&(n="starOff");var r=this.opt[n],a=this.stars[Math.ceil(e)-1];t._setIcon.call(this,a,r)}},_setIcon:function(e,t){e["img"===this.opt.starType?"src":"className"]=this.opt.path+t},_setTarget:function(e,t){t&&(t=this.opt.targetFormat.toString().replace("{score}",t)),e.is(":input")?e.val(t):e.html(t)},_target:function(i,n){if(this.opt.target){var r=e(this.opt.target);r.length||t._error.call(this,"Target selector invalid or missing!");var a=n&&"mouseover"===n.type;if(void 0===i)i=this.opt.targetText;else if(null===i)i=a?this.opt.cancelHint:this.opt.targetText;else{"hint"===this.opt.targetType?i=t._getHint.call(this,Math.ceil(i)):this.opt.precision&&(i=parseFloat(i).toFixed(1));var o=n&&"mousemove"===n.type;a||o||this.opt.targetKeep||(i=this.opt.targetText)}t._setTarget.call(this,r,i)}},_unlock:function(){this.style.cursor="pointer",this.removeAttribute("title"),this.score.removeAttr("readonly"),this.self.data("readonly",!1);for(var e=0;e<this.opt.number;e++)this.stars[e].title=t._getHint.call(this,e+1);this.cancel&&this.cancel.css("display","")},cancel:function(i){return this.each(function(){var n=e(this);n.data("readonly")!==!0&&(t[i?"click":"score"].call(n,null),this.score.removeAttr("value"))})},click:function(i){return this.each(function(){e(this).data("readonly")!==!0&&(t._apply.call(this,i),this.opt.click&&this.opt.click.call(this,i,e.Event("click")),t._target.call(this,i))})},destroy:function(){return this.each(function(){var t=e(this),i=t.data("raw");i?t.off(".raty").empty().css({cursor:i.style.cursor}).removeData("readonly"):t.data("raw",t.clone()[0])})},getScore:function(){var e,t=[];return this.each(function(){e=this.score.val(),t.push(e?+e:void 0)}),t.length>1?t:t[0]},move:function(i){return this.each(function(){var n=parseInt(i,10),r=e(this).data("options"),a=(+i).toFixed(1).split(".")[1];n>=r.number&&(n=r.number-1,a=10);var o=t._getSize.call(this),s=o/10,l=e(this.stars[n]),u=l.offset().left+s*parseInt(a,10),c=e.Event("mousemove",{pageX:u});l.trigger(c)})},readOnly:function(i){return this.each(function(){var n=e(this);n.data("readonly")!==i&&(i?(n.off(".raty").children("img").off(".raty"),t._lock.call(this)):(t._binds.call(this),t._unlock.call(this)),n.data("readonly",i))})},reload:function(){return t.set.call(this,{})},score:function(){var i=e(this);return arguments.length?t.setScore.apply(i,arguments):t.getScore.call(i)},set:function(t){return this.each(function(){var i=e(this),n=i.data("options"),r=e.extend({},n,t);i.raty(r)})},setScore:function(i){return this.each(function(){e(this).data("readonly")!==!0&&(t._apply.call(this,i),t._target.call(this,i))})}};e.fn.raty=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist!"):t.init.apply(this,arguments)},e.fn.raty.defaults={cancel:!1,cancelClass:"raty-cancel",cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var n=e.scrollTo=function(t,i,n){return e(window).scrollTo(t,i,n)};return n.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,a,o){"object"==typeof a&&(o=a,a=0),"function"==typeof o&&(o={onAfter:o}),"max"===r&&(r=9e9),o=e.extend({},n.defaults,o),a=a||o.duration;var s=o.queue&&o.axis.length>1;return s&&(a/=2),o.offset=i(o.offset),o.over=i(o.over),this.each(function(){function l(t){var i=e.extend({},o,{queue:!0,duration:a,complete:t&&function(){t.call(d,p,o)}});h.animate(f,i)}if(null!==r){var u,c=t(this),d=c?this.contentWindow||window:this,h=e(d),p=r,f={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=i(p);break}if(p=c?e(p):e(p,d),!p.length)return;case"object":(p.is||p.style)&&(u=(p=e(p)).offset());
6
- }var m=e.isFunction(o.offset)&&o.offset(d,p)||o.offset;e.each(o.axis.split(""),function(e,t){var i="x"===t?"Left":"Top",r=i.toLowerCase(),a="scroll"+i,g=h[a](),v=n.max(d,t);if(u)f[a]=u[r]+(c?0:g-h.offset()[r]),o.margin&&(f[a]-=parseInt(p.css("margin"+i),10)||0,f[a]-=parseInt(p.css("border"+i+"Width"),10)||0),f[a]+=m[r]||0,o.over[r]&&(f[a]+=p["x"===t?"width":"height"]()*o.over[r]);else{var y=p[r];f[a]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}o.limit&&/^\d+$/.test(f[a])&&(f[a]=f[a]<=0?0:Math.min(f[a],v)),!e&&o.axis.length>1&&(g===f[a]?f={}:s&&(l(o.onAfterFirst),f={}))}),l(o.onAfter)}})},n.max=function(i,n){var r="x"===n?"Width":"Height",a="scroll"+r;if(!t(i))return i[a]-e(i)[r.toLowerCase()]();var o="client"+r,s=i.ownerDocument||i.document,l=s.documentElement,u=s.body;return Math.max(l[a],u[a])-Math.min(l[o],u[o])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var i=this.get(t);if(t.options.interrupt&&t._last&&t._last!==i)return e(t.elem).stop();var n=Math.round(t.now);i!==n&&(e(t.elem)[t.prop](n),t._last=this.get(t))}},n}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var o=t||window.event,s=l.call(arguments,1),u=0,d=0,h=0,p=0,f=0,m=0;if(t=e.event.fix(o),t.type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),u=0===h?d:h,"deltaY"in o&&(h=-1*o.deltaY,u=h),"deltaX"in o&&(d=o.deltaX,0===h&&(u=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");u*=g,h*=g,d*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");u*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!a||a>p)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,d/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/a),d=Math[d>=1?"floor":"ceil"](d/a),h=Math[h>=1?"floor":"ceil"](h/a),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=h,t.deltaFactor=a,t.offsetX=f,t.offsetY=m,t.deltaMode=0,s.unshift(t,u,d,h),r&&clearTimeout(r),r=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function i(){a=null}function n(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var u=o.length;u;)e.event.fixHooks[o[--u]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var i="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,r="https:"==document.location.protocol?"https:":"http:",a="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";i||(n?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+r+"//"+a+"%3E%3C/script%3E"))),t()}(function(){var t,i="mCustomScrollbar",n="mCS",r=".mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},o=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,u=!1,c=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(t){var t=e.extend(!0,{},a,t),i=h.call(this);if(t.live){var l=t.liveSelector||this.selector||r,u=e(l);if("off"===t.live)return void f(l);s[l]=setTimeout(function(){u.mCustomScrollbar(t),"once"===t.live&&u.length&&f(l)},500)}else f(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":m(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),p(t),e(i).each(function(){var i=e(this);if(!i.data(n)){i.data(n,{idx:++o,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:i.css("direction"),cbOffsets:null,trigger:null});var r=i.data(n),a=r.opt,s=i.data("mcs-axis"),l=i.data("mcs-scrollbar-position"),u=i.data("mcs-theme");s&&(a.axis=s),l&&(a.scrollbarPosition=l),u&&(a.theme=u,p(a)),v.call(this),e("#mCSB_"+r.idx+"_container img:not(."+c[2]+")").addClass(c[2]),d.update.call(null,i)}})},update:function(t,i){var r=t||h.call(this);return e(r).each(function(){var t=e(this);if(t.data(n)){var r=t.data(n),a=r.opt,o=e("#mCSB_"+r.idx+"_container"),s=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")];if(!o.length)return;r.tweenRunning&&Y(t),t.hasClass(c[3])&&t.removeClass(c[3]),t.hasClass(c[4])&&t.removeClass(c[4]),_.call(this),b.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||o.css("width",y(o.children())),r.overflowed=S.call(this),T.call(this),a.autoDraggerLength&&x.call(this),j.call(this),$.call(this);var l=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)];"x"!==a.axis&&(r.overflowed[0]?s[0].height()>s[0].parent().height()?k.call(this):(X(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),r.contentReset.y=null):(k.call(this),"y"===a.axis?D.call(this):"yx"===a.axis&&r.overflowed[1]&&X(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(r.overflowed[1]?s[1].width()>s[1].parent().width()?k.call(this):(X(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),r.contentReset.x=null):(k.call(this),"x"===a.axis?D.call(this):"yx"===a.axis&&r.overflowed[0]&&X(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),i&&r&&(2===i&&a.callbacks.onImageLoad&&"function"==typeof a.callbacks.onImageLoad?a.callbacks.onImageLoad.call(this):3===i&&a.callbacks.onSelectorChange&&"function"==typeof a.callbacks.onSelectorChange?a.callbacks.onSelectorChange.call(this):a.callbacks.onUpdate&&"function"==typeof a.callbacks.onUpdate&&a.callbacks.onUpdate.call(this)),U.call(this)}})},scrollTo:function(t,i){if("undefined"!=typeof t&&null!=t){var r=h.call(this);return e(r).each(function(){var r=e(this);if(r.data(n)){var a=r.data(n),o=a.opt,s={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},s,i),u=F.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;u[0]=W.call(this,u[0],"y"),u[1]=W.call(this,u[1],"x"),l.moveDragger&&(u[0]*=a.scrollRatio.y,u[1]*=a.scrollRatio.x),l.dur=c,setTimeout(function(){null!==u[0]&&"undefined"!=typeof u[0]&&"x"!==o.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",X(r,u[0].toString(),l)),null!==u[1]&&"undefined"!=typeof u[1]&&"y"!==o.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",X(r,u[1].toString(),l))},l.timeout)}})}},stop:function(){var t=h.call(this);return e(t).each(function(){var t=e(this);t.data(n)&&Y(t)})},disable:function(t){var i=h.call(this);return e(i).each(function(){var i=e(this);i.data(n)&&(i.data(n),U.call(this,"remove"),D.call(this),t&&k.call(this),T.call(this,!0),i.addClass(c[3]))})},destroy:function(){var t=h.call(this);return e(t).each(function(){var r=e(this);if(r.data(n)){var a=r.data(n),o=a.opt,s=e("#mCSB_"+a.idx),l=e("#mCSB_"+a.idx+"_container"),u=e(".mCSB_"+a.idx+"_scrollbar");o.live&&f(o.liveSelector||e(t).selector),U.call(this,"remove"),D.call(this),k.call(this),r.removeData(n),Z(this,"mcs"),u.remove(),l.find("img."+c[2]).removeClass(c[2]),s.replaceWith(l.contents()),r.removeClass(i+" _"+n+"_"+a.idx+" "+c[6]+" "+c[7]+" "+c[5]+" "+c[3]).addClass(c[4])}})}},h=function(){return"object"!=typeof e(this)||e(this).length<1?r:this},p=function(t){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],n=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],r=["minimal","minimal-dark"],a=["minimal","minimal-dark"],o=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,i)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,n)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,r)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,a)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,o)>-1?"outside":t.scrollbarPosition},f=function(e){s[e]&&(clearTimeout(s[e]),Z(s,e))},m=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),r=t.data(n),a=r.opt,o=a.autoExpandScrollbar?" "+c[1]+"_expand":"",s=["<div id='mCSB_"+r.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+r.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_vertical"+o+"'><div class='"+c[12]+"'><div id='mCSB_"+r.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+r.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+r.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_horizontal"+o+"'><div class='"+c[12]+"'><div id='mCSB_"+r.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===a.axis?"mCSB_vertical_horizontal":"x"===a.axis?"mCSB_horizontal":"mCSB_vertical",u="yx"===a.axis?s[0]+s[1]:"x"===a.axis?s[1]:s[0],d="yx"===a.axis?"<div id='mCSB_"+r.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",h=a.autoHideScrollbar?" "+c[6]:"",p="x"!==a.axis&&"rtl"===r.langDir?" "+c[7]:"";a.setWidth&&t.css("width",a.setWidth),a.setHeight&&t.css("height",a.setHeight),a.setLeft="y"!==a.axis&&"rtl"===r.langDir?"989999px":a.setLeft,t.addClass(i+" _"+n+"_"+r.idx+h+p).wrapInner("<div id='mCSB_"+r.idx+"' class='mCustomScrollBox mCS-"+a.theme+" "+l+"'><div id='mCSB_"+r.idx+"_container' class='mCSB_container' style='position:relative; top:"+a.setTop+"; left:"+a.setLeft+";' dir="+r.langDir+" /></div>");var f=e("#mCSB_"+r.idx),m=e("#mCSB_"+r.idx+"_container");"y"===a.axis||a.advanced.autoExpandHorizontalScroll||m.css("width",y(m.children())),"outside"===a.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),f.addClass("mCSB_outside").after(u)):(f.addClass("mCSB_inside").append(u),m.wrap(d)),w.call(this);var g=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(t){return Math.max.apply(Math,t.map(function(){return e(this).outerWidth(!0)}).get())},b=function(){var t=e(this),i=t.data(n),r=i.opt,a=e("#mCSB_"+i.idx+"_container");r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis&&a.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(a[0].getBoundingClientRect().right+.4)-Math.floor(a[0].getBoundingClientRect().left),position:"relative"}).unwrap()},w=function(){var t=e(this),i=t.data(n),r=i.opt,a=e(".mCSB_"+i.idx+"_scrollbar:first"),o=te(r.scrollButtons.tabindex)?"tabindex='"+r.scrollButtons.tabindex+"'":"",s=["<a href='#' class='"+c[13]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[14]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[15]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[16]+"' oncontextmenu='return false;' "+o+" />"],l=["x"===r.axis?s[2]:s[0],"x"===r.axis?s[3]:s[1],s[2],s[3]];r.scrollButtons.enable&&a.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},_=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=t.css("max-height")||"none",o=-1!==a.indexOf("%"),s=t.css("box-sizing");if("none"!==a){var l=o?t.parent().height()*parseInt(a)/100:parseInt(a);"border-box"===s&&(l-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),r.css("max-height",Math.round(l))}},x=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")],s=[r.height()/a.outerHeight(!1),r.width()/a.outerWidth(!1)],u=[parseInt(o[0].css("min-height")),Math.round(s[0]*o[0].parent().height()),parseInt(o[1].css("min-width")),Math.round(s[1]*o[1].parent().width())],c=l&&u[1]<u[0]?u[0]:u[1],d=l&&u[3]<u[2]?u[2]:u[3];o[0].css({height:c,"max-height":o[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":u[0]+"px"}),o[1].css({width:d,"max-width":o[1].parent().width()-10})},j=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")],s=[a.outerHeight(!1)-r.height(),a.outerWidth(!1)-r.width()],l=[s[0]/(o[0].parent().height()-o[0].height()),s[1]/(o[1].parent().width()-o[1].width())];i.scrollRatio={y:l[0],x:l[1]}},C=function(e,t,i){var n=i?c[0]+"_expanded":"",r=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(c[0]+" "+n),r.toggleClass(c[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(c[0]),r.removeClass(c[1])):(e.addClass(c[0]),r.addClass(c[1])))},S=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=null==i.overflowed?a.height():a.outerHeight(!1),s=null==i.overflowed?a.width():a.outerWidth(!1);return[o>r.height(),s>r.width()]},k=function(){var t=e(this),i=t.data(n),r=i.opt,a=e("#mCSB_"+i.idx),o=e("#mCSB_"+i.idx+"_container"),s=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")];if(Y(t),("x"!==r.axis&&!i.overflowed[0]||"y"===r.axis&&i.overflowed[0])&&(s[0].add(o).css("top",0),X(t,"_resetY")),"y"!==r.axis&&!i.overflowed[1]||"x"===r.axis&&i.overflowed[1]){var l=dx=0;"rtl"===i.langDir&&(l=a.width()-o.outerWidth(!1),dx=Math.abs(l/i.scrollRatio.x)),o.css("left",l),s[1].css("left",dx),X(t,"_resetX")}},$=function(){function t(){o=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(o),E.call(i[0])):t()},100)}var i=e(this),r=i.data(n),a=r.opt;if(!r.bindEvents){if(O.call(this),a.contentTouchScroll&&A.call(this),M.call(this),a.mouseWheel.enable){var o;t()}L.call(this),H.call(this),a.advanced.autoScrollOnFocus&&R.call(this),a.scrollButtons.enable&&B.call(this),a.keyboard.enable&&z.call(this),r.bindEvents=!0}},D=function(){var t=e(this),i=t.data(n),r=i.opt,a=n+"_"+i.idx,o=".mCSB_"+i.idx+"_scrollbar",s=e("#mCSB_"+i.idx+",#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,"+o+" ."+c[12]+",#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal,"+o+">a"),l=e("#mCSB_"+i.idx+"_container");r.advanced.releaseDraggableSelectors&&s.add(e(r.advanced.releaseDraggableSelectors)),i.bindEvents&&(e(document).unbind("."+a),s.each(function(){e(this).unbind("."+a)}),clearTimeout(t[0]._focusTimeout),Z(t[0],"_focusTimeout"),clearTimeout(i.sequential.step),Z(i.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),Z(l[0],"onCompleteTimeout"),i.bindEvents=!1)},T=function(t){var i=e(this),r=i.data(n),a=r.opt,o=e("#mCSB_"+r.idx+"_container_wrapper"),s=o.length?o:e("#mCSB_"+r.idx+"_container"),l=[e("#mCSB_"+r.idx+"_scrollbar_vertical"),e("#mCSB_"+r.idx+"_scrollbar_horizontal")],u=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==a.axis&&(r.overflowed[0]&&!t?(l[0].add(u[0]).add(l[0].children("a")).css("display","block"),s.removeClass(c[8]+" "+c[10])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&u[0].css("display","none"),s.removeClass(c[10])):(l[0].css("display","none"),s.addClass(c[10])),s.addClass(c[8]))),"y"!==a.axis&&(r.overflowed[1]&&!t?(l[1].add(u[1]).add(l[1].children("a")).css("display","block"),s.removeClass(c[9]+" "+c[11])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&u[1].css("display","none"),s.removeClass(c[11])):(l[1].css("display","none"),s.addClass(c[11])),s.addClass(c[9]))),r.overflowed[0]||r.overflowed[1]?i.removeClass(c[5]):i.addClass(c[5])},Q=function(e){var t=e.type;switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return e.target.ownerDocument!==document?[e.originalEvent.screenY,e.originalEvent.screenX,!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[i.screenY,i.screenX,n>1]:[i.pageY,i.pageX,n>1];default:return[e.pageY,e.pageX,!1]}},O=function(){function t(e){var t=f.find("iframe");if(t.length){var i=e?"auto":"none";t.css("pointer-events",i)}}function i(e,t,i,n){if(f[0].idleTimer=d.scrollInertia<233?250:0,r.attr("id")===p[1])var a="x",o=(r[0].offsetLeft-t+n)*c.scrollRatio.x;else var a="y",o=(r[0].offsetTop-e+i)*c.scrollRatio.y;X(s,o.toString(),{dir:a,drag:!0})}var r,a,o,s=e(this),c=s.data(n),d=c.opt,h=n+"_"+c.idx,p=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],f=e("#mCSB_"+c.idx+"_container"),m=e("#"+p[0]+",#"+p[1]),g=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m;m.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(i){if(i.stopImmediatePropagation(),i.preventDefault(),J(i)){u=!0,l&&(document.onselectstart=function(){return!1}),t(!1),Y(s),r=e(this);var n=r.offset(),c=Q(i)[0]-n.top,h=Q(i)[1]-n.left,p=r.height()+n.top,f=r.width()+n.left;p>c&&c>0&&f>h&&h>0&&(a=c,o=h),C(r,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=r.offset(),n=Q(e)[0]-t.top,s=Q(e)[1]-t.left;i(a,o,n,s)}),e(document).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(r){var t=r.offset(),n=Q(e)[0]-t.top,s=Q(e)[1]-t.left;if(a===n)return;i(a,o,n,s)}}).add(g).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){r&&(C(r,"active",d.autoExpandScrollbar),r=null),u=!1,l&&(document.onselectstart=null),t(!0)})},A=function(){function i(e){if(!ee(e)||u||Q(e)[2])return void(t=0);t=1,_=0,x=0;var i=D.offset();c=Q(e)[0]-i.top,d=Q(e)[1]-i.left,P=[Q(e)[0],Q(e)[1]]}function r(e){if(ee(e)&&!u&&!Q(e)[2]&&(e.stopImmediatePropagation(),!x||_)){m=K();var t=$.offset(),i=Q(e)[0]-t.top,n=Q(e)[1]-t.left,r="mcsLinearOut";if(O.push(i),A.push(n),P[2]=Math.abs(Q(e)[0]-P[0]),P[3]=Math.abs(Q(e)[1]-P[1]),C.overflowed[0])var a=T[0].parent().height()-T[0].height(),o=c-i>0&&i-c>-(a*C.scrollRatio.y)&&(2*P[3]<P[2]||"yx"===S.axis);if(C.overflowed[1])var s=T[1].parent().width()-T[1].width(),h=d-n>0&&n-d>-(s*C.scrollRatio.x)&&(2*P[2]<P[3]||"yx"===S.axis);o||h?(e.preventDefault(),_=1):x=1,b="yx"===S.axis?[c-i,d-n]:"x"===S.axis?[null,d-n]:[c-i,null],D[0].idleTimer=250,C.overflowed[0]&&l(b[0],M,r,"y","all",!0),C.overflowed[1]&&l(b[1],M,r,"x",E,!0)}}function a(e){if(!ee(e)||u||Q(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Y(j),f=K();var i=$.offset();h=Q(e)[0]-i.top,p=Q(e)[1]-i.left,O=[],A=[]}function o(e){if(ee(e)&&!u&&!Q(e)[2]){e.stopImmediatePropagation(),_=0,x=0,g=K();var t=$.offset(),i=Q(e)[0]-t.top,n=Q(e)[1]-t.left;if(!(g-m>30)){y=1e3/(g-f);var r="mcsEaseOut",a=2.5>y,o=a?[O[O.length-2],A[A.length-2]]:[0,0];v=a?[i-o[0],n-o[1]]:[i-h,n-p];var c=[Math.abs(v[0]),Math.abs(v[1])];y=a?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[y,y];var d=[Math.abs(D[0].offsetTop)-v[0]*s(c[0]/y[0],y[0]),Math.abs(D[0].offsetLeft)-v[1]*s(c[1]/y[1],y[1])];b="yx"===S.axis?[d[0],d[1]]:"x"===S.axis?[null,d[1]]:[d[0],null],w=[4*c[0]+S.scrollInertia,4*c[1]+S.scrollInertia];var j=parseInt(S.contentTouchScroll)||0;b[0]=c[0]>j?b[0]:0,b[1]=c[1]>j?b[1]:0,C.overflowed[0]&&l(b[0],w[0],r,"y",E,!1),C.overflowed[1]&&l(b[1],w[1],r,"x",E,!1)}}}function s(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?i[0]:i[3]:e>60?t>3?i[3]:i[2]:e>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function l(e,t,i,n,r,a){e&&X(j,e.toString(),{dur:t,scrollEasing:i,dir:n,overwrite:r,drag:a})}var c,d,h,p,f,m,g,v,y,b,w,_,x,j=e(this),C=j.data(n),S=C.opt,k=n+"_"+C.idx,$=e("#mCSB_"+C.idx),D=e("#mCSB_"+C.idx+"_container"),T=[e("#mCSB_"+C.idx+"_dragger_vertical"),e("#mCSB_"+C.idx+"_dragger_horizontal")],O=[],A=[],M=0,E="yx"===S.axis?"none":"all",P=[],L=D.find("iframe"),R=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k];D.bind(R[0],function(e){i(e)}).bind(R[1],function(e){r(e)}),$.bind(R[0],function(e){a(e)}).bind(R[2],function(e){o(e)}),L.length&&L.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(R[0],function(e){i(e),a(e)}).bind(R[1],function(e){r(e)}).bind(R[2],function(e){o(e)})})})},M=function(){function i(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function r(e,t,i){c.type=i&&a?"stepped":"stepless",c.scrollAmount=10,q(o,e,t,"mcsLinearOut",i?60:null)}var a,o=e(this),s=o.data(n),l=s.opt,c=s.sequential,d=n+"_"+s.idx,h=e("#mCSB_"+s.idx+"_container"),p=h.parent();h.bind("mousedown."+d,function(){t||a||(a=1,u=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&a&&i()){var n=h.offset(),o=Q(e)[0]-n.top+h[0].offsetTop,u=Q(e)[1]-n.left+h[0].offsetLeft;o>0&&o<p.height()&&u>0&&u<p.width()?c.step&&r("off",null,"stepped"):("x"!==l.axis&&s.overflowed[0]&&(0>o?r("on",38):o>p.height()&&r("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>u?r("on",37):u>p.width()&&r("on",39)))}}).bind("mouseup."+d,function(){t||(a&&(a=0,r("off",null)),u=!1)})},E=function(){function t(t,n){if(Y(i),!P(i,t.target)){var o="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100;if("x"===a.axis||"x"===a.mouseWheel.axis)var c="x",d=[Math.round(o*r.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.width()?.9*s.width():d[0],p=Math.abs(e("#mCSB_"+r.idx+"_container")[0].offsetLeft),f=u[1][0].offsetLeft,m=u[1].parent().width()-u[1].width(),g=t.deltaX||t.deltaY||n;else var c="y",d=[Math.round(o*r.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.height()?.9*s.height():d[0],p=Math.abs(e("#mCSB_"+r.idx+"_container")[0].offsetTop),f=u[0][0].offsetTop,m=u[0].parent().height()-u[0].height(),g=t.deltaY||n;"y"===c&&!r.overflowed[0]||"x"===c&&!r.overflowed[1]||(a.mouseWheel.invert&&(g=-g),a.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==f||0>g&&f!==m||a.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),X(i,(p-g*h).toString(),{dir:c}))}}var i=e(this),r=i.data(n),a=r.opt,o=n+"_"+r.idx,s=e("#mCSB_"+r.idx),u=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")],c=e("#mCSB_"+r.idx+"_container").find("iframe");r&&(c.length&&c.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,function(e,i){t(e,i)})})}),s.bind("mousewheel."+o,function(e,i){t(e,i)}))},I=function(e){var t=null;try{var i=e.contentDocument||e.contentWindow.document;t=i.body.innerHTML}catch(e){}return null!==t},P=function(t,i){var r=i.nodeName.toLowerCase(),a=t.data(n).opt.mouseWheel.disableOver,o=["select","textarea"];return e.inArray(r,a)>-1&&!(e.inArray(r,o)>-1&&!e(i).is(":focus"))},L=function(){var t=e(this),i=t.data(n),r=n+"_"+i.idx,a=e("#mCSB_"+i.idx+"_container"),o=a.parent(),s=e(".mCSB_"+i.idx+"_scrollbar ."+c[12]);s.bind("touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(){u=!0}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){u=!1}).bind("click."+r,function(n){if(e(n.target).hasClass(c[12])||e(n.target).hasClass("mCSB_draggerRail")){Y(t);var r=e(this),s=r.find(".mCSB_dragger");if(r.parent(".mCSB_scrollTools_horizontal").length>0){if(!i.overflowed[1])return;var l="x",u=n.pageX>s.offset().left?-1:1,d=Math.abs(a[0].offsetLeft)-.9*u*o.width()}else{if(!i.overflowed[0])return;var l="y",u=n.pageY>s.offset().top?-1:1,d=Math.abs(a[0].offsetTop)-.9*u*o.height()}X(t,d.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})}})},R=function(){var t=e(this),i=t.data(n),r=i.opt,a=n+"_"+i.idx,o=e("#mCSB_"+i.idx+"_container"),s=o.parent();o.bind("focusin."+a,function(){var i=e(document.activeElement),n=o.find(".mCustomScrollBox").length,a=0;i.is(r.advanced.autoScrollOnFocus)&&(Y(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=n?(a+17)*n:0,t[0]._focusTimeout=setTimeout(function(){var e=[ie(i)[0],ie(i)[1]],n=[o[0].offsetTop,o[0].offsetLeft],l=[n[0]+e[0]>=0&&n[0]+e[0]<s.height()-i.outerHeight(!1),n[1]+e[1]>=0&&n[0]+e[1]<s.width()-i.outerWidth(!1)],u="yx"!==r.axis||l[0]||l[1]?"all":"none";"x"===r.axis||l[0]||X(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:u,dur:a}),"y"===r.axis||l[1]||X(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:u,dur:a})},t[0]._focusTimer))})},H=function(){var t=e(this),i=t.data(n),r=n+"_"+i.idx,a=e("#mCSB_"+i.idx+"_container").parent();a.bind("scroll."+r,function(){(0!==a.scrollTop()||0!==a.scrollLeft())&&e(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},B=function(){var t=e(this),i=t.data(n),r=i.opt,a=i.sequential,o=n+"_"+i.idx,s=".mCSB_"+i.idx+"_scrollbar",l=e(s+">a");l.bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o+" mouseup."+o+" touchend."+o+" pointerup."+o+" MSPointerUp."+o+" mouseout."+o+" pointerout."+o+" MSPointerOut."+o+" click."+o,function(n){function o(e,i){a.scrollAmount=r.snapAmount||r.scrollButtons.scrollAmount,q(t,e,i)}if(n.preventDefault(),J(n)){var s=e(this).attr("class");switch(a.type=r.scrollButtons.scrollType,n.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===a.type)return;u=!0,i.tweenRunning=!1,o("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===a.type)return;u=!1,a.dir&&o("off",s);break;case"click":if("stepped"!==a.type||i.tweenRunning)return;o("on",s)}}})},z=function(){function t(t){function n(e,t){o.type=a.keyboard.scrollType,o.scrollAmount=a.snapAmount||a.keyboard.scrollAmount,"stepped"===o.type&&r.tweenRunning||q(i,e,t)}switch(t.type){case"blur":r.tweenRunning&&o.dir&&n("off",null);break;case"keydown":case"keyup":var s=t.keyCode?t.keyCode:t.which,l="on";if("x"!==a.axis&&(38===s||40===s)||"y"!==a.axis&&(37===s||39===s)){if((38===s||40===s)&&!r.overflowed[0]||(37===s||39===s)&&!r.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(d)||(t.preventDefault(),t.stopImmediatePropagation(),n(l,s))}else if(33===s||34===s){if((r.overflowed[0]||r.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Y(i);var h=34===s?-1:1;if("x"===a.axis||"yx"===a.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",f=Math.abs(u[0].offsetLeft)-.9*h*c.width();else var p="y",f=Math.abs(u[0].offsetTop)-.9*h*c.height();X(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!e(document.activeElement).is(d)&&((r.overflowed[0]||r.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===a.axis||"yx"===a.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",f=35===s?Math.abs(c.width()-u.outerWidth(!1)):0;else var p="y",f=35===s?Math.abs(c.height()-u.outerHeight(!1)):0;X(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var i=e(this),r=i.data(n),a=r.opt,o=r.sequential,s=n+"_"+r.idx,l=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),c=u.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",h=u.find("iframe"),p=["blur."+s+" keydown."+s+" keyup."+s];h.length&&h.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(p[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(p[0],function(e){t(e)})},q=function(t,i,r,a,o){function s(e){var i="stepped"!==h.type,n=o?o:e?i?m/1.5:g:1e3/60,r=e?i?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],c=[u.scrollRatio.y>10?10:u.scrollRatio.y,u.scrollRatio.x>10?10:u.scrollRatio.x],d="x"===h.dir[0]?l[1]+h.dir[1]*c[1]*r:l[0]+h.dir[1]*c[0]*r,f="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?f:d,y=a?a:e?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",b=!!e;return e&&17>n&&(v="x"===h.dir[0]?l[1]:l[0]),X(t,v.toString(),{dir:h.dir[0],scrollEasing:y,dur:n,onComplete:b}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){s()},n)))}function l(){clearTimeout(h.step),Z(h,"step"),Y(t)}var u=t.data(n),d=u.opt,h=u.sequential,p=e("#mCSB_"+u.idx+"_container"),f="stepped"===h.type,m=d.scrollInertia<26?26:d.scrollInertia,g=d.scrollInertia<1?17:d.scrollInertia;switch(i){case"on":if(h.dir=[r===c[16]||r===c[15]||39===r||37===r?"x":"y",r===c[13]||r===c[15]||38===r||37===r?-1:1],Y(t),te(r)&&"stepped"===h.type)return;s(f);break;case"off":l(),(f||u.tweenRunning&&h.dir)&&s(!0)}},F=function(t){var i=e(this).data(n).opt,r=[];return"function"==typeof t&&(t=t()),t instanceof Array?r=t.length>1?[t[0],t[1]]:"x"===i.axis?[null,t[0]]:[t[0],null]:(r[0]=t.y?t.y:t.x||"x"===i.axis?null:t,r[1]=t.x?t.x:t.y||"y"===i.axis?null:t),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},W=function(t,i){if(null!=t&&"undefined"!=typeof t){var r=e(this),a=r.data(n),o=a.opt,s=e("#mCSB_"+a.idx+"_container"),l=s.parent(),u=typeof t;i||(i="x"===o.axis?"x":"y");var c="x"===i?s.outerWidth(!1):s.outerHeight(!1),h="x"===i?s[0].offsetLeft:s[0].offsetTop,p="x"===i?"left":"top";
7
- switch(u){case"function":return t();case"object":var f=t.jquery?t:e(t);if(!f.length)return;return"x"===i?ie(f)[1]:ie(f)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(c*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(h-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var m=h+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-s.outerHeight(!1));if("right"===t)return Math.abs(l.width()-s.outerWidth(!1));if("first"===t||"last"===t){var f=s.find(":"+t);return"x"===i?ie(f)[1]:ie(f)[0]}return e(t).length?"x"===i?ie(e(t))[1]:ie(e(t))[0]:(s.css(p,t),void d.update.call(null,r[0]))}}},U=function(t){function i(){clearTimeout(p[0].autoUpdate),p[0].autoUpdate=setTimeout(function(){return h.advanced.updateOnSelectorChange&&(f=o(),f!==w)?(s(3),void(w=f)):(h.advanced.updateOnContentResize&&(m=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],(m[0]!==_[0]||m[1]!==_[1]||m[2]!==_[2]||m[3]!==_[3]||m[4]!==_[4]||m[5]!==_[5])&&(s(m[0]!==_[0]||m[1]!==_[1]),_=m)),h.advanced.updateOnImageLoad&&(g=r(),g!==x&&(p.find("img").each(function(){a(this)}),x=g)),void((h.advanced.updateOnSelectorChange||h.advanced.updateOnContentResize||h.advanced.updateOnImageLoad)&&i()))},60)}function r(){var e=0;return h.advanced.updateOnImageLoad&&(e=p.find("img").length),e}function a(t){function i(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,e(t).addClass(c[2]),s(2)}if(e(t).hasClass(c[2]))return void s();var r=new Image;r.onload=i(r,n),r.src=t.src}function o(){h.advanced.updateOnSelectorChange===!0&&(h.advanced.updateOnSelectorChange="*");var t=0,i=p.find(h.advanced.updateOnSelectorChange);return h.advanced.updateOnSelectorChange&&i.length>0&&i.each(function(){t+=e(this).height()+e(this).width()}),t}function s(e){clearTimeout(p[0].autoUpdate),d.update.call(null,l[0],e)}var l=e(this),u=l.data(n),h=u.opt,p=e("#mCSB_"+u.idx+"_container");if(t)return clearTimeout(p[0].autoUpdate),void Z(p[0],"autoUpdate");var f,m,g,v=p.parent(),y=[e("#mCSB_"+u.idx+"_scrollbar_vertical"),e("#mCSB_"+u.idx+"_scrollbar_horizontal")],b=function(){return[y[0].is(":visible")?y[0].outerHeight(!0):0,y[1].is(":visible")?y[1].outerWidth(!0):0]},w=o(),_=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],x=r();i()},N=function(e,t,i){return Math.round(e/t)*t-i},Y=function(t){var i=t.data(n),r=e("#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal");r.each(function(){V.call(this)})},X=function(t,i,r){function a(e){return l&&u.callbacks[e]&&"function"==typeof u.callbacks[e]}function o(){return[u.callbacks.alwaysTriggerOffsets||b>=w[0]+x,u.callbacks.alwaysTriggerOffsets||-j>=b]}function s(){var e=[p[0].offsetTop,p[0].offsetLeft],i=[v[0].offsetTop,v[0].offsetLeft],n=[p.outerHeight(!1),p.outerWidth(!1)],a=[h.height(),h.width()];t[0].mcs={content:p,top:e[0],left:e[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-a[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-a[1])),direction:r.dir}}var l=t.data(n),u=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:u.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=e.extend(c,r),d=[r.dur,r.drag?0:r.dur],h=e("#mCSB_"+l.idx),p=e("#mCSB_"+l.idx+"_container"),f=p.parent(),m=u.callbacks.onTotalScrollOffset?F.call(t,u.callbacks.onTotalScrollOffset):[0,0],g=u.callbacks.onTotalScrollBackOffset?F.call(t,u.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=r.trigger,(0!==f.scrollTop()||0!==f.scrollLeft())&&(e(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==i||l.contentReset.y||(a("onOverflowYNone")&&u.callbacks.onOverflowYNone.call(t[0]),l.contentReset.y=1),"_resetX"!==i||l.contentReset.x||(a("onOverflowXNone")&&u.callbacks.onOverflowXNone.call(t[0]),l.contentReset.x=1),"_resetY"!==i&&"_resetX"!==i){switch(!l.contentReset.y&&t[0].mcs||!l.overflowed[0]||(a("onOverflowY")&&u.callbacks.onOverflowY.call(t[0]),l.contentReset.x=null),!l.contentReset.x&&t[0].mcs||!l.overflowed[1]||(a("onOverflowX")&&u.callbacks.onOverflowX.call(t[0]),l.contentReset.x=null),u.snapAmount&&(i=N(i,u.snapAmount,u.snapOffset)),r.dir){case"x":var v=e("#mCSB_"+l.idx+"_dragger_horizontal"),y="left",b=p[0].offsetLeft,w=[h.width()-p.outerWidth(!1),v.parent().width()-v.width()],_=[i,0===i?0:i/l.scrollRatio.x],x=m[1],j=g[1],S=x>0?x/l.scrollRatio.x:0,k=j>0?j/l.scrollRatio.x:0;break;case"y":var v=e("#mCSB_"+l.idx+"_dragger_vertical"),y="top",b=p[0].offsetTop,w=[h.height()-p.outerHeight(!1),v.parent().height()-v.height()],_=[i,0===i?0:i/l.scrollRatio.y],x=m[0],j=g[0],S=x>0?x/l.scrollRatio.y:0,k=j>0?j/l.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=w[1]?_=[w[0],w[1]]:_[0]=-_[0],t[0].mcs||(s(),a("onInit")&&u.callbacks.onInit.call(t[0])),clearTimeout(p[0].onCompleteTimeout),(l.tweenRunning||!(0===b&&_[0]>=0||b===w[0]&&_[0]<=w[0]))&&(G(v[0],y,Math.round(_[1]),d[1],r.scrollEasing),G(p[0],y,Math.round(_[0]),d[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!l.tweenRunning&&(a("onScrollStart")&&(s(),u.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,C(v),l.cbOffsets=o())},onUpdate:function(){r.callbacks&&r.onUpdate&&a("whileScrolling")&&(s(),u.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(r.callbacks&&r.onComplete){"yx"===u.axis&&clearTimeout(p[0].onCompleteTimeout);var e=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){a("onScroll")&&(s(),u.callbacks.onScroll.call(t[0])),a("onTotalScroll")&&_[1]>=w[1]-S&&l.cbOffsets[0]&&(s(),u.callbacks.onTotalScroll.call(t[0])),a("onTotalScrollBack")&&_[1]<=k&&l.cbOffsets[1]&&(s(),u.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,p[0].idleTimer=0,C(v,"hide")},e)}}}))}},G=function(e,t,i,n,r,a,o){function s(){_.stop||(y||f.call(),y=K()-v,l(),y>=_.time&&(_.time=y>_.time?y+h-(y-_.time):y+h-1,_.time<y+1&&(_.time=y+1)),_.time<n?_.id=p(s):g.call())}function l(){n>0?(_.currVal=d(_.time,b,x,n,r),w[t]=Math.round(_.currVal)+"px"):w[t]=i+"px",m.call()}function u(){h=1e3/60,_.time=y+h,p=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},_.id=p(s)}function c(){null!=_.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(_.id):clearTimeout(_.id),_.id=null)}function d(e,t,i,n,r){switch(r){case"linear":case"mcsLinear":return i*e/n+t;case"mcsLinearOut":return e/=n,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=n/2,1>e?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=n/2,1>e?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=n/2,1>e?i/2*e*e*e+t:(e-=2,i/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=n,e--,-i*(e*e*e*e-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*e/n)+1)+t;case"easeOut":case"mcsEaseOut":default:var a=(e/=n)*e,o=a*e;return t+i*(.499999999999997*o*a+-2.5*a*a+5.5*o+-6.5*a+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var h,p,o=o||{},f=o.onStart||function(){},m=o.onUpdate||function(){},g=o.onComplete||function(){},v=K(),y=0,b=e.offsetTop,w=e.style,_=e._mTween[t];"left"===t&&(b=e.offsetLeft);var x=i-b;_.stop=0,"none"!==a&&c(),u()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},V=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],i=0;i<t.length;i++){var n=t[i];e._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[n].id):clearTimeout(e._mTween[n].id),e._mTween[n].id=null,e._mTween[n].stop=1)}},Z=function(e,t){try{delete e[t]}catch(i){e[t]=null}},J=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ie=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]};e.fn[i]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[i]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[i].defaults=a,window[i]=!0,e(window).load(function(){e(r)[i](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var i,n,r=e(t),a=r.parents(".mCSB_container");if(a.length)return i=a.parent(),n=[a[0].offsetTop,a[0].offsetLeft],n[0]+ie(r)[0]>=0&&n[0]+ie(r)[0]<i.height()-r.outerHeight(!1)&&n[1]+ie(r)[1]>=0&&n[1]+ie(r)[1]<i.width()-r.outerWidth(!1)},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var i=e(t).data(n);if(i)return i.overflowed[0]||i.overflowed[1]}})})})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){"use strict";var t=e(window),i=e(document),n=window.location,r=!0,a=!1,o=null,s=NaN,l=1/0,u="undefined",c="directive",d=".cropper",h=/^(e|n|w|s|ne|nw|sw|se|all|crop|move|zoom)$/,p=/^(x|y|width|height)$/,f=/^(naturalWidth|naturalHeight|width|height|aspectRatio|ratio|rotate)$/,m="cropper-modal",g="cropper-hidden",v="cropper-invisible",y="cropper-move",b="cropper-crop",w="cropper-disabled",_="mousedown touchstart",x="mousemove touchmove",j="mouseup mouseleave touchend touchleave touchcancel",C="wheel mousewheel DOMMouseScroll",S="resize"+d,k="dblclick",$="build"+d,D="built"+d,T="dragstart"+d,Q="dragmove"+d,O="dragend"+d,A=function(e){return"number"==typeof e},M=function(e,t){var i=[];return"number"==typeof t&&i.push(t),i.slice.apply(e,i)},E=function(e,t){var i=M(arguments,2);return function(){return e.apply(t,i.concat(M(arguments)))}},I=function(t,i){this.element=t,this.$element=e(t),this.defaults=e.extend({},I.DEFAULTS,e.isPlainObject(i)?i:{}),this.$original=o,this.ready=a,this.built=a,this.cropped=a,this.rotated=a,this.disabled=a,this.replaced=a,this.init()},P=Math.sqrt,L=Math.min,R=Math.max,H=Math.abs,B=Math.sin,z=Math.cos,q=parseFloat;I.prototype={constructor:I,support:{canvas:e.isFunction(e("<canvas>")[0].getContext)},init:function(){var t=this.defaults;e.each(t,function(e,i){switch(e){case"aspectRatio":t[e]=H(q(i))||s;break;case"autoCropArea":t[e]=H(q(i))||.8;break;case"minWidth":case"minHeight":t[e]=H(q(i))||0;break;case"maxWidth":case"maxHeight":t[e]=H(q(i))||l}}),this.image={rotate:0},this.load()},load:function(){var t,i,n=this,a=this.$element,o=this.element,s=this.image,l="";a.is("img")?i=a.prop("src"):a.is("canvas")&&this.support.canvas&&(i=o.toDataURL()),i&&(this.replaced&&(s.rotate=0),this.defaults.checkImageOrigin&&(a.prop("crossOrigin")||this.isCrossOriginURL(i))&&(l=" crossOrigin"),this.$clone=t=e("<img"+l+' src="'+i+'">'),t.one("load",function(){s.naturalWidth=this.naturalWidth||t.width(),s.naturalHeight=this.naturalHeight||t.height(),s.aspectRatio=s.naturalWidth/s.naturalHeight,n.url=i,n.ready=r,n.build()}),t.addClass(v).prependTo("body"))},isCrossOriginURL:function(e){var t=e.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i);return!t||t[1]===n.protocol&&t[2]===n.hostname&&t[3]===n.port?a:r},build:function(){var t,i,n=this.$element,o=this.defaults;this.ready&&(this.built&&this.unbuild(),n.one($,o.build),t=e.Event($),n.trigger(t),t.isDefaultPrevented()||(this.$cropper=i=e(I.TEMPLATE),n.addClass(g),this.$clone.removeClass(v).prependTo(i),this.rotated||(this.$original=this.$clone.clone(),this.$original.addClass(g).prependTo(this.$cropper),this.originalImage=e.extend({},this.image)),this.$container=n.parent(),this.$container.append(i),this.$canvas=i.find(".cropper-canvas"),this.$dragger=i.find(".cropper-dragger"),this.$viewer=i.find(".cropper-viewer"),o.autoCrop?this.cropped=r:this.$dragger.addClass(g),o.dragCrop&&this.setDragMode("crop"),o.modal&&this.$canvas.addClass(m),!o.dashed&&this.$dragger.find(".cropper-dashed").addClass(g),!o.movable&&this.$dragger.find(".cropper-face").data(c,"move"),!o.resizable&&this.$dragger.find(".cropper-line, .cropper-point").addClass(g),this.addListeners(),this.initPreview(),this.built=r,this.update(),this.replaced=a,n.one(D,o.built),n.trigger(D)))},unbuild:function(){this.built&&(this.built=a,this.removeListeners(),this.$preview.empty(),this.$preview=o,this.$dragger=o,this.$canvas=o,this.$container=o,this.$cropper.remove(),this.$cropper=o)},update:function(e){this.initContainer(),this.initCropper(),this.initImage(),this.initDragger(),e?(this.setData(e,r),this.setDragMode("crop")):this.setData(this.defaults.data)},resize:function(){clearTimeout(this.resizing),this.resizing=setTimeout(e.proxy(this.update,this,this.getData()),200)},preview:function(){var t=this.image,i=this.dragger,n=t.width,r=t.height,a=i.left-t.left,o=i.top-t.top;this.$viewer.find("img").css({width:n,height:r,marginLeft:-a,marginTop:-o}),this.$preview.each(function(){var t=e(this),s=t.width()/i.width;t.find("img").css({width:n*s,height:r*s,marginLeft:-a*s,marginTop:-o*s})})},addListeners:function(){var n=this.defaults;this.$element.on(T,n.dragstart).on(Q,n.dragmove).on(O,n.dragend),this.$cropper.on(_,e.proxy(this.dragstart,this)).on(k,e.proxy(this.dblclick,this)),n.zoomable&&this.$cropper.on(C,e.proxy(this.wheel,this)),n.multiple?this.$cropper.on(x,e.proxy(this.dragmove,this)).on(j,e.proxy(this.dragend,this)):i.on(x,this._dragmove=E(this.dragmove,this)).on(j,this._dragend=E(this.dragend,this)),t.on(S,this._resize=E(this.resize,this))},removeListeners:function(){var e=this.defaults;this.$element.off(T,e.dragstart).off(Q,e.dragmove).off(O,e.dragend),this.$cropper.off(_,this.dragstart).off(k,this.dblclick),e.zoomable&&this.$cropper.off(C,this.wheel),e.multiple?this.$cropper.off(x,this.dragmove).off(j,this.dragend):i.off(x,this._dragmove).off(j,this._dragend),t.off(S,this._resize)},initPreview:function(){var t='<img src="'+this.url+'">';this.$preview=e(this.defaults.preview),this.$viewer.html(t),this.$preview.html(t).find("img").css("cssText","min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;")},initContainer:function(){var e=this.$container;e!==o&&(this.container={width:R(e.width(),300),height:R(e.height(),150)})},initCropper:function(){var e,t=this.container,i=this.image;i.naturalWidth*t.height/i.naturalHeight-t.width>=0?(e={width:t.width,height:t.width/i.aspectRatio,left:0},e.top=(t.height-e.height)/2):(e={width:t.height*i.aspectRatio,height:t.height,top:0},e.left=(t.width-e.width)/2),this.$cropper.css({width:e.width,height:e.height,left:e.left,top:e.top}),this.cropper=e},initImage:function(){var t=this.image,i=this.cropper,n={_width:i.width,_height:i.height,width:i.width,height:i.height,left:0,top:0,ratio:i.width/t.naturalWidth};this.defaultImage=e.extend({},t,n),t._width!==i.width||t._height!==i.height?e.extend(t,n):(t=e.extend({},n,t),this.replaced&&(t.ratio=n.ratio)),this.image=t,this.renderImage()},renderImage:function(e){var t=this.image;"zoom"===e&&(t.left-=(t.width-t.oldWidth)/2,t.top-=(t.height-t.oldHeight)/2),t.left=L(R(t.left,t._width-t.width),0),t.top=L(R(t.top,t._height-t.height),0),this.$clone.css({width:t.width,height:t.height,marginLeft:t.left,marginTop:t.top}),e&&(this.defaults.done(this.getData()),this.preview())},initDragger:function(){var t,i=this.defaults,n=this.cropper,r=i.aspectRatio||this.image.aspectRatio,a=this.image.ratio;t=n.height*r-n.width>=0?{height:n.width/r,width:n.width,left:0,top:(n.height-n.width/r)/2,maxWidth:n.width,maxHeight:n.width/r}:{height:n.height,width:n.height*r,left:(n.width-n.height*r)/2,top:0,maxWidth:n.height*r,maxHeight:n.height},t.minWidth=0,t.minHeight=0,i.aspectRatio?(isFinite(i.maxWidth)?(t.maxWidth=L(t.maxWidth,i.maxWidth*a),t.maxHeight=t.maxWidth/r):isFinite(i.maxHeight)&&(t.maxHeight=L(t.maxHeight,i.maxHeight*a),t.maxWidth=t.maxHeight*r),i.minWidth>0?(t.minWidth=R(0,i.minWidth*a),t.minHeight=t.minWidth/r):i.minHeight>0&&(t.minHeight=R(0,i.minHeight*a),t.minWidth=t.minHeight*r)):(t.maxWidth=L(t.maxWidth,i.maxWidth*a),t.maxHeight=L(t.maxHeight,i.maxHeight*a),t.minWidth=R(0,i.minWidth*a),t.minHeight=R(0,i.minHeight*a)),t.minWidth=L(t.maxWidth,t.minWidth),t.minHeight=L(t.maxHeight,t.minHeight),t.height*=i.autoCropArea,t.width*=i.autoCropArea,t.left=(n.width-t.width)/2,t.top=(n.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.defaultDragger=t,this.dragger=e.extend({},t)},renderDragger:function(){var e=this.dragger,t=this.cropper;e.width>e.maxWidth?(e.width=e.maxWidth,e.left=e.oldLeft):e.width<e.minWidth&&(e.width=e.minWidth,e.left=e.oldLeft),e.height>e.maxHeight?(e.height=e.maxHeight,e.top=e.oldTop):e.height<e.minHeight&&(e.height=e.minHeight,e.top=e.oldTop),e.left=L(R(e.left,0),t.width-e.width),e.top=L(R(e.top,0),t.height-e.height),e.oldLeft=e.left,e.oldTop=e.top,this.dragger=e,this.disabled||this.defaults.done(this.getData()),this.$dragger.css({width:e.width,height:e.height,left:e.left,top:e.top}),this.preview()},reset:function(t){this.cropped&&(t&&(this.defaults.data={}),this.image=e.extend({},this.defaultImage),this.renderImage(),this.dragger=e.extend({},this.defaultDragger),this.setData(this.defaults.data))},clear:function(){this.cropped&&(this.cropped=a,this.setData({x:0,y:0,width:0,height:0}),this.$canvas.removeClass(m),this.$dragger.addClass(g))},destroy:function(){var e=this.$element;this.ready&&(this.unbuild(),e.removeClass(g).removeData("cropper"),this.rotated&&e.attr("src",this.$original.attr("src")))},replace:function(t,i){var n,o=this,s=this.$element,l=this.element;t&&t!==this.url&&t!==s.attr("src")&&(i||(this.rotated=a,this.replaced=r),s.is("img")?(s.attr("src",t),this.load()):s.is("canvas")&&this.support.canvas&&(n=l.getContext("2d"),e('<img src="'+t+'">').one("load",function(){l.width=this.width,l.height=this.height,n.clearRect(0,0,l.width,l.height),n.drawImage(this,0,0),o.load()})))},setData:function(t,i){var n=this.cropper,r=this.dragger,a=this.image,s=this.defaults.aspectRatio;this.built&&typeof t!==u&&((t===o||e.isEmptyObject(t))&&(r=e.extend({},this.defaultDragger)),e.isPlainObject(t)&&!e.isEmptyObject(t)&&(i||(this.defaults.data=t),t=this.transformData(t),A(t.x)&&t.x<=n.width-a.left&&(r.left=t.x+a.left),A(t.y)&&t.y<=n.height-a.top&&(r.top=t.y+a.top),s?A(t.width)&&t.width<=r.maxWidth&&t.width>=r.minWidth?(r.width=t.width,r.height=r.width/s):A(t.height)&&t.height<=r.maxHeight&&t.height>=r.minHeight&&(r.height=t.height,r.width=r.height*s):(A(t.width)&&t.width<=r.maxWidth&&t.width>=r.minWidth&&(r.width=t.width),A(t.height)&&t.height<=r.maxHeight&&t.height>=r.minHeight&&(r.height=t.height))),this.dragger=r,this.renderDragger())},getData:function(e){var t=this.dragger,i=this.image,n={};return this.built&&(n={x:t.left-i.left,y:t.top-i.top,width:t.width,height:t.height},n=this.transformData(n,r,e)),n},transformData:function(t,i,n){var r=this.image.ratio,a={};return e.each(t,function(e,t){t=q(t),p.test(e)&&!isNaN(t)&&(a[e]=i?n?Math.round(t/r):t/r:t*r)}),a},setAspectRatio:function(e){var t="auto"===e;e=q(e),(t||!isNaN(e)&&e>0)&&(this.defaults.aspectRatio=t?s:e,this.built&&(this.initDragger(),this.renderDragger()))},getImageData:function(){var t={};return this.ready&&e.each(this.image,function(e,i){f.test(e)&&(t[e]=i)}),t},getDataURL:function(t,i,n){var r,a=e("<canvas>")[0],o=this.getData(),s="";return e.isPlainObject(t)||(n=i,i=t,t={}),t=e.extend({width:o.width,height:o.height},t),this.cropped&&this.support.canvas&&(a.width=t.width,a.height=t.height,r=a.getContext("2d"),"image/jpeg"===i&&(r.fillStyle="#fff",r.fillRect(0,0,t.width,t.height)),r.drawImage(this.$clone[0],o.x,o.y,o.width,o.height,0,0,t.width,t.height),s=a.toDataURL(i,n)),s},setDragMode:function(e){var t=this.$canvas,i=this.defaults,n=a,o=a;if(this.built&&!this.disabled){switch(e){case"crop":i.dragCrop&&(n=r,t.data(c,e));break;case"move":o=r,t.data(c,e);break;default:t.removeData(c)}t.toggleClass(b,n).toggleClass(y,o)}},enable:function(){this.built&&(this.disabled=a,this.$cropper.removeClass(w))},disable:function(){this.built&&(this.disabled=r,this.$cropper.addClass(w))},rotate:function(e){var t=this.image;e=q(e)||0,this.built&&0!==e&&!this.disabled&&this.defaults.rotatable&&this.support.canvas&&(this.rotated=r,e=t.rotate=(t.rotate+e)%360,this.replace(this.getRotatedDataURL(e),!0))},getRotatedDataURL:function(t){var i=e("<canvas>")[0],n=i.getContext("2d"),r=t*Math.PI/180,a=H(t)%180,o=a>90?180-a:a,s=o*Math.PI/180,l=this.originalImage,u=l.naturalWidth,c=l.naturalHeight,d=H(u*z(s)+c*B(s)),h=H(u*B(s)+c*z(s));return i.width=d,i.height=h,n.save(),n.translate(d/2,h/2),n.rotate(r),n.drawImage(this.$original[0],-u/2,-c/2,u,c),n.restore(),i.toDataURL()},zoom:function(e){var t,i,n,r=this.image;e=q(e),this.built&&e&&!this.disabled&&this.defaults.zoomable&&(t=r.width*(1+e),i=r.height*(1+e),n=t/r._width,n>10||(n<1&&(t=r._width,i=r._height),n<=1?this.setDragMode("crop"):this.setDragMode("move"),r.oldWidth=r.width,r.oldHeight=r.height,r.width=t,r.height=i,r.ratio=r.width/r.naturalWidth,this.renderImage("zoom")))},dblclick:function(){this.disabled||(this.$canvas.hasClass(b)?this.setDragMode("move"):this.setDragMode("crop"))},wheel:function(e){var t,i=e.originalEvent,n=117.25,r=5,a=166.66665649414062,o=.1;this.disabled||(e.preventDefault(),i.deltaY?(t=i.deltaY,t=t%r===0?t/r:t%n===0?t/n:t/a):t=i.wheelDelta?-i.wheelDelta/120:i.detail?i.detail/3:0,this.zoom(t*o))},dragstart:function(t){var i,n,o,s=t.originalEvent.touches,l=t;if(!this.disabled){if(s){if(o=s.length,o>1){if(!this.defaults.zoomable||2!==o)return;l=s[1],this.startX2=l.pageX,this.startY2=l.pageY,i="zoom"}l=s[0]}if(i=i||e(l.target).data(c),h.test(i)){if(t.preventDefault(),n=e.Event(T),this.$element.trigger(n),n.isDefaultPrevented())return;this.directive=i,this.cropping=a,this.startX=l.pageX,this.startY=l.pageY,"crop"===i&&(this.cropping=r,this.$canvas.addClass(m))}}},dragmove:function(t){var i,n,r=t.originalEvent.touches,a=t;if(!this.disabled){if(r){if(n=r.length,n>1){if(!this.defaults.zoomable||2!==n)return;a=r[1],this.endX2=a.pageX,this.endY2=a.pageY}a=r[0]}if(this.directive){if(t.preventDefault(),i=e.Event(Q),this.$element.trigger(i),i.isDefaultPrevented())return;this.endX=a.pageX,this.endY=a.pageY,this.dragging()}}},dragend:function(t){var i;if(!this.disabled&&this.directive){if(t.preventDefault(),i=e.Event(O),this.$element.trigger(i),i.isDefaultPrevented())return;this.cropping&&(this.cropping=a,this.$canvas.toggleClass(m,this.cropped&&this.defaults.modal)),this.directive=""}},dragging:function(){var e,t=this.directive,i=this.image,n=this.cropper,o=n.width,s=n.height,l=this.dragger,u=l.width,c=l.height,d=l.left,h=l.top,p=d+u,f=h+c,m=r,v=this.defaults,y=v.aspectRatio,b={x:this.endX-this.startX,y:this.endY-this.startY};switch(y&&(b.X=b.y*y,b.Y=b.x/y),t){case"all":d+=b.x,h+=b.y;break;case"e":if(b.x>=0&&(p>=o||y&&(h<=0||f>=s))){m=a;break}u+=b.x,y&&(c=u/y,h-=b.Y/2),u<0&&(t="w",u=0);break;case"n":if(b.y<=0&&(h<=0||y&&(d<=0||p>=o))){m=a;break}c-=b.y,h+=b.y,y&&(u=c*y,d+=b.X/2),c<0&&(t="s",c=0);break;case"w":if(b.x<=0&&(d<=0||y&&(h<=0||f>=s))){m=a;break}u-=b.x,d+=b.x,y&&(c=u/y,h+=b.Y/2),u<0&&(t="e",u=0);break;case"s":if(b.y>=0&&(f>=s||y&&(d<=0||p>=o))){m=a;break}c+=b.y,y&&(u=c*y,d-=b.X/2),c<0&&(t="n",c=0);break;case"ne":if(y){if(b.y<=0&&(h<=0||p>=o)){m=a;break}c-=b.y,h+=b.y,u=c*y}else b.x>=0?p<o?u+=b.x:b.y<=0&&h<=0&&(m=a):u+=b.x,b.y<=0?h>0&&(c-=b.y,h+=b.y):(c-=b.y,h+=b.y);c<0&&(t="sw",c=0,u=0);break;case"nw":if(y){if(b.y<=0&&(h<=0||d<=0)){m=a;break}c-=b.y,h+=b.y,u=c*y,d+=b.X}else b.x<=0?d>0?(u-=b.x,d+=b.x):b.y<=0&&h<=0&&(m=a):(u-=b.x,d+=b.x),b.y<=0?h>0&&(c-=b.y,h+=b.y):(c-=b.y,h+=b.y);c<0&&(t="se",c=0,u=0);break;case"sw":if(y){if(b.x<=0&&(d<=0||f>=s)){m=a;break}u-=b.x,d+=b.x,c=u/y}else b.x<=0?d>0?(u-=b.x,d+=b.x):b.y>=0&&f>=s&&(m=a):(u-=b.x,d+=b.x),b.y>=0?f<s&&(c+=b.y):c+=b.y;u<0&&(t="ne",c=0,u=0);break;case"se":if(y){if(b.x>=0&&(p>=o||f>=s)){m=a;break}u+=b.x,c=u/y}else b.x>=0?p<o?u+=b.x:b.y>=0&&f>=s&&(m=a):u+=b.x,b.y>=0?f<s&&(c+=b.y):c+=b.y;u<0&&(t="nw",c=0,u=0);break;case"move":i.left+=b.x,i.top+=b.y,this.renderImage("move"),m=a;break;case"zoom":v.zoomable&&(this.zoom(function(e,t,i,n,r,a){return(P(r*r+a*a)-P(i*i+n*n))/P(e*e+t*t)}(i.width,i.height,H(this.startX-this.startX2),H(this.startY-this.startY2),H(this.endX-this.endX2),H(this.endY-this.endY2))),this.endX2=this.startX2,this.endY2=this.startY2);break;case"crop":b.x&&b.y&&(e=this.$cropper.offset(),d=this.startX-e.left,h=this.startY-e.top,u=l.minWidth,c=l.minHeight,b.x>0?b.y>0?t="se":(t="ne",h-=c):b.y>0?(t="sw",d-=u):(t="nw",d-=u,h-=c),this.cropped||(this.cropped=r,this.$dragger.removeClass(g)))}m&&(l.width=u,l.height=c,l.left=d,l.top=h,this.directive=t,this.renderDragger()),this.startX=this.endX,this.startY=this.endY}},I.TEMPLATE=function(e,t){return t=t.split(","),e.replace(/\d+/g,function(e){return t[e]})}('<0 6="5-container"><0 6="5-canvas"></0><0 6="5-dragger"><1 6="5-viewer"></1><1 6="5-8 8-h"></1><1 6="5-8 8-v"></1><1 6="5-face" 3-2="all"></1><1 6="5-7 7-e" 3-2="e"></1><1 6="5-7 7-n" 3-2="n"></1><1 6="5-7 7-w" 3-2="w"></1><1 6="5-7 7-s" 3-2="s"></1><1 6="5-4 4-e" 3-2="e"></1><1 6="5-4 4-n" 3-2="n"></1><1 6="5-4 4-w" 3-2="w"></1><1 6="5-4 4-s" 3-2="s"></1><1 6="5-4 4-ne" 3-2="ne"></1><1 6="5-4 4-nw" 3-2="nw"></1><1 6="5-4 4-sw" 3-2="sw"></1><1 6="5-4 4-se" 3-2="se"></1></0></0>',"div,span,directive,data,point,cropper,class,line,dashed"),I.DEFAULTS={aspectRatio:"auto",autoCropArea:.8,data:{},done:e.noop,preview:"",multiple:a,autoCrop:r,dragCrop:r,dashed:r,modal:r,movable:r,resizable:r,zoomable:r,rotatable:r,checkImageOrigin:r,minWidth:0,minHeight:0,maxWidth:l,maxHeight:l,build:o,built:o,dragstart:o,dragmove:o,dragend:o},I.setDefaults=function(t){e.extend(I.DEFAULTS,t)},I.other=e.fn.cropper,e.fn.cropper=function(t){var i,n=M(arguments,1);return this.each(function(){var r,a=e(this),o=a.data("cropper");o||a.data("cropper",o=new I(this,t)),"string"==typeof t&&e.isFunction(r=o[t])&&(i=r.apply(o,n))}),typeof i!==u?i:this},e.fn.cropper.Constructor=I,e.fn.cropper.setDefaults=I.setDefaults,e.fn.cropper.noConflict=function(){return e.fn.cropper=I.other,this}}),function(e){function t(e,t){return"function"==typeof e?e.call(t):e}function i(e){for(;e=e.parentNode;)if(e==document)return!0;return!1}function n(t,i){this.$element=e(t),this.options=i,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,a=e.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),o=n[0].offsetWidth,s=n[0].offsetHeight,l=t(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-o/2};break;case"s":r={top:a.top-s-this.options.offset,left:a.left+a.width/2-o/2};break;case"e":r={top:a.top+a.height/2-s/2,left:a.left-o-this.options.offset};break;case"w":extra_gap=0,e("body").css("position").length>0&&"relative"==e("body").css("position")&&e("#wpadminbar").length&&(extra_gap=e("#wpadminbar").height()),r={top:a.top+a.height/2-s/2-extra_gap,left:a.left+a.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=a.left+a.width/2-15:r.left=a.left+a.width/2-o+15),n.css(r).addClass("tipsy-"+l),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&n.addClass(t(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){e(this).remove()}):this.tip().remove()},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("original-title"))&&e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,t=this.$element,i=this.options;this.fixTitle();var e,i=this.options;return"string"==typeof i.title?e=t.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(e=i.title.call(t[0])),e=(""+e).replace(/(^\s*|\s*$)/,""),e||i.fallback},tip:function(){return this.$tip||(this.$tip=e('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},e.fn.tipsy=function(t){function i(i){var r=e.data(i,"tipsy");return r||(r=new n(i,e.fn.tipsy.elementOptions(i,t)),e.data(i,"tipsy",r)),r}function r(){var e=i(this);e.hoverState="in",0==t.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},t.delayIn))}function a(){var e=i(this);e.hoverState="out",0==t.delayOut?e.hide():setTimeout(function(){"out"==e.hoverState&&e.hide()},t.delayOut)}if(t===!0)return this.data("tipsy");if("string"==typeof t){var o=this.data("tipsy");return o&&o[t](),this}if(t=e.extend({},e.fn.tipsy.defaults,t),t.live||this.each(function(){i(this)}),"manual"!=t.trigger){var s="hover"==t.trigger?"mouseenter":"focus",l="hover"==t.trigger?"mouseleave":"blur";t.live?e(document).on(s,this.selector,r).on(l,this.selector,a):this.bind(s,r).bind(l,a)}return this},e.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},e.fn.tipsy.revalidate=function(){e(".tipsy").each(function(){var t=e.data(this,"tipsy-pointee");t&&i(t)||e(this).remove()})},e.fn.tipsy.elementOptions=function(t,i){return e.metadata?e.extend({},i,e(t).metadata()):i},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(window).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(window).width()/2?"e":"w"},e.fn.tipsy.autoBounds=function(t,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},r=e(document).scrollTop()+t,a=e(document).scrollLeft()+t,o=e(this);return o.offset().top<r&&(n.ns="n"),o.offset().left<a&&(n.ew="w"),e(window).width()+e(document).scrollLeft()-o.offset().left<t&&(n.ew="e"),e(window).height()+e(document).scrollTop()-o.offset().top<t&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery);var um_live_field,um_live_value,um_field_conditions_array={},um_field_relations={},um_field_added=[],um_field_loaded=!1,um_field_do_init=!1;jQuery(function(){jQuery(".um-search form *").keypress(function(e){if(13==e.which)return jQuery(".um-search form").submit(),!1}),2==jQuery("input[data-key=user_password],input[data-key=confirm_user_password]").length&&UM_check_password_matched()}),jQuery(window).load(function(){um_responsive(),um_modal_responsive()}),jQuery(window).resize(function(){responsive_Modal(),jQuery("img.cropper-hidden").cropper("destroy"),um_responsive(),um_modal_responsive()}),jQuery(document).ready(function(){jQuery(document).on("input change",".um-field input[type=text]",function(){um_field_do_init&&um_field_init()}),jQuery(document).on("change",".um-field select, .um-field input[type=radio], .um-field input[type=checkbox]",function(){um_field_do_init&&um_field_init()}),um_field_init(),um_field_do_init=!0}),jQuery(document).ready(function(){function e(e,i,n,r){var a=e.data("um-parent");e.attr("name"),jQuery('select[name="'+a+'"]');e.find('option[value!=""]').remove(),e.hasClass("um-child-option-disabled")||e.removeAttr("disabled");var r=[];jQuery.each(i.items,function(e,t){r.push({id:e,text:t})}),
8
- e.select2("destroy"),e.select2({data:r,allowClear:!0,minimumResultsForSearch:10}),"undefined"==typeof i.field.default||e.data("um-original-value")?""!=e.data("um-original-value")&&e.val(e.data("um-original-value")).trigger("change"):e.val(i.field.default).trigger("change"),0==i.field.editable&&(e.addClass("um-child-option-disabled"),e.attr("disabled","disabled")),t[n]=i}jQuery(document).on("click",".um-dropdown a",function(e){return!1}),jQuery(document).on("click",".um-dropdown a.real_url",function(e){window.location=jQuery(this).attr("href")}),jQuery(document).on("click",".um-trigger-menu-on-click",function(e){return jQuery(".um-dropdown").hide(),menu=jQuery(this).find(".um-dropdown"),menu.show(),!1}),jQuery(document).on("click",".um-dropdown-hide",function(e){UM_hide_menus()}),jQuery(document).on("click","a.um-manual-trigger",function(){var e=jQuery(this).attr("data-child"),t=jQuery(this).attr("data-parent");jQuery(this).parents(t).find(e).trigger("click")}),jQuery(".um-tip-n").tipsy({gravity:"n",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-w").tipsy({gravity:"w",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-e").tipsy({gravity:"e",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-s").tipsy({gravity:"s",opacity:1,live:"a.live",offset:3}),jQuery(document).on("change",".um-field-area input[type=radio]",function(){var e=jQuery(this).parents(".um-field-area"),t=jQuery(this).parents("label");e.find(".um-field-radio").removeClass("active"),e.find(".um-field-radio").find("i").removeClass().addClass("um-icon-android-radio-button-off"),t.addClass("active"),t.find("i").removeClass().addClass("um-icon-android-radio-button-on")}),jQuery(document).on("change",".um-field-area input[type=checkbox]",function(){var e=(jQuery(this).parents(".um-field-area"),jQuery(this).parents("label"));e.hasClass("active")?(e.removeClass("active"),e.find("i").removeClass().addClass("um-icon-android-checkbox-outline-blank")):(e.addClass("active"),e.find("i").removeClass().addClass("um-icon-android-checkbox-outline"))}),jQuery(".um-datepicker").each(function(){if(elem=jQuery(this),""!=elem.attr("data-disabled_weekdays"))var e=JSON.parse(elem.attr("data-disabled_weekdays"));else var e=!1;var t=elem.attr("data-years"),i=elem.attr("data-date_min"),n=elem.attr("data-date_max"),r=i.split(","),a=n.split(","),o=r.length?new Date(r):null,s=r.length?new Date(a):null;if(o&&"Invalid Date"==o.toString()&&3==r.length){var l=r[1]+"/"+r[2]+"/"+r[0];o=new Date(Date.parse(l))}if(s&&"Invalid Date"==s.toString()&&3==a.length){var u=a[1]+"/"+a[2]+"/"+a[0];s=new Date(Date.parse(u))}elem.pickadate({selectYears:t,min:o,max:s,disable:e,format:elem.attr("data-format"),formatSubmit:"yyyy/mm/dd",hiddenName:!0,onOpen:function(){elem.blur()},onClose:function(){elem.blur()}})}),jQuery(".um-timepicker").each(function(){elem=jQuery(this),elem.pickatime({format:elem.attr("data-format"),interval:parseInt(elem.attr("data-intervals")),formatSubmit:"HH:i",hiddenName:!0,onOpen:function(){elem.blur()},onClose:function(){elem.blur()}})}),jQuery(".um-rating").raty({half:!1,starType:"i",number:function(){return jQuery(this).attr("data-number")},score:function(){return jQuery(this).attr("data-score")},scoreName:function(){return jQuery(this).attr("data-key")},hints:!1,click:function(e,t){live_field=this.id,live_value=e,um_conditional()}}),jQuery(".um-rating-readonly").raty({half:!1,starType:"i",number:function(){return jQuery(this).attr("data-number")},score:function(){return jQuery(this).attr("data-score")},scoreName:function(){return jQuery(this).attr("data-key")},hints:!1,readOnly:!0}),jQuery(document).on("click",".um .um-single-image-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field"),i=jQuery(this).parents(".um-field").find(".um-single-image-preview img").attr("src");return t.find(".um-single-image-preview img").attr("src",""),t.find(".um-single-image-preview").hide(),t.find(".um-btn-auto-width").html("Upload"),t.find("input[type=hidden]").val(""),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um .um-single-file-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field"),i=jQuery(this).parents(".um-field").find(".um-single-fileinfo a").attr("href");return t.find(".um-single-file-preview").hide(),t.find(".um-btn-auto-width").html("Upload"),t.find("input[type=hidden]").val(""),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(".um-s1,.um-s2").css({display:"block"}),jQuery(".um-s1").select2({allowClear:!0}),jQuery(".um-s2").select2({allowClear:!1,minimumResultsForSearch:10}),jQuery(document).on("click",".um-field-group-head:not(.disabled)",function(){var e=jQuery(this).parents(".um-field-group"),t=e.data("max_entries");e.find(".um-field-group-body").is(":hidden")?e.find(".um-field-group-body").show():e.find(".um-field-group-body:first").clone().appendTo(e),increase_id=0,e.find(".um-field-group-body").each(function(){increase_id++,jQuery(this).find("input").each(function(){var e=jQuery(this);e.attr("id",e.data("key")+"-"+increase_id),e.attr("name",e.data("key")+"-"+increase_id),e.parent().parent().find("label").attr("for",e.data("key")+"-"+increase_id)})}),t>0&&e.find(".um-field-group-body").length==t&&jQuery(this).addClass("disabled")}),jQuery(document).on("click",".um-field-group-cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field-group"),i=t.data("max_entries");return t.find(".um-field-group-body").length>1?jQuery(this).parents(".um-field-group-body").remove():jQuery(this).parents(".um-field-group-body").hide(),i>0&&t.find(".um-field-group-body").length<i&&t.find(".um-field-group-head").removeClass("disabled"),!1}),jQuery(document).on("click",".um-ajax-paginate",function(e){e.preventDefault();var t=jQuery(this).parent();t.addClass("loading");var i=jQuery(this).data("args"),n=jQuery(this).data("hook"),r=jQuery(this).parents(".um").find(".um-ajax-items");return jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_ajax_paginate",hook:n,args:i},complete:function(){t.removeClass("loading")},success:function(e){t.remove(),r.append(e)}}),!1}),jQuery(document).on("click",".um-ajax-action",function(e){e.preventDefault();var t=jQuery(this).data("hook"),i=jQuery(this).data("user_id"),arguments=jQuery(this).data("arguments");return jQuery(this).data("js-remove")&&jQuery(this).parents("."+jQuery(this).data("js-remove")).fadeOut("fast"),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_muted_action",hook:t,user_id:i,arguments:arguments},success:function(e){}}),!1}),jQuery(document).on("click","#um-search-button",function(){jQuery(this).parents("form").submit()});var t={};jQuery("select[data-um-parent]").each(function(){var i=jQuery(this),n=i.data("um-parent"),r=i.data("um-ajax-url"),a=i.data("um-ajax-source");i.val();i.attr("data-um-init-field",!0),jQuery(document).on("change",'select[name="'+n+'"]',function(){var n=jQuery(this),o=n.closest("form").find("input[type=hidden][name=form_id]").val(),s=n.val();if(""!=n.val()&&"object"!=typeof t[s]&&jQuery.ajax({url:r,type:"post",data:{action:"ultimatemember_ajax_select_options",parent_option:n.val(),child_callback:a,child_name:i.attr("name"),form_id:o},success:function(t){"success"==t.status&&""!=n.val()&&e(i,t,s),"undefined"!=typeof t.debug&&console.log(t)},error:function(e){console.log(e)}}),""!=n.val()&&"object"==typeof t[s]){var l=t[s];e(i,l,s)}""==n.val()&&(i.find('option[value!=""]').remove(),i.val("").trigger("change"))}),jQuery('select[name="'+n+'"]').trigger("change")})}),jQuery(document).ready(function(){jQuery(".um-members").each(function(){UM_Member_Grid(jQuery(this))}),jQuery(".um-member-connect").each(function(){0==jQuery(this).find("a").length&&jQuery(this).remove()}),jQuery(".um-member-meta-main").each(function(){0==jQuery(this).find(".um-member-metaline").length&&0==jQuery(this).find(".um-member-connect").find("a").length&&jQuery(this).remove()}),jQuery(document).on("click",".um-member-more a",function(e){e.preventDefault();var t=jQuery(this).parents(".um-member"),i=jQuery(this).parents(".um-members");return t.find(".um-member-more").hide(),t.find(".um-member-meta").slideDown(function(){UM_Member_Grid(i)}),t.find(".um-member-less").fadeIn(),setTimeout(function(){UM_Member_Grid(i)},100),!1}),jQuery(document).on("click",".um-member-less a",function(e){e.preventDefault();var t=jQuery(this).parents(".um-member"),i=jQuery(this).parents(".um-members");return t.find(".um-member-less").hide(),t.find(".um-member-meta").slideUp(function(){t.find(".um-member-more").fadeIn(),UM_Member_Grid(i)}),!1}),jQuery(document).on("click",".um-do-search",function(e){return e.preventDefault(),jQuery(this).parents("form").submit(),!1})}),jQuery(document).ready(function(){function e(){if("undefined"!=typeof jQuery("textarea[id=um-meta-bio]").val()){var e=jQuery("textarea[id=um-meta-bio]").attr("data-character-limit"),t=e-jQuery("textarea[id=um-meta-bio]").val().length;jQuery("span.um-meta-bio-character span.um-bio-limit").text(t),t<5?jQuery("span.um-meta-bio-character").css("color","red"):jQuery("span.um-meta-bio-character").css("color","")}}jQuery(".um-profile.um-viewing .um-profile-body .um-row").each(function(){var e=jQuery(this);0==e.find(".um-field").length&&(e.prev(".um-row-heading").remove(),e.remove())}),jQuery(".um-profile.um-viewing .um-profile-body").length&&0==jQuery(".um-profile.um-viewing .um-profile-body").find(".um-field").length&&(jQuery(".um-row-heading,.um-row").remove(),jQuery(".um-profile-note").show()),jQuery(document).on("click",".um-profile-save",function(e){return e.preventDefault(),jQuery(this).parents(".um").find("form").submit(),!1}),jQuery(document).on("click",".um-profile-edit-a",function(e){jQuery(this).addClass("active")}),jQuery(document).on("click",".um-cover a, .um-photo a",function(e){return e.preventDefault(),!1}),jQuery(document).on("click",".um-photo-modal",function(e){e.preventDefault();var t=jQuery(this).attr("data-src");return um_new_modal("um_view_photo","fit",!0,t),!1}),jQuery(document).on("click",".um-reset-profile-photo",function(e){jQuery(".um-profile-photo-img img").attr("src",jQuery(this).attr("data-default_src")),user_id=jQuery(this).attr("data-user_id"),metakey="profile_photo",jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_delete_profile_photo",metakey:metakey,user_id:user_id}})}),jQuery(document).on("click",".um-reset-cover-photo",function(e){jQuery(".um-cover-overlay").hide(),jQuery(".um-cover-e").html('<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="Upload a cover photo"></i></span></a>'),jQuery(".um-dropdown").hide(),um_responsive(),user_id=jQuery(this).attr("data-user_id"),metakey="cover_photo",jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_delete_cover_photo",metakey:metakey,user_id:user_id}})}),e(),jQuery("textarea[id=um-meta-bio]").change(e),jQuery("textarea[id=um-meta-bio]").keyup(e),jQuery(".um-profile-edit a.um_delete-item").click(function(e){e.preventDefault();var t=confirm("Are you sure that you want to delete this user?");if(!t)return!1})}),jQuery(document).ready(function(){var e=jQuery(".um-account-main").attr("data-current_tab");e&&jQuery(".um-account-tab[data-tab="+e+"]").show(),jQuery(document).on("touchstart click",".um-account-side li a",function(e){e.preventDefault();var t=jQuery(this);t.parents("ul").find("li a").removeClass("current"),t.addClass("current");var i=jQuery(this).attr("href"),n=jQuery(this).attr("data-tab");return jQuery("input[id=_um_account_tab]:hidden").val(n),window.history.pushState("","",i),jQuery(".um-account-tab").hide(),jQuery(".um-account-tab[data-tab="+n+"]").fadeIn(),jQuery(".um-account-nav a").removeClass("current"),jQuery(".um-account-nav a[data-tab="+n+"]").addClass("current"),!1})}),jQuery(document).on("touchstart click",".um-account-nav a",function(e){e.preventDefault();var t=jQuery(this).attr("data-tab"),i=jQuery(this).parents("div"),n=jQuery(this);return jQuery("input[id=_um_account_tab]:hidden").val(t),jQuery(".um-account-tab").hide(),n.hasClass("current")?(i.next(".um-account-tab").slideUp(),n.removeClass("current")):(i.next(".um-account-tab").slideDown(),n.parents("div").find("a").removeClass("current"),n.addClass("current")),jQuery(".um-account-side li a").removeClass("current"),jQuery(".um-account-side li a[data-tab="+t+"]").addClass("current"),!1});
1
+ function UM_check_password_matched(){jQuery(document).on("keyup","input[data-key=user_password],input[data-key=confirm_user_password]",function(e){var t=jQuery("input[data-key=user_password]").val(),i=jQuery("input[data-key=confirm_user_password]").val(),n=jQuery("input[data-key=user_password],input[data-key=confirm_user_password]");t||i?t!==i?n.removeClass("um-validate-matched").addClass("um-validate-not-matched"):n.removeClass("um-validate-not-matched").addClass("um-validate-matched"):n.removeClass("um-validate-matched").removeClass("um-validate-not-matched")})}function UM_hide_menus(){menu=jQuery(".um-dropdown"),menu.parents("div").find("a").removeClass("active"),menu.hide()}function UM_domenus(){jQuery(".um-dropdown").each(function(){var e=jQuery(this),t=jQuery(this).attr("data-element"),i=jQuery(this).attr("data-position");jQuery(t).addClass("um-trigger-menu-on-"+e.attr("data-trigger")),jQuery(window).width()<=1200&&"div.um-profile-edit"==t&&(i="lc"),"lc"==i&&(200>jQuery(t).find("img").width()?left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2+(jQuery(t).find("img").width()-200)/2:left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2,top_=parseInt(jQuery(t).find("a").css("top")),top_?(top_p=jQuery(t).find("img").height()+4+top_,left_gap=4):(top_p=jQuery(t).find("img").height()+4,left_gap=0),4==top_p&&"div.um-cover"==t?top_p=jQuery(t).height()/2+e.height()/2:4==top_p&&(top_p=jQuery(t).height()+20),gap_right=jQuery(t).width()+17,e.css({top:0,width:200,left:"auto",right:gap_right+"px","text-align":"center"}),e.find(".um-dropdown-arr").find("i").removeClass().addClass("um-icon-arrow-right-b"),e.find(".um-dropdown-arr").css({top:"4px",left:"auto",right:"-17px"})),"bc"==i&&(200>jQuery(t).find("img").width()?left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2+(jQuery(t).find("img").width()-200)/2:left_p=(jQuery(t).width()-jQuery(t).find("img").width())/2,top_=parseInt(jQuery(t).find("a").css("top")),top_?(top_p=jQuery(t).find("img").height()+4+top_,left_gap=4):(top_p=jQuery(t).find("img").height()+4,left_gap=0),4==top_p&&"div.um-cover"==t?top_p=jQuery(t).height()/2+e.height()/2:4==top_p&&(top_p=jQuery(t).height()+20),e.css({top:top_p,width:200,left:left_p+left_gap,right:"auto","text-align":"center"}),e.find(".um-dropdown-arr").find("i").removeClass().addClass("um-icon-arrow-up-b"),e.find(".um-dropdown-arr").css({top:"-17px",left:e.width()/2-12,right:"auto"}))})}function um_responsive(){jQuery(".um").each(function(){element_width=jQuery(this).width(),element_width<=340?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob340")):element_width<=500?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob500")):element_width<=800?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob800")):element_width<=960?(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960"),jQuery(this).addClass("uimob960")):element_width>960&&(jQuery(this).removeClass("uimob340"),jQuery(this).removeClass("uimob500"),jQuery(this).removeClass("uimob800"),jQuery(this).removeClass("uimob960")),jQuery(".um-account-nav").length>0&&jQuery(".um-account-side").is(":visible")&&0==jQuery(".um-account-tab:visible").length&&jQuery(".um-account-side li a.current").trigger("click"),jQuery(this).css("opacity",1)}),jQuery(".um-cover, .um-member-cover").each(function(){var e=jQuery(this),t=e.data("ratio"),i=e.width(),n=t.split(":");calcHeight=Math.round(i/n[0])+"px",e.height(calcHeight),e.find(".um-cover-add").height(calcHeight)}),jQuery(".um-members").each(function(){UM_Member_Grid(jQuery(this))}),UM_domenus()}function UM_Member_Grid(e){e.masonry({itemSelector:".um-member",columnWidth:".um-member",gutter:".um-gutter-sizer"})}function initImageUpload_UM(e){e.data("upload_help_text")?upload_help_text='<span class="help">'+e.data("upload_help_text")+"</span>":upload_help_text="",e.data("icon")?icon='<span class="icon"><i class="'+e.data("icon")+'"></i></span>':icon="",e.data("upload_text")?upload_text='<span class="str">'+e.data("upload_text")+"</span>":upload_text="",e.uploadFile({url:um_scripts.imageupload,method:"POST",multiple:!1,formData:{key:e.data("key"),set_id:e.data("set_id"),set_mode:e.data("set_mode"),_wpnonce:e.data("nonce"),timestamp:e.data("timestamp")},fileName:e.data("key"),allowedTypes:e.data("allowed_types"),maxFileSize:e.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:e.data("max_size_error"),extErrorStr:e.data("extension_error"),maxFileCountErrorStr:e.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,onSubmit:function(t){e.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(t,i,n){e.selectedFiles=0;try{i=jQuery.parseJSON(i)}catch(e){return void console.log(e,i)}i.error&&""!=i.error?(e.parents(".um-modal-body").append('<div class="um-error-block">'+i.error+"</div>"),e.parents(".um-modal-body").find(".upload-statusbar").hide(0),um_modal_responsive()):jQuery.each(i,function(t,i){var n=e.parents(".um-modal-body").find(".um-single-image-preview img"),r=e.parents(".um-modal-body").find(".um-single-image-preview");n.attr("src",i),n.load(function(){e.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),e.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),r.show(0),um_modal_responsive()})})}})}function initFileUpload_UM(e){e.data("upload_help_text")?upload_help_text='<span class="help">'+e.data("upload_help_text")+"</span>":upload_help_text="",e.data("icon")?icon='<span class="icon"><i class="'+e.data("icon")+'"></i></span>':icon="",e.data("upload_text")?upload_text='<span class="str">'+e.data("upload_text")+"</span>":upload_text="",e.uploadFile({url:um_scripts.fileupload,method:"POST",multiple:!1,formData:{key:e.data("key"),set_id:e.data("set_id"),set_mode:e.data("set_mode"),_wpnonce:e.data("nonce"),timestamp:e.data("timestamp")},fileName:e.data("key"),allowedTypes:e.data("allowed_types"),maxFileSize:e.data("max_size"),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:e.data("max_size_error"),extErrorStr:e.data("extension_error"),maxFileCountErrorStr:e.data("max_files_error"),maxFileCount:1,showDelete:!1,showAbort:!1,showDone:!1,showFileCounter:!1,showStatusAfterSuccess:!0,onSubmit:function(t){e.parents(".um-modal-body").find(".um-error-block").remove()},onSuccess:function(t,i,n){e.selectedFiles=0,i=jQuery.parseJSON(i),i.error&&""!=i.error?(e.parents(".um-modal-body").append('<div class="um-error-block">'+i.error+"</div>"),e.parents(".um-modal-body").find(".upload-statusbar").hide(0),setTimeout(function(){um_modal_responsive()},1e3)):(jQuery.each(i,function(t,i){e.parents(".um-modal-body").find(".um-modal-btn.um-finish-upload.disabled").removeClass("disabled"),e.parents(".um-modal-body").find(".ajax-upload-dragdrop,.upload-statusbar").hide(0),e.parents(".um-modal-body").find(".um-single-file-preview").show(0),"icon"==t?e.parents(".um-modal-body").find(".um-single-fileinfo i").removeClass().addClass(i):"icon_bg"==t?e.parents(".um-modal-body").find(".um-single-fileinfo span.icon").css({"background-color":i}):"filename"==t?e.parents(".um-modal-body").find(".um-single-fileinfo span.filename").html(i):e.parents(".um-modal-body").find(".um-single-fileinfo a").attr("href",i)}),setTimeout(function(){um_modal_responsive()},1e3))}})}function initCrop_UM(){var e=jQuery(".um-modal .um-single-image-preview img").first(),t=jQuery(".um-modal .um-single-image-preview"),i=e.parent().attr("data-crop"),n=e.parent().attr("data-min_width"),r=e.parent().attr("data-min_height"),a=e.parent().attr("data-ratio");if(jQuery(".um-modal").find("#um_upload_single").attr("data-ratio"))var a=jQuery(".um-modal").find("#um_upload_single").attr("data-ratio"),o=a.split(":"),a=o[0];if(e.length&&""!=e.attr("src")){var s=jQuery(window).height()-(jQuery(".um-modal-footer a").height()+20)-50-jQuery(".um-modal-header:visible").height();if(e.css({height:"auto"}),t.css({height:"auto"}),jQuery(window).height()<=400?(t.css({height:s+"px","max-height":s+"px"}),e.css({height:"auto"})):(e.css({height:"auto","max-height":s+"px"}),t.css({height:e.height(),"max-height":s+"px"})),"square"==i)var l={minWidth:n,minHeight:r,dragCrop:!1,aspectRatio:1,zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}};else if("cover"==i){Math.round(n/a)>0&&(r=Math.round(n/a));var l={minWidth:n,minHeight:r,dragCrop:!1,aspectRatio:a,zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}}}else if("user"==i)var l={minWidth:n,minHeight:r,dragCrop:!0,aspectRatio:"auto",zoomable:!1,rotatable:!1,dashed:!1,done:function(t){e.parent().attr("data-coord",Math.round(t.x)+","+Math.round(t.y)+","+Math.round(t.width)+","+Math.round(t.height))}};0!=i&&(e.cropper(l),jQuery(".um-single-image-preview img.cropper-hidden").cropper("destroy"),jQuery(".um-single-image-preview img.lazyloaded").addClass("cropper-hidden"),jQuery(".um-single-image-preview img.lazyloaded").removeClass("lazyloaded"),jQuery(".um-single-image-preview .cropper-container").append('<div class="um-clear"></div>'))}}function um_new_modal(e,t,i,n){var r=jQuery("body").find(".um-modal-overlay");if(0==r.length)if(jQuery(".tipsy").hide(),UM_hide_menus(),jQuery("body,html,textarea").css("overflow","hidden"),jQuery(document).bind("touchmove",function(e){e.preventDefault()}),jQuery(".um-modal").on("touchmove",function(e){e.stopPropagation()}),i?jQuery("body").append('<div class="um-modal-overlay"></div><div class="um-modal is-photo"></div>'):jQuery("body").append('<div class="um-modal-overlay"></div><div class="um-modal no-photo"></div>'),jQuery("#"+e).prependTo(".um-modal"),i){jQuery(".um-modal").find(".um-modal-photo").html("<img />");var a=jQuery(".um-modal-photo img"),o=jQuery(window).width()-60,s=jQuery(window).height()-.25*jQuery(window).height();a.attr("src",n),a.load(function(){jQuery("#"+e).show(),jQuery(".um-modal").show(),a.css({opacity:0}),a.css({"max-width":o}),a.css({"max-height":s}),jQuery(".um-modal").css({width:a.width(),"margin-left":"-"+a.width()/2+"px"}),a.animate({opacity:1},1e3),um_modal_responsive()})}else jQuery("#"+e).show(),jQuery(".um-modal").show(),um_modal_size(t),initImageUpload_UM(jQuery(".um-modal:visible").find(".um-single-image-upload")),initFileUpload_UM(jQuery(".um-modal:visible").find(".um-single-file-upload")),um_modal_responsive()}function um_modal_responsive(){var e=jQuery(".um-modal:visible"),t=jQuery(".um-modal-body.photo:visible");if(t.length){e.removeClass("uimob340"),e.removeClass("uimob500");var i=jQuery(".um-modal-photo img"),n=jQuery(window).width()-60,r=jQuery(window).height()-.25*jQuery(window).height();i.css({opacity:0}),i.css({"max-width":n}),i.css({"max-height":r}),jQuery(".um-modal").css({width:i.width(),"margin-left":"-"+i.width()/2+"px"}),i.animate({opacity:1},1e3);var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(e.length){var o=jQuery(window).width();if(e.removeClass("uimob340"),e.removeClass("uimob500"),o<=340)e.addClass("uimob340"),initCrop_UM(),e.animate({bottom:0},300);else if(o<=500)e.addClass("uimob500"),initCrop_UM(),e.animate({bottom:0},300);else if(o<=800){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(o<=960){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}else if(o>960){initCrop_UM();var a=(jQuery(window).height()-e.innerHeight())/2+"px";e.animate({bottom:a},300)}}}function um_remove_modal(){jQuery("img.cropper-hidden").cropper("destroy"),jQuery("body,html,textarea").css("overflow","auto"),jQuery(document).unbind("touchmove"),jQuery('.um-modal div[id^="um_"]').hide().appendTo("body"),jQuery(".um-modal,.um-modal-overlay").remove()}function um_modal_size(e){jQuery(".um-modal:visible").addClass(e)}function um_modal_add_attr(e,t){jQuery(".um-modal:visible").data(e,t)}function prepare_Modal(){0==jQuery(".um-popup-overlay").length&&(jQuery("body").append('<div class="um-popup-overlay"></div>'),jQuery("body").append('<div class="um-popup"></div>'),jQuery(".um-popup").addClass("loading"),jQuery("body,html").css({overflow:"hidden"}))}function remove_Modal(){jQuery(".um-popup-overlay").length&&(jQuery(".tipsy").remove(),jQuery(".um-popup").empty().remove(),jQuery(".um-popup-overlay").empty().remove(),jQuery("body,html").css({overflow:"auto"}))}function show_Modal(e){jQuery(".um-popup-overlay").length&&(jQuery(".um-popup").removeClass("loading").html(e),jQuery(".um-tip-n").tipsy({gravity:"n",opacity:1,offset:3}),jQuery(".um-tip-w").tipsy({gravity:"w",opacity:1,offset:3}),jQuery(".um-tip-e").tipsy({gravity:"e",opacity:1,offset:3}),jQuery(".um-tip-s").tipsy({gravity:"s",opacity:1,offset:3}))}function responsive_Modal(){jQuery(".um-popup-overlay").length&&(ag_height=jQuery(window).height()-jQuery(".um-popup um-popup-header").outerHeight()-jQuery(".um-popup .um-popup-footer").outerHeight()-80,ag_height>350&&(ag_height=350),jQuery(".um-popup-autogrow:visible").length?(jQuery(".um-popup-autogrow:visible").css({height:ag_height+"px"}),jQuery(".um-popup-autogrow:visible").mCustomScrollbar({theme:"dark-3",mouseWheelPixels:500}).mCustomScrollbar("scrollTo","bottom",{scrollInertia:0})):jQuery(".um-popup-autogrow2:visible").length&&(jQuery(".um-popup-autogrow2:visible").css({"max-height":ag_height+"px"}),jQuery(".um-popup-autogrow2:visible").mCustomScrollbar({theme:"dark-3",mouseWheelPixels:500})))}function um_reset_field(e){jQuery(e).find("div.um-field-area").find("input,textarea,select").not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").removeAttr("selected")}!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?i=t:t={};var e,i,n;!function(t){function r(e,t){return w.call(e,t)}function a(e,t){var i,n,r,a,o,s,l,u,c,d,h,p=t&&t.split("/"),f=y.map,m=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),o=e.length-1,y.nodeIdCompat&&x.test(e[o])&&(e[o]=e[o].replace(x,"")),e=p.slice(0,p.length-1).concat(e),c=0;c<e.length;c+=1)if(h=e[c],"."===h)e.splice(c,1),c-=1;else if(".."===h){if(1===c&&(".."===e[2]||".."===e[0]))break;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((p||m)&&f){for(i=e.split("/"),c=i.length;c>0;c-=1){if(n=i.slice(0,c).join("/"),p)for(d=p.length;d>0;d-=1)if(r=f[p.slice(0,d).join("/")],r&&(r=r[n])){a=r,s=c;break}if(a)break;!l&&m&&m[n]&&(l=m[n],u=c)}!a&&l&&(a=l,s=u),a&&(i.splice(0,s,a),e=i.join("/"))}return e}function o(e,i){return function(){var n=_.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(t,n.concat([e,i]))}}function s(e){return function(t){return a(t,e)}}function l(e){return function(t){g[e]=t}}function u(e){if(r(v,e)){var i=v[e];delete v[e],b[e]=!0,h.apply(t,i)}if(!r(g,e)&&!r(b,e))throw new Error("No "+e);return g[e]}function c(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var h,p,f,m,g={},v={},y={},b={},w=Object.prototype.hasOwnProperty,_=[].slice,x=/\.js$/;f=function(e,t){var i,n=c(e),r=n[0];return e=n[1],r&&(r=a(r,t),i=u(r)),r?e=i&&i.normalize?i.normalize(e,s(t)):a(e,t):(e=a(e,t),n=c(e),r=n[0],e=n[1],r&&(i=u(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:i}},m={require:function(e){return o(e)},exports:function(e){var t=g[e];return"undefined"!=typeof t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:d(e)}}},h=function(e,i,n,a){var s,c,d,h,p,y,w=[],_=typeof n;if(a=a||e,"undefined"===_||"function"===_){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if(h=f(i[p],a),c=h.f,"require"===c)w[p]=m.require(e);else if("exports"===c)w[p]=m.exports(e),y=!0;else if("module"===c)s=w[p]=m.module(e);else if(r(g,c)||r(v,c)||r(b,c))w[p]=u(c);else{if(!h.p)throw new Error(e+" missing "+c);h.p.load(h.n,o(a,!0),l(c),{}),w[p]=g[c]}d=n?n.apply(g[e],w):void 0,e&&(s&&s.exports!==t&&s.exports!==g[e]?g[e]=s.exports:d===t&&y||(g[e]=d))}else e&&(g[e]=n)},e=i=p=function(e,i,n,r,a){if("string"==typeof e)return m[e]?m[e](i):u(f(e,i).f);if(!e.splice){if(y=e,y.deps&&p(y.deps,y.callback),!i)return;i.splice?(e=i,i=n,n=null):e=t}return i=i||function(){},"function"==typeof n&&(n=r,r=a),r?h(t,e,i,n):setTimeout(function(){h(t,e,i,n)},4),p},p.config=function(e){return p(e)},e._defined=g,n=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),r(g,e)||r(v,e)||(v[e]=[e,t,i])},n.amd={jQuery:!0}}(),t.requirejs=e,t.require=i,t.define=n}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,i=[];for(var n in t){var r=t[n];"function"==typeof r&&"constructor"!==n&&i.push(n)}return i}var i={};i.Extend=function(e,t){function i(){this.constructor=e}var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},i.Decorate=function(e,i){function n(){var t=Array.prototype.unshift,n=i.prototype.constructor.length,r=e.prototype.constructor;n>0&&(t.call(arguments,e.prototype.constructor),r=i.prototype.constructor),r.apply(this,arguments)}function r(){this.constructor=n}var a=t(i),o=t(e);i.displayName=e.displayName,n.prototype=new r;for(var s=0;s<o.length;s++){var l=o[s];n.prototype[l]=e.prototype[l]}for(var u=(function(e){var t=function(){};e in n.prototype&&(t=n.prototype[e]);var r=i.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),r.apply(this,arguments)}}),c=0;c<a.length;c++){var d=a[c];n.prototype[d]=u(d)}return n};var n=function(){this.listeners={}};return n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice;this.listeners=this.listeners||{},e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var i=0,n=e.length;n>i;i++)e[i].apply(this,t)},i.Observable=n,i.generateChars=function(e){for(var t="",i=0;e>i;i++){var n=Math.floor(36*Math.random());t+=n.toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var i=t.split("-"),n=e;if(1!==i.length){for(var r=0;r<i.length;r++){var a=i[r];a=a.substring(0,1).toLowerCase()+a.substring(1),a in n||(n[a]={}),r==i.length-1&&(n[a]=e[t]),n=n[a]}delete e[t]}}return e},i.hasScroll=function(t,i){var n=e(i),r=i.style.overflowX,a=i.style.overflowY;return(r!==a||"hidden"!==a&&"visible"!==a)&&("scroll"===r||"scroll"===a||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(t,i){if("1.7"===e.fn.jquery.substr(0,3)){var n=e();e.map(i,function(e){n=n.add(e)}),i=n}t.append(i)},i}),t.define("select2/results",["jquery","./utils"],function(e,t){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);n.append(i(r(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var n=e.results[i],r=this.option(n);t.push(r)}this.$results.append(t)},i.prototype.position=function(e,t){var i=t.find(".select2-results");i.append(e)},i.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var n=e.map(i,function(e){return e.id.toString()}),r=t.$results.find(".select2-results__option[aria-selected]");r.each(function(){var t=e(this),i=e.data(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(r,n)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")});var a=r.filter("[aria-selected=true]");a.length>0?a.first().trigger("mouseenter"):r.first().trigger("mouseenter")})},i.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),i={disabled:!0,loading:!0,text:t(e)},n=this.option(i);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};t.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==t.id&&delete n["aria-selected"],null!=t._resultId&&(i.id=t._resultId),t.title&&(i.title=t.title),t.children&&(n.role="group",n["aria-label"]=t.text,delete n["aria-selected"]);for(var r in n){var a=n[r];i.setAttribute(r,a)}if(t.children){var o=e(i),s=document.createElement("strong");s.className="select2-results__group",e(s),this.template(t,s);for(var l=[],u=0;u<t.children.length;u++){var c=t.children[u],d=this.option(c);l.push(d)}var h=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(l),o.append(s),o.append(h)}else this.template(t,i);return e.data(i,"data",t),i},i.prototype.bind=function(t,i){var n=this,r=t.id+"-results";this.$results.attr("id",r),t.on("results:all",function(e){n.clear(),n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("results:append",function(e){n.append(e.data),t.isOpen()&&n.setClasses()}),t.on("query",function(e){n.hideMessages(),n.showLoading(e)}),t.on("select",function(){t.isOpen()&&n.setClasses()}),t.on("unselect",function(){t.isOpen()&&n.setClasses()}),t.on("open",function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),t.on("close",function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e);if(0!==i){var r=i-1;0===e.length&&(r=0);var a=t.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top,s=a.offset().top,l=n.$results.scrollTop()+(s-o);0===r?n.$results.scrollTop(0):0>s-o&&n.$results.scrollTop(l)}}),t.on("results:next",function(){var e=n.getHighlightedResults(),t=n.$results.find("[aria-selected]"),i=t.index(e),r=i+1;if(!(r>=t.length)){var a=t.eq(r);a.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),s=a.offset().top+a.outerHeight(!1),l=n.$results.scrollTop()+s-o;0===r?n.$results.scrollTop(0):s>o&&n.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){n.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,a=e.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):a&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var i=e(this),r=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:t,data:r}):n.trigger("close",{})):void n.trigger("select",{originalEvent:t,data:r})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var i=e(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:e(this)})})},i.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),i=t.index(e),n=this.$results.offset().top,r=e.offset().top,a=this.$results.scrollTop()+(r-n),o=r-n;a-=2*e.outerHeight(!1),2>=i?this.$results.scrollTop(0):(o>this.$results.outerHeight()||0>o)&&this.$results.scrollTop(a)}},i.prototype.template=function(t,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),a=n(t,i);null==a?i.style.display="none":"string"==typeof a?i.innerHTML=r(a):e(i).append(a)},i}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},n.prototype.bind=function(e,t){var n=this,r=(e.id+"-container",e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},n.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var i=e(t.target),n=i.closest(".select2"),r=e(".select2.select2-container--open");r.each(function(){var t=e(this);if(this!=n[0]){var i=t.data("element");i.select2("close")}})})},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){var i=t.find(".selection");i.append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var i=this;r.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("selection:update",function(e){i.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(t,i);i.empty().append(n),i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,i){function n(e,t){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(t,i){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.options.get("disabled")){var i=e(this),n=i.parent(),a=n.data("data");r.trigger("unselect",{originalEvent:t,data:a})}})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var i=this.options.get("templateSelection"),n=this.options.get("escapeMarkup");return n(i(e,t))},n.prototype.selectionContainer=function(){var t=e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return t},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],a=this.selectionContainer(),o=this.display(r,a);
2
+ a.append(o),a.prop("title",r.title||r.text),a.data("data",r),t.push(a)}var s=this.$selection.find(".select2-selection__rendered");i.appendMany(s,t)}},n}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id,n=t.length>1;if(n||i)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function i(){}return i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){n._handleClear(e)}),t.on("keypress",function(e){n._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();for(var n=i.data("data"),r=0;r<n.length;r++){var a={data:n[r]};if(this.trigger("unselect",a),a.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(e,i,n){n.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=e('<span class="select2-selection__clear">&times;</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,i){function n(e,t,i){e.call(this,t,i)}return n.prototype.render=function(t){var i=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=t.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===i.BACKSPACE&&""===r.$search.val()){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var a=n.data("data");r.searchRemoveChoice(a),e.preventDefault()}}});var a=document.documentMode,o=a&&11>=a;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return o?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)return void r.$selection.off("input.search input.searchcheck");var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&r.handleSearch(e)})},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},n}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,i,n){var r=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];t.call(this,i,n),i.on("*",function(t,i){if(-1!==e.inArray(t,a)){i=i||{};var n=e.Event("select2:"+t,{params:i});r.$element.trigger(n),-1!==e.inArray(t,o)&&(i.prevented=n.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var n=t(e);i._cache[e]=n}return new i(i._cache[e])},i}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var n=t.id+"-result-";return n+=e.generateChars(4),n+=null!=i.id?"-"+i.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=i(this),r=n.item(e);t.push(r)}),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,i(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var r=[];e=[e],e.push.apply(e,n);for(var a=0;a<e.length;a++){var o=e[a].id;-1===i.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,i(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current(function(n){for(var r=[],a=0;a<n.length;a++){var o=n[a].id;o!==e.id&&-1===i.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")})},n.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",function(e){i.select(e.data)}),e.on("unselect",function(e){i.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},n.prototype.query=function(e,t){var n=[],r=this,a=this.$element.children();a.each(function(){var t=i(this);if(t.is("option")||t.is("optgroup")){var a=r.item(t),o=r.matches(e,a);null!==o&&n.push(o)}}),t({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=i(t),r=this._normalizeItem(e);return r.element=t,i.data(t,"data",r),n},n.prototype.item=function(e){var t={};if(t=i.data(e[0],"data"),null!=t)return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],a=0;a<n.length;a++){var o=i(n[a]),s=this.item(o);r.push(s)}t.children=r}return t=this._normalizeItem(t),t.element=e[0],i.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){i.isPlainObject(e)||(e={id:e,text:e}),e=i.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},t,e)},n.prototype.matches=function(e,t){var i=this.options.get("matcher");return i(e,t)},n}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,i){function n(e,t){var i=t.get("data")||[];n.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(i))}return t.Extend(n,e),n.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,i){return i.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){function n(e){return function(){return i(this).val()==e.id}}for(var r=this,a=this.$element.find("option"),o=a.map(function(){return r.item(i(this)).id}).get(),s=[],l=0;l<e.length;l++){var u=this._normalizeItem(e[l]);if(i.inArray(u.id,o)>=0){var c=a.filter(n(u)),d=this.item(c),h=i.extend(!0,{},u,d),p=this.option(h);c.replaceWith(p)}else{var f=this.option(u);if(u.children){var m=this.convertToOptions(u.children);t.appendMany(f,m)}s.push(f)}}return s},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,i){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,n){var r=i.ajax(e);return r.then(t),r.fail(n),r}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){function n(){var n=a.transport(a,function(n){var a=r.processResults(n,e);r.options.get("debug")&&window.console&&console.error&&(a&&a.results&&i.isArray(a.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(a)},function(){r.trigger("results:message",{message:"errorLoading"})});r._request=n}var r=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var a=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof a.url&&(a.url=a.url.call(this.$element,e)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,e)),this.ajaxOptions.delay&&""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),t.define("select2/data/tags",["jquery"],function(e){function t(t,i,n){var r=n.get("tags"),a=n.get("createTag");void 0!==a&&(this.createTag=a);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,i,n),e.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return t.prototype.query=function(e,t,i){function n(e,a){for(var o=e.results,s=0;s<o.length;s++){var l=o[s],u=null!=l.children&&!n({results:l.children},!0),c=l.text===t.term;if(c||u)return!a&&(e.data=o,void i(e))}if(a)return!0;var d=r.createTag(t);if(null!=d){var h=r.option(d);h.attr("data-select2-tag",!0),r.addOptions([h]),r.insertTag(o,d)}e.results=o,i(e)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,i):void e.call(this,t,n)},t.prototype.createTag=function(t,i){var n=e.trim(i.term);return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){var i=(this._lastTag,this.$element.find("option[data-select2-tag]"));i.each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(e,t,i){function n(e){r.trigger("select",{data:e})}var r=this;t.term=t.term||"";var a=this.tokenizer(t,this.options,n);a.term!==t.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),t.term=a.term),e.call(this,t,i)},t.prototype.tokenizer=function(t,i,n,r){for(var a=n.get("tokenSeparators")||[],o=i.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var u=o[s];if(-1!==e.inArray(u,a)){var c=o.substr(0,s),d=e.extend({},i,{term:c}),h=l(d);null!=h?(r(h),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){var n=this;this.current(function(r){var a=null!=r?r.length:0;return n.maximumSelectionLength>0&&a>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void e.call(n,t,i)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function i(){}return i.prototype.render=function(t){var i=t.call(this),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),i.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),i.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val("")}),i.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=r.showSearch(e);t?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide")}})},i.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.showSearch=function(e,t){return!0},i}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var r=t[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,n){var r=this;t.call(this,i,n),i.on("query",function(e){r.lastParams=e,r.loading=!0}),i.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,r.$loadingMore[0]);if(!r.loading&&t){var i=r.$results.offset().top+r.$results.outerHeight(!1),n=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1);i+50>=n&&r.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function i(t,i,n){this.$dropdownParent=n.get("dropdownParent")||e(document.body),t.call(this,i,n)}return i.prototype.bind=function(e,t,i){var n=this,r=!1;e.call(this,t,i),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var r=this,a="scroll.select2."+n.id,o="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(a,function(t){var i=e(this).data("select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(a+" "+o+" "+s,function(e){r._positionDropdown(),r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,a="resize.select2."+n.id,o="orientationchange.select2."+n.id,s=this.$container.parents().filter(t.hasScroll);s.off(r),e(window).off(r+" "+a+" "+o)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<a.top-s.height,c=l.bottom>a.bottom+s.height,d={left:a.left,top:o.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();d.top-=p.top,d.left-=p.left,i||n||(r="below"),c||!u||i?!u&&c&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(d.top=o.top-s.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var i=0,n=0;n<t.length;n++){var r=t[n];r.children?i+=e(r.children):i++}return i}function t(e,t,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,n)}return t.prototype.showSearch=function(t,i){return!(e(i.data.results)<this.minimumResultsForSearch)&&t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("close",function(){n._handleSelectOnClose()})},e.prototype._handleSelectOnClose=function(){var e=this.getHighlightedResults();if(!(e.length<1)){var t=e.data("data");null!=t.element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",function(e){n._selectTriggered(e)}),t.on("unselect",function(e){n._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){var t=e.minimum-e.input.length,i="Please enter "+t+" or more characters";return i},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,i,n,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,b,w,_,x,j,C,S,k,$,D){function Q(){this.reset()}Q.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=h,d.minimumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=u.Decorate(d.dataAdapter,m)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=u.Decorate(d.dataAdapter,g)),null!=d.query){var D=t(d.amdBase+"compat/query");d.dataAdapter=u.Decorate(d.dataAdapter,D)}if(null!=d.initSelection){var Q=t(d.amdBase+"compat/initSelection");d.dataAdapter=u.Decorate(d.dataAdapter,Q)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,j)),
3
+ null!=d.placeholder&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,k))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var T=u.Decorate(w,_);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,S)),d.closeOnSelect&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,$)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var O=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=u.Decorate(d.dropdownAdapter,O)}d.dropdownAdapter=u.Decorate(d.dropdownAdapter,C)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=r:d.selectionAdapter=n,null!=d.placeholder&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,a)),d.allowClear&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,o)),d.multiple&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var A=t(d.amdBase+"compat/containerCss");d.selectionAdapter=u.Decorate(d.selectionAdapter,A)}d.selectionAdapter=u.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var M=d.language.split("-"),E=M[0];d.language=[d.language,E]}else d.language=[d.language];if(e.isArray(d.language)){var I=new c;d.language.push("en");for(var P=d.language,L=0;L<P.length;L++){var R=P[L],H={};try{H=c.loadPath(R)}catch(e){try{R=this.defaults.amdLanguageBase+R,H=c.loadPath(R)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+R+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend(H)}d.translations=I}else{var B=c.loadPath(this.defaults.amdLanguageBase+"en"),z=new c(d.language);z.extend(B),d.translations=z}return d},Q.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function i(n,r){if(""===e.trim(n.term))return r;if(r.children&&r.children.length>0){for(var a=e.extend(!0,{},r),o=r.children.length-1;o>=0;o--){var s=r.children[o],l=i(n,s);null==l&&a.children.splice(o,1)}return a.children.length>0?a:i(n,a)}var u=t(r.text).toUpperCase(),c=t(n.term).toUpperCase();return u.indexOf(c)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:D,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},Q.prototype.set=function(t,i){var n=e.camelCase(t),r={};r[n]=i;var a=u._convertData(r);e.extend(this.defaults,a)};var T=new Q;return T}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,i,n){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),this.options=i.apply(this.options),r&&r.is("input")){var a=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,a)}}return r.prototype.fromElement=function(e){var i=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var r={};r=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var a=t.extend(!0,{},r);a=n._convertData(a);for(var o in a)t.inArray(o,i)>-1||(t.isPlainObject(this.options[o])?t.extend(this.options[o],a[o]):this.options[o]=a[o]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,i,n){var r=function(e,i){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var o=this.render();this._placeContainer(o);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){c.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return 0>=r?"auto":r+"px"}if("style"==t){var a=e.attr("style");if("string"!=typeof a)return null;for(var o=a.split(";"),s=0,l=o.length;l>s;s+=1){var u=o[s].replace(/\s/g,""),c=u.match(i);if(null!==c&&c.length>=1)return c[1]}return null}return t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){e.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(n,r){-1===e.inArray(n,i)&&t.trigger(n,r)})},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,i){e.trigger(t,i)})},r.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(i){e.trigger("results:all",{data:i,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(i){e.trigger("results:append",{data:i,query:t})})}),this.on("keypress",function(t){var i=t.which;e.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&t.altKey?(e.close(),t.preventDefault()):i===n.ENTER?(e.trigger("results:select",{}),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype.trigger=function(e,t){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in n){var a=n[e],o={prevented:!1,name:e,args:t};if(i.call(this,a,o),o.prevented)return void(t.prevented=!0)}i.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];e.isArray(i)&&(i=e.map(i,function(e){return e.toString()})),this.$element.val(i).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},r}),t.define("select2/compat/utils",["jquery"],function(e){function t(t,i,n){var r,a,o=[];r=e.trim(t.attr("class")),r&&(r=""+r,e(r.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)})),r=e.trim(i.attr("class")),r&&(r=""+r,e(r.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(a=n(this),null!=a&&o.push(a))})),t.attr("class",o.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function i(e){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),a=this.options.get("containerCssClass")||"";e.isFunction(a)&&(a=a(this.$element));var o=this.options.get("adaptContainerCssClass");if(o=o||i,-1!==a.indexOf(":all:")){a=a.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(r,this.$element,o),r.css(l),r.addClass(a),r},n}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function i(e){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),a=this.options.get("dropdownCssClass")||"";e.isFunction(a)&&(a=a(this.$element));var o=this.options.get("adaptDropdownCssClass");if(o=o||i,-1!==a.indexOf(":all:")){a=a.replace(":all:","");var s=o;o=function(e){var t=s(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(r,this.$element,o),r.css(l),r.addClass(a),r},n}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=i.get("initSelection"),this._isInitialized=!1,e.call(this,t,i)}return t.prototype.current=function(t,i){var n=this;return this._isInitialized?void t.call(this,i):void this.initSelection.call(null,this.$element,function(t){n._isInitialized=!0,e.isArray(t)||(t=[t]),i(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===t.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,i)}return t.prototype.current=function(t,i){function n(t,i){var r=[];return t.selected||-1!==e.inArray(t.id,i)?(t.selected=!0,r.push(t)):t.selected=!1,t.children&&r.push.apply(r,n(t.children,i)),r}for(var r=[],a=0;a<this._currentData.length;a++){var o=this._currentData[a];r.push.apply(r,n(o,this.$element.val().split(this._valueSeparator)))}i(r)},t.prototype.select=function(t,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(i.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var i=this;t.selected=!1,this.current(function(e){for(var n=[],r=0;r<e.length;r++){var a=e[r];t.id!=a.id&&n.push(a.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("change")})},t.prototype.query=function(e,t,i){for(var n=[],r=0;r<this._currentData.length;r++){var a=this._currentData[r],o=this.matches(t,a);null!==o&&n.push(o)}i({results:n})},t.prototype.addOptions=function(t,i){var n=e.map(i,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,n)},t}),t.define("select2/compat/matcher",["jquery"],function(e){function t(t){function i(i,n){var r=e.extend(!0,{},n);if(null==i.term||""===e.trim(i.term))return r;if(n.children){for(var a=n.children.length-1;a>=0;a--){var o=n.children[a],s=t(i.term,o.text,o);s||r.children.splice(a,1)}if(r.children.length>0)return r}return t(i.term,n.text,n)?r:null}return i}return t}),t.define("select2/compat/query",[],function(){function e(e,t,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.callback=i;var n=this.options.get("query");n.call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,i){e.call(this,t,i)}return e.prototype.position=function(e,t,i){var n=i.find(".dropdown-wrapper");n.append(t),t.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(n.join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(n.join(" "),function(e){e.stopPropagation()})},e}),function(i){"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(e)}(function(e){function t(t){var o=t||window.event,s=l.call(arguments,1),u=0,d=0,h=0,p=0,f=0,m=0;if(t=e.event.fix(o),t.type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),u=0===h?d:h,"deltaY"in o&&(h=-1*o.deltaY,u=h),"deltaX"in o&&(d=o.deltaX,0===h&&(u=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");u*=g,h*=g,d*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");u*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!a||a>p)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,d/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/a),d=Math[d>=1?"floor":"ceil"](d/a),h=Math[h>=1?"floor":"ceil"](h/a),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=h,t.deltaFactor=a,t.offsetX=f,t.offsetY=m,t.deltaMode=0,s.unshift(t,u,d,h),r&&clearTimeout(r),r=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function i(){a=null}function n(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var u=o.length;u;)e.event.fixHooks[o[--u]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,i,n){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var n=e.extend(!0,{},t);new i(e(this),n)}),this;if("string"==typeof t){var n;return this.each(function(){var i=e(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");var r=Array.prototype.slice.call(arguments,1);n=i[t].apply(i,r)}),e.inArray(t,r)>-1?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i}),jQuery(document).ready(function(){jQuery(document).on("click",".um-popup-overlay",function(){remove_Modal()}),jQuery(document).on("click",'.um-modal-overlay, a[data-action="um_remove_modal"]',function(){um_remove_modal()}),jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"], .um-modal a',function(e){return e.preventDefault(),!1}),jQuery(document).on("click",".um-modal .um-single-file-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-modal-body"),i=jQuery(this).parents(".um-modal-body").find(".um-single-fileinfo a").attr("href");return t.find(".um-single-file-preview").hide(),t.find(".ajax-upload-dragdrop").show(),t.find(".um-modal-btn.um-finish-upload").addClass("disabled"),um_modal_responsive(),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um-modal .um-single-image-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-modal-body"),i=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview img").attr("src");return jQuery("img.cropper-hidden").cropper("destroy"),t.find(".um-single-image-preview img").attr("src",""),t.find(".um-single-image-preview").hide(),t.find(".ajax-upload-dragdrop").show(),t.find(".um-modal-btn.um-finish-upload").addClass("disabled"),um_modal_responsive(),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um-finish-upload.file",function(){var e=jQuery(this).attr("data-key"),t=jQuery(this).parents(".um-modal-body").find(".um-single-file-preview").html();um_remove_modal(),jQuery(".um-single-file-preview[data-key="+e+"]").fadeIn().html(t),jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find(".um-btn-auto-width").html(jQuery(this).attr("data-change")),jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find("input[type=hidden]").val(jQuery(".um-single-file-preview[data-key="+e+"]").parents(".um-field").find(".um-single-fileinfo a").attr("href"))}),jQuery(document).on("click",".um-finish-upload.image",function(){var e=jQuery(this),t=jQuery(this).attr("data-key"),i=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview"),n=i.find("img").attr("src"),r=i.attr("data-coord");if(jQuery(this).parents("#um_upload_single").attr("data-user_id"))var a=jQuery(this).parents("#um_upload_single").attr("data-user_id");else var a=0;r?(jQuery(this).html(jQuery(this).attr("data-processing")).addClass("disabled"),jQuery.ajax({url:um_scripts.ajaxurl,type:"POST",data:{action:"ultimatemember_resize_image",src:n,coord:r,user_id:a,key:t},success:function(i){d=new Date,"profile_photo"==t&&jQuery(".um-profile-photo-img img").attr("src",i+"?"+d.getTime()),"cover_photo"==t&&(jQuery(".um-cover-e").empty().html('<img src="'+i+"?"+d.getTime()+'" alt="" />'),jQuery(".um").hasClass("um-editing")&&jQuery(".um-cover-overlay").show()),jQuery(".um-single-image-preview[data-key="+t+"]").fadeIn().find("img").attr("src",i+"?"+d.getTime()),um_remove_modal(),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find(".um-btn-auto-width").html(e.attr("data-change")),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find("input[type=hidden]").val(i)}})):(d=new Date,jQuery(".um-single-image-preview[data-key="+t+"]").fadeIn().find("img").attr("src",n+"?"+d.getTime()),um_remove_modal(),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find(".um-btn-auto-width").html(e.attr("data-change")),jQuery(".um-single-image-preview[data-key="+t+"]").parents(".um-field").find("input[type=hidden]").val(n))}),jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"]',function(e){var t=jQuery(this).attr("data-modal");if(jQuery(this).data("modal-size"))var i=jQuery(this).data("modal-size");else var i="normal";jQuery(this).data("modal-copy")?(jQuery("#"+t).html(jQuery(this).parents(".um-field").find(".um-modal-hidden-content").html()),jQuery(this).parents(".um-profile-photo").attr("data-user_id")&&jQuery("#"+t).attr("data-user_id",jQuery(this).parents(".um-profile-photo").attr("data-user_id")),jQuery(this).parents(".um-cover").attr("data-ratio")&&jQuery("#"+t).attr("data-ratio",jQuery(this).parents(".um-cover").attr("data-ratio")),jQuery(this).parents(".um-cover").attr("data-user_id")&&jQuery("#"+t).attr("data-user_id",jQuery(this).parents(".um-cover").attr("data-user_id")),um_new_modal(t,i)):um_new_modal(t,i)})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(i))}function i(t){var i=t.target,n=e(i);if(!n.is("[type=submit],[type=image]")){var r=n.closest("[type=submit]");if(0===r.length)return;i=r[0]}var a=this;if(a.clk=i,"image"==i.type)if(void 0!==t.offsetX)a.clk_x=t.offsetX,a.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=n.offset();a.clk_x=t.pageX-o.left,a.clk_y=t.pageY-o.top}else a.clk_x=t.pageX-i.offsetLeft,a.clk_y=t.pageY-i.offsetTop;setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},100)}function n(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var r={};r.fileapi=void 0!==e("<input type='file'/>").get(0).files,r.formdata=void 0!==window.FormData;var a=!!e.fn.prop;e.fn.attr2=function(){if(!a)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function i(i){var n,r,a=e.param(i,t.traditional).split("&"),o=a.length,s=[];for(n=0;n<o;n++)a[n]=a[n].replace(/\+/g," "),r=a[n].split("="),s.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return s}function o(n){for(var r=new FormData,a=0;a<n.length;a++)r.append(n[a].name,n[a].value);if(t.extraData){var o=i(t.extraData);for(a=0;a<o.length;a++)o[a]&&r.append(o[a][0],o[a][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});t.uploadProgress&&(s.xhr=function(){var i=e.ajaxSettings.xhr();return i.upload&&i.upload.addEventListener("progress",function(e){var i=0,n=e.loaded||e.position,r=e.total;e.lengthComputable&&(i=Math.ceil(n/r*100)),t.uploadProgress(e,n,r,i)},!1),i}),s.data=null;var u=s.beforeSend;return s.beforeSend=function(e,i){t.formData?i.data=t.formData:i.data=r,u&&u.call(this,e,i)},e.ajax(s)}function s(i){function r(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){n("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){n("cannot get iframe.contentDocument: "+i),t=e.document}return t}function o(){function t(){try{var e=r(v).readyState;n("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(e){n("Server abort: ",e," (",e.name,")"),s(k),x&&clearTimeout(x),x=void 0}}var i=d.attr2("target"),a=d.attr2("action"),o="multipart/form-data",u=d.attr("enctype")||d.attr("encoding")||o;j.setAttribute("target",f),l&&!/post/i.test(l)||j.setAttribute("method","POST"),a!=h.url&&j.setAttribute("action",h.url),h.skipEncodingOverride||l&&!/post/i.test(l)||d.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(x=setTimeout(function(){_=!0,s(S)},h.timeout));var c=[];try{if(h.extraData)for(var p in h.extraData)h.extraData.hasOwnProperty(p)&&(e.isPlainObject(h.extraData[p])&&h.extraData[p].hasOwnProperty("name")&&h.extraData[p].hasOwnProperty("value")?c.push(e('<input type="hidden" name="'+h.extraData[p].name+'">').val(h.extraData[p].value).appendTo(j)[0]):c.push(e('<input type="hidden" name="'+p+'">').val(h.extraData[p]).appendTo(j)[0]));h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(t,15);try{j.submit()}catch(e){var m=document.createElement("form").submit;m.apply(j)}}finally{j.setAttribute("action",a),j.setAttribute("enctype",u),i?j.setAttribute("target",i):d.removeAttr("target"),e(c).remove()}}function s(t){if(!y.aborted&&!O){if(T=r(v),T||(n("cannot access response document"),t=k),t===S&&y)return y.abort("timeout"),void C.reject(y,"timeout");if(t==k&&y)return y.abort("server abort"),void C.reject(y,"error","server abort");if(T&&T.location.href!=h.iframeSrc||_){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var i,a="success";try{if(_)throw"timeout";var o="xml"==h.dataType||T.XMLDocument||e.isXMLDoc(T);if(n("isXml="+o),!o&&window.opera&&(null===T.body||!T.body.innerHTML)&&--A)return n("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var l=T.body?T.body:T.documentElement;y.responseText=l?l.innerHTML:null,y.responseXML=T.XMLDocument?T.XMLDocument:T,o&&(h.dataType="xml"),y.getResponseHeader=function(e){var t={"content-type":h.dataType};return t[e.toLowerCase()]},l&&(y.status=Number(l.getAttribute("status"))||y.status,y.statusText=l.getAttribute("statusText")||y.statusText);var u=(h.dataType||"").toLowerCase(),c=/(json|script|text)/.test(u);if(c||h.textarea){var d=T.getElementsByTagName("textarea")[0];if(d)y.responseText=d.value,y.status=Number(d.getAttribute("status"))||y.status,y.statusText=d.getAttribute("statusText")||y.statusText;else if(c){var f=T.getElementsByTagName("pre")[0],m=T.getElementsByTagName("body")[0];f?y.responseText=f.textContent?f.textContent:f.innerText:m&&(y.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==u&&!y.responseXML&&y.responseText&&(y.responseXML=M(y.responseText));try{Q=I(y,u,h)}catch(e){a="parsererror",y.error=i=e||a}}catch(e){n("error caught: ",e),
4
+ a="error",y.error=i=e||a}y.aborted&&(n("upload aborted"),a=null),y.status&&(a=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===a?(h.success&&h.success.call(h.context,Q,"success",y),C.resolve(y.responseText,"success",y),p&&e.event.trigger("ajaxSuccess",[y,h])):a&&(void 0===i&&(i=y.statusText),h.error&&h.error.call(h.context,y,a,i),C.reject(y,"error",i),p&&e.event.trigger("ajaxError",[y,h,i])),p&&e.event.trigger("ajaxComplete",[y,h]),p&&!--e.active&&e.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,y,a),O=!0,h.timeout&&clearTimeout(x),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),y.responseXML=null},100)}}}var u,c,h,p,f,g,v,y,b,w,_,x,j=d[0],C=e.Deferred();if(C.abort=function(e){y.abort(e)},i)for(c=0;c<m.length;c++)u=e(m[c]),a?u.prop("disabled",!1):u.removeAttr("disabled");if(h=e.extend(!0,{},e.ajaxSettings,t),h.context=h.context||h,f="jqFormIO"+(new Date).getTime(),h.iframeTarget?(g=e(h.iframeTarget),w=g.attr2("name"),w?f=w:g.attr2("name",f)):(g=e('<iframe name="'+f+'" src="'+h.iframeSrc+'" />'),g.css({position:"absolute",top:"-1000px",left:"-1000px"})),v=g[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var i="timeout"===t?"timeout":"aborted";n("aborting upload... "+i),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}g.attr("src",h.iframeSrc),y.error=i,h.error&&h.error.call(h.context,y,i,t),p&&e.event.trigger("ajaxError",[y,h,i]),h.complete&&h.complete.call(h.context,y,i)}},p=h.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[y,h]),h.beforeSend&&h.beforeSend.call(h.context,y,h)===!1)return h.global&&e.active--,C.reject(),C;if(y.aborted)return C.reject(),C;b=j.clk,b&&(w=b.name,w&&!b.disabled&&(h.extraData=h.extraData||{},h.extraData[w]=b.value,"image"==b.type&&(h.extraData[w+".x"]=j.clk_x,h.extraData[w+".y"]=j.clk_y)));var S=1,k=2,$=e("meta[name=csrf-token]").attr("content"),D=e("meta[name=csrf-param]").attr("content");D&&$&&(h.extraData=h.extraData||{},h.extraData[D]=$),h.forceSync?o():setTimeout(o,10);var Q,T,O,A=50,M=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},E=e.parseJSON||function(e){return window.eval("("+e+")")},I=function(t,i,n){var r=t.getResponseHeader("content-type")||"",a="xml"===i||!i&&r.indexOf("xml")>=0,o=a?t.responseXML:t.responseText;return a&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),n&&n.dataFilter&&(o=n.dataFilter(o,i)),"string"==typeof o&&("json"===i||!i&&r.indexOf("json")>=0?o=E(o):("script"===i||!i&&r.indexOf("javascript")>=0)&&e.globalEval(o)),o};return C}if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var l,u,c,d=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),l=t.type||this.attr2("method"),u=t.url||this.attr2("action"),c="string"==typeof u?e.trim(u):"",c=c||window.location.href||"",c&&(c=(c.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:c,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var h={};if(this.trigger("form-pre-serialize",[this,t,h]),h.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=t.traditional;void 0===p&&(p=e.ajaxSettings.traditional);var f,m=[],g=this.formToArray(t.semantic,m);if(t.data&&(t.extraData=t.data,f=e.param(t.data,p)),t.beforeSubmit&&t.beforeSubmit(g,this,t)===!1)return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[g,this,t,h]),h.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var v=e.param(g,p);f&&(v=v?v+"&"+f:f),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+v,t.data=null):t.data=v;var y=[];if(t.resetForm&&y.push(function(){d.resetForm()}),t.clearForm&&y.push(function(){d.clearForm(t.includeHidden)}),!t.dataType&&t.target){var b=t.success||function(){};y.push(function(i){var n=t.replaceTarget?"replaceWith":"html";e(t.target)[n](i).each(b,arguments)})}else t.success&&y.push(t.success);if(t.success=function(e,i,n){for(var r=t.context||this,a=0,o=y.length;a<o;a++)y[a].apply(r,[e,i,n||d,d])},t.error){var w=t.error;t.error=function(e,i,n){var r=t.context||this;w.apply(r,[e,i,n,d])}}if(t.complete){var _=t.complete;t.complete=function(e,i){var n=t.context||this;_.apply(n,[e,i,d])}}var x=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),j=x.length>0,C="multipart/form-data",S=d.attr("enctype")==C||d.attr("encoding")==C,k=r.fileapi&&r.formdata;n("fileAPI :"+k);var $,D=(j||S)&&!k;t.iframe!==!1&&(t.iframe||D)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){$=s(g)}):$=s(g):$=(j||S)&&k?o(g):e.ajax(t),d.removeData("jqxhr").data("jqxhr",$);for(var Q=0;Q<m.length;Q++)m[Q]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(r){if(r=r||{},r.delegation=r.delegation&&e.isFunction(e.fn.on),!r.delegation&&0===this.length){var a={s:this.selector,c:this.context};return!e.isReady&&a.s?(n("DOM not ready, queuing ajaxForm"),e(function(){e(a.s,a.c).ajaxForm(r)}),this):(n("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return r.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,r,t).on("click.form-plugin",this.selector,r,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",r,t).bind("click.form-plugin",r,i)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,i){var n=[];if(0===this.length)return n;var a,o=this[0],s=this.attr("id"),l=t?o.getElementsByTagName("*"):o.elements;if(l&&!/MSIE [678]/.test(navigator.userAgent)&&(l=e(l).get()),s&&(a=e(':input[form="'+s+'"]').get(),a.length&&(l=(l||[]).concat(a))),!l||!l.length)return n;var u,c,d,h,p,f,m;for(u=0,f=l.length;u<f;u++)if(p=l[u],d=p.name,d&&!p.disabled)if(t&&o.clk&&"image"==p.type)o.clk==p&&(n.push({name:d,value:e(p).val(),type:p.type}),n.push({name:d+".x",value:o.clk_x},{name:d+".y",value:o.clk_y}));else if(h=e.fieldValue(p,!0),h&&h.constructor==Array)for(i&&i.push(p),c=0,m=h.length;c<m;c++)n.push({name:d,value:h[c]});else if(r.fileapi&&"file"==p.type){i&&i.push(p);var g=p.files;if(g.length)for(c=0;c<g.length;c++)n.push({name:d,value:g[c],type:p.type});else n.push({name:d,value:"",type:p.type})}else null!==h&&"undefined"!=typeof h&&(i&&i.push(p),n.push({name:d,value:h,type:p.type,required:p.required}));if(!t&&o.clk){var v=e(o.clk),y=v[0];d=y.name,d&&!y.disabled&&"image"==y.type&&(n.push({name:d,value:v.val()}),n.push({name:d+".x",value:o.clk_x},{name:d+".y",value:o.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var n=this.name;if(n){var r=e.fieldValue(this,t);if(r&&r.constructor==Array)for(var a=0,o=r.length;a<o;a++)i.push({name:n,value:r[a]});else null!==r&&"undefined"!=typeof r&&i.push({name:this.name,value:r})}}),e.param(i)},e.fn.fieldValue=function(t){for(var i=[],n=0,r=this.length;n<r;n++){var a=this[n],o=e.fieldValue(a,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(i,o):i.push(o))}return i},e.fieldValue=function(t,i){var n=t.name,r=t.type,a=t.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!n||t.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!t.checked||("submit"==r||"image"==r)&&t.form&&t.form.clk!=t||"select"==a&&t.selectedIndex==-1))return null;if("select"==a){var o=t.selectedIndex;if(o<0)return null;for(var s=[],l=t.options,u="select-one"==r,c=u?o+1:l.length,d=u?o:0;d<c;d++){var h=l[d];if(h.selected){var p=h.value;if(p||(p=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),u)return p;s.push(p)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var n=this.type,r=this.tagName.toLowerCase();i.test(n)||"textarea"==r?this.value="":"checkbox"==n||"radio"==n?this.checked=!1:"select"==r?this.selectedIndex=-1:"file"==n?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(n)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=t;else if("option"==this.tagName.toLowerCase()){var n=e(this).parent("select");t&&n[0]&&"select-one"==n[0].type&&n.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}),function(e){void 0==e.fn.ajaxForm;var t={};t.fileapi=void 0!==e("<input type='file'/>").get(0).files,t.formdata=void 0!==window.FormData,e.fn.uploadFile=function(i){function n(){h.afterUploadAll&&!g&&(g=!0,function e(){0!=f.sCounter&&f.sCounter+f.fCounter==f.tCounter?(h.afterUploadAll(f),g=!1):window.setTimeout(e,100)}())}function r(t,i,n){n.on("dragenter",function(t){t.stopPropagation(),t.preventDefault(),e(this).css("border","2px dashed #ddd")}),n.on("dragover",function(e){e.stopPropagation(),e.preventDefault()}),n.on("drop",function(n){e(this).css("border","2px dashed #ddd"),n.preventDefault(),t.errorLog.html("");var r=n.originalEvent.dataTransfer.files;return!i.multiple&&r.length>1?void(i.showError&&e("<div class='um-error-block'>"+i.multiDragErrorStr+"</div>").appendTo(t.errorLog)):void(0!=i.onSelect(r)&&o(i,t,r))}),e(document).on("dragenter",function(e){e.stopPropagation(),e.preventDefault()}),e(document).on("dragover",function(e){e.stopPropagation(),e.preventDefault(),n.css("border","2px dashed #ddd")}),e(document).on("drop",function(e){e.stopPropagation(),e.preventDefault(),n.css("border","2px dashed #ddd")})}function a(t){var i=[];i="string"==jQuery.type(t)?t.split("&"):e.param(t).split("&");var n,r,a=i.length,o=[];for(n=0;n<a;n++)i[n]=i[n].replace(/\+/g," "),r=i[n].split("="),o.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return o}function o(t,i,n){for(var r=0;r<n.length;r++)if(s(i,t,n[r].name))if(t.maxFileSize!=-1&&n[r].size>t.maxFileSize)t.showError&&e("<div class='um-error-block'>"+t.sizeErrorStr+"</div>").appendTo(i.errorLog);else if(t.maxFileCount!=-1&&i.selectedFiles>=t.maxFileCount)t.showError&&e("<div class='um-error-block'>"+t.maxFileCountErrorStr+"</div>").appendTo(i.errorLog);else{i.selectedFiles++;var o=t,l=new FormData,u=t.fileName.replace("[]","");l.append(u,n[r]);var h=t.formData;if(h)for(var p=a(h),f=0;f<p.length;f++)p[f]&&l.append(p[f][0],p[f][1]);o.fileData=l;var m=new c(i,t),g="";g=t.showFileCounter?i.fileCounter+t.fileCounterStyle+n[r].name:n[r].name,m.filename.html(g);var v=e("<form style='display:block; position:absolute;left: 150px;' class='"+i.formGroup+"' method='"+t.method+"' action='"+t.url+"' enctype='"+t.enctype+"'></form>");v.appendTo("body");var y=[];y.push(n[r].name),d(v,o,m,y,i),i.fileCounter++}else t.showError&&e("<div class='um-error-block'>"+t.extErrorStr+"</div>").appendTo(i.errorLog)}function s(e,t,i){var n=t.allowedTypes.toLowerCase().split(","),r=i.split(".").pop().toLowerCase();return!("*"!=t.allowedTypes&&jQuery.inArray(r,n)<0)}function l(t,i){if(t.showFileCounter){var n=e(".upload-filename").length;i.fileCounter=n+1,e(".upload-filename").each(function(i,r){var a=e(this).html().split(t.fileCounterStyle),o=(parseInt(a[0])-1,n+t.fileCounterStyle+a[1]);e(this).html(o),n--})}}function u(i,n,r,a){var h="ajax-upload-id-"+(new Date).getTime(),p=e("<form method='"+r.method+"' action='"+r.url+"' enctype='"+r.enctype+"'></form>"),f="<input type='file' id='"+h+"' name='"+r.fileName+"'/>";r.multiple&&(r.fileName.indexOf("[]")!=r.fileName.length-2&&(r.fileName+="[]"),f="<input type='file' id='"+h+"' name='"+r.fileName+"' multiple/>");var m=e(f).appendTo(p);m.change(function(){i.errorLog.html("");var h=(r.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(y=0;y<this.files.length;y++)h.push(this.files[y].name);if(0==r.onSelect(this.files))return}else{var f=e(this).val(),m=[];if(h.push(f),!s(i,r,f))return void(r.showError&&e("<div class='um-error-block'>"+r.extErrorStr+"</div>").appendTo(i.errorLog));if(m.push({name:f,size:"NA"}),0==r.onSelect(m))return}if(l(r,i),a.unbind("click"),p.hide(),u(i,n,r,a),p.addClass(n),t.fileapi&&t.formdata){p.removeClass(n);var g=this.files;o(r,i,g)}else{for(var v="",y=0;y<h.length;y++)v+=r.showFileCounter?i.fileCounter+r.fileCounterStyle+h[y]+"<br>":h[y]+"<br>",i.fileCounter++;if(r.maxFileCount!=-1&&i.selectedFiles+h.length>r.maxFileCount)return void(r.showError&&e("<div class='um-error-block'>"+r.maxFileCountErrorStr+"</div>").appendTo(i.errorLog));i.selectedFiles+=h.length;var b=new c(i,r);b.filename.html(v),d(p,r,b,h,i)}}),p.css({margin:0,padding:0});var g=e(a).width()+10;10==g&&(g=120);var v=a.height()+10;10==v&&(v=35),a.css({position:"relative",overflow:"hidden",cursor:"default"}),m.css({position:"absolute",cursor:"pointer",top:"0px",width:"100%",height:"34px",left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"}),p.appendTo(a)}function c(t,i){return this.statusbar=e("<div class='upload-statusbar'></div>"),this.filename=e("<div class='upload-filename'></div>").appendTo(this.statusbar),this.progressDiv=e("<div class='upload-progress'>").appendTo(this.statusbar).hide(),this.progressbar=e("<div class='upload-bar "+t.formGroup+"'></div>").appendTo(this.progressDiv),this.abort=e("<div class='upload-red "+t.formGroup+"'>"+i.abortStr+"</div>").appendTo(this.statusbar).hide(),this.cancel=e("<div class='upload-red'>"+i.cancelStr+"</div>").appendTo(this.statusbar).hide(),this.done=e("<div class='upload-green'>"+i.doneStr+"</div>").appendTo(this.statusbar).hide(),this.del=e("<div class='upload-red'>"+i.deletelStr+"</div>").appendTo(this.statusbar).hide(),t.errorLog.after(this.statusbar),this}function d(e,i,r,o,s){var u={cache:!1,contentType:!1,processData:!1,forceSync:!1,data:i.formData,formData:i.fileData,dataType:i.returnType,beforeSubmit:function(t,l,u){if(0!=i.onSubmit.call(this,o)){var c=i.dynamicFormData();if(c){var d=a(c);if(d)for(var h=0;h<d.length;h++)d[h]&&(void 0!=i.fileData?u.formData.append(d[h][0],d[h][1]):u.data[d[h][0]]=d[h][1])}return s.tCounter+=o.length,n(),!0}return r.statusbar.append("<div class='um-error-block'>"+i.uploadErrorStr+"</div>"),r.cancel.show(),e.remove(),r.cancel.click(function(){r.statusbar.remove()}),!1},beforeSend:function(e,n){r.progressDiv.show(),r.cancel.hide(),r.done.hide(),i.showAbort&&(r.abort.show(),r.abort.click(function(){e.abort(),s.selectedFiles-=o.length})),t.formdata?r.progressbar.width("1%"):r.progressbar.width("5%")},uploadProgress:function(e,t,n,a){a>98&&(a=98);var o=a+"%";a>1&&r.progressbar.width(o),i.showProgress&&(r.progressbar.html(o),r.progressbar.css("text-align","center"))},success:function(t,n,a){s.responses.push(t),r.progressbar.width("100%"),i.showProgress&&(r.progressbar.html("100%"),r.progressbar.css("text-align","center")),r.abort.hide(),i.onSuccess.call(this,o,t,a),i.showStatusAfterSuccess?(i.showDone?(r.done.show(),r.done.click(function(){r.statusbar.hide("slow"),r.statusbar.remove()})):r.done.hide(),i.showDelete?(r.del.show(),r.del.click(function(){r.statusbar.hide().remove(),i.deleteCallback&&i.deleteCallback.call(this,t,r),s.selectedFiles-=o.length,l(i,s)})):r.del.hide()):(r.statusbar.hide("slow"),r.statusbar.remove()),e.remove(),s.sCounter+=o.length},error:function(t,n,a){r.abort.hide(),"abort"==t.statusText?(r.statusbar.hide("slow").remove(),l(i,s)):(i.onError.call(this,o,n,a),i.showStatusAfterError?(r.progressDiv.hide(),r.statusbar.append("<span class='um-error-block'>ERROR: "+a+"</span>")):(r.statusbar.hide(),r.statusbar.remove()),s.selectedFiles-=o.length),e.remove(),s.fCounter+=o.length}};i.autoSubmit?e.ajaxSubmit(u):(i.showCancel&&(r.cancel.show(),r.cancel.click(function(){e.remove(),r.statusbar.remove(),s.selectedFiles-=o.length,l(i,s)})),e.ajaxForm(u))}var h=e.extend({url:"",method:"POST",enctype:"multipart/form-data",formData:null,returnType:null,allowedTypes:"*",fileName:"file",formData:{},dynamicFormData:function(){return{}},maxFileSize:-1,maxFileCount:-1,multiple:!0,dragDrop:!0,autoSubmit:!0,showCancel:!0,showAbort:!0,showDone:!0,showDelete:!1,showError:!0,showStatusAfterSuccess:!0,showStatusAfterError:!0,showFileCounter:!0,fileCounterStyle:"). ",showProgress:!1,onSelect:function(e){return!0},onSubmit:function(e,t){},onSuccess:function(e,t,i){},onError:function(e,t,i){},deleteCallback:!1,afterUploadAll:!1,uploadButtonClass:"upload",dragDropStr:"",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag &amp; Drop is not allowed.",extErrorStr:"",sizeErrorStr:"",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:""},i);this.fileCounter=1,this.selectedFiles=0,this.fCounter=0,this.sCounter=0,this.tCounter=0;var p="upload-"+(new Date).getTime();this.formGroup=p,this.hide(),this.errorLog=e("<div></div>"),this.after(this.errorLog),this.responses=[],t.formdata||(h.dragDrop=!1),t.formdata||(h.multiple=!1);var f=this,m=e("<div>"+e(this).html()+"</div>");e(m).addClass(h.uploadButtonClass),function t(){if(e.fn.ajaxForm){if(h.dragDrop){var i=e('<div class="ajax-upload-dragdrop" style="vertical-align:top;"></div>');e(f).before(i),e(i).append(m),e(i).prepend(e(h.dragDropStr)),r(f,h,i)}else e(f).before(m);u(f,p,h,m)}else window.setTimeout(t,10)}(),this.startUpload=function(){e("."+this.formGroup).each(function(t,i){e(this).is("form")&&e(this).submit()})},this.stopUpload=function(){e(".upload-red").each(function(t,i){e(this).hasClass(f.formGroup)&&e(this).click()})},this.getResponses=function(){return this.responses};var g=!1;return this}}(jQuery),function(e){"function"==typeof define&&define.amd?define("picker",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):this.Picker=e(jQuery)}(function(e){function t(a,o,l,h){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",$.component.nodes(x.open),C.box),C.wrap),C.frame),C.holder,'tabindex="-1"')}function f(){S.data(o,$).addClass(C.input).val(S.data("value")?$.get("select",j.format):a.value),j.editable||S.on("focus."+x.id+" click."+x.id,function(e){e.preventDefault(),$.open()}).on("keydown."+x.id,w),r(a,{haspopup:!0,expanded:!1,readonly:!1,owns:a.id+"_root"})}function m(){r($.$root[0],"hidden",!0)}function g(){$.$holder.on({keydown:w,"focus.toOpen":b,blur:function(){S.removeClass(C.target)},focusin:function(e){$.$root.removeClass(C.focused),e.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=$.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(i).is("input, select, textarea, button, option")||(t.preventDefault(),$.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),i=t.data(),n=t.hasClass(C.navDisabled)||t.hasClass(C.disabled),r=s();r=r&&(r.type||r.href),(n||r&&!e.contains($.$root[0],r))&&$.$holder[0].focus(),!n&&i.nav?$.set("highlight",$.component.item.highlight,{nav:i.nav}):!n&&"pick"in i?($.set("select",i.pick),j.closeOnSelect&&$.close(!0)):i.clear?($.clear(),j.closeOnClear&&$.close(!0)):i.close&&$.close(!0)})}function v(){var t;j.hiddenName===!0?(t=a.name,a.name=""):(t=["string"==typeof j.hiddenPrefix?j.hiddenPrefix:"","string"==typeof j.hiddenSuffix?j.hiddenSuffix:"_submit"],t=t[0]+a.name+t[1]),$._hidden=e('<input type=hidden name="'+t+'"'+(S.data("value")||a.value?' value="'+$.get("select",j.formatSubmit)+'"':"")+">")[0],S.on("change."+x.id,function(){$._hidden.value=a.value?$.get("select",j.formatSubmit):""})}function y(){_&&d?$.$holder.find("."+C.frame).one("transitionend",function(){$.$holder[0].focus()}):$.$holder[0].focus()}function b(e){e.stopPropagation(),S.addClass(C.target),$.$root.addClass(C.focused),$.open()}function w(e){var t=e.keyCode,i=/^(8|46)$/.test(t);return 27==t?($.close(!0),!1):void((32==t||i||!x.open&&$.component.key[t])&&(e.preventDefault(),e.stopPropagation(),i?$.clear().close():$.open()))}if(!a)return t;var _=!1,x={id:a.id||"P"+Math.abs(~~(Math.random()*new Date))},j=l?e.extend(!0,{},l.defaults,h):h||{},C=e.extend({},t.klasses(),j.klass),S=e(a),k=function(){return this.start()},$=k.prototype={constructor:k,$node:S,start:function(){return x&&x.start?$:(x.methods={},x.start=!0,x.open=!1,x.type=a.type,a.autofocus=a==s(),a.readOnly=!j.editable,a.id=a.id||x.id,"text"!=a.type&&(a.type="text"),$.component=new l($,j),$.$root=e('<div class="'+C.picker+'" id="'+a.id+'_root" />'),m(),$.$holder=e(p()).appendTo($.$root),g(),j.formatSubmit&&v(),f(),j.containerHidden?e(j.containerHidden).append($._hidden):S.after($._hidden),j.container?e(j.container).append($.$root):S.after($.$root),$.on({start:$.component.onStart,render:$.component.onRender,stop:$.component.onStop,open:$.component.onOpen,close:$.component.onClose,set:$.component.onSet}).on({start:j.onStart,render:j.onRender,stop:j.onStop,open:j.onOpen,close:j.onClose,set:j.onSet}),_=i($.$holder[0]),a.autofocus&&$.open(),$.trigger("start").trigger("render"))},render:function(t){return t?($.$holder=e(p()),g(),$.$root.html($.$holder)):$.$root.find("."+C.box).html($.component.nodes(x.open)),$.trigger("render")},stop:function(){return x.start?($.close(),$._hidden&&$._hidden.parentNode.removeChild($._hidden),$.$root.remove(),S.removeClass(C.input).removeData(o),setTimeout(function(){S.off("."+x.id)},0),a.type=x.type,a.readOnly=!1,$.trigger("stop"),x.methods={},x.start=!1,$):$},open:function(i){return x.open?$:(S.addClass(C.active),r(a,"expanded",!0),setTimeout(function(){$.$root.addClass(C.opened),r($.$root[0],"hidden",!1)},0),i!==!1&&(x.open=!0,_&&c.css("overflow","hidden").css("padding-right","+="+n()),y(),u.on("click."+x.id+" focusin."+x.id,function(e){var t=e.target;t!=a&&t!=document&&3!=e.which&&$.close(t===$.$holder[0])}).on("keydown."+x.id,function(i){var n=i.keyCode,r=$.component.key[n],a=i.target;27==n?$.close(!0):a!=$.$holder[0]||!r&&13!=n?e.contains($.$root[0],a)&&13==n&&(i.preventDefault(),a.click()):(i.preventDefault(),r?t._.trigger($.component.key.go,$,[t._.trigger(r)]):$.$root.find("."+C.highlighted).hasClass(C.disabled)||($.set("select",$.component.item.highlight),j.closeOnSelect&&$.close(!0)))})),$.trigger("open"))},close:function(e){return e&&(j.editable?a.focus():($.$holder.off("focus.toOpen").focus(),setTimeout(function(){$.$holder.on("focus.toOpen",b)},0))),S.removeClass(C.active),r(a,"expanded",!1),setTimeout(function(){$.$root.removeClass(C.opened+" "+C.focused),r($.$root[0],"hidden",!0)},0),x.open?(x.open=!1,_&&c.css("overflow","").css("padding-right","-="+n()),u.off("."+x.id),$.trigger("close")):$},clear:function(e){return $.set("clear",null,e)},set:function(t,i,n){var r,a,o=e.isPlainObject(t),s=o?t:{};if(n=o&&e.isPlainObject(i)?i:n||{},t){o||(s[t]=i);for(r in s)a=s[r],r in $.component.item&&(void 0===a&&(a=null),$.component.set(r,a,n)),"select"!=r&&"clear"!=r||S.val("clear"==r?"":$.get(r,j.format)).trigger("change");$.render()}return n.muted?$:$.trigger("set",s)},get:function(e,i){if(e=e||"value",null!=x[e])return x[e];if("valueSubmit"==e){if($._hidden)return $._hidden.value;e="value"}if("value"==e)return a.value;if(e in $.component.item){if("string"==typeof i){var n=$.component.get(e);return n?t._.trigger($.component.formats.toString,$.component,[i,n]):""}return $.component.get(e)}},on:function(t,i,n){var r,a,o=e.isPlainObject(t),s=o?t:{};if(t){o||(s[t]=i);for(r in s)a=s[r],n&&(r="_"+r),x.methods[r]=x.methods[r]||[],x.methods[r].push(a)}return $},off:function(){var e,t,i=arguments;for(e=0,namesCount=i.length;e<namesCount;e+=1)t=i[e],t in x.methods&&delete x.methods[t];return $},trigger:function(e,i){var n=function(e){var n=x.methods[e];n&&n.map(function(e){t._.trigger(e,$,[i])})};return n("_"+e),n(e),$}};return new k}function i(e){var t,i="position";return e.currentStyle?t=e.currentStyle[i]:window.getComputedStyle&&(t=getComputedStyle(e)[i]),"fixed"==t}function n(){if(c.height()<=l.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth;t.css("overflow","scroll");var n=e('<div style="width:100%" />').appendTo(t),r=n[0].offsetWidth;return t.remove(),i-r}function r(t,i,n){if(e.isPlainObject(i))for(var r in i)a(t,r,i[r]);else a(t,i,n)}function a(e,t,i){e.setAttribute(("role"==t?"":"aria-")+t,i)}function o(t,i){e.isPlainObject(t)||(t={attribute:i}),i="";for(var n in t){var r=("role"==n?"":"aria-")+n,a=t[n];i+=null==a?"":r+'="'+t[n]+'"'}return i}function s(){try{return document.activeElement}catch(e){}}var l=e(window),u=e(document),c=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var i,n="",r=t._.trigger(e.min,e);r<=t._.trigger(e.max,e,[r]);r+=e.i)i=t._.trigger(e.item,e,[r]),n+=t._.node(e.node,i[0],i[1],i[2]);return n},node:function(t,i,n,r){return i?(i=e.isArray(i)?i.join(""):i,n=n?' class="'+n+'"':"",r=r?" "+r:"","<"+t+n+r+">"+i+"</"+t+">"):""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,i){return"function"==typeof e?e.apply(t,i||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1===0},ariaAttr:o},t.extend=function(i,n){e.fn[i]=function(r,a){var o=this.data(i);return"picker"==r?o:o&&"string"==typeof r?t._.trigger(o[r],o,[a]):this.each(function(){var a=e(this);a.data(i)||new t(this,i,n,r)})},e.fn[i].defaults=n.defaults},t}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function i(e,t){var i=this,n=e.$node[0],r=n.value,a=e.$node.data("value"),o=a||r,s=a?t.formatSubmit:t.format,l=function(){return n.currentStyle?"rtl"==n.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};i.settings=t,i.$node=e.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-function(e){return e[0]===!0?e.shift():-1}(i.item.disable),i.set("min",t.min).set("max",t.max).set("now"),o?i.set("select",o,{format:s,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(e.set("highlight",[e.get("view").year,i,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(e.set("highlight",[i,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var n="";i.disabled(i.get("now"))&&(n=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+n+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var n=7,r=6,a=e._;i.prototype.set=function(e,t,i){var n=this,r=n.item;return null===t?("clear"==e&&(e="select"),r[e]=t,n):(r["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(r){return t=n[r](e,t,i)}).pop(),"select"==e?n.set("highlight",r.select,i):"highlight"==e?n.set("view",r.highlight,i):e.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&n.disabled(r.select)&&n.set("select",r.select,i),r.highlight&&n.disabled(r.highlight)&&n.set("highlight",r.highlight,i)),n)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,i,n){var r,o=this;return i=void 0===i?e:i,i==-(1/0)||i==1/0?r=i:t.isPlainObject(i)&&a.isInteger(i.pick)?i=i.obj:t.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=a.isDate(i)?i:o.create().obj):i=a.isInteger(i)||a.isDate(i)?o.normalize(new Date(i),n):o.now(e,i,n),{year:r||i.getFullYear(),month:r||i.getMonth(),date:r||i.getDate(),day:r||i.getDay(),obj:r||i,pick:r||i.getTime()}},i.prototype.createRange=function(e,i){var n=this,r=function(e){return e===!0||t.isArray(e)||a.isDate(e)?n.create(e):e};return a.isInteger(e)||(e=r(e)),a.isInteger(i)||(i=r(i)),a.isInteger(e)&&t.isPlainObject(i)?e=[i.year,i.month,i.date+e]:a.isInteger(i)&&t.isPlainObject(e)&&(i=[e.year,e.month,e.date+i]),{from:r(e),to:r(i)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)},i.prototype.navigate=function(e,i,n){var r,a,o,s,l=t.isArray(i),u=t.isPlainObject(i),c=this.item.view;if(l||u){for(u?(a=i.year,o=i.month,s=i.date):(a=+i[0],o=+i[1],s=+i[2]),n&&n.nav&&c&&c.month!==o&&(a=c.year,o=c.month),r=new Date(a,o+(n&&n.nav?n.nav:0),1),a=r.getFullYear(),o=r.getMonth();new Date(a,o,s).getMonth()!==o;)s-=1;i=[a,o,s]}return i},i.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},i.prototype.measure=function(e,t){var i=this;return t?"string"==typeof t?t=i.parse(e,t):a.isInteger(t)&&(t=i.now(e,t,{rel:t})):t="min"==e?-(1/0):1/0,t},i.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},i.prototype.validate=function(e,i,n){var r,o,s,l,u=this,c=i,d=n&&n.interval?n.interval:1,h=u.item.enable===-1,p=u.item.min,f=u.item.max,m=h&&u.item.disable.filter(function(e){if(t.isArray(e)){var n=u.create(e).pick;n<i.pick?r=!0:n>i.pick&&(o=!0)}return a.isInteger(e)}).length;if((!n||!n.nav&&!n.defaultValue)&&(!h&&u.disabled(i)||h&&u.disabled(i)&&(m||r||o)||!h&&(i.pick<=p.pick||i.pick>=f.pick)))for(h&&!m&&(!o&&d>0||!r&&d<0)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=p.pick?(s=!0,d=1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:-1)])):i.pick>=f.pick&&(l=!0,d=-1,i=u.create([f.year,f.month,f.date+(i.pick===f.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},i.prototype.disabled=function(e){var i=this,n=i.item.disable.filter(function(n){return a.isInteger(n)?e.day===(i.settings.firstDay?n:n-1)%7:t.isArray(n)||a.isDate(n)?e.pick===i.create(n).pick:t.isPlainObject(n)?i.withinRange(n,e):void 0});return n=n.length&&!n.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,
5
+ i.item.enable===-1?!n:n||e.pick<i.item.min.pick||e.pick>i.item.max.pick},i.prototype.parse=function(e,t,i){var n=this,r={};return t&&"string"==typeof t?(i&&i.format||(i=i||{},i.format=n.settings.format),n.formats.toArray(i.format).map(function(e){var i=n.formats[e],o=i?a.trigger(i,n,[t,r]):e.replace(/^!/,"").length;i&&(r[e]=t.substr(0,o)),t=t.substr(o)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},i.prototype.formats=function(){function e(e,t,i){var n=e.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(n)+1),n.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?a.digits(e):t.date},dd:function(e,t){return e?2:a.lead(t.date)},ddd:function(e,i){return e?t(e):this.settings.weekdaysShort[i.day]},dddd:function(e,i){return e?t(e):this.settings.weekdaysFull[i.day]},m:function(e,t){return e?a.digits(e):t.month+1},mm:function(e,t){return e?2:a.lead(t.month+1)},mmm:function(t,i){var n=this.settings.monthsShort;return t?e(t,n,i):n[i.month]},mmmm:function(t,i){var n=this.settings.monthsFull;return t?e(t,n,i):n[i.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return a.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}}}(),i.prototype.isDateExact=function(e,i){var n=this;return a.isInteger(e)&&a.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(a.isDate(e)||t.isArray(e))&&(a.isDate(i)||t.isArray(i))?n.create(e).pick===n.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&(n.isDateExact(e.from,i.from)&&n.isDateExact(e.to,i.to))},i.prototype.isDateOverlap=function(e,i){var n=this,r=n.settings.firstDay?1:0;return a.isInteger(e)&&(a.isDate(i)||t.isArray(i))?(e=e%7+r,e===n.create(i).day+1):a.isInteger(i)&&(a.isDate(e)||t.isArray(e))?(i=i%7+r,i===n.create(e).day+1):!(!t.isPlainObject(e)||!t.isPlainObject(i))&&n.overlapRanges(e,i)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(t.enable==-1?1:-1)},i.prototype.deactivate=function(e,i){var n=this,r=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),r=[]):i===!0?(n.flipEnable(-1),r=[]):i.map(function(e){for(var i,o=0;o<r.length;o+=1)if(n.isDateExact(e,r[o])){i=!0;break}i||(a.isInteger(e)||a.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,i){var n=this,r=n.item.disable,o=r.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),r=[]):i===!1?(n.flipEnable(-1),r=[]):i.map(function(e){var i,s,l,u;for(l=0;l<o;l+=1){if(s=r[l],n.isDateExact(s,e)){i=r[l]=null,u=!0;break}if(n.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,i=e):t.isArray(e)?(i=e,i[3]||i.push("inverted")):a.isDate(e)&&(i=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(i)for(l=0;l<o;l+=1)if(n.isDateExact(r[l],e)){r[l]=null;break}if(u)for(l=0;l<o;l+=1)if(n.isDateOverlap(r[l],e)){r[l]=null;break}i&&r.push(i)}),r.filter(function(e){return null!=e})},i.prototype.nodes=function(e){var t=this,i=t.settings,o=t.item,s=o.now,l=o.select,u=o.highlight,c=o.view,d=o.disable,h=o.min,p=o.max,f=function(e,t){return i.firstDay&&(e.push(e.shift()),t.push(t.shift())),a.node("thead",a.node("tr",a.group({min:0,max:n-1,i:1,node:"th",item:function(n){return[e[n],i.klass.weekdays,'scope=col title="'+t[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysShort).slice(0),i.weekdaysFull.slice(0)),m=function(e){return a.node("div"," ",i.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=p.year&&c.month>=p.month||!e&&c.year<=h.year&&c.month<=h.month?" "+i.klass.navDisabled:""),"data-nav="+(e||-1)+" "+a.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?i.labelMonthNext:i.labelMonthPrev)+'"')},g=function(){var n=i.showMonthsShort?i.monthsShort:i.monthsFull;return i.selectMonths?a.node("select",a.group({min:0,max:11,i:1,node:"option",item:function(e){return[n[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==h.year&&e<h.month||c.year==p.year&&e>p.month?" disabled":"")]}}),i.klass.selectMonth,(e?"":"disabled")+" "+a.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):a.node("div",n[c.month],i.klass.month)},v=function(){var n=c.year,r=i.selectYears===!0?5:~~(i.selectYears/2);if(r){var o=h.year,s=p.year,l=n-r,u=n+r;if(o>l&&(u+=o-l,l=o),s<u){var d=l-o,f=u-s;l-=d>f?f:d,u=s}return a.node("select",a.group({min:l,max:u,i:1,node:"option",item:function(e){return[e,0,"value="+e+(n==e?" selected":"")]}}),i.klass.selectYear,(e?"":"disabled")+" "+a.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return a.node("div",n,i.klass.year)};return a.node("div",(i.selectYears?v()+g():g()+v())+m()+m(1),i.klass.header)+a.node("table",f+a.node("tbody",a.group({min:0,max:r-1,i:1,node:"tr",item:function(e){var r=i.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[a.group({min:n*e-c.day+r+1,max:function(){return this.min+n-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(i.firstDay?1:0)]);var n=l&&l.pick==e.pick,r=u&&u.pick==e.pick,o=d&&t.disabled(e)||e.pick<h.pick||e.pick>p.pick,f=a.trigger(t.formats.toString,t,[i.format,e]);return[a.node("div",e.date,function(t){return t.push(c.month==e.month?i.klass.infocus:i.klass.outfocus),s.pick==e.pick&&t.push(i.klass.now),n&&t.push(i.klass.selected),r&&t.push(i.klass.highlighted),o&&t.push(i.klass.disabled),t.join(" ")}([i.klass.day]),"data-pick="+e.pick+" "+a.ariaAttr({role:"gridcell",label:f,selected:!(!n||t.$node.val()!==f)||null,activedescendant:!!r||null,disabled:!!o||null})),"",a.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+t.$node[0].id+'_table" '+a.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+a.node("div",a.node("button",i.today,i.klass.buttonToday,"type=button data-pick="+s.pick+(e&&!t.disabled(s)?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id}))+a.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id}))+a.node("button",i.close,i.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+a.ariaAttr({controls:t.$node[0].id})),i.klass.footer)},i.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",i)}),function(e){"function"==typeof define&&define.amd?define(["picker","jquery"],e):"object"==typeof exports?module.exports=e(require("./picker.js"),require("jquery")):e(Picker,jQuery)}(function(e,t){function i(e,t){var i=this,n=e.$node[0].value,r=e.$node.data("value"),a=r||n,o=r?t.formatSubmit:t.format;i.settings=t,i.$node=e.$node,i.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.interval=t.interval||30,i.item.disable=(t.disable||[]).slice(0),i.item.enable=-function(e){return e[0]===!0?e.shift():-1}(i.item.disable),i.set("min",t.min).set("max",t.max).set("now"),a?i.set("select",a,{format:o}):i.set("select",null).set("highlight",i.item.now),i.key={40:1,38:-1,39:1,37:-1,go:function(e){i.set("highlight",i.item.highlight.pick+e*i.item.interval,{interval:e*i.item.interval}),this.render()}},e.on("render",function(){var i=e.$root.children(),n=i.find("."+t.klass.viewset),r=function(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})},a=function(e,t){r("transform").map(function(i){e.css(i,t)}),r("transition").map(function(i){e.css(i,t)})};n.length&&(a(i,"none"),i[0].scrollTop=~~n.position().top-2*n[0].clientHeight,a(i,""))},1).on("open",function(){e.$root.find("button").attr("disabled",!1)},1).on("close",function(){e.$root.find("button").attr("disabled",!0)},1)}var n=24,r=60,a=12,o=n*r,s=e._;i.prototype.set=function(e,t,i){var n=this,r=n.item;return null===t?("clear"==e&&(e="select"),r[e]=t,n):(r["enable"==e?"disable":"flip"==e?"enable":e]=n.queue[e].split(" ").map(function(r){return t=n[r](e,t,i)}).pop(),"select"==e?n.set("highlight",r.select,i):"highlight"==e?n.set("view",r.highlight,i):"interval"==e?n.set("min",r.min,i).set("max",r.max,i):e.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&n.disabled(r.select)&&n.set("select",t,i),r.highlight&&n.disabled(r.highlight)&&n.set("highlight",t,i),"min"==e&&n.set("max",r.max,i)),n)},i.prototype.get=function(e){return this.item[e]},i.prototype.create=function(e,i,a){var l=this;return i=void 0===i?e:i,s.isDate(i)&&(i=[i.getHours(),i.getMinutes()]),t.isPlainObject(i)&&s.isInteger(i.pick)?i=i.pick:t.isArray(i)?i=+i[0]*r+ +i[1]:s.isInteger(i)||(i=l.now(e,i,a)),"max"==e&&i<l.item.min.pick&&(i+=o),"min"!=e&&"max"!=e&&(i-l.item.min.pick)%l.item.interval!==0&&(i+=l.item.interval),i=l.normalize(e,i,a),{hour:~~(n+i/r)%n,mins:(r+i%r)%r,time:(o+i)%o,pick:i%o}},i.prototype.createRange=function(e,i){var n=this,r=function(e){return e===!0||t.isArray(e)||s.isDate(e)?n.create(e):e};return s.isInteger(e)||(e=r(e)),s.isInteger(i)||(i=r(i)),s.isInteger(e)&&t.isPlainObject(i)?e=[i.hour,i.mins+e*n.settings.interval]:s.isInteger(i)&&t.isPlainObject(e)&&(i=[e.hour,e.mins+i*n.settings.interval]),{from:r(e),to:r(i)}},i.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},i.prototype.overlapRanges=function(e,t){var i=this;return e=i.createRange(e.from,e.to),t=i.createRange(t.from,t.to),i.withinRange(e,t.from)||i.withinRange(e,t.to)||i.withinRange(t,e.from)||i.withinRange(t,e.to)},i.prototype.now=function(e,t){var i,n=this.item.interval,a=new Date,o=a.getHours()*r+a.getMinutes(),l=s.isInteger(t);return o-=o%n,i=t<0&&n*t+o<=-n,o+="min"==e&&i?0:n,l&&(o+=n*(i&&"max"!=e?t+1:t)),o},i.prototype.normalize=function(e,t){var i=this.item.interval,n=this.item.min&&this.item.min.pick||0;return t-="min"==e?0:(t-n)%i},i.prototype.measure=function(e,i,a){var o=this;return i||(i="min"==e?[0,0]:[n-1,r-1]),"string"==typeof i?i=o.parse(e,i):i===!0||s.isInteger(i)?i=o.now(e,i,a):t.isPlainObject(i)&&s.isInteger(i.pick)&&(i=o.normalize(e,i.pick,a)),i},i.prototype.validate=function(e,t,i){var n=this,r=i&&i.interval?i.interval:n.item.interval;return n.disabled(t)&&(t=n.shift(t,r)),t=n.scope(t),n.disabled(t)&&(t=n.shift(t,r*-1)),t},i.prototype.disabled=function(e){var i=this,n=i.item.disable.filter(function(n){return s.isInteger(n)?e.hour==n:t.isArray(n)||s.isDate(n)?e.pick==i.create(n).pick:t.isPlainObject(n)?i.withinRange(n,e):void 0});return n=n.length&&!n.filter(function(e){return t.isArray(e)&&"inverted"==e[2]||t.isPlainObject(e)&&e.inverted}).length,i.item.enable===-1?!n:n||e.pick<i.item.min.pick||e.pick>i.item.max.pick},i.prototype.shift=function(e,t){var i=this,n=i.item.min.pick,r=i.item.max.pick;for(t=t||i.item.interval;i.disabled(e)&&(e=i.create(e.pick+=t),!(e.pick<=n||e.pick>=r)););return e},i.prototype.scope=function(e){var t=this.item.min.pick,i=this.item.max.pick;return this.create(e.pick>i?i:e.pick<t?t:e)},i.prototype.parse=function(e,t,i){var n,a,o,l,u,c=this,d={};if(!t||"string"!=typeof t)return t;i&&i.format||(i=i||{},i.format=c.settings.format),c.formats.toArray(i.format).map(function(e){var i,n=c.formats[e],r=n?s.trigger(n,c,[t,d]):e.replace(/^!/,"").length;n&&(i=t.substr(0,r),d[e]=i.match(/^\d+$/)?+i:i),t=t.substr(r)});for(l in d)u=d[l],s.isInteger(u)?l.match(/^(h|hh)$/i)?(n=u,"h"!=l&&"hh"!=l||(n%=12)):"i"==l&&(a=u):l.match(/^a$/i)&&u.match(/^p/i)&&("h"in d||"hh"in d)&&(o=!0);return(o?n+12:n)*r+a},i.prototype.formats={h:function(e,t){return e?s.digits(e):t.hour%a||a},hh:function(e,t){return e?2:s.lead(t.hour%a||a)},H:function(e,t){return e?s.digits(e):""+t.hour%24},HH:function(e,t){return e?s.digits(e):s.lead(t.hour%24)},i:function(e,t){return e?2:s.lead(t.mins)},a:function(e,t){return e?4:o/2>t.time%o?"a.m.":"p.m."},A:function(e,t){return e?2:o/2>t.time%o?"AM":"PM"},toArray:function(e){return e.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,t){var i=this;return i.formats.toArray(e).map(function(e){return s.trigger(i.formats[e],i,[0,t])||e.replace(/^!/,"")}).join("")}},i.prototype.isTimeExact=function(e,i){var n=this;return s.isInteger(e)&&s.isInteger(i)||"boolean"==typeof e&&"boolean"==typeof i?e===i:(s.isDate(e)||t.isArray(e))&&(s.isDate(i)||t.isArray(i))?n.create(e).pick===n.create(i).pick:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&(n.isTimeExact(e.from,i.from)&&n.isTimeExact(e.to,i.to))},i.prototype.isTimeOverlap=function(e,i){var n=this;return s.isInteger(e)&&(s.isDate(i)||t.isArray(i))?e===n.create(i).hour:s.isInteger(i)&&(s.isDate(e)||t.isArray(e))?i===n.create(e).hour:!(!t.isPlainObject(e)||!t.isPlainObject(i))&&n.overlapRanges(e,i)},i.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(t.enable==-1?1:-1)},i.prototype.deactivate=function(e,i){var n=this,r=n.item.disable.slice(0);return"flip"==i?n.flipEnable():i===!1?(n.flipEnable(1),r=[]):i===!0?(n.flipEnable(-1),r=[]):i.map(function(e){for(var i,a=0;a<r.length;a+=1)if(n.isTimeExact(e,r[a])){i=!0;break}i||(s.isInteger(e)||s.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},i.prototype.activate=function(e,i){var n=this,r=n.item.disable,a=r.length;return"flip"==i?n.flipEnable():i===!0?(n.flipEnable(1),r=[]):i===!1?(n.flipEnable(-1),r=[]):i.map(function(e){var i,o,l,u;for(l=0;l<a;l+=1){if(o=r[l],n.isTimeExact(o,e)){i=r[l]=null,u=!0;break}if(n.isTimeOverlap(o,e)){t.isPlainObject(e)?(e.inverted=!0,i=e):t.isArray(e)?(i=e,i[2]||i.push("inverted")):s.isDate(e)&&(i=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(i)for(l=0;l<a;l+=1)if(n.isTimeExact(r[l],e)){r[l]=null;break}if(u)for(l=0;l<a;l+=1)if(n.isTimeOverlap(r[l],e)){r[l]=null;break}i&&r.push(i)}),r.filter(function(e){return null!=e})},i.prototype.i=function(e,t){return s.isInteger(t)&&t>0?t:this.item.interval},i.prototype.nodes=function(e){var t=this,i=t.settings,n=t.item.select,r=t.item.highlight,a=t.item.view,o=t.item.disable;return s.node("ul",s.group({min:t.item.min.pick,max:t.item.max.pick,i:t.item.interval,node:"li",item:function(e){e=t.create(e);var l=e.pick,u=n&&n.pick==l,c=r&&r.pick==l,d=o&&t.disabled(e),h=s.trigger(t.formats.toString,t,[i.format,e]);return[s.trigger(t.formats.toString,t,[s.trigger(i.formatLabel,t,[e])||i.format,e]),function(e){return u&&e.push(i.klass.selected),c&&e.push(i.klass.highlighted),a&&a.pick==l&&e.push(i.klass.viewset),d&&e.push(i.klass.disabled),e.join(" ")}([i.klass.listItem]),"data-pick="+e.pick+" "+s.ariaAttr({role:"option",label:h,selected:!(!u||t.$node.val()!==h)||null,activedescendant:!!c||null,disabled:!!d||null})]}})+s.node("li",s.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+s.ariaAttr({controls:t.$node[0].id})),"",s.ariaAttr({role:"presentation"})),i.klass.list,s.ariaAttr({role:"listbox",controls:t.$node[0].id}))},i.defaults=function(e){return{clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:e+" "+e+"--time",holder:e+"__holder",list:e+"__list",listItem:e+"__list-item",disabled:e+"__list-item--disabled",selected:e+"__list-item--selected",highlighted:e+"__list-item--highlighted",viewset:e+"__list-item--viewset",now:e+"__list-item--now",buttonClear:e+"__button--clear"}}}(e.klasses().picker),e.extend("pickatime",i)}),[].map||(Array.prototype.map=function(e,t){for(var i=this,n=i.length,r=new Array(n),a=0;a<n;a++)a in i&&(r[a]=e.call(t,i[a],a,i));return r}),[].filter||(Array.prototype.filter=function(e){if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=[],r=arguments[1],a=0;a<i;a++)if(a in t){var o=t[a];e.call(r,o,a,t)&&n.push(o)}return n}),[].indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>1&&(n=Number(arguments[1]),n!=n?n=0:0!==n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var r=n>=0?n:Math.max(i-Math.abs(n),0);r<i;r++)if(r in t&&t[r]===e)return r;return-1});var nativeSplit=String.prototype.split,compliantExecNpcg=void 0===/()??/.exec("")[1];String.prototype.split=function(e,t){var i=this;if("[object RegExp]"!==Object.prototype.toString.call(e))return nativeSplit.call(i,e,t);var n,r,a,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),u=0;for(e=new RegExp(e.source,l+"g"),i+="",compliantExecNpcg||(n=new RegExp("^"+e.source+"$(?!\\s)",l)),t=void 0===t?-1>>>0:t>>>0;(r=e.exec(i))&&(a=r.index+r[0].length,!(a>u&&(s.push(i.slice(u,r.index)),!compliantExecNpcg&&r.length>1&&r[0].replace(n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}),r.length>1&&r.index<i.length&&Array.prototype.push.apply(s,r.slice(1)),o=r[0].length,u=a,s.length>=t)));)e.lastIndex===r.index&&e.lastIndex++;return u===i.length?!o&&e.test("")||s.push(""):s.push(i.slice(u)),s.length>t?s.slice(0,t):s},function(e){"use strict";var t={init:function(i){return this.each(function(){this.self=e(this),t.destroy.call(this.self),this.opt=e.extend(!0,{},e.fn.raty.defaults,i),t._adjustCallback.call(this),t._adjustNumber.call(this),"img"!==this.opt.starType&&t._adjustStarType.call(this),t._adjustPath.call(this),t._createStars.call(this),this.opt.cancel&&t._createCancel.call(this),this.opt.precision&&t._adjustPrecision.call(this),t._createScore.call(this),t._apply.call(this,this.opt.score),t._target.call(this,this.opt.score),this.opt.readOnly?t._lock.call(this):(this.style.cursor="pointer",t._binds.call(this)),this.self.data("options",this.opt)})},_adjustCallback:function(){for(var e=["number","readOnly","score","scoreName","target"],t=0;t<e.length;t++)"function"==typeof this.opt[e[t]]&&(this.opt[e[t]]=this.opt[e[t]].call(this))},_adjustNumber:function(){this.opt.number=t._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.charAt(this.opt.path.length-1)&&(this.opt.path+="/")},_adjustPrecision:function(){this.opt.half=!0,this.opt.targetType="score"},_adjustStarType:function(){this.opt.path="";for(var e=["cancelOff","cancelOn","starHalf","starOff","starOn"],t=0;t<e.length;t++)this.opt[e[t]]=this.opt[e[t]].replace(".","-")},_apply:function(e){t._fill.call(this,e),e&&(e>0&&this.score.val(t._between(e,0,this.opt.number)),t._roundStars.call(this,e))},_between:function(e,t,i){return Math.min(Math.max(parseFloat(e),t),i)},_binds:function(){this.cancel&&(t._bindOverCancel.call(this),t._bindClickCancel.call(this),t._bindOutCancel.call(this)),t._bindOver.call(this),t._bindClick.call(this),t._bindOut.call(this)},_bindClick:function(){var t=this;t.stars.on("click.raty",function(i){var n=e(this);t.score.val(t.opt.half||t.opt.precision?t.self.data("score"):this.alt||n.data("alt")),t.opt.click&&t.opt.click.call(t,+t.score.val(),i)})},_bindClickCancel:function(){var e=this;e.cancel.on("click.raty",function(t){e.score.removeAttr("value"),e.opt.click&&e.opt.click.call(e,null,t)})},_bindOut:function(){var e=this;e.self.on("mouseleave.raty",function(i){var n=+e.score.val()||void 0;t._apply.call(e,n),t._target.call(e,n,i),e.opt.mouseout&&e.opt.mouseout.call(e,n,i)})},_bindOutCancel:function(){var e=this;e.cancel.on("mouseleave.raty",function(i){var n=e.opt.cancelOff;if("img"!==e.opt.starType&&(n=e.opt.cancelClass+" "+n),t._setIcon.call(e,this,n),e.opt.mouseout){var r=+e.score.val()||void 0;e.opt.mouseout.call(e,r,i)}})},_bindOver:function(){var e=this,i=e.opt.half?"mousemove.raty":"mouseover.raty";e.stars.on(i,function(i){var n=t._getScoreByPosition.call(e,i,this);t._fill.call(e,n),e.opt.half&&(t._roundStars.call(e,n),e.self.data("score",n)),t._target.call(e,n,i),e.opt.mouseover&&e.opt.mouseover.call(e,n,i)})},_bindOverCancel:function(){var e=this;e.cancel.on("mouseover.raty",function(i){var n=e.opt.path+e.opt.starOff,r=e.opt.cancelOn;"img"===e.opt.starType?e.stars.attr("src",n):(r=e.opt.cancelClass+" "+r,e.stars.attr("class",n)),t._setIcon.call(e,this,r),t._target.call(e,null,i),e.opt.mouseover&&e.opt.mouseover.call(e,null)})},_buildScoreField:function(){return e("<input />",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var t=this.opt.path+this.opt.cancelOff,i=e("<"+this.opt.starType+" />",{title:this.opt.cancelHint,class:this.opt.cancelClass});"img"===this.opt.starType?i.attr({src:t,alt:"x"}):i.attr("data-alt","x").addClass(t),"left"===this.opt.cancelPlace?this.self.prepend("&#160;").prepend(i):this.self.append("&#160;").append(i),this.cancel=i},_createScore:function(){var i=e(this.opt.targetScore);this.score=i.length?i:t._buildScoreField.call(this)},_createStars:function(){for(var i=1;i<=this.opt.number;i++){var n=t._nameForIndex.call(this,i),r={alt:i,src:this.opt.path+this.opt[n]};"img"!==this.opt.starType&&(r={"data-alt":i,class:r.src}),r.title=t._getHint.call(this,i),e("<"+this.opt.starType+" />",r).appendTo(this),this.opt.space&&this.self.append(i<this.opt.number?"&#160;":"")}this.stars=this.self.children(this.opt.starType)},_error:function(t){e(this).text(t),e.error(t)},_fill:function(e){for(var i=0,n=1;n<=this.stars.length;n++){var r,a=this.stars[n-1],o=t._turnOn.call(this,n,e);if(this.opt.iconRange&&this.opt.iconRange.length>i){var s=this.opt.iconRange[i];r=t._getRangeIcon.call(this,s,o),n<=s.range&&t._setIcon.call(this,a,r),n===s.range&&i++}else r=this.opt[o?"starOn":"starOff"],t._setIcon.call(this,a,r)}},_getRangeIcon:function(e,t){return t?e.on||this.opt.starOn:e.off||this.opt.starOff},_getScoreByPosition:function(i,n){var r=parseInt(n.alt||n.getAttribute("data-alt"),10);if(this.opt.half){var a=t._getSize.call(this),o=parseFloat((i.pageX-e(n).offset().left)/a);r=this.opt.precision?r-1+o:r-1+(o>.5?1:.5)}return r},_getSize:function(){var e;return e="img"===this.opt.starType?this.stars[0].width:parseFloat(this.stars.eq(0).css("font-size")),e||t._error.call(this,"Could not be possible get the icon size!"),e},_turnOn:function(e,t){return this.opt.single?e===t:e<=t},_getHint:function(e){var t=this.opt.hints[e-1];return""===t?"":t||e},_lock:function(){var e=parseInt(this.score.val(),10),i=e?t._getHint.call(this,e):this.opt.noRatedMsg;this.style.cursor="",this.title=i,this.score.prop("readonly",!0),this.stars.prop("title",i),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_nameForIndex:function(e){return this.opt.score&&this.opt.score>=e?"starOn":"starOff"},_roundStars:function(e){var i=(e%1).toFixed(2);if(i>this.opt.round.down){var n="starOn";this.opt.halfShow&&i<this.opt.round.up?n="starHalf":i<this.opt.round.full&&(n="starOff");var r=this.opt[n],a=this.stars[Math.ceil(e)-1];t._setIcon.call(this,a,r)}},_setIcon:function(e,t){e["img"===this.opt.starType?"src":"className"]=this.opt.path+t},_setTarget:function(e,t){t&&(t=this.opt.targetFormat.toString().replace("{score}",t)),e.is(":input")?e.val(t):e.html(t)},_target:function(i,n){if(this.opt.target){var r=e(this.opt.target);r.length||t._error.call(this,"Target selector invalid or missing!");var a=n&&"mouseover"===n.type;if(void 0===i)i=this.opt.targetText;else if(null===i)i=a?this.opt.cancelHint:this.opt.targetText;else{"hint"===this.opt.targetType?i=t._getHint.call(this,Math.ceil(i)):this.opt.precision&&(i=parseFloat(i).toFixed(1));var o=n&&"mousemove"===n.type;a||o||this.opt.targetKeep||(i=this.opt.targetText)}t._setTarget.call(this,r,i)}},_unlock:function(){this.style.cursor="pointer",this.removeAttribute("title"),this.score.removeAttr("readonly"),this.self.data("readonly",!1);for(var e=0;e<this.opt.number;e++)this.stars[e].title=t._getHint.call(this,e+1);this.cancel&&this.cancel.css("display","")},cancel:function(i){return this.each(function(){var n=e(this);n.data("readonly")!==!0&&(t[i?"click":"score"].call(n,null),this.score.removeAttr("value"))})},click:function(i){return this.each(function(){e(this).data("readonly")!==!0&&(t._apply.call(this,i),this.opt.click&&this.opt.click.call(this,i,e.Event("click")),t._target.call(this,i))})},destroy:function(){return this.each(function(){var t=e(this),i=t.data("raw");i?t.off(".raty").empty().css({cursor:i.style.cursor}).removeData("readonly"):t.data("raw",t.clone()[0])})},getScore:function(){var e,t=[];return this.each(function(){e=this.score.val(),t.push(e?+e:void 0)}),t.length>1?t:t[0]},move:function(i){return this.each(function(){var n=parseInt(i,10),r=e(this).data("options"),a=(+i).toFixed(1).split(".")[1];n>=r.number&&(n=r.number-1,a=10);var o=t._getSize.call(this),s=o/10,l=e(this.stars[n]),u=l.offset().left+s*parseInt(a,10),c=e.Event("mousemove",{pageX:u});l.trigger(c)})},readOnly:function(i){return this.each(function(){var n=e(this);n.data("readonly")!==i&&(i?(n.off(".raty").children("img").off(".raty"),t._lock.call(this)):(t._binds.call(this),t._unlock.call(this)),n.data("readonly",i))})},reload:function(){return t.set.call(this,{})},score:function(){var i=e(this);return arguments.length?t.setScore.apply(i,arguments):t.getScore.call(i)},set:function(t){return this.each(function(){var i=e(this),n=i.data("options"),r=e.extend({},n,t);i.raty(r)})},setScore:function(i){return this.each(function(){e(this).data("readonly")!==!0&&(t._apply.call(this,i),t._target.call(this,i))})}};e.fn.raty=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist!"):t.init.apply(this,arguments)},e.fn.raty.defaults={cancel:!1,cancelClass:"raty-cancel",cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}function i(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var n=e.scrollTo=function(t,i,n){return e(window).scrollTo(t,i,n)};return n.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,a,o){"object"==typeof a&&(o=a,a=0),"function"==typeof o&&(o={onAfter:o}),"max"===r&&(r=9e9),o=e.extend({},n.defaults,o),a=a||o.duration;var s=o.queue&&o.axis.length>1;return s&&(a/=2),o.offset=i(o.offset),o.over=i(o.over),this.each(function(){function l(t){var i=e.extend({},o,{queue:!0,duration:a,complete:t&&function(){t.call(d,p,o)}});h.animate(f,i)}if(null!==r){var u,c=t(this),d=c?this.contentWindow||window:this,h=e(d),p=r,f={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=i(p);break}if(p=c?e(p):e(p,d),!p.length)return;case"object":(p.is||p.style)&&(u=(p=e(p)).offset())}var m=e.isFunction(o.offset)&&o.offset(d,p)||o.offset;e.each(o.axis.split(""),function(e,t){var i="x"===t?"Left":"Top",r=i.toLowerCase(),a="scroll"+i,g=h[a](),v=n.max(d,t);if(u)f[a]=u[r]+(c?0:g-h.offset()[r]),o.margin&&(f[a]-=parseInt(p.css("margin"+i),10)||0,f[a]-=parseInt(p.css("border"+i+"Width"),10)||0),f[a]+=m[r]||0,o.over[r]&&(f[a]+=p["x"===t?"width":"height"]()*o.over[r]);else{var y=p[r];f[a]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}o.limit&&/^\d+$/.test(f[a])&&(f[a]=f[a]<=0?0:Math.min(f[a],v)),!e&&o.axis.length>1&&(g===f[a]?f={}:s&&(l(o.onAfterFirst),f={}))}),l(o.onAfter)}})},n.max=function(i,n){var r="x"===n?"Width":"Height",a="scroll"+r;if(!t(i))return i[a]-e(i)[r.toLowerCase()]();var o="client"+r,s=i.ownerDocument||i.document,l=s.documentElement,u=s.body;return Math.max(l[a],u[a])-Math.min(l[o],u[o])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var i=this.get(t);if(t.options.interrupt&&t._last&&t._last!==i)return e(t.elem).stop();var n=Math.round(t.now);i!==n&&(e(t.elem)[t.prop](n),t._last=this.get(t))}},n}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var o=t||window.event,s=l.call(arguments,1),u=0,d=0,h=0,p=0,f=0,m=0;if(t=e.event.fix(o),t.type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*h,h=0),u=0===h?d:h,"deltaY"in o&&(h=-1*o.deltaY,u=h),"deltaX"in o&&(d=o.deltaX,0===h&&(u=-1*d)),0!==h||0!==d){if(1===o.deltaMode){var g=e.data(this,"mousewheel-line-height");u*=g,h*=g,d*=g}else if(2===o.deltaMode){var v=e.data(this,"mousewheel-page-height");u*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!a||a>p)&&(a=p,n(o,p)&&(a/=40)),n(o,p)&&(u/=40,d/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/a),d=Math[d>=1?"floor":"ceil"](d/a),h=Math[h>=1?"floor":"ceil"](h/a),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=h,t.deltaFactor=a,t.offsetX=f,t.offsetY=m,t.deltaMode=0,s.unshift(t,u,d,h),r&&clearTimeout(r),r=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function i(){a=null}function n(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var u=o.length;u;)e.event.fixHooks[o[--u]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e);
6
+ }})}),!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var i="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,r="https:"==document.location.protocol?"https:":"http:",a="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";i||(n?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+r+"//"+a+"%3E%3C/script%3E"))),t()}(function(){var t,i="mCustomScrollbar",n="mCS",r=".mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},o=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,u=!1,c=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(t){var t=e.extend(!0,{},a,t),i=h.call(this);if(t.live){var l=t.liveSelector||this.selector||r,u=e(l);if("off"===t.live)return void f(l);s[l]=setTimeout(function(){u.mCustomScrollbar(t),"once"===t.live&&u.length&&f(l)},500)}else f(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":m(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),p(t),e(i).each(function(){var i=e(this);if(!i.data(n)){i.data(n,{idx:++o,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:i.css("direction"),cbOffsets:null,trigger:null});var r=i.data(n),a=r.opt,s=i.data("mcs-axis"),l=i.data("mcs-scrollbar-position"),u=i.data("mcs-theme");s&&(a.axis=s),l&&(a.scrollbarPosition=l),u&&(a.theme=u,p(a)),v.call(this),e("#mCSB_"+r.idx+"_container img:not(."+c[2]+")").addClass(c[2]),d.update.call(null,i)}})},update:function(t,i){var r=t||h.call(this);return e(r).each(function(){var t=e(this);if(t.data(n)){var r=t.data(n),a=r.opt,o=e("#mCSB_"+r.idx+"_container"),s=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")];if(!o.length)return;r.tweenRunning&&Y(t),t.hasClass(c[3])&&t.removeClass(c[3]),t.hasClass(c[4])&&t.removeClass(c[4]),_.call(this),b.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||o.css("width",y(o.children())),r.overflowed=S.call(this),Q.call(this),a.autoDraggerLength&&x.call(this),j.call(this),$.call(this);var l=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)];"x"!==a.axis&&(r.overflowed[0]?s[0].height()>s[0].parent().height()?k.call(this):(X(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),r.contentReset.y=null):(k.call(this),"y"===a.axis?D.call(this):"yx"===a.axis&&r.overflowed[1]&&X(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(r.overflowed[1]?s[1].width()>s[1].parent().width()?k.call(this):(X(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),r.contentReset.x=null):(k.call(this),"x"===a.axis?D.call(this):"yx"===a.axis&&r.overflowed[0]&&X(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),i&&r&&(2===i&&a.callbacks.onImageLoad&&"function"==typeof a.callbacks.onImageLoad?a.callbacks.onImageLoad.call(this):3===i&&a.callbacks.onSelectorChange&&"function"==typeof a.callbacks.onSelectorChange?a.callbacks.onSelectorChange.call(this):a.callbacks.onUpdate&&"function"==typeof a.callbacks.onUpdate&&a.callbacks.onUpdate.call(this)),U.call(this)}})},scrollTo:function(t,i){if("undefined"!=typeof t&&null!=t){var r=h.call(this);return e(r).each(function(){var r=e(this);if(r.data(n)){var a=r.data(n),o=a.opt,s={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},s,i),u=F.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;u[0]=W.call(this,u[0],"y"),u[1]=W.call(this,u[1],"x"),l.moveDragger&&(u[0]*=a.scrollRatio.y,u[1]*=a.scrollRatio.x),l.dur=c,setTimeout(function(){null!==u[0]&&"undefined"!=typeof u[0]&&"x"!==o.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",X(r,u[0].toString(),l)),null!==u[1]&&"undefined"!=typeof u[1]&&"y"!==o.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",X(r,u[1].toString(),l))},l.timeout)}})}},stop:function(){var t=h.call(this);return e(t).each(function(){var t=e(this);t.data(n)&&Y(t)})},disable:function(t){var i=h.call(this);return e(i).each(function(){var i=e(this);i.data(n)&&(i.data(n),U.call(this,"remove"),D.call(this),t&&k.call(this),Q.call(this,!0),i.addClass(c[3]))})},destroy:function(){var t=h.call(this);return e(t).each(function(){var r=e(this);if(r.data(n)){var a=r.data(n),o=a.opt,s=e("#mCSB_"+a.idx),l=e("#mCSB_"+a.idx+"_container"),u=e(".mCSB_"+a.idx+"_scrollbar");o.live&&f(o.liveSelector||e(t).selector),U.call(this,"remove"),D.call(this),k.call(this),r.removeData(n),Z(this,"mcs"),u.remove(),l.find("img."+c[2]).removeClass(c[2]),s.replaceWith(l.contents()),r.removeClass(i+" _"+n+"_"+a.idx+" "+c[6]+" "+c[7]+" "+c[5]+" "+c[3]).addClass(c[4])}})}},h=function(){return"object"!=typeof e(this)||e(this).length<1?r:this},p=function(t){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],n=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],r=["minimal","minimal-dark"],a=["minimal","minimal-dark"],o=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,i)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,n)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,r)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,a)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,o)>-1?"outside":t.scrollbarPosition},f=function(e){s[e]&&(clearTimeout(s[e]),Z(s,e))},m=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),r=t.data(n),a=r.opt,o=a.autoExpandScrollbar?" "+c[1]+"_expand":"",s=["<div id='mCSB_"+r.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+r.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_vertical"+o+"'><div class='"+c[12]+"'><div id='mCSB_"+r.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+r.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+r.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_horizontal"+o+"'><div class='"+c[12]+"'><div id='mCSB_"+r.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===a.axis?"mCSB_vertical_horizontal":"x"===a.axis?"mCSB_horizontal":"mCSB_vertical",u="yx"===a.axis?s[0]+s[1]:"x"===a.axis?s[1]:s[0],d="yx"===a.axis?"<div id='mCSB_"+r.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",h=a.autoHideScrollbar?" "+c[6]:"",p="x"!==a.axis&&"rtl"===r.langDir?" "+c[7]:"";a.setWidth&&t.css("width",a.setWidth),a.setHeight&&t.css("height",a.setHeight),a.setLeft="y"!==a.axis&&"rtl"===r.langDir?"989999px":a.setLeft,t.addClass(i+" _"+n+"_"+r.idx+h+p).wrapInner("<div id='mCSB_"+r.idx+"' class='mCustomScrollBox mCS-"+a.theme+" "+l+"'><div id='mCSB_"+r.idx+"_container' class='mCSB_container' style='position:relative; top:"+a.setTop+"; left:"+a.setLeft+";' dir="+r.langDir+" /></div>");var f=e("#mCSB_"+r.idx),m=e("#mCSB_"+r.idx+"_container");"y"===a.axis||a.advanced.autoExpandHorizontalScroll||m.css("width",y(m.children())),"outside"===a.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),f.addClass("mCSB_outside").after(u)):(f.addClass("mCSB_inside").append(u),m.wrap(d)),w.call(this);var g=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(t){return Math.max.apply(Math,t.map(function(){return e(this).outerWidth(!0)}).get())},b=function(){var t=e(this),i=t.data(n),r=i.opt,a=e("#mCSB_"+i.idx+"_container");r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis&&a.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(a[0].getBoundingClientRect().right+.4)-Math.floor(a[0].getBoundingClientRect().left),position:"relative"}).unwrap()},w=function(){var t=e(this),i=t.data(n),r=i.opt,a=e(".mCSB_"+i.idx+"_scrollbar:first"),o=te(r.scrollButtons.tabindex)?"tabindex='"+r.scrollButtons.tabindex+"'":"",s=["<a href='#' class='"+c[13]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[14]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[15]+"' oncontextmenu='return false;' "+o+" />","<a href='#' class='"+c[16]+"' oncontextmenu='return false;' "+o+" />"],l=["x"===r.axis?s[2]:s[0],"x"===r.axis?s[3]:s[1],s[2],s[3]];r.scrollButtons.enable&&a.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},_=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=t.css("max-height")||"none",o=-1!==a.indexOf("%"),s=t.css("box-sizing");if("none"!==a){var l=o?t.parent().height()*parseInt(a)/100:parseInt(a);"border-box"===s&&(l-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),r.css("max-height",Math.round(l))}},x=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")],s=[r.height()/a.outerHeight(!1),r.width()/a.outerWidth(!1)],u=[parseInt(o[0].css("min-height")),Math.round(s[0]*o[0].parent().height()),parseInt(o[1].css("min-width")),Math.round(s[1]*o[1].parent().width())],c=l&&u[1]<u[0]?u[0]:u[1],d=l&&u[3]<u[2]?u[2]:u[3];o[0].css({height:c,"max-height":o[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":u[0]+"px"}),o[1].css({width:d,"max-width":o[1].parent().width()-10})},j=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")],s=[a.outerHeight(!1)-r.height(),a.outerWidth(!1)-r.width()],l=[s[0]/(o[0].parent().height()-o[0].height()),s[1]/(o[1].parent().width()-o[1].width())];i.scrollRatio={y:l[0],x:l[1]}},C=function(e,t,i){var n=i?c[0]+"_expanded":"",r=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(c[0]+" "+n),r.toggleClass(c[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(c[0]),r.removeClass(c[1])):(e.addClass(c[0]),r.addClass(c[1])))},S=function(){var t=e(this),i=t.data(n),r=e("#mCSB_"+i.idx),a=e("#mCSB_"+i.idx+"_container"),o=null==i.overflowed?a.height():a.outerHeight(!1),s=null==i.overflowed?a.width():a.outerWidth(!1);return[o>r.height(),s>r.width()]},k=function(){var t=e(this),i=t.data(n),r=i.opt,a=e("#mCSB_"+i.idx),o=e("#mCSB_"+i.idx+"_container"),s=[e("#mCSB_"+i.idx+"_dragger_vertical"),e("#mCSB_"+i.idx+"_dragger_horizontal")];if(Y(t),("x"!==r.axis&&!i.overflowed[0]||"y"===r.axis&&i.overflowed[0])&&(s[0].add(o).css("top",0),X(t,"_resetY")),"y"!==r.axis&&!i.overflowed[1]||"x"===r.axis&&i.overflowed[1]){var l=dx=0;"rtl"===i.langDir&&(l=a.width()-o.outerWidth(!1),dx=Math.abs(l/i.scrollRatio.x)),o.css("left",l),s[1].css("left",dx),X(t,"_resetX")}},$=function(){function t(){o=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(o),E.call(i[0])):t()},100)}var i=e(this),r=i.data(n),a=r.opt;if(!r.bindEvents){if(O.call(this),a.contentTouchScroll&&A.call(this),M.call(this),a.mouseWheel.enable){var o;t()}L.call(this),H.call(this),a.advanced.autoScrollOnFocus&&R.call(this),a.scrollButtons.enable&&B.call(this),a.keyboard.enable&&z.call(this),r.bindEvents=!0}},D=function(){var t=e(this),i=t.data(n),r=i.opt,a=n+"_"+i.idx,o=".mCSB_"+i.idx+"_scrollbar",s=e("#mCSB_"+i.idx+",#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,"+o+" ."+c[12]+",#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal,"+o+">a"),l=e("#mCSB_"+i.idx+"_container");r.advanced.releaseDraggableSelectors&&s.add(e(r.advanced.releaseDraggableSelectors)),i.bindEvents&&(e(document).unbind("."+a),s.each(function(){e(this).unbind("."+a)}),clearTimeout(t[0]._focusTimeout),Z(t[0],"_focusTimeout"),clearTimeout(i.sequential.step),Z(i.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),Z(l[0],"onCompleteTimeout"),i.bindEvents=!1)},Q=function(t){var i=e(this),r=i.data(n),a=r.opt,o=e("#mCSB_"+r.idx+"_container_wrapper"),s=o.length?o:e("#mCSB_"+r.idx+"_container"),l=[e("#mCSB_"+r.idx+"_scrollbar_vertical"),e("#mCSB_"+r.idx+"_scrollbar_horizontal")],u=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==a.axis&&(r.overflowed[0]&&!t?(l[0].add(u[0]).add(l[0].children("a")).css("display","block"),s.removeClass(c[8]+" "+c[10])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&u[0].css("display","none"),s.removeClass(c[10])):(l[0].css("display","none"),s.addClass(c[10])),s.addClass(c[8]))),"y"!==a.axis&&(r.overflowed[1]&&!t?(l[1].add(u[1]).add(l[1].children("a")).css("display","block"),s.removeClass(c[9]+" "+c[11])):(a.alwaysShowScrollbar?(2!==a.alwaysShowScrollbar&&u[1].css("display","none"),s.removeClass(c[11])):(l[1].css("display","none"),s.addClass(c[11])),s.addClass(c[9]))),r.overflowed[0]||r.overflowed[1]?i.removeClass(c[5]):i.addClass(c[5])},T=function(e){var t=e.type;switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return e.target.ownerDocument!==document?[e.originalEvent.screenY,e.originalEvent.screenX,!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[i.screenY,i.screenX,n>1]:[i.pageY,i.pageX,n>1];default:return[e.pageY,e.pageX,!1]}},O=function(){function t(e){var t=f.find("iframe");if(t.length){var i=e?"auto":"none";t.css("pointer-events",i)}}function i(e,t,i,n){if(f[0].idleTimer=d.scrollInertia<233?250:0,r.attr("id")===p[1])var a="x",o=(r[0].offsetLeft-t+n)*c.scrollRatio.x;else var a="y",o=(r[0].offsetTop-e+i)*c.scrollRatio.y;X(s,o.toString(),{dir:a,drag:!0})}var r,a,o,s=e(this),c=s.data(n),d=c.opt,h=n+"_"+c.idx,p=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],f=e("#mCSB_"+c.idx+"_container"),m=e("#"+p[0]+",#"+p[1]),g=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m;m.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(i){if(i.stopImmediatePropagation(),i.preventDefault(),J(i)){u=!0,l&&(document.onselectstart=function(){return!1}),t(!1),Y(s),r=e(this);var n=r.offset(),c=T(i)[0]-n.top,h=T(i)[1]-n.left,p=r.height()+n.top,f=r.width()+n.left;p>c&&c>0&&f>h&&h>0&&(a=c,o=h),C(r,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=r.offset(),n=T(e)[0]-t.top,s=T(e)[1]-t.left;i(a,o,n,s)}),e(document).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(r){var t=r.offset(),n=T(e)[0]-t.top,s=T(e)[1]-t.left;if(a===n)return;i(a,o,n,s)}}).add(g).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){r&&(C(r,"active",d.autoExpandScrollbar),r=null),u=!1,l&&(document.onselectstart=null),t(!0)})},A=function(){function i(e){if(!ee(e)||u||T(e)[2])return void(t=0);t=1,_=0,x=0;var i=D.offset();c=T(e)[0]-i.top,d=T(e)[1]-i.left,P=[T(e)[0],T(e)[1]]}function r(e){if(ee(e)&&!u&&!T(e)[2]&&(e.stopImmediatePropagation(),!x||_)){m=K();var t=$.offset(),i=T(e)[0]-t.top,n=T(e)[1]-t.left,r="mcsLinearOut";if(O.push(i),A.push(n),P[2]=Math.abs(T(e)[0]-P[0]),P[3]=Math.abs(T(e)[1]-P[1]),C.overflowed[0])var a=Q[0].parent().height()-Q[0].height(),o=c-i>0&&i-c>-(a*C.scrollRatio.y)&&(2*P[3]<P[2]||"yx"===S.axis);if(C.overflowed[1])var s=Q[1].parent().width()-Q[1].width(),h=d-n>0&&n-d>-(s*C.scrollRatio.x)&&(2*P[2]<P[3]||"yx"===S.axis);o||h?(e.preventDefault(),_=1):x=1,b="yx"===S.axis?[c-i,d-n]:"x"===S.axis?[null,d-n]:[c-i,null],D[0].idleTimer=250,C.overflowed[0]&&l(b[0],M,r,"y","all",!0),C.overflowed[1]&&l(b[1],M,r,"x",E,!0)}}function a(e){if(!ee(e)||u||T(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Y(j),f=K();var i=$.offset();h=T(e)[0]-i.top,p=T(e)[1]-i.left,O=[],A=[]}function o(e){if(ee(e)&&!u&&!T(e)[2]){e.stopImmediatePropagation(),_=0,x=0,g=K();var t=$.offset(),i=T(e)[0]-t.top,n=T(e)[1]-t.left;if(!(g-m>30)){y=1e3/(g-f);var r="mcsEaseOut",a=2.5>y,o=a?[O[O.length-2],A[A.length-2]]:[0,0];v=a?[i-o[0],n-o[1]]:[i-h,n-p];var c=[Math.abs(v[0]),Math.abs(v[1])];y=a?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[y,y];var d=[Math.abs(D[0].offsetTop)-v[0]*s(c[0]/y[0],y[0]),Math.abs(D[0].offsetLeft)-v[1]*s(c[1]/y[1],y[1])];b="yx"===S.axis?[d[0],d[1]]:"x"===S.axis?[null,d[1]]:[d[0],null],w=[4*c[0]+S.scrollInertia,4*c[1]+S.scrollInertia];var j=parseInt(S.contentTouchScroll)||0;b[0]=c[0]>j?b[0]:0,b[1]=c[1]>j?b[1]:0,C.overflowed[0]&&l(b[0],w[0],r,"y",E,!1),C.overflowed[1]&&l(b[1],w[1],r,"x",E,!1)}}}function s(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?i[0]:i[3]:e>60?t>3?i[3]:i[2]:e>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function l(e,t,i,n,r,a){e&&X(j,e.toString(),{dur:t,scrollEasing:i,dir:n,overwrite:r,drag:a})}var c,d,h,p,f,m,g,v,y,b,w,_,x,j=e(this),C=j.data(n),S=C.opt,k=n+"_"+C.idx,$=e("#mCSB_"+C.idx),D=e("#mCSB_"+C.idx+"_container"),Q=[e("#mCSB_"+C.idx+"_dragger_vertical"),e("#mCSB_"+C.idx+"_dragger_horizontal")],O=[],A=[],M=0,E="yx"===S.axis?"none":"all",P=[],L=D.find("iframe"),R=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k];D.bind(R[0],function(e){i(e)}).bind(R[1],function(e){r(e)}),$.bind(R[0],function(e){a(e)}).bind(R[2],function(e){o(e)}),L.length&&L.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(R[0],function(e){i(e),a(e)}).bind(R[1],function(e){r(e)}).bind(R[2],function(e){o(e)})})})},M=function(){function i(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function r(e,t,i){c.type=i&&a?"stepped":"stepless",c.scrollAmount=10,q(o,e,t,"mcsLinearOut",i?60:null)}var a,o=e(this),s=o.data(n),l=s.opt,c=s.sequential,d=n+"_"+s.idx,h=e("#mCSB_"+s.idx+"_container"),p=h.parent();h.bind("mousedown."+d,function(){t||a||(a=1,u=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&a&&i()){var n=h.offset(),o=T(e)[0]-n.top+h[0].offsetTop,u=T(e)[1]-n.left+h[0].offsetLeft;o>0&&o<p.height()&&u>0&&u<p.width()?c.step&&r("off",null,"stepped"):("x"!==l.axis&&s.overflowed[0]&&(0>o?r("on",38):o>p.height()&&r("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>u?r("on",37):u>p.width()&&r("on",39)))}}).bind("mouseup."+d,function(){t||(a&&(a=0,r("off",null)),u=!1)})},E=function(){function t(t,n){if(Y(i),!P(i,t.target)){var o="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100;if("x"===a.axis||"x"===a.mouseWheel.axis)var c="x",d=[Math.round(o*r.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.width()?.9*s.width():d[0],p=Math.abs(e("#mCSB_"+r.idx+"_container")[0].offsetLeft),f=u[1][0].offsetLeft,m=u[1].parent().width()-u[1].width(),g=t.deltaX||t.deltaY||n;else var c="y",d=[Math.round(o*r.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=s.height()?.9*s.height():d[0],p=Math.abs(e("#mCSB_"+r.idx+"_container")[0].offsetTop),f=u[0][0].offsetTop,m=u[0].parent().height()-u[0].height(),g=t.deltaY||n;"y"===c&&!r.overflowed[0]||"x"===c&&!r.overflowed[1]||(a.mouseWheel.invert&&(g=-g),a.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==f||0>g&&f!==m||a.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),X(i,(p-g*h).toString(),{dir:c}))}}var i=e(this),r=i.data(n),a=r.opt,o=n+"_"+r.idx,s=e("#mCSB_"+r.idx),u=[e("#mCSB_"+r.idx+"_dragger_vertical"),e("#mCSB_"+r.idx+"_dragger_horizontal")],c=e("#mCSB_"+r.idx+"_container").find("iframe");r&&(c.length&&c.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,function(e,i){t(e,i)})})}),s.bind("mousewheel."+o,function(e,i){t(e,i)}))},I=function(e){var t=null;try{var i=e.contentDocument||e.contentWindow.document;t=i.body.innerHTML}catch(e){}return null!==t},P=function(t,i){var r=i.nodeName.toLowerCase(),a=t.data(n).opt.mouseWheel.disableOver,o=["select","textarea"];return e.inArray(r,a)>-1&&!(e.inArray(r,o)>-1&&!e(i).is(":focus"))},L=function(){var t=e(this),i=t.data(n),r=n+"_"+i.idx,a=e("#mCSB_"+i.idx+"_container"),o=a.parent(),s=e(".mCSB_"+i.idx+"_scrollbar ."+c[12]);s.bind("touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(){u=!0}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){u=!1}).bind("click."+r,function(n){if(e(n.target).hasClass(c[12])||e(n.target).hasClass("mCSB_draggerRail")){Y(t);var r=e(this),s=r.find(".mCSB_dragger");if(r.parent(".mCSB_scrollTools_horizontal").length>0){if(!i.overflowed[1])return;var l="x",u=n.pageX>s.offset().left?-1:1,d=Math.abs(a[0].offsetLeft)-.9*u*o.width()}else{if(!i.overflowed[0])return;var l="y",u=n.pageY>s.offset().top?-1:1,d=Math.abs(a[0].offsetTop)-.9*u*o.height()}X(t,d.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})}})},R=function(){var t=e(this),i=t.data(n),r=i.opt,a=n+"_"+i.idx,o=e("#mCSB_"+i.idx+"_container"),s=o.parent();o.bind("focusin."+a,function(){var i=e(document.activeElement),n=o.find(".mCustomScrollBox").length,a=0;i.is(r.advanced.autoScrollOnFocus)&&(Y(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=n?(a+17)*n:0,t[0]._focusTimeout=setTimeout(function(){var e=[ie(i)[0],ie(i)[1]],n=[o[0].offsetTop,o[0].offsetLeft],l=[n[0]+e[0]>=0&&n[0]+e[0]<s.height()-i.outerHeight(!1),n[1]+e[1]>=0&&n[0]+e[1]<s.width()-i.outerWidth(!1)],u="yx"!==r.axis||l[0]||l[1]?"all":"none";"x"===r.axis||l[0]||X(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:u,dur:a}),"y"===r.axis||l[1]||X(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:u,dur:a})},t[0]._focusTimer))})},H=function(){var t=e(this),i=t.data(n),r=n+"_"+i.idx,a=e("#mCSB_"+i.idx+"_container").parent();a.bind("scroll."+r,function(){(0!==a.scrollTop()||0!==a.scrollLeft())&&e(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},B=function(){var t=e(this),i=t.data(n),r=i.opt,a=i.sequential,o=n+"_"+i.idx,s=".mCSB_"+i.idx+"_scrollbar",l=e(s+">a");l.bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o+" mouseup."+o+" touchend."+o+" pointerup."+o+" MSPointerUp."+o+" mouseout."+o+" pointerout."+o+" MSPointerOut."+o+" click."+o,function(n){function o(e,i){a.scrollAmount=r.snapAmount||r.scrollButtons.scrollAmount,q(t,e,i)}if(n.preventDefault(),J(n)){var s=e(this).attr("class");switch(a.type=r.scrollButtons.scrollType,n.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===a.type)return;u=!0,i.tweenRunning=!1,o("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===a.type)return;u=!1,a.dir&&o("off",s);break;case"click":if("stepped"!==a.type||i.tweenRunning)return;o("on",s)}}})},z=function(){function t(t){function n(e,t){o.type=a.keyboard.scrollType,o.scrollAmount=a.snapAmount||a.keyboard.scrollAmount,"stepped"===o.type&&r.tweenRunning||q(i,e,t)}switch(t.type){case"blur":r.tweenRunning&&o.dir&&n("off",null);break;case"keydown":case"keyup":var s=t.keyCode?t.keyCode:t.which,l="on";if("x"!==a.axis&&(38===s||40===s)||"y"!==a.axis&&(37===s||39===s)){if((38===s||40===s)&&!r.overflowed[0]||(37===s||39===s)&&!r.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(d)||(t.preventDefault(),t.stopImmediatePropagation(),n(l,s))}else if(33===s||34===s){if((r.overflowed[0]||r.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Y(i);var h=34===s?-1:1;if("x"===a.axis||"yx"===a.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",f=Math.abs(u[0].offsetLeft)-.9*h*c.width();else var p="y",f=Math.abs(u[0].offsetTop)-.9*h*c.height();X(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!e(document.activeElement).is(d)&&((r.overflowed[0]||r.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===a.axis||"yx"===a.axis&&r.overflowed[1]&&!r.overflowed[0])var p="x",f=35===s?Math.abs(c.width()-u.outerWidth(!1)):0;else var p="y",f=35===s?Math.abs(c.height()-u.outerHeight(!1)):0;X(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var i=e(this),r=i.data(n),a=r.opt,o=r.sequential,s=n+"_"+r.idx,l=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),c=u.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",h=u.find("iframe"),p=["blur."+s+" keydown."+s+" keyup."+s];h.length&&h.each(function(){e(this).load(function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(p[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(p[0],function(e){t(e)})},q=function(t,i,r,a,o){function s(e){var i="stepped"!==h.type,n=o?o:e?i?m/1.5:g:1e3/60,r=e?i?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],c=[u.scrollRatio.y>10?10:u.scrollRatio.y,u.scrollRatio.x>10?10:u.scrollRatio.x],d="x"===h.dir[0]?l[1]+h.dir[1]*c[1]*r:l[0]+h.dir[1]*c[0]*r,f="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?f:d,y=a?a:e?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",b=!!e;return e&&17>n&&(v="x"===h.dir[0]?l[1]:l[0]),X(t,v.toString(),{dir:h.dir[0],scrollEasing:y,dur:n,onComplete:b}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){s()},n)))}function l(){clearTimeout(h.step),Z(h,"step"),Y(t)}var u=t.data(n),d=u.opt,h=u.sequential,p=e("#mCSB_"+u.idx+"_container"),f="stepped"===h.type,m=d.scrollInertia<26?26:d.scrollInertia,g=d.scrollInertia<1?17:d.scrollInertia;switch(i){case"on":if(h.dir=[r===c[16]||r===c[15]||39===r||37===r?"x":"y",r===c[13]||r===c[15]||38===r||37===r?-1:1],Y(t),te(r)&&"stepped"===h.type)return;s(f);break;case"off":l(),(f||u.tweenRunning&&h.dir)&&s(!0)}},F=function(t){var i=e(this).data(n).opt,r=[];return"function"==typeof t&&(t=t()),t instanceof Array?r=t.length>1?[t[0],t[1]]:"x"===i.axis?[null,t[0]]:[t[0],null]:(r[0]=t.y?t.y:t.x||"x"===i.axis?null:t,r[1]=t.x?t.x:t.y||"y"===i.axis?null:t),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},W=function(t,i){if(null!=t&&"undefined"!=typeof t){var r=e(this),a=r.data(n),o=a.opt,s=e("#mCSB_"+a.idx+"_container"),l=s.parent(),u=typeof t;i||(i="x"===o.axis?"x":"y");var c="x"===i?s.outerWidth(!1):s.outerHeight(!1),h="x"===i?s[0].offsetLeft:s[0].offsetTop,p="x"===i?"left":"top";switch(u){case"function":return t();case"object":var f=t.jquery?t:e(t);if(!f.length)return;return"x"===i?ie(f)[1]:ie(f)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(c*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(h-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var m=h+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-s.outerHeight(!1));if("right"===t)return Math.abs(l.width()-s.outerWidth(!1));if("first"===t||"last"===t){var f=s.find(":"+t);return"x"===i?ie(f)[1]:ie(f)[0]}return e(t).length?"x"===i?ie(e(t))[1]:ie(e(t))[0]:(s.css(p,t),void d.update.call(null,r[0]))}}},U=function(t){function i(){clearTimeout(p[0].autoUpdate),p[0].autoUpdate=setTimeout(function(){return h.advanced.updateOnSelectorChange&&(f=o(),f!==w)?(s(3),void(w=f)):(h.advanced.updateOnContentResize&&(m=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],(m[0]!==_[0]||m[1]!==_[1]||m[2]!==_[2]||m[3]!==_[3]||m[4]!==_[4]||m[5]!==_[5])&&(s(m[0]!==_[0]||m[1]!==_[1]),_=m)),h.advanced.updateOnImageLoad&&(g=r(),g!==x&&(p.find("img").each(function(){a(this)}),x=g)),void((h.advanced.updateOnSelectorChange||h.advanced.updateOnContentResize||h.advanced.updateOnImageLoad)&&i()))},60)}function r(){var e=0;return h.advanced.updateOnImageLoad&&(e=p.find("img").length),e}function a(t){function i(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,e(t).addClass(c[2]),s(2)}if(e(t).hasClass(c[2]))return void s();var r=new Image;r.onload=i(r,n),r.src=t.src}function o(){h.advanced.updateOnSelectorChange===!0&&(h.advanced.updateOnSelectorChange="*");var t=0,i=p.find(h.advanced.updateOnSelectorChange);return h.advanced.updateOnSelectorChange&&i.length>0&&i.each(function(){t+=e(this).height()+e(this).width()}),t}function s(e){clearTimeout(p[0].autoUpdate),d.update.call(null,l[0],e)}var l=e(this),u=l.data(n),h=u.opt,p=e("#mCSB_"+u.idx+"_container");if(t)return clearTimeout(p[0].autoUpdate),void Z(p[0],"autoUpdate");var f,m,g,v=p.parent(),y=[e("#mCSB_"+u.idx+"_scrollbar_vertical"),e("#mCSB_"+u.idx+"_scrollbar_horizontal")],b=function(){return[y[0].is(":visible")?y[0].outerHeight(!0):0,y[1].is(":visible")?y[1].outerWidth(!0):0]},w=o(),_=[p.outerHeight(!1),p.outerWidth(!1),v.height(),v.width(),b()[0],b()[1]],x=r();i()},N=function(e,t,i){return Math.round(e/t)*t-i},Y=function(t){var i=t.data(n),r=e("#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal");r.each(function(){V.call(this)})},X=function(t,i,r){function a(e){return l&&u.callbacks[e]&&"function"==typeof u.callbacks[e]}function o(){return[u.callbacks.alwaysTriggerOffsets||b>=w[0]+x,u.callbacks.alwaysTriggerOffsets||-j>=b]}function s(){var e=[p[0].offsetTop,p[0].offsetLeft],i=[v[0].offsetTop,v[0].offsetLeft],n=[p.outerHeight(!1),p.outerWidth(!1)],a=[h.height(),h.width()];t[0].mcs={content:p,top:e[0],left:e[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-a[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-a[1])),direction:r.dir}}var l=t.data(n),u=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:u.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=e.extend(c,r),d=[r.dur,r.drag?0:r.dur],h=e("#mCSB_"+l.idx),p=e("#mCSB_"+l.idx+"_container"),f=p.parent(),m=u.callbacks.onTotalScrollOffset?F.call(t,u.callbacks.onTotalScrollOffset):[0,0],g=u.callbacks.onTotalScrollBackOffset?F.call(t,u.callbacks.onTotalScrollBackOffset):[0,0];
7
+ if(l.trigger=r.trigger,(0!==f.scrollTop()||0!==f.scrollLeft())&&(e(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==i||l.contentReset.y||(a("onOverflowYNone")&&u.callbacks.onOverflowYNone.call(t[0]),l.contentReset.y=1),"_resetX"!==i||l.contentReset.x||(a("onOverflowXNone")&&u.callbacks.onOverflowXNone.call(t[0]),l.contentReset.x=1),"_resetY"!==i&&"_resetX"!==i){switch(!l.contentReset.y&&t[0].mcs||!l.overflowed[0]||(a("onOverflowY")&&u.callbacks.onOverflowY.call(t[0]),l.contentReset.x=null),!l.contentReset.x&&t[0].mcs||!l.overflowed[1]||(a("onOverflowX")&&u.callbacks.onOverflowX.call(t[0]),l.contentReset.x=null),u.snapAmount&&(i=N(i,u.snapAmount,u.snapOffset)),r.dir){case"x":var v=e("#mCSB_"+l.idx+"_dragger_horizontal"),y="left",b=p[0].offsetLeft,w=[h.width()-p.outerWidth(!1),v.parent().width()-v.width()],_=[i,0===i?0:i/l.scrollRatio.x],x=m[1],j=g[1],S=x>0?x/l.scrollRatio.x:0,k=j>0?j/l.scrollRatio.x:0;break;case"y":var v=e("#mCSB_"+l.idx+"_dragger_vertical"),y="top",b=p[0].offsetTop,w=[h.height()-p.outerHeight(!1),v.parent().height()-v.height()],_=[i,0===i?0:i/l.scrollRatio.y],x=m[0],j=g[0],S=x>0?x/l.scrollRatio.y:0,k=j>0?j/l.scrollRatio.y:0}_[1]<0||0===_[0]&&0===_[1]?_=[0,0]:_[1]>=w[1]?_=[w[0],w[1]]:_[0]=-_[0],t[0].mcs||(s(),a("onInit")&&u.callbacks.onInit.call(t[0])),clearTimeout(p[0].onCompleteTimeout),(l.tweenRunning||!(0===b&&_[0]>=0||b===w[0]&&_[0]<=w[0]))&&(G(v[0],y,Math.round(_[1]),d[1],r.scrollEasing),G(p[0],y,Math.round(_[0]),d[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!l.tweenRunning&&(a("onScrollStart")&&(s(),u.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,C(v),l.cbOffsets=o())},onUpdate:function(){r.callbacks&&r.onUpdate&&a("whileScrolling")&&(s(),u.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(r.callbacks&&r.onComplete){"yx"===u.axis&&clearTimeout(p[0].onCompleteTimeout);var e=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){a("onScroll")&&(s(),u.callbacks.onScroll.call(t[0])),a("onTotalScroll")&&_[1]>=w[1]-S&&l.cbOffsets[0]&&(s(),u.callbacks.onTotalScroll.call(t[0])),a("onTotalScrollBack")&&_[1]<=k&&l.cbOffsets[1]&&(s(),u.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,p[0].idleTimer=0,C(v,"hide")},e)}}}))}},G=function(e,t,i,n,r,a,o){function s(){_.stop||(y||f.call(),y=K()-v,l(),y>=_.time&&(_.time=y>_.time?y+h-(y-_.time):y+h-1,_.time<y+1&&(_.time=y+1)),_.time<n?_.id=p(s):g.call())}function l(){n>0?(_.currVal=d(_.time,b,x,n,r),w[t]=Math.round(_.currVal)+"px"):w[t]=i+"px",m.call()}function u(){h=1e3/60,_.time=y+h,p=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},_.id=p(s)}function c(){null!=_.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(_.id):clearTimeout(_.id),_.id=null)}function d(e,t,i,n,r){switch(r){case"linear":case"mcsLinear":return i*e/n+t;case"mcsLinearOut":return e/=n,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=n/2,1>e?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=n/2,1>e?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=n/2,1>e?i/2*e*e*e+t:(e-=2,i/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=n,e--,-i*(e*e*e*e-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*e/n)+1)+t;case"easeOut":case"mcsEaseOut":default:var a=(e/=n)*e,o=a*e;return t+i*(.499999999999997*o*a+-2.5*a*a+5.5*o+-6.5*a+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var h,p,o=o||{},f=o.onStart||function(){},m=o.onUpdate||function(){},g=o.onComplete||function(){},v=K(),y=0,b=e.offsetTop,w=e.style,_=e._mTween[t];"left"===t&&(b=e.offsetLeft);var x=i-b;_.stop=0,"none"!==a&&c(),u()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},V=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],i=0;i<t.length;i++){var n=t[i];e._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[n].id):clearTimeout(e._mTween[n].id),e._mTween[n].id=null,e._mTween[n].stop=1)}},Z=function(e,t){try{delete e[t]}catch(i){e[t]=null}},J=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ie=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]};e.fn[i]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[i]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[i].defaults=a,window[i]=!0,e(window).load(function(){e(r)[i](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var i,n,r=e(t),a=r.parents(".mCSB_container");if(a.length)return i=a.parent(),n=[a[0].offsetTop,a[0].offsetLeft],n[0]+ie(r)[0]>=0&&n[0]+ie(r)[0]<i.height()-r.outerHeight(!1)&&n[1]+ie(r)[1]>=0&&n[1]+ie(r)[1]<i.width()-r.outerWidth(!1)},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var i=e(t).data(n);if(i)return i.overflowed[0]||i.overflowed[1]}})})})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){"use strict";var t=e(window),i=e(document),n=window.location,r=!0,a=!1,o=null,s=NaN,l=1/0,u="undefined",c="directive",d=".cropper",h=/^(e|n|w|s|ne|nw|sw|se|all|crop|move|zoom)$/,p=/^(x|y|width|height)$/,f=/^(naturalWidth|naturalHeight|width|height|aspectRatio|ratio|rotate)$/,m="cropper-modal",g="cropper-hidden",v="cropper-invisible",y="cropper-move",b="cropper-crop",w="cropper-disabled",_="mousedown touchstart",x="mousemove touchmove",j="mouseup mouseleave touchend touchleave touchcancel",C="wheel mousewheel DOMMouseScroll",S="resize"+d,k="dblclick",$="build"+d,D="built"+d,Q="dragstart"+d,T="dragmove"+d,O="dragend"+d,A=function(e){return"number"==typeof e},M=function(e,t){var i=[];return"number"==typeof t&&i.push(t),i.slice.apply(e,i)},E=function(e,t){var i=M(arguments,2);return function(){return e.apply(t,i.concat(M(arguments)))}},I=function(t,i){this.element=t,this.$element=e(t),this.defaults=e.extend({},I.DEFAULTS,e.isPlainObject(i)?i:{}),this.$original=o,this.ready=a,this.built=a,this.cropped=a,this.rotated=a,this.disabled=a,this.replaced=a,this.init()},P=Math.sqrt,L=Math.min,R=Math.max,H=Math.abs,B=Math.sin,z=Math.cos,q=parseFloat;I.prototype={constructor:I,support:{canvas:e.isFunction(e("<canvas>")[0].getContext)},init:function(){var t=this.defaults;e.each(t,function(e,i){switch(e){case"aspectRatio":t[e]=H(q(i))||s;break;case"autoCropArea":t[e]=H(q(i))||.8;break;case"minWidth":case"minHeight":t[e]=H(q(i))||0;break;case"maxWidth":case"maxHeight":t[e]=H(q(i))||l}}),this.image={rotate:0},this.load()},load:function(){var t,i,n=this,a=this.$element,o=this.element,s=this.image,l="";a.is("img")?i=a.prop("src"):a.is("canvas")&&this.support.canvas&&(i=o.toDataURL()),i&&(this.replaced&&(s.rotate=0),this.defaults.checkImageOrigin&&(a.prop("crossOrigin")||this.isCrossOriginURL(i))&&(l=" crossOrigin"),this.$clone=t=e("<img"+l+' src="'+i+'">'),t.one("load",function(){s.naturalWidth=this.naturalWidth||t.width(),s.naturalHeight=this.naturalHeight||t.height(),s.aspectRatio=s.naturalWidth/s.naturalHeight,n.url=i,n.ready=r,n.build()}),t.addClass(v).prependTo("body"))},isCrossOriginURL:function(e){var t=e.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i);return!t||t[1]===n.protocol&&t[2]===n.hostname&&t[3]===n.port?a:r},build:function(){var t,i,n=this.$element,o=this.defaults;this.ready&&(this.built&&this.unbuild(),n.one($,o.build),t=e.Event($),n.trigger(t),t.isDefaultPrevented()||(this.$cropper=i=e(I.TEMPLATE),n.addClass(g),this.$clone.removeClass(v).prependTo(i),this.rotated||(this.$original=this.$clone.clone(),this.$original.addClass(g).prependTo(this.$cropper),this.originalImage=e.extend({},this.image)),this.$container=n.parent(),this.$container.append(i),this.$canvas=i.find(".cropper-canvas"),this.$dragger=i.find(".cropper-dragger"),this.$viewer=i.find(".cropper-viewer"),o.autoCrop?this.cropped=r:this.$dragger.addClass(g),o.dragCrop&&this.setDragMode("crop"),o.modal&&this.$canvas.addClass(m),!o.dashed&&this.$dragger.find(".cropper-dashed").addClass(g),!o.movable&&this.$dragger.find(".cropper-face").data(c,"move"),!o.resizable&&this.$dragger.find(".cropper-line, .cropper-point").addClass(g),this.addListeners(),this.initPreview(),this.built=r,this.update(),this.replaced=a,n.one(D,o.built),n.trigger(D)))},unbuild:function(){this.built&&(this.built=a,this.removeListeners(),this.$preview.empty(),this.$preview=o,this.$dragger=o,this.$canvas=o,this.$container=o,this.$cropper.remove(),this.$cropper=o)},update:function(e){this.initContainer(),this.initCropper(),this.initImage(),this.initDragger(),e?(this.setData(e,r),this.setDragMode("crop")):this.setData(this.defaults.data)},resize:function(){clearTimeout(this.resizing),this.resizing=setTimeout(e.proxy(this.update,this,this.getData()),200)},preview:function(){var t=this.image,i=this.dragger,n=t.width,r=t.height,a=i.left-t.left,o=i.top-t.top;this.$viewer.find("img").css({width:n,height:r,marginLeft:-a,marginTop:-o}),this.$preview.each(function(){var t=e(this),s=t.width()/i.width;t.find("img").css({width:n*s,height:r*s,marginLeft:-a*s,marginTop:-o*s})})},addListeners:function(){var n=this.defaults;this.$element.on(Q,n.dragstart).on(T,n.dragmove).on(O,n.dragend),this.$cropper.on(_,e.proxy(this.dragstart,this)).on(k,e.proxy(this.dblclick,this)),n.zoomable&&this.$cropper.on(C,e.proxy(this.wheel,this)),n.multiple?this.$cropper.on(x,e.proxy(this.dragmove,this)).on(j,e.proxy(this.dragend,this)):i.on(x,this._dragmove=E(this.dragmove,this)).on(j,this._dragend=E(this.dragend,this)),t.on(S,this._resize=E(this.resize,this))},removeListeners:function(){var e=this.defaults;this.$element.off(Q,e.dragstart).off(T,e.dragmove).off(O,e.dragend),this.$cropper.off(_,this.dragstart).off(k,this.dblclick),e.zoomable&&this.$cropper.off(C,this.wheel),e.multiple?this.$cropper.off(x,this.dragmove).off(j,this.dragend):i.off(x,this._dragmove).off(j,this._dragend),t.off(S,this._resize)},initPreview:function(){var t='<img src="'+this.url+'">';this.$preview=e(this.defaults.preview),this.$viewer.html(t),this.$preview.html(t).find("img").css("cssText","min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;")},initContainer:function(){var e=this.$container;e!==o&&(this.container={width:R(e.width(),300),height:R(e.height(),150)})},initCropper:function(){var e,t=this.container,i=this.image;i.naturalWidth*t.height/i.naturalHeight-t.width>=0?(e={width:t.width,height:t.width/i.aspectRatio,left:0},e.top=(t.height-e.height)/2):(e={width:t.height*i.aspectRatio,height:t.height,top:0},e.left=(t.width-e.width)/2),this.$cropper.css({width:e.width,height:e.height,left:e.left,top:e.top}),this.cropper=e},initImage:function(){var t=this.image,i=this.cropper,n={_width:i.width,_height:i.height,width:i.width,height:i.height,left:0,top:0,ratio:i.width/t.naturalWidth};this.defaultImage=e.extend({},t,n),t._width!==i.width||t._height!==i.height?e.extend(t,n):(t=e.extend({},n,t),this.replaced&&(t.ratio=n.ratio)),this.image=t,this.renderImage()},renderImage:function(e){var t=this.image;"zoom"===e&&(t.left-=(t.width-t.oldWidth)/2,t.top-=(t.height-t.oldHeight)/2),t.left=L(R(t.left,t._width-t.width),0),t.top=L(R(t.top,t._height-t.height),0),this.$clone.css({width:t.width,height:t.height,marginLeft:t.left,marginTop:t.top}),e&&(this.defaults.done(this.getData()),this.preview())},initDragger:function(){var t,i=this.defaults,n=this.cropper,r=i.aspectRatio||this.image.aspectRatio,a=this.image.ratio;t=n.height*r-n.width>=0?{height:n.width/r,width:n.width,left:0,top:(n.height-n.width/r)/2,maxWidth:n.width,maxHeight:n.width/r}:{height:n.height,width:n.height*r,left:(n.width-n.height*r)/2,top:0,maxWidth:n.height*r,maxHeight:n.height},t.minWidth=0,t.minHeight=0,i.aspectRatio?(isFinite(i.maxWidth)?(t.maxWidth=L(t.maxWidth,i.maxWidth*a),t.maxHeight=t.maxWidth/r):isFinite(i.maxHeight)&&(t.maxHeight=L(t.maxHeight,i.maxHeight*a),t.maxWidth=t.maxHeight*r),i.minWidth>0?(t.minWidth=R(0,i.minWidth*a),t.minHeight=t.minWidth/r):i.minHeight>0&&(t.minHeight=R(0,i.minHeight*a),t.minWidth=t.minHeight*r)):(t.maxWidth=L(t.maxWidth,i.maxWidth*a),t.maxHeight=L(t.maxHeight,i.maxHeight*a),t.minWidth=R(0,i.minWidth*a),t.minHeight=R(0,i.minHeight*a)),t.minWidth=L(t.maxWidth,t.minWidth),t.minHeight=L(t.maxHeight,t.minHeight),t.height*=i.autoCropArea,t.width*=i.autoCropArea,t.left=(n.width-t.width)/2,t.top=(n.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.defaultDragger=t,this.dragger=e.extend({},t)},renderDragger:function(){var e=this.dragger,t=this.cropper;e.width>e.maxWidth?(e.width=e.maxWidth,e.left=e.oldLeft):e.width<e.minWidth&&(e.width=e.minWidth,e.left=e.oldLeft),e.height>e.maxHeight?(e.height=e.maxHeight,e.top=e.oldTop):e.height<e.minHeight&&(e.height=e.minHeight,e.top=e.oldTop),e.left=L(R(e.left,0),t.width-e.width),e.top=L(R(e.top,0),t.height-e.height),e.oldLeft=e.left,e.oldTop=e.top,this.dragger=e,this.disabled||this.defaults.done(this.getData()),this.$dragger.css({width:e.width,height:e.height,left:e.left,top:e.top}),this.preview()},reset:function(t){this.cropped&&(t&&(this.defaults.data={}),this.image=e.extend({},this.defaultImage),this.renderImage(),this.dragger=e.extend({},this.defaultDragger),this.setData(this.defaults.data))},clear:function(){this.cropped&&(this.cropped=a,this.setData({x:0,y:0,width:0,height:0}),this.$canvas.removeClass(m),this.$dragger.addClass(g))},destroy:function(){var e=this.$element;this.ready&&(this.unbuild(),e.removeClass(g).removeData("cropper"),this.rotated&&e.attr("src",this.$original.attr("src")))},replace:function(t,i){var n,o=this,s=this.$element,l=this.element;t&&t!==this.url&&t!==s.attr("src")&&(i||(this.rotated=a,this.replaced=r),s.is("img")?(s.attr("src",t),this.load()):s.is("canvas")&&this.support.canvas&&(n=l.getContext("2d"),e('<img src="'+t+'">').one("load",function(){l.width=this.width,l.height=this.height,n.clearRect(0,0,l.width,l.height),n.drawImage(this,0,0),o.load()})))},setData:function(t,i){var n=this.cropper,r=this.dragger,a=this.image,s=this.defaults.aspectRatio;this.built&&typeof t!==u&&((t===o||e.isEmptyObject(t))&&(r=e.extend({},this.defaultDragger)),e.isPlainObject(t)&&!e.isEmptyObject(t)&&(i||(this.defaults.data=t),t=this.transformData(t),A(t.x)&&t.x<=n.width-a.left&&(r.left=t.x+a.left),A(t.y)&&t.y<=n.height-a.top&&(r.top=t.y+a.top),s?A(t.width)&&t.width<=r.maxWidth&&t.width>=r.minWidth?(r.width=t.width,r.height=r.width/s):A(t.height)&&t.height<=r.maxHeight&&t.height>=r.minHeight&&(r.height=t.height,r.width=r.height*s):(A(t.width)&&t.width<=r.maxWidth&&t.width>=r.minWidth&&(r.width=t.width),A(t.height)&&t.height<=r.maxHeight&&t.height>=r.minHeight&&(r.height=t.height))),this.dragger=r,this.renderDragger())},getData:function(e){var t=this.dragger,i=this.image,n={};return this.built&&(n={x:t.left-i.left,y:t.top-i.top,width:t.width,height:t.height},n=this.transformData(n,r,e)),n},transformData:function(t,i,n){var r=this.image.ratio,a={};return e.each(t,function(e,t){t=q(t),p.test(e)&&!isNaN(t)&&(a[e]=i?n?Math.round(t/r):t/r:t*r)}),a},setAspectRatio:function(e){var t="auto"===e;e=q(e),(t||!isNaN(e)&&e>0)&&(this.defaults.aspectRatio=t?s:e,this.built&&(this.initDragger(),this.renderDragger()))},getImageData:function(){var t={};return this.ready&&e.each(this.image,function(e,i){f.test(e)&&(t[e]=i)}),t},getDataURL:function(t,i,n){var r,a=e("<canvas>")[0],o=this.getData(),s="";return e.isPlainObject(t)||(n=i,i=t,t={}),t=e.extend({width:o.width,height:o.height},t),this.cropped&&this.support.canvas&&(a.width=t.width,a.height=t.height,r=a.getContext("2d"),"image/jpeg"===i&&(r.fillStyle="#fff",r.fillRect(0,0,t.width,t.height)),r.drawImage(this.$clone[0],o.x,o.y,o.width,o.height,0,0,t.width,t.height),s=a.toDataURL(i,n)),s},setDragMode:function(e){var t=this.$canvas,i=this.defaults,n=a,o=a;if(this.built&&!this.disabled){switch(e){case"crop":i.dragCrop&&(n=r,t.data(c,e));break;case"move":o=r,t.data(c,e);break;default:t.removeData(c)}t.toggleClass(b,n).toggleClass(y,o)}},enable:function(){this.built&&(this.disabled=a,this.$cropper.removeClass(w))},disable:function(){this.built&&(this.disabled=r,this.$cropper.addClass(w))},rotate:function(e){var t=this.image;e=q(e)||0,this.built&&0!==e&&!this.disabled&&this.defaults.rotatable&&this.support.canvas&&(this.rotated=r,e=t.rotate=(t.rotate+e)%360,this.replace(this.getRotatedDataURL(e),!0))},getRotatedDataURL:function(t){var i=e("<canvas>")[0],n=i.getContext("2d"),r=t*Math.PI/180,a=H(t)%180,o=a>90?180-a:a,s=o*Math.PI/180,l=this.originalImage,u=l.naturalWidth,c=l.naturalHeight,d=H(u*z(s)+c*B(s)),h=H(u*B(s)+c*z(s));return i.width=d,i.height=h,n.save(),n.translate(d/2,h/2),n.rotate(r),n.drawImage(this.$original[0],-u/2,-c/2,u,c),n.restore(),i.toDataURL()},zoom:function(e){var t,i,n,r=this.image;e=q(e),this.built&&e&&!this.disabled&&this.defaults.zoomable&&(t=r.width*(1+e),i=r.height*(1+e),n=t/r._width,n>10||(n<1&&(t=r._width,i=r._height),n<=1?this.setDragMode("crop"):this.setDragMode("move"),r.oldWidth=r.width,r.oldHeight=r.height,r.width=t,r.height=i,r.ratio=r.width/r.naturalWidth,this.renderImage("zoom")))},dblclick:function(){this.disabled||(this.$canvas.hasClass(b)?this.setDragMode("move"):this.setDragMode("crop"))},wheel:function(e){var t,i=e.originalEvent,n=117.25,r=5,a=166.66665649414062,o=.1;this.disabled||(e.preventDefault(),i.deltaY?(t=i.deltaY,t=t%r===0?t/r:t%n===0?t/n:t/a):t=i.wheelDelta?-i.wheelDelta/120:i.detail?i.detail/3:0,this.zoom(t*o))},dragstart:function(t){var i,n,o,s=t.originalEvent.touches,l=t;if(!this.disabled){if(s){if(o=s.length,o>1){if(!this.defaults.zoomable||2!==o)return;l=s[1],this.startX2=l.pageX,this.startY2=l.pageY,i="zoom"}l=s[0]}if(i=i||e(l.target).data(c),h.test(i)){if(t.preventDefault(),n=e.Event(Q),this.$element.trigger(n),n.isDefaultPrevented())return;this.directive=i,this.cropping=a,this.startX=l.pageX,this.startY=l.pageY,"crop"===i&&(this.cropping=r,this.$canvas.addClass(m))}}},dragmove:function(t){var i,n,r=t.originalEvent.touches,a=t;if(!this.disabled){if(r){if(n=r.length,n>1){if(!this.defaults.zoomable||2!==n)return;a=r[1],this.endX2=a.pageX,this.endY2=a.pageY}a=r[0]}if(this.directive){if(t.preventDefault(),i=e.Event(T),this.$element.trigger(i),i.isDefaultPrevented())return;this.endX=a.pageX,this.endY=a.pageY,this.dragging()}}},dragend:function(t){var i;if(!this.disabled&&this.directive){if(t.preventDefault(),i=e.Event(O),this.$element.trigger(i),i.isDefaultPrevented())return;this.cropping&&(this.cropping=a,this.$canvas.toggleClass(m,this.cropped&&this.defaults.modal)),this.directive=""}},dragging:function(){var e,t=this.directive,i=this.image,n=this.cropper,o=n.width,s=n.height,l=this.dragger,u=l.width,c=l.height,d=l.left,h=l.top,p=d+u,f=h+c,m=r,v=this.defaults,y=v.aspectRatio,b={x:this.endX-this.startX,y:this.endY-this.startY};switch(y&&(b.X=b.y*y,b.Y=b.x/y),t){case"all":d+=b.x,h+=b.y;break;case"e":if(b.x>=0&&(p>=o||y&&(h<=0||f>=s))){m=a;break}u+=b.x,y&&(c=u/y,h-=b.Y/2),u<0&&(t="w",u=0);break;case"n":if(b.y<=0&&(h<=0||y&&(d<=0||p>=o))){m=a;break}c-=b.y,h+=b.y,y&&(u=c*y,d+=b.X/2),c<0&&(t="s",c=0);break;case"w":if(b.x<=0&&(d<=0||y&&(h<=0||f>=s))){m=a;break}u-=b.x,d+=b.x,y&&(c=u/y,h+=b.Y/2),u<0&&(t="e",u=0);break;case"s":if(b.y>=0&&(f>=s||y&&(d<=0||p>=o))){m=a;break}c+=b.y,y&&(u=c*y,d-=b.X/2),c<0&&(t="n",c=0);break;case"ne":if(y){if(b.y<=0&&(h<=0||p>=o)){m=a;break}c-=b.y,h+=b.y,u=c*y}else b.x>=0?p<o?u+=b.x:b.y<=0&&h<=0&&(m=a):u+=b.x,b.y<=0?h>0&&(c-=b.y,h+=b.y):(c-=b.y,h+=b.y);c<0&&(t="sw",c=0,u=0);break;case"nw":if(y){if(b.y<=0&&(h<=0||d<=0)){m=a;break}c-=b.y,h+=b.y,u=c*y,d+=b.X}else b.x<=0?d>0?(u-=b.x,d+=b.x):b.y<=0&&h<=0&&(m=a):(u-=b.x,d+=b.x),b.y<=0?h>0&&(c-=b.y,h+=b.y):(c-=b.y,h+=b.y);c<0&&(t="se",c=0,u=0);break;case"sw":if(y){if(b.x<=0&&(d<=0||f>=s)){m=a;break}u-=b.x,d+=b.x,c=u/y}else b.x<=0?d>0?(u-=b.x,d+=b.x):b.y>=0&&f>=s&&(m=a):(u-=b.x,d+=b.x),b.y>=0?f<s&&(c+=b.y):c+=b.y;u<0&&(t="ne",c=0,u=0);break;case"se":if(y){if(b.x>=0&&(p>=o||f>=s)){m=a;break}u+=b.x,c=u/y}else b.x>=0?p<o?u+=b.x:b.y>=0&&f>=s&&(m=a):u+=b.x,b.y>=0?f<s&&(c+=b.y):c+=b.y;u<0&&(t="nw",c=0,u=0);break;case"move":i.left+=b.x,i.top+=b.y,this.renderImage("move"),m=a;break;case"zoom":v.zoomable&&(this.zoom(function(e,t,i,n,r,a){return(P(r*r+a*a)-P(i*i+n*n))/P(e*e+t*t)}(i.width,i.height,H(this.startX-this.startX2),H(this.startY-this.startY2),H(this.endX-this.endX2),H(this.endY-this.endY2))),this.endX2=this.startX2,this.endY2=this.startY2);break;case"crop":b.x&&b.y&&(e=this.$cropper.offset(),d=this.startX-e.left,h=this.startY-e.top,u=l.minWidth,c=l.minHeight,b.x>0?b.y>0?t="se":(t="ne",h-=c):b.y>0?(t="sw",d-=u):(t="nw",d-=u,h-=c),this.cropped||(this.cropped=r,this.$dragger.removeClass(g)))}m&&(l.width=u,l.height=c,l.left=d,l.top=h,this.directive=t,this.renderDragger()),this.startX=this.endX,this.startY=this.endY}},I.TEMPLATE=function(e,t){return t=t.split(","),e.replace(/\d+/g,function(e){return t[e]})}('<0 6="5-container"><0 6="5-canvas"></0><0 6="5-dragger"><1 6="5-viewer"></1><1 6="5-8 8-h"></1><1 6="5-8 8-v"></1><1 6="5-face" 3-2="all"></1><1 6="5-7 7-e" 3-2="e"></1><1 6="5-7 7-n" 3-2="n"></1><1 6="5-7 7-w" 3-2="w"></1><1 6="5-7 7-s" 3-2="s"></1><1 6="5-4 4-e" 3-2="e"></1><1 6="5-4 4-n" 3-2="n"></1><1 6="5-4 4-w" 3-2="w"></1><1 6="5-4 4-s" 3-2="s"></1><1 6="5-4 4-ne" 3-2="ne"></1><1 6="5-4 4-nw" 3-2="nw"></1><1 6="5-4 4-sw" 3-2="sw"></1><1 6="5-4 4-se" 3-2="se"></1></0></0>',"div,span,directive,data,point,cropper,class,line,dashed"),I.DEFAULTS={aspectRatio:"auto",autoCropArea:.8,data:{},done:e.noop,preview:"",multiple:a,autoCrop:r,dragCrop:r,dashed:r,modal:r,movable:r,resizable:r,zoomable:r,rotatable:r,checkImageOrigin:r,minWidth:0,minHeight:0,maxWidth:l,maxHeight:l,build:o,built:o,dragstart:o,dragmove:o,dragend:o},I.setDefaults=function(t){e.extend(I.DEFAULTS,t)},I.other=e.fn.cropper,e.fn.cropper=function(t){var i,n=M(arguments,1);return this.each(function(){var r,a=e(this),o=a.data("cropper");o||a.data("cropper",o=new I(this,t)),"string"==typeof t&&e.isFunction(r=o[t])&&(i=r.apply(o,n))}),typeof i!==u?i:this},e.fn.cropper.Constructor=I,e.fn.cropper.setDefaults=I.setDefaults,e.fn.cropper.noConflict=function(){return e.fn.cropper=I.other,this}}),function(e){function t(e,t){return"function"==typeof e?e.call(t):e}function i(e){for(;e=e.parentNode;)if(e==document)return!0;return!1}function n(t,i){this.$element=e(t),this.options=i,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,a=e.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),o=n[0].offsetWidth,s=n[0].offsetHeight,l=t(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-o/2};break;case"s":r={top:a.top-s-this.options.offset,left:a.left+a.width/2-o/2};break;case"e":r={top:a.top+a.height/2-s/2,left:a.left-o-this.options.offset};break;case"w":extra_gap=0,e("body").css("position").length>0&&"relative"==e("body").css("position")&&e("#wpadminbar").length&&(extra_gap=e("#wpadminbar").height()),r={top:a.top+a.height/2-s/2-extra_gap,left:a.left+a.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=a.left+a.width/2-15:r.left=a.left+a.width/2-o+15),n.css(r).addClass("tipsy-"+l),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&n.addClass(t(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){e(this).remove()}):this.tip().remove()},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("original-title"))&&e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var e,t=this.$element,i=this.options;this.fixTitle();var e,i=this.options;return"string"==typeof i.title?e=t.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(e=i.title.call(t[0])),e=(""+e).replace(/(^\s*|\s*$)/,""),e||i.fallback},tip:function(){return this.$tip||(this.$tip=e('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},e.fn.tipsy=function(t){function i(i){var r=e.data(i,"tipsy");return r||(r=new n(i,e.fn.tipsy.elementOptions(i,t)),e.data(i,"tipsy",r)),r}function r(){var e=i(this);e.hoverState="in",0==t.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},t.delayIn))}function a(){var e=i(this);e.hoverState="out",0==t.delayOut?e.hide():setTimeout(function(){"out"==e.hoverState&&e.hide()},t.delayOut)}if(t===!0)return this.data("tipsy");if("string"==typeof t){var o=this.data("tipsy");return o&&o[t](),this}if(t=e.extend({},e.fn.tipsy.defaults,t),t.live||this.each(function(){i(this)}),"manual"!=t.trigger){var s="hover"==t.trigger?"mouseenter":"focus",l="hover"==t.trigger?"mouseleave":"blur";t.live?e(document).on(s,this.selector,r).on(l,this.selector,a):this.bind(s,r).bind(l,a)}return this},e.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},e.fn.tipsy.revalidate=function(){e(".tipsy").each(function(){var t=e.data(this,"tipsy-pointee");t&&i(t)||e(this).remove()})},e.fn.tipsy.elementOptions=function(t,i){return e.metadata?e.extend({},i,e(t).metadata()):i},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(window).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(window).width()/2?"e":"w"},e.fn.tipsy.autoBounds=function(t,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},r=e(document).scrollTop()+t,a=e(document).scrollLeft()+t,o=e(this);return o.offset().top<r&&(n.ns="n"),o.offset().left<a&&(n.ew="w"),e(window).width()+e(document).scrollLeft()-o.offset().left<t&&(n.ew="e"),e(window).height()+e(document).scrollTop()-o.offset().top<t&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery),jQuery(function(){jQuery(".um-search form *").keypress(function(e){if(13==e.which)return jQuery(".um-search form").submit(),!1}),2==jQuery("input[data-key=user_password],input[data-key=confirm_user_password]").length&&UM_check_password_matched()}),jQuery(window).load(function(){um_responsive(),um_modal_responsive()}),jQuery(window).resize(function(){responsive_Modal(),jQuery("img.cropper-hidden").cropper("destroy"),um_responsive(),um_modal_responsive()}),jQuery(document).ready(function(){function e(){jQuery(".um-field[data-key]").each(function(){t(jQuery(this),!0)}),o(),i(),h=!0}function t(e,t){for(var i=e.data("key"),n=[],r=0;r<5;r++){var a=e.data("cond-"+r+"-action"),o=e.data("cond-"+r+"-field"),s=e.data("cond-"+r+"-operator"),l=e.data("cond-"+r+"-value");"undefined"!=typeof l&&0==h&&n.push({child:i,action:a,field:o,operator:s,value:l})}jQuery.inArray(i,d)<=-1&&0==h&&(d.push(i),u[i]=n)}function i(){var e={};jQuery.each(d,function(t,i){c[i].length<=0&&(c[i]=[{child:i,action:"child",field:"",operator:""}]),jQuery.each(c[i],function(t,o){var s=!0,l=o.action,u=o.value,c=o.operator,d=(o.field,"");d=jQuery('.um-field[data-key="'+i+'"]:visible').find("input[type=text],textarea,input[type=checkbox],input[type=radio],select,[class=um-field-block]");var h=a(d),p=h.key,f=h.value,m=jQuery('.um-field[data-key="'+o.child+'"]').find("input[type=text],textarea,input[type=checkbox],input[type=radio],select,[class=um-field-block]"),g=jQuery('.um-field[data-key="'+o.child+'"]');"show"==l&&"undefined"!=typeof u&&("empty"==c&&(f&&""!=f?(g.hide(),e[o.child]={act:"hide",op:c}):(n(m,s,c,p,i),e[o.child]={act:l,op:c})),"not empty"==c&&(f&&""!=f?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.hide(),e[o.child]={act:"hide",op:c})),"equals to"==c&&(u==f?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.hide(),e[o.child]={act:"hide",op:c})),"not equals"==c&&(jQuery.isNumeric(u)&&parseInt(f)!=parseInt(u)&&f?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):jQuery.isNumeric(u)||u==f?(g.hide(),e[o.child]={act:"hide",op:c}):(n(m,s,c,p,i),e[o.child]={act:l,op:c})),"greater than"==c&&(jQuery.isNumeric(u)&&parseInt(f)>parseInt(u)?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.hide(),e[o.child]={act:"hide",op:c})),"less than"==c&&(jQuery.isNumeric(u)&&parseInt(f)<parseInt(u)&&f?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.hide(),e[o.child]={act:"hide",op:c})),"contains"==c&&(f&&f.indexOf(u)>=0?(n(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.hide(),e[o.child]={act:"hide",op:c}))),"hide"==l&&"undefined"!=typeof u&&("empty"==c&&(f&&""!=f?e[o.child]={act:"show",op:c}:(r(m,s,c,p,i),e[o.child]={act:l,op:c})),"not empty"==c&&(f&&""!=f?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):e[o.child]={act:"show",op:c}),"equals to"==c&&(u==f?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):e[o.child]={act:"show",op:c}),"not equals"==c&&(jQuery.isNumeric(u)&&parseInt(f)!=parseInt(u)&&f?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):jQuery.isNumeric(u)||u==f?(g.show(),e[o.child]={act:"show",op:c}):(r(m,s,c,p,i),e[o.child]={act:l,op:c})),"greater than"==c&&(jQuery.isNumeric(u)&&parseInt(f)>parseInt(u)?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):(g.show(),e[o.child]={act:"show",op:c})),"less than"==c&&(jQuery.isNumeric(u)&&parseInt(f)<parseInt(u)&&f?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):e[o.child]={act:"show",op:c}),"contains"==c&&(f&&f.indexOf(u)>=0?(r(m,s,c,p,i),e[o.child]={act:l,op:c}):e[o.child]={act:"show",op:c}));var v=e[o.child];"child"==l&&"undefined"!=typeof v&&("hide"==v.act?jQuery('.um-field[data-key="'+i+'"]').hide():"show"==v.act&&jQuery('.um-field[data-key="'+i+'"]').show())})})}function n(e,t,i,n,r){e=e.parents(".um-field"),e.is(":hidden")&&(t?e.fadeIn(1):e.show())}function r(e,t,i,n,r){e=e.parents(".um-field"),e.is(":visible")&&(t?e.fadeOut(1):e.hide())}function a(e){return s=e.parents(".um-field").data("key"),l=e.val(),e.is(":checkbox")&&(e.parents(".um-field").find("input:checked").length>1?(l="",e.parents(".um-field").find("input:checked").each(function(){l=l+jQuery(this).val()+" "})):l=e.parents(".um-field").find("input:checked").val()),e.is(":radio")&&(l=e.parents(".um-field").find("input[type=radio]:checked").val()),{key:s,value:l}}function o(){var e=u;0==h&&jQuery.each(e,function(t,i){var n=[],r=[];jQuery.each(e,function(e,i){for(var a=0;a<=i.length;a++)"undefined"!=typeof i[a]&&t==i[a].field&&(n.push(i[a]),r.push(i[a].child))}),c[t]=n})}var s,l,u={},c={},d=[],h=!1,p=!1;jQuery(document).on("input change",".um-field input[type=text]",function(){p&&e()}),jQuery(document).on("change",".um-field select, .um-field input[type=radio], .um-field input[type=checkbox]",function(){p&&e()}),e(),p=!0}),jQuery(document).ready(function(){function e(e,i,n,r){var a=e.data("um-parent");e.attr("name"),jQuery('select[name="'+a+'"]');e.find('option[value!=""]').remove(),e.hasClass("um-child-option-disabled")||e.removeAttr("disabled");var r=[];jQuery.each(i.items,function(e,t){r.push({id:e,text:t})}),e.select2("destroy"),e.select2({data:r,allowClear:!0,minimumResultsForSearch:10}),"undefined"==typeof i.field.default||e.data("um-original-value")?""!=e.data("um-original-value")&&e.val(e.data("um-original-value")).trigger("change"):e.val(i.field.default).trigger("change"),
8
+ 0==i.field.editable&&(e.addClass("um-child-option-disabled"),e.attr("disabled","disabled")),t[n]=i}jQuery(document).on("click",".um-dropdown a",function(e){return!1}),jQuery(document).on("click",".um-dropdown a.real_url",function(e){window.location=jQuery(this).attr("href")}),jQuery(document).on("click",".um-trigger-menu-on-click",function(e){return jQuery(".um-dropdown").hide(),menu=jQuery(this).find(".um-dropdown"),menu.show(),!1}),jQuery(document).on("click",".um-dropdown-hide",function(e){UM_hide_menus()}),jQuery(document).on("click","a.um-manual-trigger",function(){var e=jQuery(this).attr("data-child"),t=jQuery(this).attr("data-parent");jQuery(this).parents(t).find(e).trigger("click")}),jQuery(".um-tip-n").tipsy({gravity:"n",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-w").tipsy({gravity:"w",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-e").tipsy({gravity:"e",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-s").tipsy({gravity:"s",opacity:1,live:"a.live",offset:3}),jQuery(document).on("change",".um-field-area input[type=radio]",function(){var e=jQuery(this).parents(".um-field-area"),t=jQuery(this).parents("label");e.find(".um-field-radio").removeClass("active"),e.find(".um-field-radio").find("i").removeClass().addClass("um-icon-android-radio-button-off"),t.addClass("active"),t.find("i").removeClass().addClass("um-icon-android-radio-button-on")}),jQuery(document).on("change",".um-field-area input[type=checkbox]",function(){var e=(jQuery(this).parents(".um-field-area"),jQuery(this).parents("label"));e.hasClass("active")?(e.removeClass("active"),e.find("i").removeClass().addClass("um-icon-android-checkbox-outline-blank")):(e.addClass("active"),e.find("i").removeClass().addClass("um-icon-android-checkbox-outline"))}),jQuery(".um-datepicker").each(function(){if(elem=jQuery(this),""!=elem.attr("data-disabled_weekdays"))var e=JSON.parse(elem.attr("data-disabled_weekdays"));else var e=!1;var t=elem.attr("data-years"),i=elem.attr("data-date_min"),n=elem.attr("data-date_max"),r=i.split(","),a=n.split(","),o=r.length?new Date(r):null,s=r.length?new Date(a):null;if(o&&"Invalid Date"==o.toString()&&3==r.length){var l=r[1]+"/"+r[2]+"/"+r[0];o=new Date(Date.parse(l))}if(s&&"Invalid Date"==s.toString()&&3==a.length){var u=a[1]+"/"+a[2]+"/"+a[0];s=new Date(Date.parse(u))}elem.pickadate({selectYears:t,min:o,max:s,disable:e,format:elem.attr("data-format"),formatSubmit:"yyyy/mm/dd",hiddenName:!0,onOpen:function(){elem.blur()},onClose:function(){elem.blur()}})}),jQuery(".um-timepicker").each(function(){elem=jQuery(this),elem.pickatime({format:elem.attr("data-format"),interval:parseInt(elem.attr("data-intervals")),formatSubmit:"HH:i",hiddenName:!0,onOpen:function(){elem.blur()},onClose:function(){elem.blur()}})}),jQuery(".um-rating").raty({half:!1,starType:"i",number:function(){return jQuery(this).attr("data-number")},score:function(){return jQuery(this).attr("data-score")},scoreName:function(){return jQuery(this).attr("data-key")},hints:!1,click:function(e,t){live_field=this.id,live_value=e,um_conditional()}}),jQuery(".um-rating-readonly").raty({half:!1,starType:"i",number:function(){return jQuery(this).attr("data-number")},score:function(){return jQuery(this).attr("data-score")},scoreName:function(){return jQuery(this).attr("data-key")},hints:!1,readOnly:!0}),jQuery(document).on("click",".um .um-single-image-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field"),i=jQuery(this).parents(".um-field").find(".um-single-image-preview img").attr("src");return t.find(".um-single-image-preview img").attr("src",""),t.find(".um-single-image-preview").hide(),t.find(".um-btn-auto-width").html("Upload"),t.find("input[type=hidden]").val("empty_file"),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(document).on("click",".um .um-single-file-preview a.cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field"),i=jQuery(this).parents(".um-field").find(".um-single-fileinfo a").attr("href");return t.find(".um-single-file-preview").hide(),t.find(".um-btn-auto-width").html("Upload"),t.find("input[type=hidden]").val("empty_file"),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:i}}),!1}),jQuery(".um-s1,.um-s2").css({display:"block"}),jQuery(".um-s1").select2({allowClear:!0}),jQuery(".um-s2").select2({allowClear:!1,minimumResultsForSearch:10}),jQuery(document).on("click",".um-field-group-head:not(.disabled)",function(){var e=jQuery(this).parents(".um-field-group"),t=e.data("max_entries");e.find(".um-field-group-body").is(":hidden")?e.find(".um-field-group-body").show():e.find(".um-field-group-body:first").clone().appendTo(e),increase_id=0,e.find(".um-field-group-body").each(function(){increase_id++,jQuery(this).find("input").each(function(){var e=jQuery(this);e.attr("id",e.data("key")+"-"+increase_id),e.attr("name",e.data("key")+"-"+increase_id),e.parent().parent().find("label").attr("for",e.data("key")+"-"+increase_id)})}),t>0&&e.find(".um-field-group-body").length==t&&jQuery(this).addClass("disabled")}),jQuery(document).on("click",".um-field-group-cancel",function(e){e.preventDefault();var t=jQuery(this).parents(".um-field-group"),i=t.data("max_entries");return t.find(".um-field-group-body").length>1?jQuery(this).parents(".um-field-group-body").remove():jQuery(this).parents(".um-field-group-body").hide(),i>0&&t.find(".um-field-group-body").length<i&&t.find(".um-field-group-head").removeClass("disabled"),!1}),jQuery(document).on("click",".um-ajax-paginate",function(e){e.preventDefault();var t=jQuery(this).parent();t.addClass("loading");var i=jQuery(this).data("args"),n=jQuery(this).data("hook"),r=jQuery(this).parents(".um").find(".um-ajax-items");return jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_ajax_paginate",hook:n,args:i},complete:function(){t.removeClass("loading")},success:function(e){t.remove(),r.append(e)}}),!1}),jQuery(document).on("click",".um-ajax-action",function(e){e.preventDefault();var t=jQuery(this).data("hook"),i=jQuery(this).data("user_id"),arguments=jQuery(this).data("arguments");return jQuery(this).data("js-remove")&&jQuery(this).parents("."+jQuery(this).data("js-remove")).fadeOut("fast"),jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_muted_action",hook:t,user_id:i,arguments:arguments},success:function(e){}}),!1}),jQuery(document).on("click","#um-search-button",function(){jQuery(this).parents("form").submit()}),jQuery(".um-form input[class=um-button][type=submit]").removeAttr("disabled"),jQuery(document).one("click",".um:not(.um-account) .um-form input[class=um-button][type=submit]",function(){jQuery(this).attr("disabled","disabled"),jQuery(this).parents("form").submit()});var t={};jQuery("select[data-um-parent]").each(function(){var i=jQuery(this),n=i.data("um-parent"),r=i.data("um-ajax-url"),a=i.data("um-ajax-source");i.val();i.attr("data-um-init-field",!0),jQuery(document).on("change",'select[name="'+n+'"]',function(){var n=jQuery(this),o=n.closest("form").find("input[type=hidden][name=form_id]").val(),s=n.val();if(""!=n.val()&&"object"!=typeof t[s]&&jQuery.ajax({url:r,type:"post",data:{action:"ultimatemember_ajax_select_options",parent_option:n.val(),child_callback:a,child_name:i.attr("name"),form_id:o},success:function(t){"success"==t.status&&""!=n.val()&&e(i,t,s),"undefined"!=typeof t.debug&&console.log(t)},error:function(e){console.log(e)}}),""!=n.val()&&"object"==typeof t[s]){var l=t[s];e(i,l,s)}""==n.val()&&(i.find('option[value!=""]').remove(),i.val("").trigger("change"))}),jQuery('select[name="'+n+'"]').trigger("change")})}),jQuery(document).ready(function(){jQuery(".um-members").each(function(){UM_Member_Grid(jQuery(this))}),jQuery(".um-member-connect").each(function(){0==jQuery(this).find("a").length&&jQuery(this).remove()}),jQuery(".um-member-meta-main").each(function(){0==jQuery(this).find(".um-member-metaline").length&&0==jQuery(this).find(".um-member-connect").find("a").length&&jQuery(this).remove()}),jQuery(document).on("click",".um-member-more a",function(e){e.preventDefault();var t=jQuery(this).parents(".um-member"),i=jQuery(this).parents(".um-members");return t.find(".um-member-more").hide(),t.find(".um-member-meta").slideDown(function(){UM_Member_Grid(i)}),t.find(".um-member-less").fadeIn(),setTimeout(function(){UM_Member_Grid(i)},100),!1}),jQuery(document).on("click",".um-member-less a",function(e){e.preventDefault();var t=jQuery(this).parents(".um-member"),i=jQuery(this).parents(".um-members");return t.find(".um-member-less").hide(),t.find(".um-member-meta").slideUp(function(){t.find(".um-member-more").fadeIn(),UM_Member_Grid(i)}),!1}),jQuery(document).on("click",".um-do-search",function(e){return e.preventDefault(),jQuery(this).parents("form").submit(),!1})}),jQuery(document).ready(function(){function e(){if("undefined"!=typeof jQuery("textarea[id=um-meta-bio]").val()){var e=jQuery("textarea[id=um-meta-bio]").attr("data-character-limit"),t=e-jQuery("textarea[id=um-meta-bio]").val().length;jQuery("span.um-meta-bio-character span.um-bio-limit").text(t),t<5?jQuery("span.um-meta-bio-character").css("color","red"):jQuery("span.um-meta-bio-character").css("color","")}}jQuery(".um-profile.um-viewing .um-profile-body .um-row").each(function(){var e=jQuery(this);0==e.find(".um-field").length&&(e.prev(".um-row-heading").remove(),e.remove())}),jQuery(".um-profile.um-viewing .um-profile-body").length&&0==jQuery(".um-profile.um-viewing .um-profile-body").find(".um-field").length&&(jQuery(".um-row-heading,.um-row").remove(),jQuery(".um-profile-note").show()),jQuery(document).on("click",".um-profile-save",function(e){return e.preventDefault(),jQuery(this).parents(".um").find("form").submit(),!1}),jQuery(document).on("click",".um-profile-edit-a",function(e){jQuery(this).addClass("active")}),jQuery(document).on("click",".um-cover a, .um-photo a",function(e){return e.preventDefault(),!1}),jQuery(document).on("click",".um-photo-modal",function(e){e.preventDefault();var t=jQuery(this).attr("data-src");return um_new_modal("um_view_photo","fit",!0,t),!1}),jQuery(document).on("click",".um-reset-profile-photo",function(e){jQuery(".um-profile-photo-img img").attr("src",jQuery(this).attr("data-default_src")),user_id=jQuery(this).attr("data-user_id"),metakey="profile_photo",jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_delete_profile_photo",metakey:metakey,user_id:user_id}})}),jQuery(document).on("click",".um-reset-cover-photo",function(e){jQuery(".um-cover-overlay").hide(),jQuery(".um-cover-e").html('<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="Upload a cover photo"></i></span></a>'),jQuery(".um-dropdown").hide(),um_responsive(),user_id=jQuery(this).attr("data-user_id"),metakey="cover_photo",jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_delete_cover_photo",metakey:metakey,user_id:user_id}})}),e(),jQuery("textarea[id=um-meta-bio]").change(e),jQuery("textarea[id=um-meta-bio]").keyup(e),jQuery(".um-profile-edit a.um_delete-item").click(function(e){e.preventDefault();var t=confirm("Are you sure that you want to delete this user?");if(!t)return!1})}),jQuery(document).ready(function(){var e=jQuery(".um-account-main").attr("data-current_tab");e&&jQuery(".um-account-tab[data-tab="+e+"]").show(),jQuery(document).on("click",".um-account-side li a",function(e){e.preventDefault();var t=jQuery(this);t.parents("ul").find("li a").removeClass("current"),t.addClass("current");var i=jQuery(this).attr("href"),n=jQuery(this).attr("data-tab");return jQuery("input[id=_um_account_tab]:hidden").val(n),window.history.pushState("","",i),jQuery(".um-account-tab").hide(),jQuery(".um-account-tab[data-tab="+n+"]").fadeIn(),jQuery(".um-account-nav a").removeClass("current"),jQuery(".um-account-nav a[data-tab="+n+"]").addClass("current"),!1})}),jQuery(document).on("click",".um-account-nav a",function(e){e.preventDefault();var t=jQuery(this).attr("data-tab"),i=jQuery(this).parents("div"),n=jQuery(this);return jQuery("input[id=_um_account_tab]:hidden").val(t),jQuery(".um-account-tab").hide(),n.hasClass("current")?(i.next(".um-account-tab").slideUp(),n.removeClass("current")):(i.next(".um-account-tab").slideDown(),n.parents("div").find("a").removeClass("current"),n.addClass("current")),jQuery(".um-account-side li a").removeClass("current"),jQuery(".um-account-side li a[data-tab="+t+"]").addClass("current"),!1});
core/lib/upload/um-file-upload.php CHANGED
@@ -1,12 +1,24 @@
1
  <?php
2
 
3
- $i = 0;
4
  $dirname = dirname( __FILE__ );
5
  do {
6
  $dirname = dirname( $dirname );
 
7
  $wp_load = "{$dirname}/wp-load.php";
8
  }
9
- while( ++$i < 10 && !file_exists( $wp_load ) );
 
 
 
 
 
 
 
 
 
 
 
 
10
  require_once( $wp_load );
11
  global $ultimatemember;
12
 
@@ -38,7 +50,7 @@ if(isset($_FILES[$id]['name'])) {
38
  if(!is_array($_FILES[$id]['name'])) {
39
 
40
  $temp = $_FILES[$id]["tmp_name"];
41
- $file = $id."-".$_FILES[$id]["name"];
42
  $file = sanitize_file_name($file);
43
  $extension = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
44
 
@@ -55,6 +67,6 @@ if(isset($_FILES[$id]['name'])) {
55
  }
56
 
57
  } else {
58
- $ret['error'] = __('A theme or plugin compatibility issue','ultimatemember');
59
  }
60
  echo json_encode($ret);
1
  <?php
2
 
 
3
  $dirname = dirname( __FILE__ );
4
  do {
5
  $dirname = dirname( $dirname );
6
+ $wp_config = "{$dirname}/wp-config.php";
7
  $wp_load = "{$dirname}/wp-load.php";
8
  }
9
+ while( !file_exists( $wp_config ) );
10
+
11
+ if ( !file_exists( $wp_load ) ) {
12
+ $dirs = glob( $dirname . '/*' , GLOB_ONLYDIR );
13
+
14
+ foreach ( $dirs as $key => $value ) {
15
+ $wp_load = "{$value}/wp-load.php";
16
+ if ( file_exists( $wp_load ) ) {
17
+ break;
18
+ }
19
+ }
20
+ }
21
+
22
  require_once( $wp_load );
23
  global $ultimatemember;
24
 
50
  if(!is_array($_FILES[$id]['name'])) {
51
 
52
  $temp = $_FILES[$id]["tmp_name"];
53
+ $file = apply_filters('um_upload_file_name',$id."-".$_FILES[$id]["name"],$id,$_FILES[$id]["name"]);
54
  $file = sanitize_file_name($file);
55
  $extension = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
56
 
67
  }
68
 
69
  } else {
70
+ $ret['error'] = __('A theme or plugin compatibility issue','ultimate-member');
71
  }
72
  echo json_encode($ret);
core/lib/upload/um-image-upload.php CHANGED
@@ -53,6 +53,6 @@ if(isset($_FILES[$id]['name'])) {
53
  }
54
 
55
  } else {
56
- $ret['error'] = __('A theme or plugin compatibility issue','ultimatemember');
57
  }
58
  echo json_encode($ret);
53
  }
54
 
55
  } else {
56
+ $ret['error'] = __('A theme or plugin compatibility issue','ultimate-member');
57
  }
58
  echo json_encode($ret);
core/um-account.php CHANGED
@@ -28,19 +28,19 @@ class UM_Account {
28
  function core_tabs() {
29
 
30
  $tabs[100]['general']['icon'] = 'um-faicon-user';
31
- $tabs[100]['general']['title'] = __('Account','ultimatemember');
32
 
33
  $tabs[200]['password']['icon'] = 'um-faicon-asterisk';
34
- $tabs[200]['password']['title'] = __('Change Password','ultimatemember');
35
 
36
  $tabs[300]['privacy']['icon'] = 'um-faicon-lock';
37
- $tabs[300]['privacy']['title'] = __('Privacy','ultimatemember');
38
 
39
  $tabs[400]['notifications']['icon'] = 'um-faicon-envelope';
40
- $tabs[400]['notifications']['title'] = __('Notifications','ultimatemember');
41
 
42
  $tabs[9999]['delete']['icon'] = 'um-faicon-trash-o';
43
- $tabs[9999]['delete']['title'] = __('Delete Account','ultimatemember');
44
 
45
  return $tabs;
46
  }
28
  function core_tabs() {
29
 
30
  $tabs[100]['general']['icon'] = 'um-faicon-user';
31
+ $tabs[100]['general']['title'] = __('Account','ultimate-member');
32
 
33
  $tabs[200]['password']['icon'] = 'um-faicon-asterisk';
34
+ $tabs[200]['password']['title'] = __('Change Password','ultimate-member');
35
 
36
  $tabs[300]['privacy']['icon'] = 'um-faicon-lock';
37
+ $tabs[300]['privacy']['title'] = __('Privacy','ultimate-member');
38
 
39
  $tabs[400]['notifications']['icon'] = 'um-faicon-envelope';
40
+ $tabs[400]['notifications']['title'] = __('Notifications','ultimate-member');
41
 
42
  $tabs[9999]['delete']['icon'] = 'um-faicon-trash-o';
43
+ $tabs[9999]['delete']['title'] = __('Delete Account','ultimate-member');
44
 
45
  return $tabs;
46
  }
core/um-actions-account.php CHANGED
@@ -8,11 +8,13 @@
8
  global $ultimatemember;
9
 
10
  $tab = ( get_query_var('um_tab') ) ? get_query_var('um_tab') : 'general';
11
-
12
  if ( $_POST['user_password'] && $_POST['confirm_user_password'] ) {
13
  $changes['user_pass'] = $_POST['user_password'];
 
 
14
 
15
- add_filter('send_password_change_email','um_send_password_change_email');
16
 
17
  wp_set_password( $changes['user_pass'], um_user('ID') );
18
 
@@ -41,7 +43,7 @@
41
  }
42
  }
43
 
44
- if ( isset( $changes['hide_in_members'] ) && $changes['hide_in_members'] == __('No','ultimatemember') ) {
45
  delete_user_meta( um_user('ID'), 'hide_in_members' );
46
  unset( $changes['hide_in_members'] );
47
  }
@@ -109,23 +111,23 @@
109
  $account_name_require = um_get_option("account_name_require");
110
 
111
  if ( isset($_POST['first_name']) && ( strlen(trim( $_POST['first_name'] ) ) == 0 && $account_name_require ) ) {
112
- $ultimatemember->form->add_error('first_name', __('You must provide your first name','ultimatemember') );
113
  }
114
 
115
  if ( isset($_POST['last_name']) && ( strlen(trim( $_POST['last_name'] ) ) == 0 && $account_name_require ) ) {
116
- $ultimatemember->form->add_error('last_name', __('You must provide your last name','ultimatemember') );
117
  }
118
 
119
  if ( isset($_POST['user_email']) && strlen(trim( $_POST['user_email'] ) ) == 0 ) {
120
- $ultimatemember->form->add_error('user_email', __('You must provide your e-mail','ultimatemember') );
121
  }
122
 
123
  if ( isset($_POST['user_email']) && !is_email( $_POST['user_email'] ) ) {
124
- $ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimatemember') );
125
  }
126
 
127
  if ( email_exists( $_POST['user_email'] ) && email_exists( $_POST['user_email'] ) != get_current_user_id() ) {
128
- $ultimatemember->form->add_error('user_email', __('Email already linked to another account','ultimatemember') );
129
  }
130
  }
131
 
@@ -139,27 +141,27 @@
139
 
140
  if ( $_POST['current_user_password'] == '' || ! wp_check_password( $_POST['current_user_password'], $user->data->user_pass, $user->data->ID ) ) {
141
 
142
- $ultimatemember->form->add_error('current_user_password', __('This is not your password','ultimatemember') );
143
  $ultimatemember->account->current_tab = 'password';
144
  } else { // correct password
145
 
146
  if ( $_POST['user_password'] != $_POST['confirm_user_password'] && $_POST['user_password'] ) {
147
- $ultimatemember->form->add_error('user_password', __('Your new password does not match','ultimatemember') );
148
  $ultimatemember->account->current_tab = 'password';
149
  }
150
 
151
  if ( um_get_option('account_require_strongpass') ) {
152
 
153
  if ( strlen( utf8_decode( $_POST['user_password'] ) ) < 8 ) {
154
- $ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimatemember') );
155
  }
156
 
157
  if ( strlen( utf8_decode( $_POST['user_password'] ) ) > 30 ) {
158
- $ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimatemember') );
159
  }
160
 
161
  if ( !$ultimatemember->validation->strong_pass( $_POST['user_password'] ) ) {
162
- $ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
163
  $ultimatemember->account->current_tab = 'password';
164
  }
165
 
@@ -169,17 +171,17 @@
169
  }
170
 
171
  if ( ! empty( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
172
- $ultimatemember->form->add_error('user_login', __('Your username is invalid','ultimatemember') );
173
  return;
174
  }
175
  }
176
  // delete account
177
  if ( isset( $_POST['um_account_submit'] ) && $_POST['_um_account_tab'] == "delete" ) {
178
  if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
179
- $ultimatemember->form->add_error('single_user_password', __('You must enter your password','ultimatemember') );
180
  } else {
181
  if ( ! wp_check_password( $_POST['single_user_password'], $user->data->user_pass, $user->data->ID ) ) {
182
- $ultimatemember->form->add_error('single_user_password', __('This is not your password','ultimatemember') );
183
  }
184
  }
185
 
@@ -227,7 +229,7 @@
227
  <?php do_action('um_after_account_delete'); ?>
228
 
229
  <div class="um-col-alt um-col-alt-b">
230
- <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Delete Account','ultimatemember'); ?>" class="um-button" /></div>
231
  <?php do_action('um_after_account_delete_button'); ?>
232
  <div class="um-clear"></div>
233
  </div>
@@ -257,7 +259,7 @@
257
  <?php do_action('um_after_account_privacy'); ?>
258
 
259
  <div class="um-col-alt um-col-alt-b">
260
- <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Privacy','ultimatemember'); ?>" class="um-button" /></div>
261
  <?php do_action('um_after_account_privacy_button'); ?>
262
  <div class="um-clear"></div>
263
  </div>
@@ -287,7 +289,7 @@
287
  <?php do_action('um_after_account_general'); ?>
288
 
289
  <div class="um-col-alt um-col-alt-b">
290
- <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Account','ultimatemember'); ?>" class="um-button" /></div>
291
  <?php do_action('um_after_account_general_button'); ?>
292
  <div class="um-clear"></div>
293
  </div>
@@ -317,7 +319,7 @@
317
  <?php do_action('um_after_account_password'); ?>
318
 
319
  <div class="um-col-alt um-col-alt-b">
320
- <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Password','ultimatemember'); ?>" class="um-button" /></div>
321
  <?php do_action('um_after_account_password_button'); ?>
322
  <div class="um-clear"></div>
323
  </div>
@@ -344,7 +346,7 @@
344
 
345
  <?php if ( class_exists('UM_Messaging_API') || class_exists('UM_Followers_API') ) { ?>
346
  <div class="um-field">
347
- <div class="um-field-label"><label for=""><?php _e('Email me when','ultimatemember'); ?></label><div class="um-clear"></div></div>
348
  </div>
349
  <?php } ?>
350
 
@@ -353,7 +355,7 @@
353
  <?php do_action('um_after_account_notifications'); ?>
354
 
355
  <div class="um-col-alt um-col-alt-b">
356
- <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Notifications','ultimatemember'); ?>" class="um-button" /></div>
357
  <?php do_action('um_after_account_notifications_button'); ?>
358
  <div class="um-clear"></div>
359
  </div>
@@ -380,7 +382,7 @@
380
 
381
  <div class="um-account-name">
382
  <a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name'); ?></a>
383
- <div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimatemember'); ?></a></div>
384
  </div>
385
 
386
  </div>
@@ -415,7 +417,7 @@
415
 
416
  <div class="um-account-name uimob800-hide">
417
  <a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name', 'html'); ?></a>
418
- <div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimatemember'); ?></a></div>
419
  </div>
420
 
421
  </div>
8
  global $ultimatemember;
9
 
10
  $tab = ( get_query_var('um_tab') ) ? get_query_var('um_tab') : 'general';
11
+
12
  if ( $_POST['user_password'] && $_POST['confirm_user_password'] ) {
13
  $changes['user_pass'] = $_POST['user_password'];
14
+
15
+ $args['id'] = um_user('ID');
16
 
17
+ do_action('send_password_change_email', $args );
18
 
19
  wp_set_password( $changes['user_pass'], um_user('ID') );
20
 
43
  }
44
  }
45
 
46
+ if ( isset( $changes['hide_in_members'] ) && $changes['hide_in_members'] == __('No','ultimate-member') ) {
47
  delete_user_meta( um_user('ID'), 'hide_in_members' );
48
  unset( $changes['hide_in_members'] );
49
  }
111
  $account_name_require = um_get_option("account_name_require");
112
 
113
  if ( isset($_POST['first_name']) && ( strlen(trim( $_POST['first_name'] ) ) == 0 && $account_name_require ) ) {
114
+ $ultimatemember->form->add_error('first_name', __('You must provide your first name','ultimate-member') );
115
  }
116
 
117
  if ( isset($_POST['last_name']) && ( strlen(trim( $_POST['last_name'] ) ) == 0 && $account_name_require ) ) {
118
+ $ultimatemember->form->add_error('last_name', __('You must provide your last name','ultimate-member') );
119
  }
120
 
121
  if ( isset($_POST['user_email']) && strlen(trim( $_POST['user_email'] ) ) == 0 ) {
122
+ $ultimatemember->form->add_error('user_email', __('You must provide your e-mail','ultimate-member') );
123
  }
124
 
125
  if ( isset($_POST['user_email']) && !is_email( $_POST['user_email'] ) ) {
126
+ $ultimatemember->form->add_error('user_email', __('Please provide a valid e-mail','ultimate-member') );
127
  }
128
 
129
  if ( email_exists( $_POST['user_email'] ) && email_exists( $_POST['user_email'] ) != get_current_user_id() ) {
130
+ $ultimatemember->form->add_error('user_email', __('Email already linked to another account','ultimate-member') );
131
  }
132
  }
133
 
141
 
142
  if ( $_POST['current_user_password'] == '' || ! wp_check_password( $_POST['current_user_password'], $user->data->user_pass, $user->data->ID ) ) {
143
 
144
+ $ultimatemember->form->add_error('current_user_password', __('This is not your password','ultimate-member') );
145
  $ultimatemember->account->current_tab = 'password';
146
  } else { // correct password
147
 
148
  if ( $_POST['user_password'] != $_POST['confirm_user_password'] && $_POST['user_password'] ) {
149
+ $ultimatemember->form->add_error('user_password', __('Your new password does not match','ultimate-member') );
150
  $ultimatemember->account->current_tab = 'password';
151
  }
152
 
153
  if ( um_get_option('account_require_strongpass') ) {
154
 
155
  if ( strlen( utf8_decode( $_POST['user_password'] ) ) < 8 ) {
156
+ $ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimate-member') );
157
  }
158
 
159
  if ( strlen( utf8_decode( $_POST['user_password'] ) ) > 30 ) {
160
+ $ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimate-member') );
161
  }
162
 
163
  if ( !$ultimatemember->validation->strong_pass( $_POST['user_password'] ) ) {
164
+ $ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
165
  $ultimatemember->account->current_tab = 'password';
166
  }
167
 
171
  }
172
 
173
  if ( ! empty( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
174
+ $ultimatemember->form->add_error('user_login', __('Your username is invalid','ultimate-member') );
175
  return;
176
  }
177
  }
178
  // delete account
179
  if ( isset( $_POST['um_account_submit'] ) && $_POST['_um_account_tab'] == "delete" ) {
180
  if ( strlen(trim( $_POST['single_user_password'] ) ) == 0 ) {
181
+ $ultimatemember->form->add_error('single_user_password', __('You must enter your password','ultimate-member') );
182
  } else {
183
  if ( ! wp_check_password( $_POST['single_user_password'], $user->data->user_pass, $user->data->ID ) ) {
184
+ $ultimatemember->form->add_error('single_user_password', __('This is not your password','ultimate-member') );
185
  }
186
  }
187
 
229
  <?php do_action('um_after_account_delete'); ?>
230
 
231
  <div class="um-col-alt um-col-alt-b">
232
+ <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Delete Account','ultimate-member'); ?>" class="um-button" /></div>
233
  <?php do_action('um_after_account_delete_button'); ?>
234
  <div class="um-clear"></div>
235
  </div>
259
  <?php do_action('um_after_account_privacy'); ?>
260
 
261
  <div class="um-col-alt um-col-alt-b">
262
+ <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Privacy','ultimate-member'); ?>" class="um-button" /></div>
263
  <?php do_action('um_after_account_privacy_button'); ?>
264
  <div class="um-clear"></div>
265
  </div>
289
  <?php do_action('um_after_account_general'); ?>
290
 
291
  <div class="um-col-alt um-col-alt-b">
292
+ <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Account','ultimate-member'); ?>" class="um-button" /></div>
293
  <?php do_action('um_after_account_general_button'); ?>
294
  <div class="um-clear"></div>
295
  </div>
319
  <?php do_action('um_after_account_password'); ?>
320
 
321
  <div class="um-col-alt um-col-alt-b">
322
+ <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Password','ultimate-member'); ?>" class="um-button" /></div>
323
  <?php do_action('um_after_account_password_button'); ?>
324
  <div class="um-clear"></div>
325
  </div>
346
 
347
  <?php if ( class_exists('UM_Messaging_API') || class_exists('UM_Followers_API') ) { ?>
348
  <div class="um-field">
349
+ <div class="um-field-label"><label for=""><?php _e('Email me when','ultimate-member'); ?></label><div class="um-clear"></div></div>
350
  </div>
351
  <?php } ?>
352
 
355
  <?php do_action('um_after_account_notifications'); ?>
356
 
357
  <div class="um-col-alt um-col-alt-b">
358
+ <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Notifications','ultimate-member'); ?>" class="um-button" /></div>
359
  <?php do_action('um_after_account_notifications_button'); ?>
360
  <div class="um-clear"></div>
361
  </div>
382
 
383
  <div class="um-account-name">
384
  <a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name'); ?></a>
385
+ <div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimate-member'); ?></a></div>
386
  </div>
387
 
388
  </div>
417
 
418
  <div class="um-account-name uimob800-hide">
419
  <a href="<?php echo um_user_profile_url(); ?>"><?php echo um_user('display_name', 'html'); ?></a>
420
+ <div class="um-account-profile-link"><a href="<?php echo um_user_profile_url(); ?>" class="um-link"><?php _e('View profile','ultimate-member'); ?></a></div>
421
  </div>
422
 
423
  </div>
core/um-actions-ajax.php CHANGED
@@ -213,7 +213,7 @@
213
 
214
  }else{
215
  $arr_options['status'] = 'error';
216
- $arr_options['message'] = __( 'This is not possible for security reasons.','ultimatemember');
217
  }
218
 
219
  }
213
 
214
  }else{
215
  $arr_options['status'] = 'error';
216
+ $arr_options['message'] = __( 'This is not possible for security reasons.','ultimate-member');
217
  }
218
 
219
  }
core/um-actions-core.php CHANGED
@@ -14,11 +14,11 @@
14
 
15
  if ( isset( $_REQUEST['uid'] ) ) {
16
  if ( is_super_admin( $_REQUEST['uid'] ) )
17
- wp_die( __( 'Super administrators can not be modified.','ultimatemember' ) );
18
  }
19
 
20
  if ( isset( $_REQUEST['um_action'] ) && $_REQUEST['um_action'] != "edit" && ! current_user_can( 'edit_users' ) ){
21
- wp_die( __( 'You do not have enough permissions to do that.','ultimatemember') );
22
  }
23
 
24
  if ( isset($_REQUEST['uid'])){
@@ -78,7 +78,7 @@
78
  break;
79
 
80
  case 'um_delete':
81
- if ( !um_current_user_can( 'delete', $uid ) ) wp_die( __('You do not have permission to delete this user.','ultimatemember') );
82
  um_fetch_user( $uid );
83
  $ultimatemember->user->delete();
84
  exit( wp_redirect( $ultimatemember->permalinks->get_current_url( true ) ) );
14
 
15
  if ( isset( $_REQUEST['uid'] ) ) {
16
  if ( is_super_admin( $_REQUEST['uid'] ) )
17
+ wp_die( __( 'Super administrators can not be modified.','ultimate-member') );
18
  }
19
 
20
  if ( isset( $_REQUEST['um_action'] ) && $_REQUEST['um_action'] != "edit" && ! current_user_can( 'edit_users' ) ){
21
+ wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
22
  }
23
 
24
  if ( isset($_REQUEST['uid'])){
78
  break;
79
 
80
  case 'um_delete':
81
+ if ( !um_current_user_can( 'delete', $uid ) ) wp_die( __('You do not have permission to delete this user.','ultimate-member') );
82
  um_fetch_user( $uid );
83
  $ultimatemember->user->delete();
84
  exit( wp_redirect( $ultimatemember->permalinks->get_current_url( true ) ) );
core/um-actions-form.php CHANGED
@@ -96,7 +96,7 @@
96
  foreach( $fields as $key => $array ) {
97
  if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
98
  if ( !$ultimatemember->form->has_error( $key ) && isset( $args[$key] ) && in_array( $args[$key], $words ) ) {
99
- $ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimatemember') );
100
  }
101
  }
102
  }
@@ -155,7 +155,7 @@
155
  $um_profile_photo = um_profile('profile_photo');
156
 
157
  if ( get_post_meta( $form_id, '_um_profile_photo_required', true ) && ( empty( $args['profile_photo'] ) && empty( $um_profile_photo ) ) ) {
158
- $ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimatemember'), 'Profile Photo' ) );
159
  }
160
 
161
 
@@ -188,24 +188,24 @@
188
  }
189
 
190
  if ( isset( $array['type'] ) && $array['type'] == 'checkbox' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
191
- $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
192
  }
193
 
194
  if ( defined('um_user_tags_path') && isset( $array['type'] ) && $array['type'] == 'user_tags' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
195
- $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
196
  }
197
 
198
  if ( isset( $array['type'] ) && $array['type'] == 'radio' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
199
- $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
200
  }
201
 
202
  if ( isset( $array['type'] ) && $array['type'] == 'multiselect' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
203
- $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimatemember'), $array['title'] ) );
204
  }
205
 
206
  if ( $key == 'role_select' || $key == 'role_radio' ) {
207
  if ( isset( $array['required'] ) && $array['required'] == 1 && ( !isset( $args['role'] ) || empty( $args['role'] ) ) ) {
208
- $ultimatemember->form->add_error('role', __('Please specify account type.','ultimatemember') );
209
  }
210
  }
211
 
@@ -213,25 +213,25 @@
213
 
214
  if ( isset( $array['required'] ) && $array['required'] == 1 ) {
215
  if ( !isset($args[$key]) || $args[$key] == '' ) {
216
- $ultimatemember->form->add_error($key, sprintf( __('%s is required','ultimatemember'), $array['label'] ) );
217
  }
218
  }
219
 
220
  if ( isset( $array['max_words'] ) && $array['max_words'] > 0 ) {
221
  if ( str_word_count( $args[$key] ) > $array['max_words'] ) {
222
- $ultimatemember->form->add_error($key, sprintf(__('You are only allowed to enter a maximum of %s words','ultimatemember'), $array['max_words']) );
223
  }
224
  }
225
 
226
  if ( isset( $array['min_chars'] ) && $array['min_chars'] > 0 ) {
227
  if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) < $array['min_chars'] ) {
228
- $ultimatemember->form->add_error($key, sprintf(__('Your %s must contain at least %s characters','ultimatemember'), $array['label'], $array['min_chars']) );
229
  }
230
  }
231
 
232
  if ( isset( $array['max_chars'] ) && $array['max_chars'] > 0 ) {
233
  if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) > $array['max_chars'] ) {
234
- $ultimatemember->form->add_error($key, sprintf(__('Your %s must contain less than %s characters','ultimatemember'), $array['label'], $array['max_chars']) );
235
  }
236
  }
237
 
@@ -240,38 +240,50 @@
240
  if( $profile_show_html_bio == 1 && $key !== "description" ){
241
  if ( isset( $array['html'] ) && $array['html'] == 0 ) {
242
  if ( wp_strip_all_tags( $args[$key] ) != trim( $args[$key] ) ) {
243
- $ultimatemember->form->add_error($key, __('You can not use HTML tags here','ultimatemember') );
244
  }
245
  }
246
  }
247
 
248
  if ( isset( $array['force_good_pass'] ) && $array['force_good_pass'] == 1 ) {
249
  if ( !$ultimatemember->validation->strong_pass( $args[$key] ) ) {
250
- $ultimatemember->form->add_error($key, __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
251
  }
252
  }
253
 
254
  if ( isset( $array['force_confirm_pass'] ) && $array['force_confirm_pass'] == 1 ) {
255
  if ( $args[ 'confirm_' . $key] == '' && !$ultimatemember->form->has_error($key) ) {
256
- $ultimatemember->form->add_error( 'confirm_' . $key , __('Please confirm your password','ultimatemember') );
257
  }
258
  if ( $args[ 'confirm_' . $key] != $args[$key] && !$ultimatemember->form->has_error($key) ) {
259
- $ultimatemember->form->add_error( 'confirm_' . $key , __('Your passwords do not match','ultimatemember') );
260
  }
261
  }
262
 
263
  if ( isset( $array['min_selections'] ) && $array['min_selections'] > 0 ) {
264
  if ( ( !isset($args[$key]) ) || ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) < $array['min_selections'] ) ) {
265
- $ultimatemember->form->add_error($key, sprintf(__('Please select at least %s choices','ultimatemember'), $array['min_selections'] ) );
266
  }
267
  }
268
 
269
  if ( isset( $array['max_selections'] ) && $array['max_selections'] > 0 ) {
270
  if ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) > $array['max_selections'] ) {
271
- $ultimatemember->form->add_error($key, sprintf(__('You can only select up to %s choices','ultimatemember'), $array['max_selections'] ) );
272
  }
273
  }
274
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  if ( isset( $array['validate'] ) && !empty( $array['validate'] ) ) {
276
 
277
  switch( $array['validate'] ) {
@@ -282,87 +294,89 @@
282
  break;
283
 
284
  case 'numeric':
 
285
  if ( $args[$key] && !is_numeric( $args[$key] ) ) {
286
- $ultimatemember->form->add_error($key, __('Please enter numbers only in this field','ultimatemember') );
287
  }
 
288
  break;
289
 
290
  case 'phone_number':
291
  if ( !$ultimatemember->validation->is_phone_number( $args[$key] ) ) {
292
- $ultimatemember->form->add_error($key, __('Please enter a valid phone number','ultimatemember') );
293
  }
294
  break;
295
 
296
  case 'youtube_url':
297
  if ( !$ultimatemember->validation->is_url( $args[$key], 'youtube.com' ) ) {
298
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
299
  }
300
  break;
301
 
302
  case 'soundcloud_url':
303
  if ( !$ultimatemember->validation->is_url( $args[$key], 'soundcloud.com' ) ) {
304
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
305
  }
306
  break;
307
 
308
  case 'facebook_url':
309
  if ( !$ultimatemember->validation->is_url( $args[$key], 'facebook.com' ) ) {
310
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
311
  }
312
  break;
313
 
314
  case 'twitter_url':
315
  if ( !$ultimatemember->validation->is_url( $args[$key], 'twitter.com' ) ) {
316
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
317
  }
318
  break;
319
 
320
  case 'instagram_url':
321
  if ( !$ultimatemember->validation->is_url( $args[$key], 'instagram.com' ) ) {
322
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
323
  }
324
  break;
325
 
326
  case 'google_url':
327
  if ( !$ultimatemember->validation->is_url( $args[$key], 'plus.google.com' ) ) {
328
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
329
  }
330
  break;
331
 
332
  case 'linkedin_url':
333
  if ( !$ultimatemember->validation->is_url( $args[$key], 'linkedin.com' ) ) {
334
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
335
  }
336
  break;
337
 
338
  case 'vk_url':
339
  if ( !$ultimatemember->validation->is_url( $args[$key], 'vk.com' ) ) {
340
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
341
  }
342
  break;
343
 
344
  case 'url':
345
  if ( !$ultimatemember->validation->is_url( $args[$key] ) ) {
346
- $ultimatemember->form->add_error($key, __('Please enter a valid URL','ultimatemember') );
347
  }
348
  break;
349
 
350
  case 'skype':
351
  if ( !$ultimatemember->validation->is_url( $args[$key], 'skype.com' ) ) {
352
- $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimatemember'), $array['label'] ) );
353
  }
354
  break;
355
 
356
  case 'unique_username':
357
 
358
  if ( $args[$key] == '' ) {
359
- $ultimatemember->form->add_error($key, __('You must provide a username','ultimatemember') );
360
  } else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
361
- $ultimatemember->form->add_error($key, __('Your username is already taken','ultimatemember') );
362
  } else if ( is_email( $args[$key] ) ) {
363
- $ultimatemember->form->add_error($key, __('Username cannot be an email','ultimatemember') );
364
  } else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
365
- $ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimatemember') );
366
  }
367
 
368
  break;
@@ -370,13 +384,13 @@
370
  case 'unique_username_or_email':
371
 
372
  if ( $args[$key] == '' ) {
373
- $ultimatemember->form->add_error($key, __('You must provide a username','ultimatemember') );
374
  } else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
375
- $ultimatemember->form->add_error($key, __('Your username is already taken','ultimatemember') );
376
  } else if ( $mode == 'register' && email_exists( $args[$key] ) ) {
377
- $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
378
  } else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
379
- $ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimatemember') );
380
  }
381
 
382
  break;
@@ -394,30 +408,30 @@
394
  $email_exists = email_exists( $args[ $key ] );
395
 
396
  if ( $args[ $key ] == '' && in_array( $key, array('user_email') ) ) {
397
- $ultimatemember->form->add_error( $key, __('You must provide your email','ultimatemember') );
398
  } else if ( in_array( $mode, array('register') ) && $email_exists ) {
399
- $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
400
  } else if ( in_array( $mode, array('profile') ) && $email_exists && $email_exists != $args['user_id'] ) {
401
- $ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimatemember') );
402
  } else if ( !is_email( $args[ $key ] ) ) {
403
- $ultimatemember->form->add_error( $key, __('This is not a valid email','ultimatemember') );
404
  } else if ( !$ultimatemember->validation->safe_username( $args[ $key ] ) ) {
405
- $ultimatemember->form->add_error( $key, __('Your email contains invalid characters','ultimatemember') );
406
  }
407
 
408
  } else {
409
 
410
  if ( $args[ $key ] != '' && !is_email( $args[ $key ] ) ) {
411
- $ultimatemember->form->add_error( $key, __('This is not a valid email','ultimatemember') );
412
  } else if ( $args[ $key ] != '' && email_exists( $args[ $key ] ) ) {
413
- $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimatemember') );
414
  } else if ( $args[ $key ] != '' ) {
415
 
416
  $users = get_users('meta_value='.$args[ $key ]);
417
 
418
  foreach ( $users as $user ) {
419
  if( $user->ID != $args['user_id'] ){
420
- $ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimatemember') );
421
  }
422
  }
423
 
@@ -442,7 +456,7 @@
442
  $meta_key_exists = get_users( $args_unique_meta );
443
 
444
  if( $meta_key_exists ){
445
- $ultimatemember->form->add_error( $key , __('You must provide a unique value','ultimatemember') );
446
  }
447
  }
448
  break;
@@ -452,7 +466,7 @@
452
  if ( $args[$key] != '' ) {
453
 
454
  if( ! ctype_alpha( str_replace(' ', '', $args[$key] ) ) ){
455
- $ultimatemember->form->add_error( $key , __('You must provide alphabetic letters','ultimatemember') );
456
  }
457
  }
458
  break;
@@ -462,7 +476,7 @@
462
  if ( $args[$key] != '' ) {
463
 
464
  if( ! ctype_lower( str_replace(' ', '',$args[$key] ) ) ){
465
- $ultimatemember->form->add_error( $key , __('You must provide lowercase letters.','ultimatemember') );
466
  }
467
  }
468
 
@@ -481,7 +495,7 @@
481
 
482
  if( $profile_show_bio ){
483
  if ( strlen( utf8_decode( $args['description'] ) ) > $max_chars && $max_chars ) {
484
- $ultimatemember->form->add_error('description', sprintf(__('Your user description must contain less than %s characters','ultimatemember'), $max_chars ) );
485
  }
486
  }
487
 
@@ -489,4 +503,5 @@
489
 
490
  } // end if ( isset in args array )
491
  }
 
492
  }
96
  foreach( $fields as $key => $array ) {
97
  if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
98
  if ( !$ultimatemember->form->has_error( $key ) && isset( $args[$key] ) && in_array( $args[$key], $words ) ) {
99
+ $ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimate-member') );
100
  }
101
  }
102
  }
155
  $um_profile_photo = um_profile('profile_photo');
156
 
157
  if ( get_post_meta( $form_id, '_um_profile_photo_required', true ) && ( empty( $args['profile_photo'] ) && empty( $um_profile_photo ) ) ) {
158
+ $ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimate-member'), 'Profile Photo' ) );
159
  }
160
 
161
 
188
  }
189
 
190
  if ( isset( $array['type'] ) && $array['type'] == 'checkbox' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
191
+ $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
192
  }
193
 
194
  if ( defined('um_user_tags_path') && isset( $array['type'] ) && $array['type'] == 'user_tags' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) ) {
195
+ $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
196
  }
197
 
198
  if ( isset( $array['type'] ) && $array['type'] == 'radio' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
199
+ $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
200
  }
201
 
202
  if ( isset( $array['type'] ) && $array['type'] == 'multiselect' && isset( $array['required'] ) && $array['required'] == 1 && !isset( $args[$key] ) && !in_array($key, array('role_radio','role_select') ) ) {
203
+ $ultimatemember->form->add_error($key, sprintf(__('%s is required.','ultimate-member'), $array['title'] ) );
204
  }
205
 
206
  if ( $key == 'role_select' || $key == 'role_radio' ) {
207
  if ( isset( $array['required'] ) && $array['required'] == 1 && ( !isset( $args['role'] ) || empty( $args['role'] ) ) ) {
208
+ $ultimatemember->form->add_error('role', __('Please specify account type.','ultimate-member') );
209
  }
210
  }
211
 
213
 
214
  if ( isset( $array['required'] ) && $array['required'] == 1 ) {
215
  if ( !isset($args[$key]) || $args[$key] == '' ) {
216
+ $ultimatemember->form->add_error($key, sprintf( __('%s is required','ultimate-member'), $array['label'] ) );
217
  }
218
  }
219
 
220
  if ( isset( $array['max_words'] ) && $array['max_words'] > 0 ) {
221
  if ( str_word_count( $args[$key] ) > $array['max_words'] ) {
222
+ $ultimatemember->form->add_error($key, sprintf(__('You are only allowed to enter a maximum of %s words','ultimate-member'), $array['max_words']) );
223
  }
224
  }
225
 
226
  if ( isset( $array['min_chars'] ) && $array['min_chars'] > 0 ) {
227
  if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) < $array['min_chars'] ) {
228
+ $ultimatemember->form->add_error($key, sprintf(__('Your %s must contain at least %s characters','ultimate-member'), $array['label'], $array['min_chars']) );
229
  }
230
  }
231
 
232
  if ( isset( $array['max_chars'] ) && $array['max_chars'] > 0 ) {
233
  if ( $args[$key] && strlen( utf8_decode( $args[$key] ) ) > $array['max_chars'] ) {
234
+ $ultimatemember->form->add_error($key, sprintf(__('Your %s must contain less than %s characters','ultimate-member'), $array['label'], $array['max_chars']) );
235
  }
236
  }
237
 
240
  if( $profile_show_html_bio == 1 && $key !== "description" ){
241
  if ( isset( $array['html'] ) && $array['html'] == 0 ) {
242
  if ( wp_strip_all_tags( $args[$key] ) != trim( $args[$key] ) ) {
243
+ $ultimatemember->form->add_error($key, __('You can not use HTML tags here','ultimate-member') );
244
  }
245
  }
246
  }
247
 
248
  if ( isset( $array['force_good_pass'] ) && $array['force_good_pass'] == 1 ) {
249
  if ( !$ultimatemember->validation->strong_pass( $args[$key] ) ) {
250
+ $ultimatemember->form->add_error($key, __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
251
  }
252
  }
253
 
254
  if ( isset( $array['force_confirm_pass'] ) && $array['force_confirm_pass'] == 1 ) {
255
  if ( $args[ 'confirm_' . $key] == '' && !$ultimatemember->form->has_error($key) ) {
256
+ $ultimatemember->form->add_error( 'confirm_' . $key , __('Please confirm your password','ultimate-member') );
257
  }
258
  if ( $args[ 'confirm_' . $key] != $args[$key] && !$ultimatemember->form->has_error($key) ) {
259
+ $ultimatemember->form->add_error( 'confirm_' . $key , __('Your passwords do not match','ultimate-member') );
260
  }
261
  }
262
 
263
  if ( isset( $array['min_selections'] ) && $array['min_selections'] > 0 ) {
264
  if ( ( !isset($args[$key]) ) || ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) < $array['min_selections'] ) ) {
265
+ $ultimatemember->form->add_error($key, sprintf(__('Please select at least %s choices','ultimate-member'), $array['min_selections'] ) );
266
  }
267
  }
268
 
269
  if ( isset( $array['max_selections'] ) && $array['max_selections'] > 0 ) {
270
  if ( isset( $args[$key] ) && is_array($args[$key]) && count( $args[$key] ) > $array['max_selections'] ) {
271
+ $ultimatemember->form->add_error($key, sprintf(__('You can only select up to %s choices','ultimate-member'), $array['max_selections'] ) );
272
  }
273
  }
274
 
275
+ if ( isset( $array['min'] ) && is_numeric( $args[ $key ] ) ) {
276
+ if ( isset( $args[ $key ] ) && $args[ $key ] < $array['min'] ) {
277
+ $ultimatemember->form->add_error( $key, sprintf(__('Minimum number limit is %s','ultimate-member'), $array['min'] ) );
278
+ }
279
+ }
280
+
281
+ if ( isset( $array['max'] ) && is_numeric( $args[ $key ] ) ) {
282
+ if ( isset( $args[ $key ] ) && $args[ $key ] > $array['max'] ) {
283
+ $ultimatemember->form->add_error( $key, sprintf(__('Maximum number limit is %s','ultimate-member'), $array['max'] ) );
284
+ }
285
+ }
286
+
287
  if ( isset( $array['validate'] ) && !empty( $array['validate'] ) ) {
288
 
289
  switch( $array['validate'] ) {
294
  break;
295
 
296
  case 'numeric':
297
+
298
  if ( $args[$key] && !is_numeric( $args[$key] ) ) {
299
+ $ultimatemember->form->add_error($key, __('Please enter numbers only in this field','ultimate-member') );
300
  }
301
+
302
  break;
303
 
304
  case 'phone_number':
305
  if ( !$ultimatemember->validation->is_phone_number( $args[$key] ) ) {
306
+ $ultimatemember->form->add_error($key, __('Please enter a valid phone number','ultimate-member') );
307
  }
308
  break;
309
 
310
  case 'youtube_url':
311
  if ( !$ultimatemember->validation->is_url( $args[$key], 'youtube.com' ) ) {
312
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
313
  }
314
  break;
315
 
316
  case 'soundcloud_url':
317
  if ( !$ultimatemember->validation->is_url( $args[$key], 'soundcloud.com' ) ) {
318
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
319
  }
320
  break;
321
 
322
  case 'facebook_url':
323
  if ( !$ultimatemember->validation->is_url( $args[$key], 'facebook.com' ) ) {
324
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
325
  }
326
  break;
327
 
328
  case 'twitter_url':
329
  if ( !$ultimatemember->validation->is_url( $args[$key], 'twitter.com' ) ) {
330
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
331
  }
332
  break;
333
 
334
  case 'instagram_url':
335
  if ( !$ultimatemember->validation->is_url( $args[$key], 'instagram.com' ) ) {
336
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
337
  }
338
  break;
339
 
340
  case 'google_url':
341
  if ( !$ultimatemember->validation->is_url( $args[$key], 'plus.google.com' ) ) {
342
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
343
  }
344
  break;
345
 
346
  case 'linkedin_url':
347
  if ( !$ultimatemember->validation->is_url( $args[$key], 'linkedin.com' ) ) {
348
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
349
  }
350
  break;
351
 
352
  case 'vk_url':
353
  if ( !$ultimatemember->validation->is_url( $args[$key], 'vk.com' ) ) {
354
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
355
  }
356
  break;
357
 
358
  case 'url':
359
  if ( !$ultimatemember->validation->is_url( $args[$key] ) ) {
360
+ $ultimatemember->form->add_error($key, __('Please enter a valid URL','ultimate-member') );
361
  }
362
  break;
363
 
364
  case 'skype':
365
  if ( !$ultimatemember->validation->is_url( $args[$key], 'skype.com' ) ) {
366
+ $ultimatemember->form->add_error($key, sprintf(__('Please enter a valid %s username or profile URL','ultimate-member'), $array['label'] ) );
367
  }
368
  break;
369
 
370
  case 'unique_username':
371
 
372
  if ( $args[$key] == '' ) {
373
+ $ultimatemember->form->add_error($key, __('You must provide a username','ultimate-member') );
374
  } else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
375
+ $ultimatemember->form->add_error($key, __('Your username is already taken','ultimate-member') );
376
  } else if ( is_email( $args[$key] ) ) {
377
+ $ultimatemember->form->add_error($key, __('Username cannot be an email','ultimate-member') );
378
  } else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
379
+ $ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimate-member') );
380
  }
381
 
382
  break;
384
  case 'unique_username_or_email':
385
 
386
  if ( $args[$key] == '' ) {
387
+ $ultimatemember->form->add_error($key, __('You must provide a username','ultimate-member') );
388
  } else if ( $mode == 'register' && username_exists( sanitize_user( $args[$key] ) ) ) {
389
+ $ultimatemember->form->add_error($key, __('Your username is already taken','ultimate-member') );
390
  } else if ( $mode == 'register' && email_exists( $args[$key] ) ) {
391
+ $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
392
  } else if ( !$ultimatemember->validation->safe_username( $args[$key] ) ) {
393
+ $ultimatemember->form->add_error($key, __('Your username contains invalid characters','ultimate-member') );
394
  }
395
 
396
  break;
408
  $email_exists = email_exists( $args[ $key ] );
409
 
410
  if ( $args[ $key ] == '' && in_array( $key, array('user_email') ) ) {
411
+ $ultimatemember->form->add_error( $key, __('You must provide your email','ultimate-member') );
412
  } else if ( in_array( $mode, array('register') ) && $email_exists ) {
413
+ $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
414
  } else if ( in_array( $mode, array('profile') ) && $email_exists && $email_exists != $args['user_id'] ) {
415
+ $ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimate-member') );
416
  } else if ( !is_email( $args[ $key ] ) ) {
417
+ $ultimatemember->form->add_error( $key, __('This is not a valid email','ultimate-member') );
418
  } else if ( !$ultimatemember->validation->safe_username( $args[ $key ] ) ) {
419
+ $ultimatemember->form->add_error( $key, __('Your email contains invalid characters','ultimate-member') );
420
  }
421
 
422
  } else {
423
 
424
  if ( $args[ $key ] != '' && !is_email( $args[ $key ] ) ) {
425
+ $ultimatemember->form->add_error( $key, __('This is not a valid email','ultimate-member') );
426
  } else if ( $args[ $key ] != '' && email_exists( $args[ $key ] ) ) {
427
+ $ultimatemember->form->add_error($key, __('This email is already linked to an existing account','ultimate-member') );
428
  } else if ( $args[ $key ] != '' ) {
429
 
430
  $users = get_users('meta_value='.$args[ $key ]);
431
 
432
  foreach ( $users as $user ) {
433
  if( $user->ID != $args['user_id'] ){
434
+ $ultimatemember->form->add_error( $key, __('This email is already linked to an existing account','ultimate-member') );
435
  }
436
  }
437
 
456
  $meta_key_exists = get_users( $args_unique_meta );
457
 
458
  if( $meta_key_exists ){
459
+ $ultimatemember->form->add_error( $key , __('You must provide a unique value','ultimate-member') );
460
  }
461
  }
462
  break;
466
  if ( $args[$key] != '' ) {
467
 
468
  if( ! ctype_alpha( str_replace(' ', '', $args[$key] ) ) ){
469
+ $ultimatemember->form->add_error( $key , __('You must provide alphabetic letters','ultimate-member') );
470
  }
471
  }
472
  break;
476
  if ( $args[$key] != '' ) {
477
 
478
  if( ! ctype_lower( str_replace(' ', '',$args[$key] ) ) ){
479
+ $ultimatemember->form->add_error( $key , __('You must provide lowercase letters.','ultimate-member') );
480
  }
481
  }
482
 
495
 
496
  if( $profile_show_bio ){
497
  if ( strlen( utf8_decode( $args['description'] ) ) > $max_chars && $max_chars ) {
498
+ $ultimatemember->form->add_error('description', sprintf(__('Your user description must contain less than %s characters','ultimate-member'), $max_chars ) );
499
  }
500
  }
501
 
503
 
504
  } // end if ( isset in args array )
505
  }
506
+
507
  }
core/um-actions-login.php CHANGED
@@ -15,15 +15,15 @@
15
 
16
 
17
  if ( isset( $args['username'] ) && $args['username'] == '' ) {
18
- $ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimatemember') );
19
  }
20
 
21
  if ( isset( $args['user_login'] ) && $args['user_login'] == '' ) {
22
- $ultimatemember->form->add_error( 'user_login', __('Please enter your username','ultimatemember') );
23
  }
24
 
25
  if ( isset( $args['user_email'] ) && $args['user_email'] == '' ) {
26
- $ultimatemember->form->add_error( 'user_email', __('Please enter your email','ultimatemember') );
27
  }
28
 
29
  if ( isset( $args['username'] ) ) {
@@ -47,13 +47,13 @@
47
 
48
  if ( !username_exists( $user_name ) ) {
49
  if ( $is_email ) {
50
- $ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that email address','ultimatemember') );
51
  } else {
52
- $ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that username','ultimatemember') );
53
  }
54
  } else {
55
  if ( $args['user_password'] == '' ) {
56
- $ultimatemember->form->add_error( 'user_password', __('Please enter your password','ultimatemember') );
57
  }
58
  }
59
 
@@ -61,7 +61,7 @@
61
  if ( $user && wp_check_password( $args['user_password'], $user->data->user_pass, $user->ID) ) {
62
  $ultimatemember->login->auth_id = username_exists( $user_name );
63
  } else {
64
- $ultimatemember->form->add_error( 'user_password', __('Password is incorrect. Please try again.','ultimatemember') );
65
  }
66
 
67
  // add a way for other plugins like wp limit login
@@ -76,12 +76,12 @@
76
 
77
  if ( is_wp_error( $user ) && ! in_array( $user->get_error_code(), $ignore_codes ) ) {
78
 
79
- $ultimatemember->form->add_error( $user->get_error_code(), __( $user->get_error_message() ,'ultimatemember') );
80
  }
81
 
82
  if( is_wp_error( $authenticate_user ) && ! in_array( $authenticate_user->get_error_code(), $ignore_codes ) ){
83
 
84
- $ultimatemember->form->add_error( $authenticate_user->get_error_code(), __( $authenticate_user->get_error_message() ,'ultimatemember') );
85
 
86
  }
87
 
@@ -183,7 +183,7 @@
183
  $rememberme = ( isset($args['rememberme']) ) ? 1 : 0;
184
 
185
  if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) !== FALSE ){
186
- wp_die( __('This action has been prevented for security measures.','ultimatemember') );
187
  }
188
 
189
  $ultimatemember->user->auto_login( um_user('ID'), $rememberme );
@@ -260,18 +260,18 @@
260
  <div class="um-col-alt">
261
 
262
  <?php if ( isset( $args['show_rememberme'] ) && $args['show_rememberme'] ) {
263
- echo $ultimatemember->fields->checkbox('rememberme', __('Keep me signed in','ultimatemember') );
264
  echo '<div class="um-clear"></div>';
265
  } ?>
266
 
267
  <?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
268
 
269
- <div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
270
- <div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimatemember'); ?></a></div>
271
 
272
  <?php } else { ?>
273
 
274
- <div class="um-center"><input type="submit" value="<?php echo __( $args['primary_btn_word'],'ultimatemember'); ?>" class="um-button" /></div>
275
 
276
  <?php } ?>
277
 
@@ -294,7 +294,7 @@
294
  ?>
295
 
296
  <div class="um-col-alt-b">
297
- <a href="<?php echo um_get_core_page('password-reset'); ?>" class="um-link-alt"><?php _e('Forgot your password?','ultimatemember'); ?></a>
298
  </div>
299
 
300
  <?php
15
 
16
 
17
  if ( isset( $args['username'] ) && $args['username'] == '' ) {
18
+ $ultimatemember->form->add_error( 'username', __('Please enter your username or email','ultimate-member') );
19
  }
20
 
21
  if ( isset( $args['user_login'] ) && $args['user_login'] == '' ) {
22
+ $ultimatemember->form->add_error( 'user_login', __('Please enter your username','ultimate-member') );
23
  }
24
 
25
  if ( isset( $args['user_email'] ) && $args['user_email'] == '' ) {
26
+ $ultimatemember->form->add_error( 'user_email', __('Please enter your email','ultimate-member') );
27
  }
28
 
29
  if ( isset( $args['username'] ) ) {
47
 
48
  if ( !username_exists( $user_name ) ) {
49
  if ( $is_email ) {
50
+ $ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that email address','ultimate-member') );
51
  } else {
52
+ $ultimatemember->form->add_error( $field, __(' Sorry, we can\'t find an account with that username','ultimate-member') );
53
  }
54
  } else {
55
  if ( $args['user_password'] == '' ) {
56
+ $ultimatemember->form->add_error( 'user_password', __('Please enter your password','ultimate-member') );
57
  }
58
  }
59
 
61
  if ( $user && wp_check_password( $args['user_password'], $user->data->user_pass, $user->ID) ) {
62
  $ultimatemember->login->auth_id = username_exists( $user_name );
63
  } else {
64
+ $ultimatemember->form->add_error( 'user_password', __('Password is incorrect. Please try again.','ultimate-member') );
65
  }
66
 
67
  // add a way for other plugins like wp limit login
76
 
77
  if ( is_wp_error( $user ) && ! in_array( $user->get_error_code(), $ignore_codes ) ) {
78
 
79
+ $ultimatemember->form->add_error( $user->get_error_code(), __( $user->get_error_message() ,'ultimate-member') );
80
  }
81
 
82
  if( is_wp_error( $authenticate_user ) && ! in_array( $authenticate_user->get_error_code(), $ignore_codes ) ){
83
 
84
+ $ultimatemember->form->add_error( $authenticate_user->get_error_code(), __( $authenticate_user->get_error_message() ,'ultimate-member') );
85
 
86
  }
87
 
183
  $rememberme = ( isset($args['rememberme']) ) ? 1 : 0;
184
 
185
  if ( ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) ) && strrpos( um_user('wp_roles' ), 'administrator' ) !== FALSE ){
186
+ wp_die( __('This action has been prevented for security measures.','ultimate-member') );
187
  }
188
 
189
  $ultimatemember->user->auto_login( um_user('ID'), $rememberme );
260
  <div class="um-col-alt">
261
 
262
  <?php if ( isset( $args['show_rememberme'] ) && $args['show_rememberme'] ) {
263
+ echo $ultimatemember->fields->checkbox('rememberme', __('Keep me signed in','ultimate-member') );
264
  echo '<div class="um-clear"></div>';
265
  } ?>
266
 
267
  <?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
268
 
269
+ <div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
270
+ <div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimate-member'); ?></a></div>
271
 
272
  <?php } else { ?>
273
 
274
+ <div class="um-center"><input type="submit" value="<?php echo __( $args['primary_btn_word'],'ultimate-member'); ?>" class="um-button" /></div>
275
 
276
  <?php } ?>
277
 
294
  ?>
295
 
296
  <div class="um-col-alt-b">
297
+ <a href="<?php echo um_get_core_page('password-reset'); ?>" class="um-link-alt"><?php _e('Forgot your password?','ultimate-member'); ?></a>
298
  </div>
299
 
300
  <?php
core/um-actions-members.php CHANGED
@@ -60,7 +60,7 @@
60
 
61
  <input type="hidden" name="um_search" id="um_search" value="1" />
62
 
63
- <a href="#" class="um-button um-do-search"><?php _e('Search','ultimatemember'); ?></a><a href="<?php echo $ultimatemember->permalinks->get_current_url( true ); ?>" class="um-button um-alt"><?php _e('Reset','ultimatemember'); ?></a>
64
 
65
  </div><div class="um-clear"></div>
66
 
@@ -131,12 +131,12 @@
131
 
132
  <div class="um-members-pagidrop uimob340-show uimob500-show">
133
 
134
- <?php _e('Jump to page:','ultimatemember'); ?>
135
 
136
  <?php if ( um_members('pages_to_show') && is_array( um_members('pages_to_show') ) ) { ?>
137
  <select onChange="window.location.href=this.value" class="um-s2" style="width: 100px">
138
  <?php foreach( um_members('pages_to_show') as $i ) { ?>
139
- <option value="<?php echo $ultimatemember->permalinks->add_query( 'members_page', $i ); ?>" <?php selected($i, um_members('page')); ?>><?php printf(__('%s of %d','ultimatemember'), $i, um_members('total_pages') ); ?></option>
140
  <?php } ?>
141
  </select>
142
  <?php } ?>
@@ -146,13 +146,13 @@
146
  <div class="um-members-pagi uimob340-hide uimob500-hide">
147
 
148
  <?php if ( um_members('page') != 1 ) { ?>
149
- <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('First Page','ultimatemember'); ?>"><i class="um-faicon-angle-double-left"></i></a>
150
  <?php } else { ?>
151
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-left"></i></span>
152
  <?php } ?>
153
 
154
  <?php if ( um_members('page') > 1 ) { ?>
155
- <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') - 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Previous','ultimatemember'); ?>"><i class="um-faicon-angle-left"></i></a>
156
  <?php } else { ?>
157
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-left"></i></span>
158
  <?php } ?>
@@ -172,13 +172,13 @@
172
  <?php } ?>
173
 
174
  <?php if ( um_members('page') != um_members('total_pages') ) { ?>
175
- <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') + 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Next','ultimatemember'); ?>"><i class="um-faicon-angle-right"></i></a>
176
  <?php } else { ?>
177
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-right"></i></span>
178
  <?php } ?>
179
 
180
  <?php if ( um_members('page') != um_members('total_pages') ) { ?>
181
- <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('total_pages') ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Last Page','ultimatemember'); ?>"><i class="um-faicon-angle-double-right"></i></a>
182
  <?php } else { ?>
183
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-right"></i></span>
184
  <?php } ?>
60
 
61
  <input type="hidden" name="um_search" id="um_search" value="1" />
62
 
63
+ <a href="#" class="um-button um-do-search"><?php _e('Search','ultimate-member'); ?></a><a href="<?php echo $ultimatemember->permalinks->get_current_url( true ); ?>" class="um-button um-alt"><?php _e('Reset','ultimate-member'); ?></a>
64
 
65
  </div><div class="um-clear"></div>
66
 
131
 
132
  <div class="um-members-pagidrop uimob340-show uimob500-show">
133
 
134
+ <?php _e('Jump to page:','ultimate-member'); ?>
135
 
136
  <?php if ( um_members('pages_to_show') && is_array( um_members('pages_to_show') ) ) { ?>
137
  <select onChange="window.location.href=this.value" class="um-s2" style="width: 100px">
138
  <?php foreach( um_members('pages_to_show') as $i ) { ?>
139
+ <option value="<?php echo $ultimatemember->permalinks->add_query( 'members_page', $i ); ?>" <?php selected($i, um_members('page')); ?>><?php printf(__('%s of %d','ultimate-member'), $i, um_members('total_pages') ); ?></option>
140
  <?php } ?>
141
  </select>
142
  <?php } ?>
146
  <div class="um-members-pagi uimob340-hide uimob500-hide">
147
 
148
  <?php if ( um_members('page') != 1 ) { ?>
149
+ <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('First Page','ultimate-member'); ?>"><i class="um-faicon-angle-double-left"></i></a>
150
  <?php } else { ?>
151
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-left"></i></span>
152
  <?php } ?>
153
 
154
  <?php if ( um_members('page') > 1 ) { ?>
155
+ <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') - 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Previous','ultimate-member'); ?>"><i class="um-faicon-angle-left"></i></a>
156
  <?php } else { ?>
157
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-left"></i></span>
158
  <?php } ?>
172
  <?php } ?>
173
 
174
  <?php if ( um_members('page') != um_members('total_pages') ) { ?>
175
+ <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('page') + 1 ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Next','ultimate-member'); ?>"><i class="um-faicon-angle-right"></i></a>
176
  <?php } else { ?>
177
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-right"></i></span>
178
  <?php } ?>
179
 
180
  <?php if ( um_members('page') != um_members('total_pages') ) { ?>
181
+ <a href="<?php echo $ultimatemember->permalinks->add_query( 'members_page', um_members('total_pages') ); ?>" class="pagi pagi-arrow um-tip-n" title="<?php _e('Last Page','ultimate-member'); ?>"><i class="um-faicon-angle-double-right"></i></a>
182
  <?php } else { ?>
183
  <span class="pagi pagi-arrow disabled"><i class="um-faicon-angle-double-right"></i></span>
184
  <?php } ?>
core/um-actions-misc.php CHANGED
@@ -61,7 +61,7 @@
61
  $success = '';
62
 
63
  if ( ! get_option('users_can_register') && $mode == 'register' ) {
64
- $err = __('Registration is currently disabled','ultimatemember');
65
  }
66
 
67
  if ( isset( $_REQUEST['updated'] ) && !empty( $_REQUEST['updated'] ) && !$ultimatemember->form->errors ) {
@@ -72,15 +72,15 @@
72
  break;
73
 
74
  case 'account':
75
- $success = __('Your account was updated successfully.','ultimatemember');
76
  break;
77
 
78
  case 'password_changed':
79
- $success = __('You have successfully changed your password.','ultimatemember');
80
  break;
81
 
82
  case 'account_active':
83
- $success = __('Your account is now active! You can login.','ultimatemember');
84
  break;
85
 
86
  }
@@ -92,39 +92,39 @@
92
  default:
93
  $err = apply_filters("um_custom_error_message_handler", $err, $_REQUEST['err']);
94
  if ( !$err )
95
- $err = __('An error has been encountered','ultimatemember');
96
  break;
97
 
98
  case 'registration_disabled':
99
- $err = __('Registration is currently disabled','ultimatemember');
100
  break;
101
 
102
  case 'blocked_email':
103
- $err = __('This email address has been blocked.','ultimatemember');
104
  break;
105
 
106
  case 'blocked_domain':
107
- $err = __('We do not accept registrations from that domain.','ultimatemember');
108
  break;
109
 
110
  case 'blocked_ip':
111
- $err = __('Your IP address has been blocked.','ultimatemember');
112
  break;
113
 
114
  case 'inactive':
115
- $err = __('Your account has been disabled.','ultimatemember');
116
  break;
117
 
118
  case 'awaiting_admin_review':
119
- $err = __('Your account has not been approved yet.','ultimatemember');
120
  break;
121
 
122
  case 'awaiting_email_confirmation':
123
- $err = __('Your account is awaiting e-mail verification.','ultimatemember');
124
  break;
125
 
126
  case 'rejected':
127
- $err = __('Your membership request has been rejected.','ultimatemember');
128
  break;
129
 
130
  }
61
  $success = '';
62
 
63
  if ( ! get_option('users_can_register') && $mode == 'register' ) {
64
+ $err = __('Registration is currently disabled','ultimate-member');
65
  }
66
 
67
  if ( isset( $_REQUEST['updated'] ) && !empty( $_REQUEST['updated'] ) && !$ultimatemember->form->errors ) {
72
  break;
73
 
74
  case 'account':
75
+ $success = __('Your account was updated successfully.','ultimate-member');
76
  break;
77
 
78
  case 'password_changed':
79
+ $success = __('You have successfully changed your password.','ultimate-member');
80
  break;
81
 
82
  case 'account_active':
83
+ $success = __('Your account is now active! You can login.','ultimate-member');
84
  break;
85
 
86
  }
92
  default:
93
  $err = apply_filters("um_custom_error_message_handler", $err, $_REQUEST['err']);
94
  if ( !$err )
95
+ $err = __('An error has been encountered','ultimate-member');
96
  break;
97
 
98
  case 'registration_disabled':
99
+ $err = __('Registration is currently disabled','ultimate-member');
100
  break;
101
 
102
  case 'blocked_email':
103
+ $err = __('This email address has been blocked.','ultimate-member');
104
  break;
105
 
106
  case 'blocked_domain':
107
+ $err = __('We do not accept registrations from that domain.','ultimate-member');
108
  break;
109
 
110
  case 'blocked_ip':
111
+ $err = __('Your IP address has been blocked.','ultimate-member');
112
  break;
113
 
114
  case 'inactive':
115
+ $err = __('Your account has been disabled.','ultimate-member');
116
  break;
117
 
118
  case 'awaiting_admin_review':
119
+ $err = __('Your account has not been approved yet.','ultimate-member');
120
  break;
121
 
122
  case 'awaiting_email_confirmation':
123
+ $err = __('Your account is awaiting e-mail verification.','ultimate-member');
124
  break;
125
 
126
  case 'rejected':
127
+ $err = __('Your membership request has been rejected.','ultimate-member');
128
  break;
129
 
130
  }
core/um-actions-password.php CHANGED
@@ -63,6 +63,7 @@
63
  * Overrides password changed notification
64
  *
65
  */
 
66
  function um_send_password_change_email( $args ){
67
 
68
  global $ultimatemember;
@@ -95,16 +96,16 @@
95
  global $ultimatemember;
96
 
97
  if ( $_POST[ $ultimatemember->honeypot ] != '' )
98
- wp_die('Hello, spam bot!','ultimatemember');
99
 
100
  $form_timestamp = trim($_POST['timestamp']);
101
  $live_timestamp = current_time( 'timestamp' );
102
 
103
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
104
- wp_die( __('Hello, spam bot!','ultimatemember') );
105
 
106
  if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
107
- wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
108
 
109
  $user = "";
110
 
@@ -115,11 +116,11 @@
115
  }
116
 
117
  if ( empty( $user ) ) {
118
- $ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimatemember') );
119
  }
120
 
121
  if ( ( !is_email( $user ) && !username_exists( $user ) ) || ( is_email( $user ) && !email_exists( $user ) ) ) {
122
- $ultimatemember->form->add_error('username_b', __('We can\'t find an account registered with that address or username','ultimatemember') );
123
  } else {
124
 
125
  if ( is_email( $user ) ) {
@@ -138,7 +139,7 @@
138
  }else{
139
  $limit = um_get_option('reset_password_limit_number');
140
  if ( $attempts >= $limit ) {
141
- $ultimatemember->form->add_error('username_b', __('You have reached the limit for requesting password change for this user already. Contact support if you cannot open the email','ultimatemember') );
142
  } else {
143
  update_user_meta( $user_id, 'password_rst_attempts', $attempts + 1 );
144
  }
@@ -157,17 +158,17 @@
157
  global $ultimatemember;
158
 
159
  if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
160
- wp_die('Hello, spam bot!','ultimatemember');
161
  }
162
 
163
  $form_timestamp = trim($_POST['timestamp']);
164
  $live_timestamp = current_time( 'timestamp' );
165
 
166
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
167
- wp_die( __('Hello, spam bot!','ultimatemember') );
168
 
169
  if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 ){
170
- wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
171
  }
172
 
173
  $reset_pass_hash = '';
@@ -181,35 +182,35 @@
181
  is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id() ||
182
  !is_user_logged_in() && isset( $_REQUEST['hash'] ) && $reset_pass_hash != $_REQUEST['hash'] && um_is_core_page('password-reset')
183
  ){
184
- wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
185
  }
186
 
187
  if ( isset( $args['user_password'] ) && empty( $args['user_password'] ) ) {
188
- $ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimatemember') );
189
  }
190
 
191
  if ( um_get_option('reset_require_strongpass') ) {
192
 
193
  if ( strlen( utf8_decode( $args['user_password'] ) ) < 8 ) {
194
- $ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimatemember') );
195
  }
196
 
197
  if ( strlen( utf8_decode( $args['user_password'] ) ) > 30 ) {
198
- $ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimatemember') );
199
  }
200
 
201
  if ( !$ultimatemember->validation->strong_pass( $args['user_password'] ) ) {
202
- $ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimatemember') );
203
  }
204
 
205
  }
206
 
207
  if ( isset( $args['confirm_user_password'] ) && empty( $args['confirm_user_password'] ) ) {
208
- $ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimatemember') );
209
  }
210
 
211
  if ( isset( $args['user_password'] ) && isset( $args['confirm_user_password'] ) && $args['user_password'] != $args['confirm_user_password'] ) {
212
- $ultimatemember->form->add_error('confirm_user_password', __('Your passwords do not match','ultimatemember') );
213
  }
214
 
215
  }
@@ -263,7 +264,7 @@
263
 
264
  <div class="um-col-alt um-col-alt-b">
265
 
266
- <div class="um-center"><input type="submit" value="<?php _e('Reset my password','ultimatemember'); ?>" class="um-button" /></div>
267
 
268
  <div class="um-clear"></div>
269
 
@@ -290,7 +291,7 @@
290
 
291
  <div class="um-col-alt um-col-alt-b">
292
 
293
- <div class="um-center"><input type="submit" value="<?php _e('Change my password','ultimatemember'); ?>" class="um-button" /></div>
294
 
295
  <div class="um-clear"></div>
296
 
63
  * Overrides password changed notification
64
  *
65
  */
66
+ add_action('send_password_change_email','um_send_password_change_email');
67
  function um_send_password_change_email( $args ){
68
 
69
  global $ultimatemember;
96
  global $ultimatemember;
97
 
98
  if ( $_POST[ $ultimatemember->honeypot ] != '' )
99
+ wp_die('Hello, spam bot!','ultimate-member');
100
 
101
  $form_timestamp = trim($_POST['timestamp']);
102
  $live_timestamp = current_time( 'timestamp' );
103
 
104
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
105
+ wp_die( __('Hello, spam bot!','ultimate-member') );
106
 
107
  if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 )
108
+ wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
109
 
110
  $user = "";
111
 
116
  }
117
 
118
  if ( empty( $user ) ) {
119
+ $ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimate-member') );
120
  }
121
 
122
  if ( ( !is_email( $user ) && !username_exists( $user ) ) || ( is_email( $user ) && !email_exists( $user ) ) ) {
123
+ $ultimatemember->form->add_error('username_b', __('We can\'t find an account registered with that address or username','ultimate-member') );
124
  } else {
125
 
126
  if ( is_email( $user ) ) {
139
  }else{
140
  $limit = um_get_option('reset_password_limit_number');
141
  if ( $attempts >= $limit ) {
142
+ $ultimatemember->form->add_error('username_b', __('You have reached the limit for requesting password change for this user already. Contact support if you cannot open the email','ultimate-member') );
143
  } else {
144
  update_user_meta( $user_id, 'password_rst_attempts', $attempts + 1 );
145
  }
158
  global $ultimatemember;
159
 
160
  if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
161
+ wp_die('Hello, spam bot!','ultimate-member');
162
  }
163
 
164
  $form_timestamp = trim($_POST['timestamp']);
165
  $live_timestamp = current_time( 'timestamp' );
166
 
167
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
168
+ wp_die( __('Hello, spam bot!','ultimate-member') );
169
 
170
  if ( $live_timestamp - $form_timestamp < 3 && um_get_option('enable_timebot') == 1 ){
171
+ wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
172
  }
173
 
174
  $reset_pass_hash = '';
182
  is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id() ||
183
  !is_user_logged_in() && isset( $_REQUEST['hash'] ) && $reset_pass_hash != $_REQUEST['hash'] && um_is_core_page('password-reset')
184
  ){
185
+ wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
186
  }
187
 
188
  if ( isset( $args['user_password'] ) && empty( $args['user_password'] ) ) {
189
+ $ultimatemember->form->add_error('user_password', __('You must enter a new password','ultimate-member') );
190
  }
191
 
192
  if ( um_get_option('reset_require_strongpass') ) {
193
 
194
  if ( strlen( utf8_decode( $args['user_password'] ) ) < 8 ) {
195
+ $ultimatemember->form->add_error('user_password', __('Your password must contain at least 8 characters','ultimate-member') );
196
  }
197
 
198
  if ( strlen( utf8_decode( $args['user_password'] ) ) > 30 ) {
199
+ $ultimatemember->form->add_error('user_password', __('Your password must contain less than 30 characters','ultimate-member') );
200
  }
201
 
202
  if ( !$ultimatemember->validation->strong_pass( $args['user_password'] ) ) {
203
+ $ultimatemember->form->add_error('user_password', __('Your password must contain at least one lowercase letter, one capital letter and one number','ultimate-member') );
204
  }
205
 
206
  }
207
 
208
  if ( isset( $args['confirm_user_password'] ) && empty( $args['confirm_user_password'] ) ) {
209
+ $ultimatemember->form->add_error('confirm_user_password', __('You must confirm your new password','ultimate-member') );
210
  }
211
 
212
  if ( isset( $args['user_password'] ) && isset( $args['confirm_user_password'] ) && $args['user_password'] != $args['confirm_user_password'] ) {
213
+ $ultimatemember->form->add_error('confirm_user_password', __('Your passwords do not match','ultimate-member') );
214
  }
215
 
216
  }
264
 
265
  <div class="um-col-alt um-col-alt-b">
266
 
267
+ <div class="um-center"><input type="submit" value="<?php _e('Reset my password','ultimate-member'); ?>" class="um-button" /></div>
268
 
269
  <div class="um-clear"></div>
270
 
291
 
292
  <div class="um-col-alt um-col-alt-b">
293
 
294
+ <div class="um-center"><input type="submit" value="<?php _e('Change my password','ultimate-member'); ?>" class="um-button" /></div>
295
 
296
  <div class="um-clear"></div>
297
 
core/um-actions-profile.php CHANGED
@@ -53,7 +53,7 @@
53
  if ( um_current_user_can('edit', $args['user_id'] ) ) {
54
  $ultimatemember->user->set( $args['user_id'] );
55
  } else {
56
- wp_die( __('You are not allowed to edit this user.','ultimatemember') );
57
  }
58
  } else if ( isset( $args['_user_id'] ) ) {
59
  $ultimatemember->user->set( $args['_user_id'] );
@@ -77,7 +77,8 @@
77
 
78
  if ( isset( $args['submitted'][ $key ] ) ) {
79
 
80
- if ( isset( $fields[$key]['type'] ) && in_array( $fields[$key]['type'], array('image','file') ) && um_is_temp_upload( $args['submitted'][ $key ] ) ) {
 
81
 
82
  $files[ $key ] = $args['submitted'][ $key ];
83
 
@@ -116,6 +117,7 @@
116
  $files = apply_filters('um_user_pre_updating_files_array', $files);
117
 
118
  if ( is_array( $files ) ) {
 
119
  $ultimatemember->user->update_files( $files );
120
  do_action('um_after_user_upload', um_user('ID'), $files );
121
  }
@@ -197,7 +199,7 @@
197
  <span class="um-cover-overlay-s">
198
  <ins>
199
  <i class="um-faicon-picture-o"></i>
200
- <span class="um-cover-overlay-t">'.__('Change your cover photo','ultimatemember').'</span>
201
  </ins>
202
  </span>
203
  </span>';
@@ -213,9 +215,9 @@
213
  if ( $ultimatemember->fields->editing ) {
214
 
215
  $items = array(
216
- '<a href="#" class="um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width">'.__('Change cover photo','ultimatemember').'</a>',
217
- '<a href="#" class="um-reset-cover-photo" data-user_id="'.um_profile_id().'">'.__('Remove','ultimatemember').'</a>',
218
- '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
219
  );
220
 
221
  echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', $items );
@@ -255,7 +257,7 @@
255
 
256
  if ( !isset( $ultimatemember->user->cannot_edit ) ) { ?>
257
 
258
- <a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="<?php _e('Upload a cover photo','ultimatemember'); ?>"></i></span></a>
259
 
260
  <?php }
261
 
@@ -328,8 +330,8 @@
328
  if ( !um_profile('profile_photo') ) { // has profile photo
329
 
330
  $items = array(
331
- '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Upload photo','ultimatemember').'</a>',
332
- '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
333
  );
334
 
335
  $items = apply_filters('um_user_photo_menu_view', $items );
@@ -339,9 +341,9 @@
339
  } else if ( $ultimatemember->fields->editing == true ) {
340
 
341
  $items = array(
342
- '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Change photo','ultimatemember').'</a>',
343
- '<a href="#" class="um-reset-profile-photo" data-user_id="'.um_profile_id().'" data-default_src="'.um_get_default_avatar_uri().'">'.__('Remove photo','ultimatemember').'</a>',
344
- '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
345
  );
346
 
347
  $items = apply_filters('um_user_photo_menu_edit', $items );
@@ -401,7 +403,7 @@
401
  <?php } else if ( $ultimatemember->fields->editing == true && $args['show_bio'] ) { ?>
402
 
403
  <div class="um-meta-text">
404
- <textarea id="um-meta-bio" data-character-limit="<?php echo um_get_option('profile_bio_maxchars'); ?>" placeholder="<?php _e('Tell us a bit about yourself...','ultimatemember'); ?>" name="<?php echo 'description-' . $args['form_id']; ?>" id="<?php echo 'description-' . $args['form_id']; ?>"><?php if ( um_user('description') ) { echo um_user('description'); } ?></textarea>
405
  <span class="um-meta-bio-character um-right"><span class="um-bio-limit"><?php echo um_get_option('profile_bio_maxchars'); ?></span></span>
406
  <?php
407
  if ( $ultimatemember->fields->is_error('description') ) {
@@ -414,7 +416,7 @@
414
  <?php } ?>
415
 
416
  <div class="um-profile-status <?php echo um_user('account_status'); ?>">
417
- <span><?php printf(__('This user account status is %s','ultimatemember'), um_user('account_status_name') ); ?></span>
418
  </div>
419
 
420
  <?php do_action('um_after_header_meta', um_user('ID'), $args ); ?>
@@ -499,10 +501,10 @@
499
  <?php
500
 
501
  $items = array(
502
- 'editprofile' => '<a href="'.um_edit_profile_url().'" class="real_url">'.__('Edit Profile','ultimatemember').'</a>',
503
- 'myaccount' => '<a href="'.um_get_core_page('account').'" class="real_url">'.__('My Account','ultimatemember').'</a>',
504
- 'logout' => '<a href="'.um_get_core_page('logout').'" class="real_url">'.__('Logout','ultimatemember').'</a>',
505
- 'cancel' => '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
506
  );
507
 
508
  $cancel = $items['cancel'];
@@ -705,3 +707,29 @@
705
  }
706
 
707
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  if ( um_current_user_can('edit', $args['user_id'] ) ) {
54
  $ultimatemember->user->set( $args['user_id'] );
55
  } else {
56
+ wp_die( __('You are not allowed to edit this user.','ultimate-member') );
57
  }
58
  } else if ( isset( $args['_user_id'] ) ) {
59
  $ultimatemember->user->set( $args['_user_id'] );
77
 
78
  if ( isset( $args['submitted'][ $key ] ) ) {
79
 
80
+ if ( isset( $fields[$key]['type'] ) && in_array( $fields[$key]['type'], array('image','file') ) &&
81
+ ( um_is_temp_upload( $args['submitted'][ $key ] ) || $args['submitted'][ $key ] == 'empty_file' ) ) {
82
 
83
  $files[ $key ] = $args['submitted'][ $key ];
84
 
117
  $files = apply_filters('um_user_pre_updating_files_array', $files);
118
 
119
  if ( is_array( $files ) ) {
120
+ do_action('um_before_user_upload', um_user('ID'), $files );
121
  $ultimatemember->user->update_files( $files );
122
  do_action('um_after_user_upload', um_user('ID'), $files );
123
  }
199
  <span class="um-cover-overlay-s">
200
  <ins>
201
  <i class="um-faicon-picture-o"></i>
202
+ <span class="um-cover-overlay-t">'.__('Change your cover photo','ultimate-member').'</span>
203
  </ins>
204
  </span>
205
  </span>';
215
  if ( $ultimatemember->fields->editing ) {
216
 
217
  $items = array(
218
+ '<a href="#" class="um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width">'.__('Change cover photo','ultimate-member').'</a>',
219
+ '<a href="#" class="um-reset-cover-photo" data-user_id="'.um_profile_id().'">'.__('Remove','ultimate-member').'</a>',
220
+ '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
221
  );
222
 
223
  echo $ultimatemember->menu->new_ui( 'bc', 'div.um-cover', 'click', $items );
257
 
258
  if ( !isset( $ultimatemember->user->cannot_edit ) ) { ?>
259
 
260
+ <a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="<?php _e('Upload a cover photo','ultimate-member'); ?>"></i></span></a>
261
 
262
  <?php }
263
 
330
  if ( !um_profile('profile_photo') ) { // has profile photo
331
 
332
  $items = array(
333
+ '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Upload photo','ultimate-member').'</a>',
334
+ '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
335
  );
336
 
337
  $items = apply_filters('um_user_photo_menu_view', $items );
341
  } else if ( $ultimatemember->fields->editing == true ) {
342
 
343
  $items = array(
344
+ '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Change photo','ultimate-member').'</a>',
345
+ '<a href="#" class="um-reset-profile-photo" data-user_id="'.um_profile_id().'" data-default_src="'.um_get_default_avatar_uri().'">'.__('Remove photo','ultimate-member').'</a>',
346
+ '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
347
  );
348
 
349
  $items = apply_filters('um_user_photo_menu_edit', $items );
403
  <?php } else if ( $ultimatemember->fields->editing == true && $args['show_bio'] ) { ?>
404
 
405
  <div class="um-meta-text">
406
+ <textarea id="um-meta-bio" data-character-limit="<?php echo um_get_option('profile_bio_maxchars'); ?>" placeholder="<?php _e('Tell us a bit about yourself...','ultimate-member'); ?>" name="<?php echo 'description-' . $args['form_id']; ?>" id="<?php echo 'description-' . $args['form_id']; ?>"><?php if ( um_user('description') ) { echo um_user('description'); } ?></textarea>
407
  <span class="um-meta-bio-character um-right"><span class="um-bio-limit"><?php echo um_get_option('profile_bio_maxchars'); ?></span></span>
408
  <?php
409
  if ( $ultimatemember->fields->is_error('description') ) {
416
  <?php } ?>
417
 
418
  <div class="um-profile-status <?php echo um_user('account_status'); ?>">
419
+ <span><?php printf(__('This user account status is %s','ultimate-member'), um_user('account_status_name') ); ?></span>
420
  </div>
421
 
422
  <?php do_action('um_after_header_meta', um_user('ID'), $args ); ?>
501
  <?php
502
 
503
  $items = array(
504
+ 'editprofile' => '<a href="'.um_edit_profile_url().'" class="real_url">'.__('Edit Profile','ultimate-member').'</a>',
505
+ 'myaccount' => '<a href="'.um_get_core_page('account').'" class="real_url">'.__('My Account','ultimate-member').'</a>',
506
+ 'logout' => '<a href="'.um_get_core_page('logout').'" class="real_url">'.__('Logout','ultimate-member').'</a>',
507
+ 'cancel' => '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimate-member').'</a>',
508
  );
509
 
510
  $cancel = $items['cancel'];
707
  }
708
 
709
  }
710
+
711
+ /**
712
+ * Clean up file for new uploaded files
713
+ * @param integer $user_id
714
+ * @param array $arr_files
715
+ */
716
+ add_action("um_before_user_upload","um_before_user_upload", 10 ,2 );
717
+ function um_before_user_upload( $user_id, $arr_files ){
718
+ global $ultimatemember;
719
+
720
+ um_fetch_user( $user_id );
721
+
722
+ foreach ($arr_files as $key => $filename ) {
723
+ if( um_user( $key ) ){
724
+ if( basename( $filename ) != basename( um_user( $key ) ) || in_array( $old_filename , array( basename( um_user( $key ) ), basename( $filename ) ) ) || $filename == 'empty_file' ){
725
+ $old_filename = um_user( $key );
726
+ $path = $ultimatemember->files->upload_basedir;
727
+ delete_user_meta( $user_id, $old_filename );
728
+ if ( file_exists( $path . $user_id . '/' . $old_filename ) ) {
729
+ unlink( $path . $user_id . '/' . $old_filename );
730
+ }
731
+ }
732
+ }
733
+ }
734
+ }
735
+
core/um-actions-register.php CHANGED
@@ -328,12 +328,12 @@
328
 
329
  <?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
330
 
331
- <div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
332
- <div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimatemember'); ?></a></div>
333
 
334
  <?php } else { ?>
335
 
336
- <div class="um-center"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimatemember'); ?>" class="um-button" /></div>
337
 
338
  <?php } ?>
339
 
328
 
329
  <?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?>
330
 
331
+ <div class="um-left um-half"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
332
+ <div class="um-right um-half"><a href="<?php echo $secondary_btn_url; ?>" class="um-button um-alt"><?php echo __( $secondary_btn_word,'ultimate-member'); ?></a></div>
333
 
334
  <?php } else { ?>
335
 
336
+ <div class="um-center"><input type="submit" value="<?php echo __( $primary_btn_word,'ultimate-member'); ?>" class="um-button" /></div>
337
 
338
  <?php } ?>
339
 
core/um-actions-user.php CHANGED
@@ -96,8 +96,8 @@
96
 
97
  ?>
98
 
99
- <li><a href="<?php echo um_get_core_page('account'); ?>"><?php _e('Your account','ultimatemember'); ?></a></li>
100
- <li><a href="<?php echo esc_url( add_query_arg('redirect_to', $ultimatemember->permalinks->get_current_url(true), um_get_core_page('logout') ) ); ?>"><?php _e('Logout','ultimatemember'); ?></a></li>
101
 
102
  <?php
103
 
96
 
97
  ?>
98
 
99
+ <li><a href="<?php echo um_get_core_page('account'); ?>"><?php _e('Your account','ultimate-member'); ?></a></li>
100
+ <li><a href="<?php echo esc_url( add_query_arg('redirect_to', $ultimatemember->permalinks->get_current_url(true), um_get_core_page('logout') ) ); ?>"><?php _e('Logout','ultimate-member'); ?></a></li>
101
 
102
  <?php
103
 
core/um-api.php CHANGED
@@ -131,7 +131,7 @@ class UM_REST_API {
131
  */
132
  private function missing_auth() {
133
  $error = array();
134
- $error['error'] = __( 'You must specify both a token and API key!', 'ultimatemember' );
135
 
136
  $this->data = $error;
137
  $this->output( 401 );
@@ -142,7 +142,7 @@ class UM_REST_API {
142
  */
143
  private function invalid_auth() {
144
  $error = array();
145
- $error['error'] = __( 'Your request could not be authenticated', 'ultimatemember' );
146
 
147
  $this->data = $error;
148
  $this->output( 401 );
@@ -153,7 +153,7 @@ class UM_REST_API {
153
  */
154
  private function invalid_key() {
155
  $error = array();
156
- $error['error'] = __( 'Invalid API key', 'ultimatemember' );
157
 
158
  $this->data = $error;
159
  $this->output( 401 );
@@ -291,12 +291,12 @@ class UM_REST_API {
291
  $error = array();
292
 
293
  if ( !$id ) {
294
- $error['error'] = __('You must provide a user ID','ultimatemember');
295
  return $error;
296
  }
297
 
298
  if ( !$data ) {
299
- $error['error'] = __('You need to provide data to update','ultimatemember');
300
  return $error;
301
  }
302
 
@@ -305,20 +305,20 @@ class UM_REST_API {
305
  switch ( $data ) {
306
  case 'status':
307
  $ultimatemember->user->set_status( $value );
308
- $response['success'] = __('User status has been changed.','ultimatemember');
309
  break;
310
  case 'role':
311
  $ultimatemember->user->set_role( $value );
312
- $response['success'] = __('User level has been changed.','ultimatemember');
313
  break;
314
  case 'wp_role':
315
  $wp_user_object = new WP_User( $id );
316
  $wp_user_object->set_role( $value );
317
- $response['success'] = __('User WordPress role has been changed.','ultimatemember');
318
  break;
319
  default:
320
  update_user_meta( $id, $data, esc_attr( $value ) );
321
- $response['success'] = __('User meta has been changed.','ultimatemember');
322
  break;
323
  }
324
 
@@ -336,7 +336,7 @@ class UM_REST_API {
336
  $error = array();
337
 
338
  if ( !$id ) {
339
- $error['error'] = __('You must provide a user ID','ultimatemember');
340
  return $error;
341
  }
342
 
@@ -344,7 +344,7 @@ class UM_REST_API {
344
  global $um_followers;
345
  $results = $um_followers->api->followers( $id );
346
  if ( !$results ) {
347
- $error['error'] = __('No users were found','ultimatemember');
348
  return $error;
349
  }
350
  $response['followers']['count'] = $um_followers->api->count_followers_plain( $id );
@@ -355,7 +355,7 @@ class UM_REST_API {
355
  $response['followers']['users'][$k]['display_name'] = $user->display_name;
356
  }
357
  } else {
358
- $error['error'] = __('Invalid request','ultimatemember');
359
  return $error;
360
  }
361
 
@@ -373,7 +373,7 @@ class UM_REST_API {
373
  $error = array();
374
 
375
  if ( !$id ) {
376
- $error['error'] = __('You must provide a user ID','ultimatemember');
377
  return $error;
378
  }
379
 
@@ -381,7 +381,7 @@ class UM_REST_API {
381
  global $um_followers;
382
  $results = $um_followers->api->following( $id );
383
  if ( !$results ) {
384
- $error['error'] = __('No users were found','ultimatemember');
385
  return $error;
386
  }
387
  $response['following']['count'] = $um_followers->api->count_following_plain( $id );
@@ -392,7 +392,7 @@ class UM_REST_API {
392
  $response['following']['users'][$k]['display_name'] = $user->display_name;
393
  }
394
  } else {
395
- $error['error'] = __('Invalid request','ultimatemember');
396
  return $error;
397
  }
398
 
@@ -480,20 +480,20 @@ class UM_REST_API {
480
  $error = array();
481
 
482
  if ( !isset( $id ) ) {
483
- $error['error'] = __('You must provide a user ID','ultimatemember');
484
  return $error;
485
  }
486
 
487
  $user = get_userdata( $id );
488
  if ( !$user ) {
489
- $error['error'] = __('Invalid user specified','ultimatemember');
490
  return $error;
491
  }
492
 
493
  um_fetch_user( $id );
494
  $ultimatemember->user->delete();
495
 
496
- $response['success'] = __('User has been successfully deleted.','ultimatemember');
497
 
498
  return $response;
499
  }
@@ -509,13 +509,13 @@ class UM_REST_API {
509
  $error = array();
510
 
511
  if ( !isset( $id ) ) {
512
- $error['error'] = __('You must provide a user ID','ultimatemember');
513
  return $error;
514
  }
515
 
516
  $user = get_userdata( $id );
517
  if ( !$user ) {
518
- $error['error'] = __('Invalid user specified','ultimatemember');
519
  return $error;
520
  }
521
 
@@ -637,7 +637,7 @@ class UM_REST_API {
637
  $error = array();
638
  // Make sure our query is valid
639
  if ( ! in_array( $query, $accepted ) ) {
640
- $error['error'] = __( 'Invalid query!', 'ultimatemember' );
641
 
642
  $this->data = $error;
643
  $this->output();
@@ -736,6 +736,9 @@ class UM_REST_API {
736
  * Modify User Profile
737
  */
738
  function user_key_field( $user ) {
 
 
 
739
  if ( current_user_can( 'edit_users' ) && current_user_can( 'edit_user', $user->ID ) ) {
740
  $user = get_userdata( $user->ID );
741
  ?>
@@ -743,20 +746,20 @@ class UM_REST_API {
743
  <tbody>
744
  <tr>
745
  <th>
746
- <label for="um_set_api_key"><?php _e( 'Ultimate Member REST API', 'ultimatemember' ); ?></label>
747
  </th>
748
  <td>
749
  <?php if ( empty( $user->um_user_public_key ) ) { ?>
750
  <p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
751
- <span class="description"><?php _e( 'Generate API Key', 'ultimatemember' ); ?></span></p>
752
  <?php } else { ?>
753
  <p>
754
- <strong><?php _e( 'Public key:', 'ultimatemember' ); ?>&nbsp;</strong><span id="publickey"><?php echo $user->um_user_public_key; ?></span><br/>
755
- <strong><?php _e( 'Secret key:', 'ultimatemember' ); ?>&nbsp;</strong><span id="privatekey"><?php echo $user->um_user_secret_key; ?></span><br/>
756
- <strong><?php _e( 'Token:', 'ultimatemember' ); ?>&nbsp;</strong><span id="token"><?php echo $this->get_token( $user->ID ); ?></span>
757
  </p>
758
  <p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
759
- <span class="description"><?php _e( 'Revoke API Keys', 'ultimatemember' ); ?></span></p>
760
  <?php } ?>
761
  </td>
762
  </tr>
131
  */
132
  private function missing_auth() {
133
  $error = array();
134
+ $error['error'] = __( 'You must specify both a token and API key!', 'ultimate-member');
135
 
136
  $this->data = $error;
137
  $this->output( 401 );
142
  */
143
  private function invalid_auth() {
144
  $error = array();
145
+ $error['error'] = __( 'Your request could not be authenticated', 'ultimate-member');
146
 
147
  $this->data = $error;
148
  $this->output( 401 );
153
  */
154
  private function invalid_key() {
155
  $error = array();
156
+ $error['error'] = __( 'Invalid API key', 'ultimate-member');
157
 
158
  $this->data = $error;
159
  $this->output( 401 );
291
  $error = array();
292
 
293
  if ( !$id ) {
294
+ $error['error'] = __('You must provide a user ID','ultimate-member');
295
  return $error;
296
  }
297
 
298
  if ( !$data ) {
299
+ $error['error'] = __('You need to provide data to update','ultimate-member');
300
  return $error;
301
  }
302
 
305
  switch ( $data ) {
306
  case 'status':
307
  $ultimatemember->user->set_status( $value );
308
+ $response['success'] = __('User status has been changed.','ultimate-member');
309
  break;
310
  case 'role':
311
  $ultimatemember->user->set_role( $value );
312
+ $response['success'] = __('User level has been changed.','ultimate-member');
313
  break;
314
  case 'wp_role':
315
  $wp_user_object = new WP_User( $id );
316
  $wp_user_object->set_role( $value );
317
+ $response['success'] = __('User WordPress role has been changed.','ultimate-member');
318
  break;
319
  default:
320
  update_user_meta( $id, $data, esc_attr( $value ) );
321
+ $response['success'] = __('User meta has been changed.','ultimate-member');
322
  break;
323
  }
324
 
336
  $error = array();
337
 
338
  if ( !$id ) {
339
+ $error['error'] = __('You must provide a user ID','ultimate-member');
340
  return $error;
341
  }
342
 
344
  global $um_followers;
345
  $results = $um_followers->api->followers( $id );
346
  if ( !$results ) {
347
+ $error['error'] = __('No users were found','ultimate-member');
348
  return $error;
349
  }
350
  $response['followers']['count'] = $um_followers->api->count_followers_plain( $id );
355
  $response['followers']['users'][$k]['display_name'] = $user->display_name;
356
  }
357
  } else {
358
+ $error['error'] = __('Invalid request','ultimate-member');
359
  return $error;
360
  }
361
 
373
  $error = array();
374
 
375
  if ( !$id ) {
376
+ $error['error'] = __('You must provide a user ID','ultimate-member');
377
  return $error;
378
  }
379
 
381
  global $um_followers;
382
  $results = $um_followers->api->following( $id );
383
  if ( !$results ) {
384
+ $error['error'] = __('No users were found','ultimate-member');
385
  return $error;
386
  }
387
  $response['following']['count'] = $um_followers->api->count_following_plain( $id );
392
  $response['following']['users'][$k]['display_name'] = $user->display_name;
393
  }
394
  } else {
395
+ $error['error'] = __('Invalid request','ultimate-member');
396
  return $error;
397
  }
398
 
480
  $error = array();
481
 
482
  if ( !isset( $id ) ) {
483
+ $error['error'] = __('You must provide a user ID','ultimate-member');
484
  return $error;
485
  }
486
 
487
  $user = get_userdata( $id );
488
  if ( !$user ) {
489
+ $error['error'] = __('Invalid user specified','ultimate-member');
490
  return $error;
491
  }
492
 
493
  um_fetch_user( $id );
494
  $ultimatemember->user->delete();
495
 
496
+ $response['success'] = __('User has been successfully deleted.','ultimate-member');
497
 
498
  return $response;
499
  }
509
  $error = array();
510
 
511
  if ( !isset( $id ) ) {
512
+ $error['error'] = __('You must provide a user ID','ultimate-member');
513
  return $error;
514
  }
515
 
516
  $user = get_userdata( $id );
517
  if ( !$user ) {
518
+ $error['error'] = __('Invalid user specified','ultimate-member');
519
  return $error;
520
  }
521
 
637
  $error = array();
638
  // Make sure our query is valid
639
  if ( ! in_array( $query, $accepted ) ) {
640
+ $error['error'] = __( 'Invalid query!', 'ultimate-member');
641
 
642
  $this->data = $error;
643
  $this->output();
736
  * Modify User Profile
737
  */
738
  function user_key_field( $user ) {
739
+
740
+ if( ! isset( $user->ID ) ) return;
741
+
742
  if ( current_user_can( 'edit_users' ) && current_user_can( 'edit_user', $user->ID ) ) {
743
  $user = get_userdata( $user->ID );
744
  ?>
746
  <tbody>
747
  <tr>
748
  <th>
749
+ <label for="um_set_api_key"><?php _e( 'Ultimate Member REST API', 'ultimate-member'); ?></label>
750
  </th>
751
  <td>
752
  <?php if ( empty( $user->um_user_public_key ) ) { ?>
753
  <p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
754
+ <span class="description"><?php _e( 'Generate API Key', 'ultimate-member'); ?></span></p>
755
  <?php } else { ?>
756
  <p>
757
+ <strong><?php _e( 'Public key:', 'ultimate-member'); ?>&nbsp;</strong><span id="publickey"><?php echo $user->um_user_public_key; ?></span><br/>
758
+ <strong><?php _e( 'Secret key:', 'ultimate-member'); ?>&nbsp;</strong><span id="privatekey"><?php echo $user->um_user_secret_key; ?></span><br/>
759
+ <strong><?php _e( 'Token:', 'ultimate-member'); ?>&nbsp;</strong><span id="token"><?php echo $this->get_token( $user->ID ); ?></span>
760
  </p>
761
  <p><input name="um_set_api_key" type="checkbox" id="um_set_api_key" value="0" />
762
+ <span class="description"><?php _e( 'Revoke API Keys', 'ultimate-member'); ?></span></p>
763
  <?php } ?>
764
  </td>
765
  </tr>
core/um-builtin.php CHANGED
@@ -79,10 +79,10 @@ class UM_Builtin {
79
  function unique_field_err( $key ){
80
  global $ultimatemember;
81
  if ( empty( $key ) ) return 'Please provide a meta key';
82
- if ( isset( $this->core_fields[ $key ] ) ) return __('Your meta key is a reserved core field and cannot be used','ultimatemember');
83
- if ( isset( $this->predefined_fields[ $key ] ) ) return __('Your meta key is a predefined reserved key and cannot be used','ultimatemember');
84
- if ( isset( $this->saved_fields[ $key ] ) ) return __('Your meta key already exists in your fields list','ultimatemember');
85
- if ( !$ultimatemember->validation->safe_string( $key ) ) return __('Your meta key contains illegal characters. Please correct it.','ultimatemember');
86
  return 0;
87
  }
88
 
@@ -91,8 +91,8 @@ class UM_Builtin {
91
  ***/
92
  function date_range_start_err( $date ) {
93
  global $ultimatemember;
94
- if ( empty( $date ) ) return __('Please provide a date range beginning','ultimatemember');
95
- if ( !$ultimatemember->validation->validate_date( $date ) ) return __('Please enter a valid start date in the date range','ultimatemember');
96
  return 0;
97
  }
98
 
@@ -101,9 +101,9 @@ class UM_Builtin {
101
  ***/
102
  function date_range_end_err( $date, $start_date ) {
103
  global $ultimatemember;
104
- if ( empty( $date ) ) return __('Please provide a date range end','ultimatemember');
105
- if ( !$ultimatemember->validation->validate_date( $date ) ) return __('Please enter a valid end date in the date range','ultimatemember');
106
- if ( strtotime( $date ) <= strtotime( $start_date ) ) return __('The end of date range must be greater than the start of date range','ultimatemember');
107
  return 0;
108
  }
109
 
@@ -139,7 +139,7 @@ class UM_Builtin {
139
  'validate' => array(
140
  '_title' => array(
141
  'mode' => 'required',
142
- 'error' => __('You must provide a title','ultimatemember')
143
  ),
144
  '_metakey' => array(
145
  'mode' => 'unique',
@@ -148,14 +148,14 @@ class UM_Builtin {
148
  ),
149
 
150
  'number' => array(
151
- 'name' => __('Number','ultimatemember'),
152
  'col1' => array('_title','_metakey','_help','_default','_min','_visibility'),
153
  'col2' => array('_label','_placeholder','_public','_roles','_validate','_custom_validate','_max'),
154
  'col3' => array('_required','_editable','_icon'),
155
  'validate' => array(
156
  '_title' => array(
157
  'mode' => 'required',
158
- 'error' => __('You must provide a title','ultimatemember')
159
  ),
160
  '_metakey' => array(
161
  'mode' => 'unique',
@@ -171,7 +171,7 @@ class UM_Builtin {
171
  'validate' => array(
172
  '_title' => array(
173
  'mode' => 'required',
174
- 'error' => __('You must provide a title','ultimatemember')
175
  ),
176
  '_metakey' => array(
177
  'mode' => 'unique',
@@ -187,14 +187,14 @@ class UM_Builtin {
187
  'validate' => array(
188
  '_title' => array(
189
  'mode' => 'required',
190
- 'error' => __('You must provide a title','ultimatemember')
191
  ),
192
  '_metakey' => array(
193
  'mode' => 'unique',
194
  ),
195
  '_options' => array(
196
  'mode' => 'required',
197
- 'error' => __('You have not added any choices yet.','ultimatemember')
198
  ),
199
  )
200
  ),
@@ -207,14 +207,14 @@ class UM_Builtin {
207
  'validate' => array(
208
  '_title' => array(
209
  'mode' => 'required',
210
- 'error' => __('You must provide a title','ultimatemember')
211
  ),
212
  '_metakey' => array(
213
  'mode' => 'unique',
214
  ),
215
  '_options' => array(
216
  'mode' => 'required',
217
- 'error' => __('You have not added any choices yet.','ultimatemember')
218
  ),
219
  )
220
  ),
@@ -227,14 +227,14 @@ class UM_Builtin {
227
  'validate' => array(
228
  '_title' => array(
229
  'mode' => 'required',
230
- 'error' => __('You must provide a title','ultimatemember')
231
  ),
232
  '_metakey' => array(
233
  'mode' => 'unique',
234
  ),
235
  '_options' => array(
236
  'mode' => 'required',
237
- 'error' => __('You have not added any choices yet.','ultimatemember')
238
  ),
239
  )
240
  ),
@@ -247,14 +247,14 @@ class UM_Builtin {
247
  'validate' => array(
248
  '_title' => array(
249
  'mode' => 'required',
250
- 'error' => __('You must provide a title','ultimatemember')
251
  ),
252
  '_metakey' => array(
253
  'mode' => 'unique',
254
  ),
255
  '_options' => array(
256
  'mode' => 'required',
257
- 'error' => __('You have not added any choices yet.','ultimatemember')
258
  ),
259
  )
260
  ),
@@ -267,7 +267,7 @@ class UM_Builtin {
267
  'validate' => array(
268
  '_title' => array(
269
  'mode' => 'required',
270
- 'error' => __('You must provide a title','ultimatemember')
271
  ),
272
  '_metakey' => array(
273
  'mode' => 'unique',
@@ -283,7 +283,7 @@ class UM_Builtin {
283
  'validate' => array(
284
  '_title' => array(
285
  'mode' => 'required',
286
- 'error' => __('You must provide a title','ultimatemember')
287
  ),
288
  '_metakey' => array(
289
  'mode' => 'unique',
@@ -299,14 +299,14 @@ class UM_Builtin {
299
  'validate' => array(
300
  '_title' => array(
301
  'mode' => 'required',
302
- 'error' => __('You must provide a title','ultimatemember')
303
  ),
304
  '_metakey' => array(
305
  'mode' => 'unique',
306
  ),
307
  '_max_size' => array(
308
  'mode' => 'numeric',
309
- 'error' => __('Please enter a valid size','ultimatemember')
310
  ),
311
  )
312
  ),
@@ -319,14 +319,14 @@ class UM_Builtin {
319
  'validate' => array(
320
  '_title' => array(
321
  'mode' => 'required',
322
- 'error' => __('You must provide a title','ultimatemember')
323
  ),
324
  '_metakey' => array(
325
  'mode' => 'unique',
326
  ),
327
  '_max_size' => array(
328
  'mode' => 'numeric',
329
- 'error' => __('Please enter a valid size','ultimatemember')
330
  ),
331
  )
332
  ),
@@ -339,14 +339,14 @@ class UM_Builtin {
339
  'validate' => array(
340
  '_title' => array(
341
  'mode' => 'required',
342
- 'error' => __('You must provide a title','ultimatemember')
343
  ),
344
  '_metakey' => array(
345
  'mode' => 'unique',
346
  ),
347
  '_years' => array(
348
  'mode' => 'numeric',
349
- 'error' => __('Number of years is not valid','ultimatemember')
350
  ),
351
  '_range_start' => array(
352
  'mode' => 'range-start',
@@ -365,7 +365,7 @@ class UM_Builtin {
365
  'validate' => array(
366
  '_title' => array(
367
  'mode' => 'required',
368
- 'error' => __('You must provide a title','ultimatemember')
369
  ),
370
  '_metakey' => array(
371
  'mode' => 'unique',
@@ -381,7 +381,7 @@ class UM_Builtin {
381
  'validate' => array(
382
  '_title' => array(
383
  'mode' => 'required',
384
- 'error' => __('You must provide a title','ultimatemember')
385
  ),
386
  '_metakey' => array(
387
  'mode' => 'unique',
@@ -398,7 +398,7 @@ class UM_Builtin {
398
  'validate' => array(
399
  '_title' => array(
400
  'mode' => 'required',
401
- 'error' => __('You must provide a title','ultimatemember')
402
  ),
403
  )
404
  ),
@@ -411,11 +411,11 @@ class UM_Builtin {
411
  'validate' => array(
412
  '_title' => array(
413
  'mode' => 'required',
414
- 'error' => __('You must provide a title','ultimatemember')
415
  ),
416
  '_content' => array(
417
  'mode' => 'required',
418
- 'error' => __('You must add a shortcode to the content area','ultimatemember')
419
  ),
420
  )
421
  ),
@@ -428,7 +428,7 @@ class UM_Builtin {
428
  'validate' => array(
429
  '_title' => array(
430
  'mode' => 'required',
431
- 'error' => __('You must provide a title','ultimatemember')
432
  ),
433
  )
434
  ),
@@ -441,7 +441,7 @@ class UM_Builtin {
441
  'validate' => array(
442
  '_title' => array(
443
  'mode' => 'required',
444
- 'error' => __('You must provide a title','ultimatemember')
445
  ),
446
  )
447
  ),
@@ -454,7 +454,7 @@ class UM_Builtin {
454
  'validate' => array(
455
  '_title' => array(
456
  'mode' => 'required',
457
- 'error' => __('You must provide a title','ultimatemember')
458
  ),
459
  '_metakey' => array(
460
  'mode' => 'unique',
@@ -470,7 +470,7 @@ class UM_Builtin {
470
  'validate' => array(
471
  '_title' => array(
472
  'mode' => 'required',
473
- 'error' => __('You must provide a title','ultimatemember')
474
  ),
475
  '_metakey' => array(
476
  'mode' => 'unique',
@@ -486,7 +486,7 @@ class UM_Builtin {
486
  'validate' => array(
487
  '_title' => array(
488
  'mode' => 'required',
489
- 'error' => __('You must provide a title','ultimatemember')
490
  ),
491
  '_metakey' => array(
492
  'mode' => 'unique',
@@ -502,7 +502,7 @@ class UM_Builtin {
502
  'validate' => array(
503
  '_title' => array(
504
  'mode' => 'required',
505
- 'error' => __('You must provide a title','ultimatemember')
506
  ),
507
  '_metakey' => array(
508
  'mode' => 'unique',
@@ -548,15 +548,15 @@ class UM_Builtin {
548
 
549
  $um_roles = $ultimatemember->query->get_roles( false, array('admin') );
550
 
551
- $profile_privacy = apply_filters('um_profile_privacy_options', array( __('Everyone','ultimatemember'), __('Only me','ultimatemember') ) );
552
 
553
  $this->predefined_fields = array(
554
 
555
  'user_login' => array(
556
- 'title' => __('Username','ultimatemember'),
557
  'metakey' => 'user_login',
558
  'type' => 'text',
559
- 'label' => __('Username','ultimatemember'),
560
  'required' => 1,
561
  'public' => 1,
562
  'editable' => 0,
@@ -566,10 +566,10 @@ class UM_Builtin {
566
  ),
567
 
568
  'username' => array(
569
- 'title' => __('Username or E-mail','ultimatemember'),
570
  'metakey' => 'username',
571
  'type' => 'text',
572
- 'label' => __('Username or E-mail','ultimatemember'),
573
  'required' => 1,
574
  'public' => 1,
575
  'editable' => 0,
@@ -577,10 +577,10 @@ class UM_Builtin {
577
  ),
578
 
579
  'user_password' => array(
580
- 'title' => __('Password','ultimatemember'),
581
  'metakey' => 'user_password',
582
  'type' => 'password',
583
- 'label' => __('Password','ultimatemember'),
584
  'required' => 1,
585
  'public' => 1,
586
  'editable' => 1,
@@ -591,40 +591,40 @@ class UM_Builtin {
591
  ),
592
 
593
  'first_name' => array(
594
- 'title' => __('First Name','ultimatemember'),
595
  'metakey' => 'first_name',
596
  'type' => 'text',
597
- 'label' => __('First Name','ultimatemember'),
598
  'required' => 0,
599
  'public' => 1,
600
  'editable' => 1,
601
  ),
602
 
603
  'last_name' => array(
604
- 'title' => __('Last Name','ultimatemember'),
605
  'metakey' => 'last_name',
606
  'type' => 'text',
607
- 'label' => __('Last Name','ultimatemember'),
608
  'required' => 0,
609
  'public' => 1,
610
  'editable' => 1,
611
  ),
612
 
613
  'nickname' => array(
614
- 'title' => __('Nickname','ultimatemember'),
615
  'metakey' => 'nickname',
616
  'type' => 'text',
617
- 'label' => __('Nickname','ultimatemember'),
618
  'required' => 0,
619
  'public' => 1,
620
  'editable' => 1,
621
  ),
622
 
623
  'user_registered' => array(
624
- 'title' => __('Registration Date','ultimatemember'),
625
  'metakey' => 'user_registered',
626
  'type' => 'text',
627
- 'label' => __('Registration Date','ultimatemember'),
628
  'required' => 0,
629
  'public' => 1,
630
  'editable' => 1,
@@ -632,10 +632,10 @@ class UM_Builtin {
632
  ),
633
 
634
  'last_login' => array(
635
- 'title' => __('Last Login','ultimatemember'),
636
  'metakey' => '_um_last_login',
637
  'type' => 'text',
638
- 'label' => __('Last Login','ultimatemember'),
639
  'required' => 0,
640
  'public' => 1,
641
  'editable' => 1,
@@ -643,10 +643,10 @@ class UM_Builtin {
643
  ),
644
 
645
  'user_email' => array(
646
- 'title' => __('E-mail Address','ultimatemember'),
647
  'metakey' => 'user_email',
648
  'type' => 'text',
649
- 'label' => __('E-mail Address','ultimatemember'),
650
  'required' => 0,
651
  'public' => 1,
652
  'validate' => 'unique_email',
@@ -654,10 +654,10 @@ class UM_Builtin {
654
  ),
655
 
656
  'secondary_user_email' => array(
657
- 'title' => __('Secondary E-mail Address','ultimatemember'),
658
  'metakey' => 'secondary_user_email',
659
  'type' => 'text',
660
- 'label' => __('Secondary E-mail Address','ultimatemember'),
661
  'required' => 0,
662
  'public' => 1,
663
  'editable' => 1,
@@ -666,10 +666,10 @@ class UM_Builtin {
666
  ),
667
 
668
  'description' => array(
669
- 'title' => __('Biography','ultimatemember'),
670
  'metakey' => 'description',
671
  'type' => 'textarea',
672
- 'label' => __('Biography','ultimatemember'),
673
  'html' => 0,
674
  'required' => 0,
675
  'public' => 1,
@@ -679,10 +679,10 @@ class UM_Builtin {
679
  ),
680
 
681
  'birth_date' => array(
682
- 'title' => __('Birth Date','ultimatemember'),
683
  'metakey' => 'birth_date',
684
  'type' => 'date',
685
- 'label' => __('Birth Date','ultimatemember'),
686
  'required' => 0,
687
  'public' => 1,
688
  'editable' => 1,
@@ -693,22 +693,22 @@ class UM_Builtin {
693
  ),
694
 
695
  'gender' => array(
696
- 'title' => __('Gender','ultimatemember'),
697
  'metakey' => 'gender',
698
  'type' => 'radio',
699
- 'label' => __('Gender','ultimatemember'),
700
  'required' => 0,
701
  'public' => 1,
702
  'editable' => 1,
703
- 'options' => array( __('Male','ultimatemember'), __('Female','ultimatemember') )
704
  ),
705
 
706
  'country' => array(
707
- 'title' => __('Country','ultimatemember'),
708
  'metakey' => 'country',
709
  'type' => 'select',
710
- 'label' => __('Country','ultimatemember'),
711
- 'placeholder' => __('Choose a Country','ultimatemember'),
712
  'required' => 0,
713
  'public' => 1,
714
  'editable' => 1,
@@ -716,10 +716,10 @@ class UM_Builtin {
716
  ),
717
 
718
  'facebook' => array(
719
- 'title' => __('Facebook','ultimatemember'),
720
  'metakey' => 'facebook',
721
  'type' => 'url',
722
- 'label' => __('Facebook','ultimatemember'),
723
  'required' => 0,
724
  'public' => 1,
725
  'editable' => 1,
@@ -734,10 +734,10 @@ class UM_Builtin {
734
  ),
735
 
736
  'twitter' => array(
737
- 'title' => __('Twitter','ultimatemember'),
738
  'metakey' => 'twitter',
739
  'type' => 'url',
740
- 'label' => __('Twitter','ultimatemember'),
741
  'required' => 0,
742
  'public' => 1,
743
  'editable' => 1,
@@ -752,10 +752,10 @@ class UM_Builtin {
752
  ),
753
 
754
  'linkedin' => array(
755
- 'title' => __('LinkedIn','ultimatemember'),
756
  'metakey' => 'linkedin',
757
  'type' => 'url',
758
- 'label' => __('LinkedIn','ultimatemember'),
759
  'required' => 0,
760
  'public' => 1,
761
  'editable' => 1,
@@ -770,10 +770,10 @@ class UM_Builtin {
770
  ),
771
 
772
  'googleplus' => array(
773
- 'title' => __('Google+','ultimatemember'),
774
  'metakey' => 'googleplus',
775
  'type' => 'url',
776
- 'label' => __('Google+','ultimatemember'),
777
  'required' => 0,
778
  'public' => 1,
779
  'editable' => 1,
@@ -788,10 +788,10 @@ class UM_Builtin {
788
  ),
789
 
790
  'instagram' => array(
791
- 'title' => __('Instagram','ultimatemember'),
792
  'metakey' => 'instagram',
793
  'type' => 'url',
794
- 'label' => __('Instagram','ultimatemember'),
795
  'required' => 0,
796
  'public' => 1,
797
  'editable' => 1,
@@ -806,10 +806,10 @@ class UM_Builtin {
806
  ),
807
 
808
  'skype' => array(
809
- 'title' => __('Skype ID','ultimatemember'),
810
  'metakey' => 'skype',
811
  'type' => 'url',
812
- 'label' => __('Skype ID','ultimatemember'),
813
  'required' => 0,
814
  'public' => 1,
815
  'editable' => 1,
@@ -821,10 +821,10 @@ class UM_Builtin {
821
  ),
822
 
823
  'youtube' => array(
824
- 'title' => __('YouTube','ultimatemember'),
825
  'metakey' => 'youtube',
826
  'type' => 'url',
827
- 'label' => __('YouTube','ultimatemember'),
828
  'required' => 0,
829
  'public' => 1,
830
  'editable' => 1,
@@ -839,10 +839,10 @@ class UM_Builtin {
839
  ),
840
 
841
  'soundcloud' => array(
842
- 'title' => __('SoundCloud','ultimatemember'),
843
  'metakey' => 'soundcloud',
844
  'type' => 'url',
845
- 'label' => __('SoundCloud','ultimatemember'),
846
  'required' => 0,
847
  'public' => 1,
848
  'editable' => 1,
@@ -857,10 +857,10 @@ class UM_Builtin {
857
  ),
858
 
859
  'vk' => array(
860
- 'title' => __('VKontakte','ultimatemember'),
861
  'metakey' => 'vkontakte',
862
  'type' => 'url',
863
- 'label' => __('VKontakte','ultimatemember'),
864
  'required' => 0,
865
  'public' => 1,
866
  'editable' => 1,
@@ -875,10 +875,10 @@ class UM_Builtin {
875
  ),
876
 
877
  'role_select' => array(
878
- 'title' => __('Roles (Dropdown)','ultimatemember'),
879
  'metakey' => 'role_select',
880
  'type' => 'select',
881
- 'label' => __('Account Type','ultimatemember'),
882
  'placeholder' => 'Choose account type',
883
  'required' => 0,
884
  'public' => 1,
@@ -887,10 +887,10 @@ class UM_Builtin {
887
  ),
888
 
889
  'role_radio' => array(
890
- 'title' => __('Roles (Radio)','ultimatemember'),
891
  'metakey' => 'role_radio',
892
  'type' => 'radio',
893
- 'label' => __('Account Type','ultimatemember'),
894
  'required' => 0,
895
  'public' => 1,
896
  'editable' => 1,
@@ -898,11 +898,11 @@ class UM_Builtin {
898
  ),
899
 
900
  'languages' => array(
901
- 'title' => __('Languages','ultimatemember'),
902
  'metakey' => 'languages',
903
  'type' => 'multiselect',
904
- 'label' => __('Languages Spoken','ultimatemember'),
905
- 'placeholder' => __('Select languages','ultimatemember'),
906
  'required' => 0,
907
  'public' => 1,
908
  'editable' => 1,
@@ -910,10 +910,10 @@ class UM_Builtin {
910
  ),
911
 
912
  'phone_number' => array(
913
- 'title' => __('Phone Number','ultimatemember'),
914
  'metakey' => 'phone_number',
915
  'type' => 'text',
916
- 'label' => __('Phone Number','ultimatemember'),
917
  'required' => 0,
918
  'public' => 1,
919
  'editable' => 1,
@@ -922,10 +922,10 @@ class UM_Builtin {
922
  ),
923
 
924
  'mobile_number' => array(
925
- 'title' => __('Mobile Number','ultimatemember'),
926
  'metakey' => 'mobile_number',
927
  'type' => 'text',
928
- 'label' => __('Mobile Number','ultimatemember'),
929
  'required' => 0,
930
  'public' => 1,
931
  'editable' => 1,
@@ -936,11 +936,11 @@ class UM_Builtin {
936
  // private use ( not public list )
937
 
938
  'profile_photo' => array(
939
- 'title' => __('Profile Photo','ultimatemember'),
940
  'metakey' => 'profile_photo',
941
  'type' => 'image',
942
- 'label' => __('Change your profile photo','ultimatemember'),
943
- 'upload_text' => __('Upload your photo here','ultimatemember'),
944
  'icon' => 'um-faicon-camera',
945
  'crop' => 1,
946
  'max_size' => ( um_get_option('profile_photo_max_size') ) ? um_get_option('profile_photo_max_size') : 999999999,
@@ -950,11 +950,11 @@ class UM_Builtin {
950
  ),
951
 
952
  'cover_photo' => array(
953
- 'title' => __('Cover Photo','ultimatemember'),
954
  'metakey' => 'cover_photo',
955
  'type' => 'image',
956
- 'label' => __('Change your cover photo','ultimatemember'),
957
- 'upload_text' => __('Upload profile cover here','ultimatemember'),
958
  'icon' => 'um-faicon-picture-o',
959
  'crop' => 2,
960
  'max_size' => ( um_get_option('cover_photo_max_size') ) ? um_get_option('cover_photo_max_size') : 999999999,
@@ -965,17 +965,17 @@ class UM_Builtin {
965
  ),
966
 
967
  'password_reset_text' => array(
968
- 'title' => __('Password Reset','ultimatemember'),
969
  'type' => 'block',
970
- 'content' => '<div style="text-align:center">' . __('To reset your password, please enter your email address or username below','ultimatemember'). '</div>',
971
  'private_use' => true,
972
  ),
973
 
974
  'username_b' => array(
975
- 'title' => __('Username or E-mail','ultimatemember'),
976
  'metakey' => 'username_b',
977
  'type' => 'text',
978
- 'placeholder' => __('Enter your username or email','ultimatemember'),
979
  'required' => 1,
980
  'public' => 1,
981
  'editable' => 0,
@@ -985,15 +985,15 @@ class UM_Builtin {
985
  // account page use ( not public )
986
 
987
  'profile_privacy' => array(
988
- 'title' => __('Profile Privacy','ultimatemember'),
989
  'metakey' => 'profile_privacy',
990
  'type' => 'select',
991
- 'label' => __('Profile Privacy','ultimatemember'),
992
- 'help' => __('Who can see your public profile?','ultimatemember'),
993
  'required' => 0,
994
  'public' => 1,
995
  'editable' => 1,
996
- 'default' => __('Everyone','ultimatemember'),
997
  'options' => $profile_privacy,
998
  'allowclear' => 0,
999
  'account_only' => true,
@@ -1001,39 +1001,39 @@ class UM_Builtin {
1001
  ),
1002
 
1003
  'hide_in_members' => array(
1004
- 'title' => __('Hide my profile from directory','ultimatemember'),
1005
  'metakey' => 'hide_in_members',
1006
  'type' => 'radio',
1007
- 'label' => __('Hide my profile from directory','ultimatemember'),
1008
- 'help' => __('Here you can hide yourself from appearing in public directory','ultimatemember'),
1009
  'required' => 0,
1010
  'public' => 1,
1011
  'editable' => 1,
1012
- 'default' => __('No','ultimatemember'),
1013
- 'options' => array( __('No','ultimatemember'), __('Yes','ultimatemember') ),
1014
  'account_only' => true,
1015
  'required_opt' => array( 'members_page', 1 ),
1016
  ),
1017
 
1018
  'delete_account' => array(
1019
- 'title' => __('Delete Account','ultimatemember'),
1020
  'metakey' => 'delete_account',
1021
  'type' => 'radio',
1022
- 'label' => __('Delete Account','ultimatemember'),
1023
- 'help' => __('If you confirm, everything related to your profile will be deleted permanently from the site','ultimatemember'),
1024
  'required' => 0,
1025
  'public' => 1,
1026
  'editable' => 1,
1027
- 'default' => __('No','ultimatemember'),
1028
- 'options' => array( __('Yes','ultimatemember') , __('No','ultimatemember') ),
1029
  'account_only' => true,
1030
  ),
1031
 
1032
  'single_user_password' => array(
1033
- 'title' => __('Password','ultimatemember'),
1034
  'metakey' => 'single_user_password',
1035
  'type' => 'password',
1036
- 'label' => __('Password','ultimatemember'),
1037
  'required' => 1,
1038
  'public' => 1,
1039
  'editable' => 1,
@@ -1140,28 +1140,28 @@ class UM_Builtin {
1140
  ***/
1141
  function validation_types(){
1142
 
1143
- $array[0] = __('None','ultimatemember');
1144
- $array['alphabetic'] = __('Alphabetic value only','ultimatemember');
1145
- $array['alpha_numeric'] = __('Alpha-numeric value','ultimatemember');
1146
- $array['english'] = __('English letters only','ultimatemember');
1147
- $array['facebook_url'] = __('Facebook URL','ultimatemember');
1148
- $array['google_url'] = __('Google+ URL','ultimatemember');
1149
- $array['instagram_url'] = __('Instagram URL','ultimatemember');
1150
- $array['linkedin_url'] = __('LinkedIn URL','ultimatemember');
1151
- $array['vk_url'] = __('VKontakte URL','ultimatemember');
1152
- $array['lowercase'] = __('Lowercase only','ultimatemember');
1153
- $array['numeric'] = __('Numeric value only','ultimatemember');
1154
- $array['phone_number'] = __('Phone Number','ultimatemember');
1155
- $array['skype'] = __('Skype ID','ultimatemember');
1156
- $array['soundcloud'] = __('SoundCloud Profile','ultimatemember');
1157
- $array['twitter_url'] = __('Twitter URL','ultimatemember');
1158
- $array['unique_email'] = __('Unique E-mail','ultimatemember');
1159
- $array['unique_value'] = __('Unique Metakey value','ultimatemember');
1160
- $array['unique_username'] = __('Unique Username','ultimatemember');
1161
- $array['unique_username_or_email'] = __('Unique Username/E-mail','ultimatemember');
1162
- $array['url'] = __('Website URL','ultimatemember');
1163
- $array['youtube_url'] = __('YouTube Profile','ultimatemember');
1164
- $array['custom'] = __('Custom Validation','ultimatemember');
1165
 
1166
  $array = apply_filters('um_admin_field_validation_hook', $array );
1167
  return $array;
@@ -1175,442 +1175,442 @@ class UM_Builtin {
1175
 
1176
  case 'languages':
1177
  $array = array(
1178
- "aa" => __("Afar","ultimatemember"),
1179
- "ab" => __("Abkhazian","ultimatemember"),
1180
- "ae" => __("Avestan","ultimatemember"),
1181
- "af" => __("Afrikaans","ultimatemember"),
1182
- "ak" => __("Akan","ultimatemember"),
1183
- "am" => __("Amharic","ultimatemember"),
1184
- "an" => __("Aragonese","ultimatemember"),
1185
- "ar" => __("Arabic","ultimatemember"),
1186
- "as" => __("Assamese","ultimatemember"),
1187
- "av" => __("Avaric","ultimatemember"),
1188
- "ay" => __("Aymara","ultimatemember"),
1189
- "az" => __("Azerbaijani","ultimatemember"),
1190
- "ba" => __("Bashkir","ultimatemember"),
1191
- "be" => __("Belarusian","ultimatemember"),
1192
- "bg" => __("Bulgarian","ultimatemember"),
1193
- "bh" => __("Bihari","ultimatemember"),
1194
- "bi" => __("Bislama","ultimatemember"),
1195
- "bm" => __("Bambara","ultimatemember"),
1196
- "bn" => __("Bengali","ultimatemember"),
1197
- "bo" => __("Tibetan","ultimatemember"),
1198
- "br" => __("Breton","ultimatemember"),
1199
- "bs" => __("Bosnian","ultimatemember"),
1200
- "ca" => __("Catalan","ultimatemember"),
1201
- "ce" => __("Chechen","ultimatemember"),
1202
- "ch" => __("Chamorro","ultimatemember"),
1203
- "co" => __("Corsican","ultimatemember"),
1204
- "cr" => __("Cree","ultimatemember"),
1205
- "cs" => __("Czech","ultimatemember"),
1206
- "cu" => __("Church Slavic","ultimatemember"),
1207
- "cv" => __("Chuvash","ultimatemember"),
1208
- "cy" => __("Welsh","ultimatemember"),
1209
- "da" => __("Danish","ultimatemember"),
1210
- "de" => __("German","ultimatemember"),
1211
- "dv" => __("Divehi","ultimatemember"),
1212
- "dz" => __("Dzongkha","ultimatemember"),
1213
- "ee" => __("Ewe","ultimatemember"),
1214
- "el" => __("Greek","ultimatemember"),
1215
- "en" => __("English","ultimatemember"),
1216
- "eo" => __("Esperanto","ultimatemember"),
1217
- "es" => __("Spanish","ultimatemember"),
1218
- "et" => __("Estonian","ultimatemember"),
1219
- "eu" => __("Basque","ultimatemember"),
1220
- "fa" => __("Persian","ultimatemember"),
1221
- "ff" => __("Fulah","ultimatemember"),
1222
- "fi" => __("Finnish","ultimatemember"),
1223
- "fj" => __("Fijian","ultimatemember"),
1224
- "fo" => __("Faroese","ultimatemember"),
1225
- "fr" => __("French","ultimatemember"),
1226
- "fy" => __("Western Frisian","ultimatemember"),
1227
- "ga" => __("Irish","ultimatemember"),
1228
- "gd" => __("Scottish Gaelic","ultimatemember"),
1229
- "gl" => __("Galician","ultimatemember"),
1230
- "gn" => __("Guarani","ultimatemember"),
1231
- "gu" => __("Gujarati","ultimatemember"),
1232
- "gv" => __("Manx","ultimatemember"),
1233
- "ha" => __("Hausa","ultimatemember"),
1234
- "he" => __("Hebrew","ultimatemember"),
1235
- "hi" => __("Hindi","ultimatemember"),
1236
- "ho" => __("Hiri Motu","ultimatemember"),
1237
- "hr" => __("Croatian","ultimatemember"),
1238
- "ht" => __("Haitian","ultimatemember"),
1239
- "hu" => __("Hungarian","ultimatemember"),
1240
- "hy" => __("Armenian","ultimatemember"),
1241
- "hz" => __("Herero","ultimatemember"),
1242
- "ia" => __("Interlingua (International Auxiliary Language Association)","ultimatemember"),
1243
- "id" => __("Indonesian","ultimatemember"),
1244
- "ie" => __("Interlingue","ultimatemember"),
1245
- "ig" => __("Igbo","ultimatemember"),
1246
- "ii" => __("Sichuan Yi","ultimatemember"),
1247
- "ik" => __("Inupiaq","ultimatemember"),
1248
- "io" => __("Ido","ultimatemember"),
1249
- "is" => __("Icelandic","ultimatemember"),
1250
- "it" => __("Italian","ultimatemember"),
1251
- "iu" => __("Inuktitut","ultimatemember"),
1252
- "ja" => __("Japanese","ultimatemember"),
1253
- "jv" => __("Javanese","ultimatemember"),
1254
- "ka" => __("Georgian","ultimatemember"),
1255
- "kg" => __("Kongo","ultimatemember"),
1256
- "ki" => __("Kikuyu","ultimatemember"),
1257
- "kj" => __("Kwanyama","ultimatemember"),
1258
- "kk" => __("Kazakh","ultimatemember"),
1259
- "kl" => __("Kalaallisut","ultimatemember"),
1260
- "km" => __("Khmer","ultimatemember"),
1261
- "kn" => __("Kannada","ultimatemember"),
1262
- "ko" => __("Korean","ultimatemember"),
1263
- "kr" => __("Kanuri","ultimatemember"),
1264
- "ks" => __("Kashmiri","ultimatemember"),
1265
- "ku" => __("Kurdish","ultimatemember"),
1266
- "kv" => __("Komi","ultimatemember"),
1267
- "kw" => __("Cornish","ultimatemember"),
1268
- "ky" => __("Kirghiz","ultimatemember"),
1269
- "la" => __("Latin","ultimatemember"),
1270
- "lb" => __("Luxembourgish","ultimatemember"),
1271
- "lg" => __("Ganda","ultimatemember"),
1272
- "li" => __("Limburgish","ultimatemember"),
1273
- "ln" => __("Lingala","ultimatemember"),
1274
- "lo" => __("Lao","ultimatemember"),
1275
- "lt" => __("Lithuanian","ultimatemember"),
1276
- "lu" => __("Luba-Katanga","ultimatemember"),
1277
- "lv" => __("Latvian","ultimatemember"),
1278
- "mg" => __("Malagasy","ultimatemember"),
1279
- "mh" => __("Marshallese","ultimatemember"),
1280
- "mi" => __("Maori","ultimatemember"),
1281
- "mk" => __("Macedonian","ultimatemember"),
1282
- "ml" => __("Malayalam","ultimatemember"),
1283
- "mn" => __("Mongolian","ultimatemember"),
1284
- "mr" => __("Marathi","ultimatemember"),
1285
- "ms" => __("Malay","ultimatemember"),
1286
- "mt" => __("Maltese","ultimatemember"),
1287
- "my" => __("Burmese","ultimatemember"),
1288
- "na" => __("Nauru","ultimatemember"),
1289
- "nb" => __("Norwegian Bokmal","ultimatemember"),
1290
- "nd" => __("North Ndebele","ultimatemember"),
1291
- "ne" => __("Nepali","ultimatemember"),
1292
- "ng" => __("Ndonga","ultimatemember"),
1293
- "nl" => __("Dutch","ultimatemember"),
1294
- "nn" => __("Norwegian Nynorsk","ultimatemember"),
1295
- "no" => __("Norwegian","ultimatemember"),
1296
- "nr" => __("South Ndebele","ultimatemember"),
1297
- "nv" => __("Navajo","ultimatemember"),
1298
- "ny" => __("Chichewa","ultimatemember"),
1299
- "oc" => __("Occitan","ultimatemember"),
1300
- "oj" => __("Ojibwa","ultimatemember"),
1301
- "om" => __("Oromo","ultimatemember"),
1302
- "or" => __("Oriya","ultimatemember"),
1303
- "os" => __("Ossetian","ultimatemember"),
1304
- "pa" => __("Panjabi","ultimatemember"),
1305
- "pi" => __("Pali","ultimatemember"),
1306
- "pl" => __("Polish","ultimatemember"),
1307
- "ps" => __("Pashto","ultimatemember"),
1308
- "pt" => __("Portuguese","ultimatemember"),
1309
- "qu" => __("Quechua","ultimatemember"),
1310
- "rm" => __("Raeto-Romance","ultimatemember"),
1311
- "rn" => __("Kirundi","ultimatemember"),
1312
- "ro" => __("Romanian","ultimatemember"),
1313
- "ru" => __("Russian","ultimatemember"),
1314
- "rw" => __("Kinyarwanda","ultimatemember"),
1315
- "sa" => __("Sanskrit","ultimatemember"),
1316
- "sc" => __("Sardinian","ultimatemember"),
1317
- "sd" => __("Sindhi","ultimatemember"),
1318
- "se" => __("Northern Sami","ultimatemember"),
1319
- "sg" => __("Sango","ultimatemember"),
1320
- "si" => __("Sinhala","ultimatemember"),
1321
- "sk" => __("Slovak","ultimatemember"),
1322
- "sl" => __("Slovenian","ultimatemember"),
1323
- "sm" => __("Samoan","ultimatemember"),
1324
- "sn" => __("Shona","ultimatemember"),
1325
- "so" => __("Somali","ultimatemember"),
1326
- "sq" => __("Albanian","ultimatemember"),
1327
- "sr" => __("Serbian","ultimatemember"),
1328
- "ss" => __("Swati","ultimatemember"),
1329
- "st" => __("Southern Sotho","ultimatemember"),
1330
- "su" => __("Sundanese","ultimatemember"),
1331
- "sv" => __("Swedish","ultimatemember"),
1332
- "sw" => __("Swahili","ultimatemember"),
1333
- "ta" => __("Tamil","ultimatemember"),
1334
- "te" => __("Telugu","ultimatemember"),
1335
- "tg" => __("Tajik","ultimatemember"),
1336
- "th" => __("Thai","ultimatemember"),
1337
- "ti" => __("Tigrinya","ultimatemember"),
1338
- "tk" => __("Turkmen","ultimatemember"),
1339
- "tl" => __("Tagalog","ultimatemember"),
1340
- "tn" => __("Tswana","ultimatemember"),
1341
- "to" => __("Tonga","ultimatemember"),
1342
- "tr" => __("Turkish","ultimatemember"),
1343
- "ts" => __("Tsonga","ultimatemember"),
1344
- "tt" => __("Tatar","ultimatemember"),
1345
- "tw" => __("Twi","ultimatemember"),
1346
- "ty" => __("Tahitian","ultimatemember"),
1347
- "ug" => __("Uighur","ultimatemember"),
1348
- "uk" => __("Ukrainian","ultimatemember"),
1349
- "ur" => __("Urdu","ultimatemember"),
1350
- "uz" => __("Uzbek","ultimatemember"),
1351
- "ve" => __("Venda","ultimatemember"),
1352
- "vi" => __("Vietnamese","ultimatemember"),
1353
- "vo" => __("Volapuk","ultimatemember"),
1354
- "wa" => __("Walloon","ultimatemember"),
1355
- "wo" => __("Wolof","ultimatemember"),
1356
- "xh" => __("Xhosa","ultimatemember"),
1357
- "yi" => __("Yiddish","ultimatemember"),
1358
- "yo" => __("Yoruba","ultimatemember"),
1359
- "za" => __("Zhuang","ultimatemember"),
1360
- "zh" => __("Chinese","ultimatemember"),
1361
- "zu" => __("Zulu","ultimatemember")
1362
  );
1363
  break;
1364
 
1365
  case 'countries':
1366
  $array = array (
1367
- 'AF' => __('Afghanistan',"ultimatemember"),
1368
- 'AX' => __('Åland Islands',"ultimatemember"),
1369
- 'AL' => __('Albania',"ultimatemember"),
1370
- 'DZ' => __('Algeria',"ultimatemember"),
1371
- 'AS' => __('American Samoa',"ultimatemember"),
1372
- 'AD' => __('Andorra',"ultimatemember"),
1373
- 'AO' => __('Angola',"ultimatemember"),
1374
- 'AI' => __('Anguilla',"ultimatemember"),
1375
- 'AQ' => __('Antarctica',"ultimatemember"),
1376
- 'AG' => __('Antigua and Barbuda',"ultimatemember"),
1377
- 'AR' => __('Argentina',"ultimatemember"),
1378
- 'AM' => __('Armenia',"ultimatemember"),
1379
- 'AW' => __('Aruba',"ultimatemember"),
1380
- 'AU' => __('Australia',"ultimatemember"),
1381
- 'AT' => __('Austria',"ultimatemember"),
1382
- 'AZ' => __('Azerbaijan',"ultimatemember"),
1383
- 'BS' => __('Bahamas',"ultimatemember"),
1384
- 'BH' => __('Bahrain',"ultimatemember"),
1385
- 'BD' => __('Bangladesh',"ultimatemember"),
1386
- 'BB' => __('Barbados',"ultimatemember"),
1387
- 'BY' => __('Belarus',"ultimatemember"),
1388
- 'BE' => __('Belgium',"ultimatemember"),
1389
- 'BZ' => __('Belize',"ultimatemember"),
1390
- 'BJ' => __('Benin',"ultimatemember"),
1391
- 'BM' => __('Bermuda',"ultimatemember"),
1392
- 'BT' => __('Bhutan',"ultimatemember"),
1393
- 'BO' => __('Bolivia, Plurinational State of',"ultimatemember"),
1394
- 'BA' => __('Bosnia and Herzegovina',"ultimatemember"),
1395
- 'BW' => __('Botswana',"ultimatemember"),
1396
- 'BV' => __('Bouvet Island',"ultimatemember"),
1397
- 'BR' => __('Brazil',"ultimatemember"),
1398
- 'IO' => __('British Indian Ocean Territory',"ultimatemember"),
1399
- 'BN' => __('Brunei Darussalam',"ultimatemember"),
1400
- 'BG' => __('Bulgaria',"ultimatemember"),
1401
- 'BF' => __('Burkina Faso',"ultimatemember"),
1402
- 'BI' => __('Burundi',"ultimatemember"),
1403
- 'KH' => __('Cambodia',"ultimatemember"),
1404
- 'CM' => __('Cameroon',"ultimatemember"),
1405
- 'CA' => __('Canada',"ultimatemember"),
1406
- 'CV' => __('Cape Verde',"ultimatemember"),
1407
- 'KY' => __('Cayman Islands',"ultimatemember"),
1408
- 'CF' => __('Central African Republic',"ultimatemember"),
1409
- 'TD' => __('Chad',"ultimatemember"),
1410
- 'CL' => __('Chile',"ultimatemember"),
1411
- 'CN' => __('China',"ultimatemember"),
1412
- 'CX' => __('Christmas Island',"ultimatemember"),
1413
- 'CC' => __('Cocos (Keeling) Islands',"ultimatemember"),
1414
- 'CO' => __('Colombia',"ultimatemember"),
1415
- 'KM' => __('Comoros',"ultimatemember"),
1416
- 'CG' => __('Congo',"ultimatemember"),
1417
- 'CD' => __('Congo, the Democratic Republic of the',"ultimatemember"),
1418
- 'CK' => __('Cook Islands',"ultimatemember"),
1419
- 'CR' => __('Costa Rica',"ultimatemember"),
1420
- 'CI' => __("Côte d'Ivoire","ultimatemember"),
1421
- 'HR' => __('Croatia',"ultimatemember"),
1422
- 'CU' => __('Cuba',"ultimatemember"),
1423
- 'CY' => __('Cyprus',"ultimatemember"),
1424
- 'CZ' => __('Czech Republic',"ultimatemember"),
1425
- 'DK' => __('Denmark',"ultimatemember"),
1426
- 'DJ' => __('Djibouti',"ultimatemember"),
1427
- 'DM' => __('Dominica',"ultimatemember"),
1428
- 'DO' => __('Dominican Republic',"ultimatemember"),
1429
- 'EC' => __('Ecuador',"ultimatemember"),
1430
- 'EG' => __('Egypt',"ultimatemember"),
1431
- 'SV' => __('El Salvador',"ultimatemember"),
1432
- 'GQ' => __('Equatorial Guinea',"ultimatemember"),
1433
- 'ER' => __('Eritrea',"ultimatemember"),
1434
- 'EE' => __('Estonia',"ultimatemember"),
1435
- 'ET' => __('Ethiopia',"ultimatemember"),
1436
- 'FK' => __('Falkland Islands (Malvinas)',"ultimatemember"),
1437
- 'FO' => __('Faroe Islands',"ultimatemember"),
1438
- 'FJ' => __('Fiji',"ultimatemember"),
1439
- 'FI' => __('Finland',"ultimatemember"),
1440
- 'FR' => __('France',"ultimatemember"),
1441
- 'GF' => __('French Guiana',"ultimatemember"),
1442
- 'PF' => __('French Polynesia',"ultimatemember"),
1443
- 'TF' => __('French Southern Territories',"ultimatemember"),
1444
- 'GA' => __('Gabon',"ultimatemember"),
1445
- 'GM' => __('Gambia',"ultimatemember"),
1446
- 'GE' => __('Georgia',"ultimatemember"),
1447
- 'DE' => __('Germany',"ultimatemember"),
1448
- 'GH' => __('Ghana',"ultimatemember"),
1449
- 'GI' => __('Gibraltar',"ultimatemember"),
1450
- 'GR' => __('Greece',"ultimatemember"),
1451
- 'GL' => __('Greenland',"ultimatemember"),
1452
- 'GD' => __('Grenada',"ultimatemember"),
1453
- 'GP' => __('Guadeloupe',"ultimatemember"),
1454
- 'GU' => __('Guam',"ultimatemember"),
1455
- 'GT' => __('Guatemala',"ultimatemember"),
1456
- 'GG' => __('Guernsey',"ultimatemember"),
1457
- 'GN' => __('Guinea',"ultimatemember"),
1458
- 'GW' => __('Guinea-Bissau',"ultimatemember"),
1459
- 'GY' => __('Guyana',"ultimatemember"),
1460
- 'HT' => __('Haiti',"ultimatemember"),
1461
- 'HM' => __('Heard Island and McDonald Islands',"ultimatemember"),
1462
- 'VA' => __('Holy See (Vatican City State)',"ultimatemember"),
1463
- 'HN' => __('Honduras',"ultimatemember"),
1464
- 'HK' => __('Hong Kong',"ultimatemember"),
1465
- 'HU' => __('Hungary',"ultimatemember"),
1466
- 'IS' => __('Iceland',"ultimatemember"),
1467
- 'IN' => __('India',"ultimatemember"),
1468
- 'ID' => __('Indonesia',"ultimatemember"),
1469
- 'IR' => __('Iran, Islamic Republic of',"ultimatemember"),
1470
- 'IQ' => __('Iraq',"ultimatemember"),
1471
- 'IE' => __('Ireland',"ultimatemember"),
1472
- 'IM' => __('Isle of Man',"ultimatemember"),
1473
- 'IL' => __('Israel',"ultimatemember"),
1474
- 'IT' => __('Italy',"ultimatemember"),
1475
- 'JM' => __('Jamaica',"ultimatemember"),
1476
- 'JP' => __('Japan',"ultimatemember"),
1477
- 'JE' => __('Jersey',"ultimatemember"),
1478
- 'JO' => __('Jordan',"ultimatemember"),
1479
- 'KZ' => __('Kazakhstan',"ultimatemember"),
1480
- 'KE' => __('Kenya',"ultimatemember"),
1481
- 'KI' => __('Kiribati',"ultimatemember"),
1482
- 'KP' => __("Korea, Democratic People's Republic of","ultimatemember"),
1483
- 'KR' => __('Korea, Republic of',"ultimatemember"),
1484
- 'KW' => __('Kuwait',"ultimatemember"),
1485
- 'KG' => __('Kyrgyzstan',"ultimatemember"),
1486
- 'LA' => __("Lao People's Democratic Republic","ultimatemember"),
1487
- 'LV' => __('Latvia',"ultimatemember"),
1488
- 'LB' => __('Lebanon',"ultimatemember"),
1489
- 'LS' => __('Lesotho',"ultimatemember"),
1490
- 'LR' => __('Liberia',"ultimatemember"),
1491
- 'LY' => __('Libyan Arab Jamahiriya',"ultimatemember"),
1492
- 'LI' => __('Liechtenstein',"ultimatemember"),
1493
- 'LT' => __('Lithuania',"ultimatemember"),
1494
- 'LU' => __('Luxembourg',"ultimatemember"),
1495
- 'MO' => __('Macao',"ultimatemember"),
1496
- 'MK' => __('Macedonia, the former Yugoslav Republic of',"ultimatemember"),
1497
- 'MG' => __('Madagascar',"ultimatemember"),
1498
- 'MW' => __('Malawi',"ultimatemember"),
1499
- 'MY' => __('Malaysia',"ultimatemember"),
1500
- 'MV' => __('Maldives',"ultimatemember"),
1501
- 'ML' => __('Mali',"ultimatemember"),
1502
- 'MT' => __('Malta',"ultimatemember"),
1503
- 'MH' => __('Marshall Islands',"ultimatemember"),
1504
- 'MQ' => __('Martinique',"ultimatemember"),
1505
- 'MR' => __('Mauritania',"ultimatemember"),
1506
- 'MU' => __('Mauritius',"ultimatemember"),
1507
- 'YT' => __('Mayotte',"ultimatemember"),
1508
- 'MX' => __('Mexico',"ultimatemember"),
1509
- 'FM' => __('Micronesia, Federated States of',"ultimatemember"),
1510
- 'MD' => __('Moldova, Republic of',"ultimatemember"),
1511
- 'MC' => __('Monaco',"ultimatemember"),
1512
- 'MN' => __('Mongolia',"ultimatemember"),
1513
- 'ME' => __('Montenegro',"ultimatemember"),
1514
- 'MS' => __('Montserrat',"ultimatemember"),
1515
- 'MA' => __('Morocco',"ultimatemember"),
1516
- 'MZ' => __('Mozambique',"ultimatemember"),
1517
- 'MM' => __('Myanmar',"ultimatemember"),
1518
- 'NA' => __('Namibia',"ultimatemember"),
1519
- 'NR' => __('Nauru',"ultimatemember"),
1520
- 'NP' => __('Nepal',"ultimatemember"),
1521
- 'NL' => __('Netherlands',"ultimatemember"),
1522
- 'AN' => __('Netherlands Antilles',"ultimatemember"),
1523
- 'NC' => __('New Caledonia',"ultimatemember"),
1524
- 'NZ' => __('New Zealand',"ultimatemember"),
1525
- 'NI' => __('Nicaragua',"ultimatemember"),
1526
- 'NE' => __('Niger',"ultimatemember"),
1527
- 'NG' => __('Nigeria',"ultimatemember"),
1528
- 'NU' => __('Niue',"ultimatemember"),
1529
- 'NF' => __('Norfolk Island',"ultimatemember"),
1530
- 'MP' => __('Northern Mariana Islands',"ultimatemember"),
1531
- 'NO' => __('Norway',"ultimatemember"),
1532
- 'OM' => __('Oman',"ultimatemember"),
1533
- 'PK' => __('Pakistan',"ultimatemember"),
1534
- 'PW' => __('Palau',"ultimatemember"),
1535
- 'PS' => __('Palestine',"ultimatemember"),
1536
- 'PA' => __('Panama',"ultimatemember"),
1537
- 'PG' => __('Papua New Guinea',"ultimatemember"),
1538
- 'PY' => __('Paraguay',"ultimatemember"),
1539
- 'PE' => __('Peru',"ultimatemember"),
1540
- 'PH' => __('Philippines',"ultimatemember"),
1541
- 'PN' => __('Pitcairn',"ultimatemember"),
1542
- 'PL' => __('Poland',"ultimatemember"),
1543
- 'PT' => __('Portugal',"ultimatemember"),
1544
- 'PR' => __('Puerto Rico',"ultimatemember"),
1545
- 'QA' => __('Qatar',"ultimatemember"),
1546
- 'RE' => __('Réunion',"ultimatemember"),
1547
- 'RO' => __('Romania',"ultimatemember"),
1548
- 'RU' => __('Russian Federation',"ultimatemember"),
1549
- 'RW' => __('Rwanda',"ultimatemember"),
1550
- 'BL' => __('Saint Barthélemy',"ultimatemember"),
1551
- 'SH' => __('Saint Helena',"ultimatemember"),
1552
- 'KN' => __('Saint Kitts and Nevis',"ultimatemember"),
1553
- 'LC' => __('Saint Lucia',"ultimatemember"),
1554
- 'MF' => __('Saint Martin (French part)',"ultimatemember"),
1555
- 'PM' => __('Saint Pierre and Miquelon',"ultimatemember"),
1556
- 'VC' => __('Saint Vincent and the Grenadines',"ultimatemember"),
1557
- 'WS' => __('Samoa',"ultimatemember"),
1558
- 'SM' => __('San Marino',"ultimatemember"),
1559
- 'ST' => __('Sao Tome and Principe',"ultimatemember"),
1560
- 'SA' => __('Saudi Arabia',"ultimatemember"),
1561
- 'SN' => __('Senegal',"ultimatemember"),
1562
- 'RS' => __('Serbia',"ultimatemember"),
1563
- 'SC' => __('Seychelles',"ultimatemember"),
1564
- 'SL' => __('Sierra Leone',"ultimatemember"),
1565
- 'SG' => __('Singapore',"ultimatemember"),
1566
- 'SK' => __('Slovakia',"ultimatemember"),
1567
- 'SI' => __('Slovenia',"ultimatemember"),
1568
- 'SB' => __('Solomon Islands',"ultimatemember"),
1569
- 'SO' => __('Somalia',"ultimatemember"),
1570
- 'ZA' => __('South Africa',"ultimatemember"),
1571
- 'GS' => __('South Georgia and the South Sandwich Islands',"ultimatemember"),
1572
- 'SS' => __('South Sudan',"ultimatemember"),
1573
- 'ES' => __('Spain',"ultimatemember"),
1574
- 'LK' => __('Sri Lanka',"ultimatemember"),
1575
- 'SD' => __('Sudan',"ultimatemember"),
1576
- 'SR' => __('Suriname',"ultimatemember"),
1577
- 'SJ' => __('Svalbard and Jan Mayen',"ultimatemember"),
1578
- 'SZ' => __('Swaziland',"ultimatemember"),
1579
- 'SE' => __('Sweden',"ultimatemember"),
1580
- 'CH' => __('Switzerland',"ultimatemember"),
1581
- 'SY' => __('Syrian Arab Republic',"ultimatemember"),
1582
- 'TW' => __('Taiwan, Province of China',"ultimatemember"),
1583
- 'TJ' => __('Tajikistan',"ultimatemember"),
1584
- 'TZ' => __('Tanzania, United Republic of',"ultimatemember"),
1585
- 'TH' => __('Thailand',"ultimatemember"),
1586
- 'TL' => __('Timor-Leste',"ultimatemember"),
1587
- 'TG' => __('Togo',"ultimatemember"),
1588
- 'TK' => __('Tokelau',"ultimatemember"),
1589
- 'TO' => __('Tonga',"ultimatemember"),
1590
- 'TT' => __('Trinidad and Tobago',"ultimatemember"),
1591
- 'TN' => __('Tunisia',"ultimatemember"),
1592
- 'TR' => __('Turkey',"ultimatemember"),
1593
- 'TM' => __('Turkmenistan',"ultimatemember"),
1594
- 'TC' => __('Turks and Caicos Islands',"ultimatemember"),
1595
- 'TV' => __('Tuvalu',"ultimatemember"),
1596
- 'UG' => __('Uganda',"ultimatemember"),
1597
- 'UA' => __('Ukraine',"ultimatemember"),
1598
- 'AE' => __('United Arab Emirates',"ultimatemember"),
1599
- 'GB' => __('United Kingdom',"ultimatemember"),
1600
- 'US' => __('United States',"ultimatemember"),
1601
- 'UM' => __('United States Minor Outlying Islands',"ultimatemember"),
1602
- 'UY' => __('Uruguay',"ultimatemember"),
1603
- 'UZ' => __('Uzbekistan',"ultimatemember"),
1604
- 'VU' => __('Vanuatu',"ultimatemember"),
1605
- 'VE' => __('Venezuela, Bolivarian Republic of',"ultimatemember"),
1606
- 'VN' => __('Viet Nam',"ultimatemember"),
1607
- 'VG' => __('Virgin Islands, British',"ultimatemember"),
1608
- 'VI' => __('Virgin Islands, U.S.',"ultimatemember"),
1609
- 'WF' => __('Wallis and Futuna',"ultimatemember"),
1610
- 'EH' => __('Western Sahara',"ultimatemember"),
1611
- 'YE' => __('Yemen',"ultimatemember"),
1612
- 'ZM' => __('Zambia',"ultimatemember"),
1613
- 'ZW' => __('Zimbabwe',"ultimatemember"),
1614
  );
1615
  break;
1616
 
79
  function unique_field_err( $key ){
80
  global $ultimatemember;
81
  if ( empty( $key ) ) return 'Please provide a meta key';
82
+ if ( isset( $this->core_fields[ $key ] ) ) return __('Your meta key is a reserved core field and cannot be used','ultimate-member');
83
+ if ( isset( $this->predefined_fields[ $key ] ) ) return __('Your meta key is a predefined reserved key and cannot be used','ultimate-member');
84
+ if ( isset( $this->saved_fields[ $key ] ) ) return __('Your meta key already exists in your fields list','ultimate-member');
85
+ if ( !$ultimatemember->validation->safe_string( $key ) ) return __('Your meta key contains illegal characters. Please correct it.','ultimate-member');
86
  return 0;
87
  }
88
 
91
  ***/
92
  function date_range_start_err( $date ) {
93
  global $ultimatemember;
94
+ if ( empty( $date ) ) return __('Please provide a date range beginning','ultimate-member');
95
+ if ( !$ultimatemember->validation->validate_date( $date ) ) return __('Please enter a valid start date in the date range','ultimate-member');
96
  return 0;
97
  }
98
 
101
  ***/
102
  function date_range_end_err( $date, $start_date ) {
103
  global $ultimatemember;
104
+ if ( empty( $date ) ) return __('Please provide a date range end','ultimate-member');
105
+ if ( !$ultimatemember->validation->validate_date( $date ) ) return __('Please enter a valid end date in the date range','ultimate-member');
106
+ if ( strtotime( $date ) <= strtotime( $start_date ) ) return __('The end of date range must be greater than the start of date range','ultimate-member');
107
  return 0;
108
  }
109
 
139
  'validate' => array(
140
  '_title' => array(
141
  'mode' => 'required',
142
+ 'error' => __('You must provide a title','ultimate-member')
143
  ),
144
  '_metakey' => array(
145
  'mode' => 'unique',
148
  ),
149
 
150
  'number' => array(
151
+ 'name' => __('Number','ultimate-member'),
152
  'col1' => array('_title','_metakey','_help','_default','_min','_visibility'),
153
  'col2' => array('_label','_placeholder','_public','_roles','_validate','_custom_validate','_max'),
154
  'col3' => array('_required','_editable','_icon'),
155
  'validate' => array(
156
  '_title' => array(
157
  'mode' => 'required',
158
+ 'error' => __('You must provide a title','ultimate-member')
159
  ),
160
  '_metakey' => array(
161
  'mode' => 'unique',
171
  'validate' => array(
172
  '_title' => array(
173
  'mode' => 'required',
174
+ 'error' => __('You must provide a title','ultimate-member')
175
  ),
176
  '_metakey' => array(
177
  'mode' => 'unique',
187
  'validate' => array(
188
  '_title' => array(
189
  'mode' => 'required',
190
+ 'error' => __('You must provide a title','ultimate-member')
191
  ),
192
  '_metakey' => array(
193
  'mode' => 'unique',
194
  ),
195
  '_options' => array(
196
  'mode' => 'required',
197
+ 'error' => __('You have not added any choices yet.','ultimate-member')
198
  ),
199
  )
200
  ),
207
  'validate' => array(
208
  '_title' => array(
209
  'mode' => 'required',
210
+ 'error' => __('You must provide a title','ultimate-member')
211
  ),
212
  '_metakey' => array(
213
  'mode' => 'unique',
214
  ),
215
  '_options' => array(
216
  'mode' => 'required',
217
+ 'error' => __('You have not added any choices yet.','ultimate-member')
218
  ),
219
  )
220
  ),
227
  'validate' => array(
228
  '_title' => array(
229
  'mode' => 'required',
230
+ 'error' => __('You must provide a title','ultimate-member')
231
  ),
232
  '_metakey' => array(
233
  'mode' => 'unique',
234
  ),
235
  '_options' => array(
236
  'mode' => 'required',
237
+ 'error' => __('You have not added any choices yet.','ultimate-member')
238
  ),
239
  )
240
  ),
247
  'validate' => array(
248
  '_title' => array(
249
  'mode' => 'required',
250
+ 'error' => __('You must provide a title','ultimate-member')
251
  ),
252
  '_metakey' => array(
253
  'mode' => 'unique',
254
  ),
255
  '_options' => array(
256
  'mode' => 'required',
257
+ 'error' => __('You have not added any choices yet.','ultimate-member')
258
  ),
259
  )
260
  ),
267
  'validate' => array(
268
  '_title' => array(
269
  'mode' => 'required',
270
+ 'error' => __('You must provide a title','ultimate-member')
271
  ),
272
  '_metakey' => array(
273
  'mode' => 'unique',
283
  'validate' => array(
284
  '_title' => array(
285
  'mode' => 'required',
286
+ 'error' => __('You must provide a title','ultimate-member')
287
  ),
288
  '_metakey' => array(
289
  'mode' => 'unique',
299
  'validate' => array(
300
  '_title' => array(
301
  'mode' => 'required',
302
+ 'error' => __('You must provide a title','ultimate-member')
303
  ),
304
  '_metakey' => array(
305
  'mode' => 'unique',
306
  ),
307
  '_max_size' => array(
308
  'mode' => 'numeric',
309
+ 'error' => __('Please enter a valid size','ultimate-member')
310
  ),
311
  )
312
  ),
319
  'validate' => array(
320
  '_title' => array(
321
  'mode' => 'required',
322
+ 'error' => __('You must provide a title','ultimate-member')
323
  ),
324
  '_metakey' => array(
325
  'mode' => 'unique',
326
  ),
327
  '_max_size' => array(
328
  'mode' => 'numeric',
329
+ 'error' => __('Please enter a valid size','ultimate-member')
330
  ),
331
  )
332
  ),
339
  'validate' => array(
340
  '_title' => array(
341
  'mode' => 'required',
342
+ 'error' => __('You must provide a title','ultimate-member')
343
  ),
344
  '_metakey' => array(
345
  'mode' => 'unique',
346
  ),
347
  '_years' => array(
348
  'mode' => 'numeric',
349
+ 'error' => __('Number of years is not valid','ultimate-member')
350
  ),
351
  '_range_start' => array(
352
  'mode' => 'range-start',
365
  'validate' => array(
366
  '_title' => array(
367
  'mode' => 'required',
368
+ 'error' => __('You must provide a title','ultimate-member')
369
  ),
370
  '_metakey' => array(
371
  'mode' => 'unique',
381
  'validate' => array(
382
  '_title' => array(
383
  'mode' => 'required',
384
+ 'error' => __('You must provide a title','ultimate-member')
385
  ),
386
  '_metakey' => array(
387
  'mode' => 'unique',
398
  'validate' => array(
399
  '_title' => array(
400
  'mode' => 'required',
401
+ 'error' => __('You must provide a title','ultimate-member')
402
  ),
403
  )
404
  ),
411
  'validate' => array(
412
  '_title' => array(
413
  'mode' => 'required',
414
+ 'error' => __('You must provide a title','ultimate-member')
415
  ),
416
  '_content' => array(
417
  'mode' => 'required',
418
+ 'error' => __('You must add a shortcode to the content area','ultimate-member')
419
  ),
420
  )
421
  ),
428
  'validate' => array(
429
  '_title' => array(
430
  'mode' => 'required',
431
+ 'error' => __('You must provide a title','ultimate-member')
432
  ),
433
  )
434
  ),
441
  'validate' => array(
442
  '_title' => array(
443
  'mode' => 'required',
444
+ 'error' => __('You must provide a title','ultimate-member')
445
  ),
446
  )
447
  ),
454
  'validate' => array(
455
  '_title' => array(
456
  'mode' => 'required',
457
+ 'error' => __('You must provide a title','ultimate-member')
458
  ),
459
  '_metakey' => array(
460
  'mode' => 'unique',
470
  'validate' => array(
471
  '_title' => array(
472
  'mode' => 'required',
473
+ 'error' => __('You must provide a title','ultimate-member')
474
  ),
475
  '_metakey' => array(
476
  'mode' => 'unique',
486
  'validate' => array(
487
  '_title' => array(
488
  'mode' => 'required',
489
+ 'error' => __('You must provide a title','ultimate-member')
490
  ),
491
  '_metakey' => array(
492
  'mode' => 'unique',
502
  'validate' => array(
503
  '_title' => array(
504
  'mode' => 'required',
505
+ 'error' => __('You must provide a title','ultimate-member')
506
  ),
507
  '_metakey' => array(
508
  'mode' => 'unique',
548
 
549
  $um_roles = $ultimatemember->query->get_roles( false, array('admin') );
550
 
551
+ $profile_privacy = apply_filters('um_profile_privacy_options', array( __('Everyone','ultimate-member'), __('Only me','ultimate-member') ) );
552
 
553
  $this->predefined_fields = array(
554
 
555
  'user_login' => array(
556
+ 'title' => __('Username','ultimate-member'),
557
  'metakey' => 'user_login',
558
  'type' => 'text',
559
+ 'label' => __('Username','ultimate-member'),
560
  'required' => 1,
561
  'public' => 1,
562
  'editable' => 0,
566
  ),
567
 
568
  'username' => array(
569
+ 'title' => __('Username or E-mail','ultimate-member'),
570
  'metakey' => 'username',
571
  'type' => 'text',
572
+ 'label' => __('Username or E-mail','ultimate-member'),
573
  'required' => 1,
574
  'public' => 1,
575
  'editable' => 0,
577
  ),
578
 
579
  'user_password' => array(
580
+ 'title' => __('Password','ultimate-member'),
581
  'metakey' => 'user_password',
582
  'type' => 'password',
583
+ 'label' => __('Password','ultimate-member'),
584
  'required' => 1,
585
  'public' => 1,
586
  'editable' => 1,
591
  ),
592
 
593
  'first_name' => array(
594
+ 'title' => __('First Name','ultimate-member'),
595
  'metakey' => 'first_name',
596
  'type' => 'text',
597
+ 'label' => __('First Name','ultimate-member'),
598
  'required' => 0,
599
  'public' => 1,
600
  'editable' => 1,
601
  ),
602
 
603
  'last_name' => array(
604
+ 'title' => __('Last Name','ultimate-member'),
605
  'metakey' => 'last_name',
606
  'type' => 'text',
607
+ 'label' => __('Last Name','ultimate-member'),
608
  'required' => 0,
609
  'public' => 1,
610
  'editable' => 1,
611
  ),
612
 
613
  'nickname' => array(
614
+ 'title' => __('Nickname','ultimate-member'),
615
  'metakey' => 'nickname',
616
  'type' => 'text',
617
+ 'label' => __('Nickname','ultimate-member'),
618
  'required' => 0,
619
  'public' => 1,
620
  'editable' => 1,
621
  ),
622
 
623
  'user_registered' => array(
624
+ 'title' => __('Registration Date','ultimate-member'),
625
  'metakey' => 'user_registered',
626
  'type' => 'text',
627
+ 'label' => __('Registration Date','ultimate-member'),
628
  'required' => 0,
629
  'public' => 1,
630
  'editable' => 1,
632
  ),
633
 
634
  'last_login' => array(
635
+ 'title' => __('Last Login','ultimate-member'),
636
  'metakey' => '_um_last_login',
637
  'type' => 'text',
638
+ 'label' => __('Last Login','ultimate-member'),
639
  'required' => 0,
640
  'public' => 1,
641
  'editable' => 1,
643
  ),
644
 
645
  'user_email' => array(
646
+ 'title' => __('E-mail Address','ultimate-member'),
647
  'metakey' => 'user_email',
648
  'type' => 'text',
649
+ 'label' => __('E-mail Address','ultimate-member'),
650
  'required' => 0,
651
  'public' => 1,
652
  'validate' => 'unique_email',
654
  ),
655
 
656
  'secondary_user_email' => array(
657
+ 'title' => __('Secondary E-mail Address','ultimate-member'),
658
  'metakey' => 'secondary_user_email',
659
  'type' => 'text',
660
+ 'label' => __('Secondary E-mail Address','ultimate-member'),
661
  'required' => 0,
662
  'public' => 1,
663
  'editable' => 1,
666
  ),
667
 
668
  'description' => array(
669
+ 'title' => __('Biography','ultimate-member'),
670
  'metakey' => 'description',
671
  'type' => 'textarea',
672
+ 'label' => __('Biography','ultimate-member'),
673
  'html' => 0,
674
  'required' => 0,
675
  'public' => 1,
679
  ),
680
 
681
  'birth_date' => array(
682
+ 'title' => __('Birth Date','ultimate-member'),
683
  'metakey' => 'birth_date',
684
  'type' => 'date',
685
+ 'label' => __('Birth Date','ultimate-member'),
686
  'required' => 0,
687
  'public' => 1,
688
  'editable' => 1,
693
  ),
694
 
695
  'gender' => array(
696
+ 'title' => __('Gender','ultimate-member'),
697
  'metakey' => 'gender',
698
  'type' => 'radio',
699
+ 'label' => __('Gender','ultimate-member'),
700
  'required' => 0,
701
  'public' => 1,
702
  'editable' => 1,
703
+ 'options' => array( __('Male','ultimate-member'), __('Female','ultimate-member') )
704
  ),
705
 
706
  'country' => array(
707
+ 'title' => __('Country','ultimate-member'),
708
  'metakey' => 'country',
709
  'type' => 'select',
710
+ 'label' => __('Country','ultimate-member'),
711
+ 'placeholder' => __('Choose a Country','ultimate-member'),
712
  'required' => 0,
713
  'public' => 1,
714
  'editable' => 1,
716
  ),
717
 
718
  'facebook' => array(
719
+ 'title' => __('Facebook','ultimate-member'),
720
  'metakey' => 'facebook',
721
  'type' => 'url',
722
+ 'label' => __('Facebook','ultimate-member'),
723
  'required' => 0,
724
  'public' => 1,
725
  'editable' => 1,
734
  ),
735
 
736
  'twitter' => array(
737
+ 'title' => __('Twitter','ultimate-member'),
738
  'metakey' => 'twitter',
739
  'type' => 'url',
740
+ 'label' => __('Twitter','ultimate-member'),
741
  'required' => 0,
742
  'public' => 1,
743
  'editable' => 1,
752
  ),
753
 
754
  'linkedin' => array(
755
+ 'title' => __('LinkedIn','ultimate-member'),
756
  'metakey' => 'linkedin',
757
  'type' => 'url',
758
+ 'label' => __('LinkedIn','ultimate-member'),
759
  'required' => 0,
760
  'public' => 1,
761
  'editable' => 1,
770
  ),
771
 
772
  'googleplus' => array(
773
+ 'title' => __('Google+','ultimate-member'),
774
  'metakey' => 'googleplus',
775
  'type' => 'url',
776
+ 'label' => __('Google+','ultimate-member'),
777
  'required' => 0,
778
  'public' => 1,
779
  'editable' => 1,
788
  ),
789
 
790
  'instagram' => array(
791
+ 'title' => __('Instagram','ultimate-member'),
792
  'metakey' => 'instagram',
793
  'type' => 'url',
794
+ 'label' => __('Instagram','ultimate-member'),
795
  'required' => 0,
796
  'public' => 1,
797
  'editable' => 1,
806
  ),
807
 
808
  'skype' => array(
809
+ 'title' => __('Skype ID','ultimate-member'),
810
  'metakey' => 'skype',
811
  'type' => 'url',
812
+ 'label' => __('Skype ID','ultimate-member'),
813
  'required' => 0,
814
  'public' => 1,
815
  'editable' => 1,
821
  ),
822
 
823
  'youtube' => array(
824
+ 'title' => __('YouTube','ultimate-member'),
825
  'metakey' => 'youtube',
826
  'type' => 'url',
827
+ 'label' => __('YouTube','ultimate-member'),
828
  'required' => 0,
829
  'public' => 1,
830
  'editable' => 1,
839
  ),
840
 
841
  'soundcloud' => array(
842
+ 'title' => __('SoundCloud','ultimate-member'),
843
  'metakey' => 'soundcloud',
844
  'type' => 'url',
845
+ 'label' => __('SoundCloud','ultimate-member'),
846
  'required' => 0,
847
  'public' => 1,
848
  'editable' => 1,
857
  ),
858
 
859
  'vk' => array(
860
+ 'title' => __('VKontakte','ultimate-member'),
861
  'metakey' => 'vkontakte',
862
  'type' => 'url',
863
+ 'label' => __('VKontakte','ultimate-member'),
864
  'required' => 0,
865
  'public' => 1,
866
  'editable' => 1,
875
  ),
876
 
877
  'role_select' => array(
878
+ 'title' => __('Roles (Dropdown)','ultimate-member'),
879
  'metakey' => 'role_select',
880
  'type' => 'select',
881
+ 'label' => __('Account Type','ultimate-member'),
882
  'placeholder' => 'Choose account type',
883
  'required' => 0,
884
  'public' => 1,
887
  ),
888
 
889
  'role_radio' => array(
890
+ 'title' => __('Roles (Radio)','ultimate-member'),
891
  'metakey' => 'role_radio',
892
  'type' => 'radio',
893
+ 'label' => __('Account Type','ultimate-member'),
894
  'required' => 0,
895
  'public' => 1,
896
  'editable' => 1,
898
  ),
899
 
900
  'languages' => array(
901
+ 'title' => __('Languages','ultimate-member'),
902
  'metakey' => 'languages',
903
  'type' => 'multiselect',
904
+ 'label' => __('Languages Spoken','ultimate-member'),
905
+ 'placeholder' => __('Select languages','ultimate-member'),
906
  'required' => 0,
907
  'public' => 1,
908
  'editable' => 1,
910
  ),
911
 
912
  'phone_number' => array(
913
+ 'title' => __('Phone Number','ultimate-member'),
914
  'metakey' => 'phone_number',
915
  'type' => 'text',
916
+ 'label' => __('Phone Number','ultimate-member'),
917
  'required' => 0,
918
  'public' => 1,
919
  'editable' => 1,
922
  ),
923
 
924
  'mobile_number' => array(
925
+ 'title' => __('Mobile Number','ultimate-member'),
926
  'metakey' => 'mobile_number',
927
  'type' => 'text',
928
+ 'label' => __('Mobile Number','ultimate-member'),
929
  'required' => 0,
930
  'public' => 1,
931
  'editable' => 1,
936
  // private use ( not public list )
937
 
938
  'profile_photo' => array(
939
+ 'title' => __('Profile Photo','ultimate-member'),
940
  'metakey' => 'profile_photo',
941
  'type' => 'image',
942
+ 'label' => __('Change your profile photo','ultimate-member'),
943
+ 'upload_text' => __('Upload your photo here','ultimate-member'),
944
  'icon' => 'um-faicon-camera',
945
  'crop' => 1,
946
  'max_size' => ( um_get_option('profile_photo_max_size') ) ? um_get_option('profile_photo_max_size') : 999999999,
950
  ),
951
 
952
  'cover_photo' => array(
953
+ 'title' => __('Cover Photo','ultimate-member'),
954
  'metakey' => 'cover_photo',
955
  'type' => 'image',
956
+ 'label' => __('Change your cover photo','ultimate-member'),
957
+ 'upload_text' => __('Upload profile cover here','ultimate-member'),
958
  'icon' => 'um-faicon-picture-o',
959
  'crop' => 2,
960
  'max_size' => ( um_get_option('cover_photo_max_size') ) ? um_get_option('cover_photo_max_size') : 999999999,
965
  ),
966
 
967
  'password_reset_text' => array(
968
+ 'title' => __('Password Reset','ultimate-member'),
969
  'type' => 'block',
970
+ 'content' => '<div style="text-align:center">' . __('To reset your password, please enter your email address or username below','ultimate-member'). '</div>',
971
  'private_use' => true,
972
  ),
973
 
974
  'username_b' => array(
975
+ 'title' => __('Username or E-mail','ultimate-member'),
976
  'metakey' => 'username_b',
977
  'type' => 'text',
978
+ 'placeholder' => __('Enter your username or email','ultimate-member'),
979
  'required' => 1,
980
  'public' => 1,
981
  'editable' => 0,
985
  // account page use ( not public )
986
 
987
  'profile_privacy' => array(
988
+ 'title' => __('Profile Privacy','ultimate-member'),
989
  'metakey' => 'profile_privacy',
990
  'type' => 'select',
991
+ 'label' => __('Profile Privacy','ultimate-member'),
992
+ 'help' => __('Who can see your public profile?','ultimate-member'),
993
  'required' => 0,
994
  'public' => 1,
995
  'editable' => 1,
996
+ 'default' => __('Everyone','ultimate-member'),
997
  'options' => $profile_privacy,
998
  'allowclear' => 0,
999
  'account_only' => true,
1001
  ),
1002
 
1003
  'hide_in_members' => array(
1004
+ 'title' => __('Hide my profile from directory','ultimate-member'),
1005
  'metakey' => 'hide_in_members',
1006
  'type' => 'radio',
1007
+ 'label' => __('Hide my profile from directory','ultimate-member'),
1008
+ 'help' => __('Here you can hide yourself from appearing in public directory','ultimate-member'),
1009
  'required' => 0,
1010
  'public' => 1,
1011
  'editable' => 1,
1012
+ 'default' => __('No','ultimate-member'),
1013
+ 'options' => array( __('No','ultimate-member'), __('Yes','ultimate-member') ),
1014
  'account_only' => true,
1015
  'required_opt' => array( 'members_page', 1 ),
1016
  ),
1017
 
1018
  'delete_account' => array(
1019
+ 'title' => __('Delete Account','ultimate-member'),
1020
  'metakey' => 'delete_account',
1021
  'type' => 'radio',
1022
+ 'label' => __('Delete Account','ultimate-member'),
1023
+ 'help' => __('If you confirm, everything related to your profile will be deleted permanently from the site','ultimate-member'),
1024
  'required' => 0,
1025
  'public' => 1,
1026
  'editable' => 1,
1027
+ 'default' => __('No','ultimate-member'),
1028
+ 'options' => array( __('Yes','ultimate-member') , __('No','ultimate-member') ),
1029
  'account_only' => true,
1030
  ),
1031
 
1032
  'single_user_password' => array(
1033
+ 'title' => __('Password','ultimate-member'),
1034
  'metakey' => 'single_user_password',
1035
  'type' => 'password',
1036
+ 'label' => __('Password','ultimate-member'),
1037
  'required' => 1,
1038
  'public' => 1,
1039
  'editable' => 1,
1140
  ***/
1141
  function validation_types(){
1142
 
1143
+ $array[0] = __('None','ultimate-member');
1144
+ $array['alphabetic'] = __('Alphabetic value only','ultimate-member');
1145
+ $array['alpha_numeric'] = __('Alpha-numeric value','ultimate-member');
1146
+ $array['english'] = __('English letters only','ultimate-member');
1147
+ $array['facebook_url'] = __('Facebook URL','ultimate-member');
1148
+ $array['google_url'] = __('Google+ URL','ultimate-member');
1149
+ $array['instagram_url'] = __('Instagram URL','ultimate-member');
1150
+ $array['linkedin_url'] = __('LinkedIn URL','ultimate-member');
1151
+ $array['vk_url'] = __('VKontakte URL','ultimate-member');
1152
+ $array['lowercase'] = __('Lowercase only','ultimate-member');
1153
+ $array['numeric'] = __('Numeric value only','ultimate-member');
1154
+ $array['phone_number'] = __('Phone Number','ultimate-member');
1155
+ $array['skype'] = __('Skype ID','ultimate-member');
1156
+ $array['soundcloud'] = __('SoundCloud Profile','ultimate-member');
1157
+ $array['twitter_url'] = __('Twitter URL','ultimate-member');
1158
+ $array['unique_email'] = __('Unique E-mail','ultimate-member');
1159
+ $array['unique_value'] = __('Unique Metakey value','ultimate-member');
1160
+ $array['unique_username'] = __('Unique Username','ultimate-member');
1161
+ $array['unique_username_or_email'] = __('Unique Username/E-mail','ultimate-member');
1162
+ $array['url'] = __('Website URL','ultimate-member');
1163
+ $array['youtube_url'] = __('YouTube Profile','ultimate-member');
1164
+ $array['custom'] = __('Custom Validation','ultimate-member');
1165
 
1166
  $array = apply_filters('um_admin_field_validation_hook', $array );
1167
  return $array;
1175
 
1176
  case 'languages':
1177
  $array = array(
1178
+ "aa" => __("Afar",'ultimate-member'),
1179
+ "ab" => __("Abkhazian",'ultimate-member'),
1180
+ "ae" => __("Avestan",'ultimate-member'),
1181
+ "af" => __("Afrikaans",'ultimate-member'),
1182
+ "ak" => __("Akan",'ultimate-member'),
1183
+ "am" => __("Amharic",'ultimate-member'),
1184
+ "an" => __("Aragonese",'ultimate-member'),
1185
+ "ar" => __("Arabic",'ultimate-member'),
1186
+ "as" => __("Assamese",'ultimate-member'),
1187
+ "av" => __("Avaric",'ultimate-member'),
1188
+ "ay" => __("Aymara",'ultimate-member'),
1189
+ "az" => __("Azerbaijani",'ultimate-member'),
1190
+ "ba" => __("Bashkir",'ultimate-member'),
1191
+ "be" => __("Belarusian",'ultimate-member'),
1192
+ "bg" => __("Bulgarian",'ultimate-member'),
1193
+ "bh" => __("Bihari",'ultimate-member'),
1194
+ "bi" => __("Bislama",'ultimate-member'),
1195
+ "bm" => __("Bambara",'ultimate-member'),
1196
+ "bn" => __("Bengali",'ultimate-member'),
1197
+ "bo" => __("Tibetan",'ultimate-member'),
1198
+ "br" => __("Breton",'ultimate-member'),
1199
+ "bs" => __("Bosnian",'ultimate-member'),
1200
+ "ca" => __("Catalan",'ultimate-member'),
1201
+ "ce" => __("Chechen",'ultimate-member'),
1202
+ "ch" => __("Chamorro",'ultimate-member'),
1203
+ "co" => __("Corsican",'ultimate-member'),
1204
+ "cr" => __("Cree",'ultimate-member'),
1205
+ "cs" => __("Czech",'ultimate-member'),
1206
+ "cu" => __("Church Slavic",'ultimate-member'),
1207
+ "cv" => __("Chuvash",'ultimate-member'),
1208
+ "cy" => __("Welsh",'ultimate-member'),
1209
+ "da" => __("Danish",'ultimate-member'),
1210
+ "de" => __("German",'ultimate-member'),
1211
+ "dv" => __("Divehi",'ultimate-member'),
1212
+ "dz" => __("Dzongkha",'ultimate-member'),
1213
+ "ee" => __("Ewe",'ultimate-member'),
1214
+ "el" => __("Greek",'ultimate-member'),
1215
+ "en" => __("English",'ultimate-member'),
1216
+ "eo" => __("Esperanto",'ultimate-member'),
1217
+ "es" => __("Spanish",'ultimate-member'),
1218
+ "et" => __("Estonian",'ultimate-member'),
1219
+ "eu" => __("Basque",'ultimate-member'),
1220
+ "fa" => __("Persian",'ultimate-member'),
1221
+ "ff" => __("Fulah",'ultimate-member'),
1222
+ "fi" => __("Finnish",'ultimate-member'),
1223
+ "fj" => __("Fijian",'ultimate-member'),
1224
+ "fo" => __("Faroese",'ultimate-member'),
1225
+ "fr" => __("French",'ultimate-member'),
1226
+ "fy" => __("Western Frisian",'ultimate-member'),
1227
+ "ga" => __("Irish",'ultimate-member'),
1228
+ "gd" => __("Scottish Gaelic",'ultimate-member'),
1229
+ "gl" => __("Galician",'ultimate-member'),
1230
+ "gn" => __("Guarani",'ultimate-member'),
1231
+ "gu" => __("Gujarati",'ultimate-member'),
1232
+ "gv" => __("Manx",'ultimate-member'),
1233
+ "ha" => __("Hausa",'ultimate-member'),
1234
+ "he" => __("Hebrew",'ultimate-member'),
1235
+ "hi" => __("Hindi",'ultimate-member'),
1236
+ "ho" => __("Hiri Motu",'ultimate-member'),
1237
+ "hr" => __("Croatian",'ultimate-member'),
1238
+ "ht" => __("Haitian",'ultimate-member'),
1239
+ "hu" => __("Hungarian",'ultimate-member'),
1240
+ "hy" => __("Armenian",'ultimate-member'),
1241
+ "hz" => __("Herero",'ultimate-member'),
1242
+ "ia" => __("Interlingua (International Auxiliary Language Association)",'ultimate-member'),
1243
+ "id" => __("Indonesian",'ultimate-member'),
1244
+ "ie" => __("Interlingue",'ultimate-member'),
1245
+ "ig" => __("Igbo",'ultimate-member'),
1246
+ "ii" => __("Sichuan Yi",'ultimate-member'),
1247
+ "ik" => __("Inupiaq",'ultimate-member'),
1248
+ "io" => __("Ido",'ultimate-member'),
1249
+ "is" => __("Icelandic",'ultimate-member'),
1250
+ "it" => __("Italian",'ultimate-member'),
1251
+ "iu" => __("Inuktitut",'ultimate-member'),
1252
+ "ja" => __("Japanese",'ultimate-member'),
1253
+ "jv" => __("Javanese",'ultimate-member'),
1254
+ "ka" => __("Georgian",'ultimate-member'),
1255
+ "kg" => __("Kongo",'ultimate-member'),
1256
+ "ki" => __("Kikuyu",'ultimate-member'),
1257
+ "kj" => __("Kwanyama",'ultimate-member'),
1258
+ "kk" => __("Kazakh",'ultimate-member'),
1259
+ "kl" => __("Kalaallisut",'ultimate-member'),
1260
+ "km" => __("Khmer",'ultimate-member'),
1261
+ "kn" => __("Kannada",'ultimate-member'),
1262
+ "ko" => __("Korean",'ultimate-member'),
1263
+ "kr" => __("Kanuri",'ultimate-member'),
1264
+ "ks" => __("Kashmiri",'ultimate-member'),
1265
+ "ku" => __("Kurdish",'ultimate-member'),
1266
+ "kv" => __("Komi",'ultimate-member'),
1267
+ "kw" => __("Cornish",'ultimate-member'),
1268
+ "ky" => __("Kirghiz",'ultimate-member'),
1269
+ "la" => __("Latin",'ultimate-member'),
1270
+ "lb" => __("Luxembourgish",'ultimate-member'),
1271
+ "lg" => __("Ganda",'ultimate-member'),
1272
+ "li" => __("Limburgish",'ultimate-member'),
1273
+ "ln" => __("Lingala",'ultimate-member'),
1274
+ "lo" => __("Lao",'ultimate-member'),
1275
+ "lt" => __("Lithuanian",'ultimate-member'),
1276
+ "lu" => __("Luba-Katanga",'ultimate-member'),
1277
+ "lv" => __("Latvian",'ultimate-member'),
1278
+ "mg" => __("Malagasy",'ultimate-member'),
1279
+ "mh" => __("Marshallese",'ultimate-member'),
1280
+ "mi" => __("Maori",'ultimate-member'),
1281
+ "mk" => __("Macedonian",'ultimate-member'),
1282
+ "ml" => __("Malayalam",'ultimate-member'),
1283
+ "mn" => __("Mongolian",'ultimate-member'),
1284
+ "mr" => __("Marathi",'ultimate-member'),
1285
+ "ms" => __("Malay",'ultimate-member'),
1286
+ "mt" => __("Maltese",'ultimate-member'),
1287
+ "my" => __("Burmese",'ultimate-member'),
1288
+ "na" => __("Nauru",'ultimate-member'),
1289
+ "nb" => __("Norwegian Bokmal",'ultimate-member'),
1290
+ "nd" => __("North Ndebele",'ultimate-member'),
1291
+ "ne" => __("Nepali",'ultimate-member'),
1292
+ "ng" => __("Ndonga",'ultimate-member'),
1293
+ "nl" => __("Dutch",'ultimate-member'),
1294
+ "nn" => __("Norwegian Nynorsk",'ultimate-member'),
1295
+ "no" => __("Norwegian",'ultimate-member'),
1296
+ "nr" => __("South Ndebele",'ultimate-member'),
1297
+ "nv" => __("Navajo",'ultimate-member'),
1298
+ "ny" => __("Chichewa",'ultimate-member'),
1299
+ "oc" => __("Occitan",'ultimate-member'),
1300
+ "oj" => __("Ojibwa",'ultimate-member'),
1301
+ "om" => __("Oromo",'ultimate-member'),
1302
+ "or" => __("Oriya",'ultimate-member'),
1303
+ "os" => __("Ossetian",'ultimate-member'),
1304
+ "pa" => __("Panjabi",'ultimate-member'),
1305
+ "pi" => __("Pali",'ultimate-member'),
1306
+ "pl" => __("Polish",'ultimate-member'),
1307
+ "ps" => __("Pashto",'ultimate-member'),
1308
+ "pt" => __("Portuguese",'ultimate-member'),
1309
+ "qu" => __("Quechua",'ultimate-member'),
1310
+ "rm" => __("Raeto-Romance",'ultimate-member'),
1311
+ "rn" => __("Kirundi",'ultimate-member'),
1312
+ "ro" => __("Romanian",'ultimate-member'),
1313
+ "ru" => __("Russian",'ultimate-member'),
1314
+ "rw" => __("Kinyarwanda",'ultimate-member'),
1315
+ "sa" => __("Sanskrit",'ultimate-member'),
1316
+ "sc" => __("Sardinian",'ultimate-member'),
1317
+ "sd" => __("Sindhi",'ultimate-member'),
1318
+ "se" => __("Northern Sami",'ultimate-member'),
1319
+ "sg" => __("Sango",'ultimate-member'),
1320
+ "si" => __("Sinhala",'ultimate-member'),
1321
+ "sk" => __("Slovak",'ultimate-member'),
1322
+ "sl" => __("Slovenian",'ultimate-member'),
1323
+ "sm" => __("Samoan",'ultimate-member'),
1324
+ "sn" => __("Shona",'ultimate-member'),
1325
+ "so" => __("Somali",'ultimate-member'),
1326
+ "sq" => __("Albanian",'ultimate-member'),
1327
+ "sr" => __("Serbian",'ultimate-member'),
1328
+ "ss" => __("Swati",'ultimate-member'),
1329
+ "st" => __("Southern Sotho",'ultimate-member'),
1330
+ "su" => __("Sundanese",'ultimate-member'),
1331
+ "sv" => __("Swedish",'ultimate-member'),
1332
+ "sw" => __("Swahili",'ultimate-member'),
1333
+ "ta" => __("Tamil",'ultimate-member'),
1334
+ "te" => __("Telugu",'ultimate-member'),
1335
+ "tg" => __("Tajik",'ultimate-member'),
1336
+ "th" => __("Thai",'ultimate-member'),
1337
+ "ti" => __("Tigrinya",'ultimate-member'),
1338
+ "tk" => __("Turkmen",'ultimate-member'),
1339
+ "tl" => __("Tagalog",'ultimate-member'),
1340
+ "tn" => __("Tswana",'ultimate-member'),
1341
+ "to" => __("Tonga",'ultimate-member'),
1342
+ "tr" => __("Turkish",'ultimate-member'),
1343
+ "ts" => __("Tsonga",'ultimate-member'),
1344
+ "tt" => __("Tatar",'ultimate-member'),
1345
+ "tw" => __("Twi",'ultimate-member'),
1346
+ "ty" => __("Tahitian",'ultimate-member'),
1347
+ "ug" => __("Uighur",'ultimate-member'),
1348
+ "uk" => __("Ukrainian",'ultimate-member'),
1349
+ "ur" => __("Urdu",'ultimate-member'),
1350
+ "uz" => __("Uzbek",'ultimate-member'),
1351
+ "ve" => __("Venda",'ultimate-member'),
1352
+ "vi" => __("Vietnamese",'ultimate-member'),
1353
+ "vo" => __("Volapuk",'ultimate-member'),
1354
+ "wa" => __("Walloon",'ultimate-member'),
1355
+ "wo" => __("Wolof",'ultimate-member'),
1356
+ "xh" => __("Xhosa",'ultimate-member'),
1357
+ "yi" => __("Yiddish",'ultimate-member'),
1358
+ "yo" => __("Yoruba",'ultimate-member'),
1359
+ "za" => __("Zhuang",'ultimate-member'),
1360
+ "zh" => __("Chinese",'ultimate-member'),
1361
+ "zu" => __("Zulu",'ultimate-member')
1362
  );
1363
  break;
1364
 
1365
  case 'countries':
1366
  $array = array (
1367
+ 'AF' => __('Afghanistan','ultimate-member'),
1368
+ 'AX' => __('Åland Islands','ultimate-member'),
1369
+ 'AL' => __('Albania','ultimate-member'),
1370
+ 'DZ' => __('Algeria','ultimate-member'),
1371
+ 'AS' => __('American Samoa','ultimate-member'),
1372
+ 'AD' => __('Andorra','ultimate-member'),
1373
+ 'AO' => __('Angola','ultimate-member'),
1374
+ 'AI' => __('Anguilla','ultimate-member'),
1375
+ 'AQ' => __('Antarctica','ultimate-member'),
1376
+ 'AG' => __('Antigua and Barbuda','ultimate-member'),
1377
+ 'AR' => __('Argentina','ultimate-member'),
1378
+ 'AM' => __('Armenia','ultimate-member'),
1379
+ 'AW' => __('Aruba','ultimate-member'),
1380
+ 'AU' => __('Australia','ultimate-member'),
1381
+ 'AT' => __('Austria','ultimate-member'),
1382
+ 'AZ' => __('Azerbaijan','ultimate-member'),
1383
+ 'BS' => __('Bahamas','ultimate-member'),
1384
+ 'BH' => __('Bahrain','ultimate-member'),
1385
+ 'BD' => __('Bangladesh','ultimate-member'),
1386
+ 'BB' => __('Barbados','ultimate-member'),
1387
+ 'BY' => __('Belarus','ultimate-member'),
1388
+ 'BE' => __('Belgium','ultimate-member'),
1389
+ 'BZ' => __('Belize','ultimate-member'),
1390
+ 'BJ' => __('Benin','ultimate-member'),
1391
+ 'BM' => __('Bermuda','ultimate-member'),
1392
+ 'BT' => __('Bhutan','ultimate-member'),
1393
+ 'BO' => __('Bolivia, Plurinational State of','ultimate-member'),
1394
+ 'BA' => __('Bosnia and Herzegovina','ultimate-member'),
1395
+ 'BW' => __('Botswana','ultimate-member'),
1396
+ 'BV' => __('Bouvet Island','ultimate-member'),
1397
+ 'BR' => __('Brazil','ultimate-member'),
1398
+ 'IO' => __('British Indian Ocean Territory','ultimate-member'),
1399
+ 'BN' => __('Brunei Darussalam','ultimate-member'),
1400
+ 'BG' => __('Bulgaria','ultimate-member'),
1401
+ 'BF' => __('Burkina Faso','ultimate-member'),
1402
+ 'BI' => __('Burundi','ultimate-member'),
1403
+ 'KH' => __('Cambodia','ultimate-member'),
1404
+ 'CM' => __('Cameroon','ultimate-member'),
1405
+ 'CA' => __('Canada','ultimate-member'),
1406
+ 'CV' => __('Cape Verde','ultimate-member'),
1407
+ 'KY' => __('Cayman Islands','ultimate-member'),
1408
+ 'CF' => __('Central African Republic','ultimate-member'),
1409
+ 'TD' => __('Chad','ultimate-member'),
1410
+ 'CL' => __('Chile','ultimate-member'),
1411
+ 'CN' => __('China','ultimate-member'),
1412
+ 'CX' => __('Christmas Island','ultimate-member'),
1413
+ 'CC' => __('Cocos (Keeling) Islands','ultimate-member'),
1414
+ 'CO' => __('Colombia','ultimate-member'),
1415
+ 'KM' => __('Comoros','ultimate-member'),
1416
+ 'CG' => __('Congo','ultimate-member'),
1417
+ 'CD' => __('Congo, the Democratic Republic of the','ultimate-member'),
1418
+ 'CK' => __('Cook Islands','ultimate-member'),
1419
+ 'CR' => __('Costa Rica','ultimate-member'),
1420
+ 'CI' => __("Côte d'Ivoire",'ultimate-member'),
1421
+ 'HR' => __('Croatia','ultimate-member'),
1422
+ 'CU' => __('Cuba','ultimate-member'),
1423
+ 'CY' => __('Cyprus','ultimate-member'),
1424
+ 'CZ' => __('Czech Republic','ultimate-member'),
1425
+ 'DK' => __('Denmark','ultimate-member'),
1426
+ 'DJ' => __('Djibouti','ultimate-member'),
1427
+ 'DM' => __('Dominica','ultimate-member'),
1428
+ 'DO' => __('Dominican Republic','ultimate-member'),
1429
+ 'EC' => __('Ecuador','ultimate-member'),
1430
+ 'EG' => __('Egypt','ultimate-member'),
1431
+ 'SV' => __('El Salvador','ultimate-member'),
1432
+ 'GQ' => __('Equatorial Guinea','ultimate-member'),
1433
+ 'ER' => __('Eritrea','ultimate-member'),
1434
+ 'EE' => __('Estonia','ultimate-member'),
1435
+ 'ET' => __('Ethiopia','ultimate-member'),
1436
+ 'FK' => __('Falkland Islands (Malvinas)','ultimate-member'),
1437
+ 'FO' => __('Faroe Islands','ultimate-member'),
1438
+ 'FJ' => __('Fiji','ultimate-member'),
1439
+ 'FI' => __('Finland','ultimate-member'),
1440
+ 'FR' => __('France','ultimate-member'),
1441
+ 'GF' => __('French Guiana','ultimate-member'),
1442
+ 'PF' => __('French Polynesia','ultimate-member'),
1443
+ 'TF' => __('French Southern Territories','ultimate-member'),
1444
+ 'GA' => __('Gabon','ultimate-member'),
1445
+ 'GM' => __('Gambia','ultimate-member'),
1446
+ 'GE' => __('Georgia','ultimate-member'),
1447
+ 'DE' => __('Germany','ultimate-member'),
1448
+ 'GH' => __('Ghana','ultimate-member'),
1449
+ 'GI' => __('Gibraltar','ultimate-member'),
1450
+ 'GR' => __('Greece','ultimate-member'),
1451
+ 'GL' => __('Greenland','ultimate-member'),
1452
+ 'GD' => __('Grenada','ultimate-member'),
1453
+ 'GP' => __('Guadeloupe','ultimate-member'),
1454
+ 'GU' => __('Guam','ultimate-member'),
1455
+ 'GT' => __('Guatemala','ultimate-member'),
1456
+ 'GG' => __('Guernsey','ultimate-member'),
1457
+ 'GN' => __('Guinea','ultimate-member'),
1458
+ 'GW' => __('Guinea-Bissau','ultimate-member'),
1459
+ 'GY' => __('Guyana','ultimate-member'),
1460
+ 'HT' => __('Haiti','ultimate-member'),
1461
+ 'HM' => __('Heard Island and McDonald Islands','ultimate-member'),
1462
+ 'VA' => __('Holy See (Vatican City State)','ultimate-member'),
1463
+ 'HN' => __('Honduras','ultimate-member'),
1464
+ 'HK' => __('Hong Kong','ultimate-member'),
1465
+ 'HU' => __('Hungary','ultimate-member'),
1466
+ 'IS' => __('Iceland','ultimate-member'),
1467
+ 'IN' => __('India','ultimate-member'),
1468
+ 'ID' => __('Indonesia','ultimate-member'),
1469
+ 'IR' => __('Iran, Islamic Republic of','ultimate-member'),
1470
+ 'IQ' => __('Iraq','ultimate-member'),
1471
+ 'IE' => __('Ireland','ultimate-member'),
1472
+ 'IM' => __('Isle of Man','ultimate-member'),
1473
+ 'IL' => __('Israel','ultimate-member'),
1474
+ 'IT' => __('Italy','ultimate-member'),
1475
+ 'JM' => __('Jamaica','ultimate-member'),
1476
+ 'JP' => __('Japan','ultimate-member'),
1477
+ 'JE' => __('Jersey','ultimate-member'),
1478
+ 'JO' => __('Jordan','ultimate-member'),
1479
+ 'KZ' => __('Kazakhstan','ultimate-member'),
1480
+ 'KE' => __('Kenya','ultimate-member'),
1481
+ 'KI' => __('Kiribati','ultimate-member'),
1482
+ 'KP' => __("Korea, Democratic People's Republic of",'ultimate-member'),
1483
+ 'KR' => __('Korea, Republic of','ultimate-member'),
1484
+ 'KW' => __('Kuwait','ultimate-member'),
1485
+ 'KG' => __('Kyrgyzstan','ultimate-member'),
1486
+ 'LA' => __("Lao People's Democratic Republic",'ultimate-member'),
1487
+ 'LV' => __('Latvia','ultimate-member'),
1488
+ 'LB' => __('Lebanon','ultimate-member'),
1489
+ 'LS' => __('Lesotho','ultimate-member'),
1490
+ 'LR' => __('Liberia','ultimate-member'),
1491
+ 'LY' => __('Libyan Arab Jamahiriya','ultimate-member'),
1492
+ 'LI' => __('Liechtenstein','ultimate-member'),
1493
+ 'LT' => __('Lithuania','ultimate-member'),
1494
+ 'LU' => __('Luxembourg','ultimate-member'),
1495
+ 'MO' => __('Macao','ultimate-member'),
1496
+ 'MK' => __('Macedonia, the former Yugoslav Republic of','ultimate-member'),
1497
+ 'MG' => __('Madagascar','ultimate-member'),
1498
+ 'MW' => __('Malawi','ultimate-member'),
1499
+ 'MY' => __('Malaysia','ultimate-member'),
1500
+ 'MV' => __('Maldives','ultimate-member'),
1501
+ 'ML' => __('Mali','ultimate-member'),
1502
+ 'MT' => __('Malta','ultimate-member'),
1503
+ 'MH' => __('Marshall Islands','ultimate-member'),
1504
+ 'MQ' => __('Martinique','ultimate-member'),
1505
+ 'MR' => __('Mauritania','ultimate-member'),
1506
+ 'MU' => __('Mauritius','ultimate-member'),
1507
+ 'YT' => __('Mayotte','ultimate-member'),
1508
+ 'MX' => __('Mexico','ultimate-member'),
1509
+ 'FM' => __('Micronesia, Federated States of','ultimate-member'),
1510
+ 'MD' => __('Moldova, Republic of','ultimate-member'),
1511
+ 'MC' => __('Monaco','ultimate-member'),
1512
+ 'MN' => __('Mongolia','ultimate-member'),
1513
+ 'ME' => __('Montenegro','ultimate-member'),
1514
+ 'MS' => __('Montserrat','ultimate-member'),
1515
+ 'MA' => __('Morocco','ultimate-member'),
1516
+ 'MZ' => __('Mozambique','ultimate-member'),
1517
+ 'MM' => __('Myanmar','ultimate-member'),
1518
+ 'NA' => __('Namibia','ultimate-member'),
1519
+ 'NR' => __('Nauru','ultimate-member'),
1520
+ 'NP' => __('Nepal','ultimate-member'),
1521
+ 'NL' => __('Netherlands','ultimate-member'),
1522
+ 'AN' => __('Netherlands Antilles','ultimate-member'),
1523
+ 'NC' => __('New Caledonia','ultimate-member'),
1524
+ 'NZ' => __('New Zealand','ultimate-member'),
1525
+ 'NI' => __('Nicaragua','ultimate-member'),
1526
+ 'NE' => __('Niger','ultimate-member'),
1527
+ 'NG' => __('Nigeria','ultimate-member'),
1528
+ 'NU' => __('Niue','ultimate-member'),
1529
+ 'NF' => __('Norfolk Island','ultimate-member'),
1530
+ 'MP' => __('Northern Mariana Islands','ultimate-member'),
1531
+ 'NO' => __('Norway','ultimate-member'),
1532
+ 'OM' => __('Oman','ultimate-member'),
1533
+ 'PK' => __('Pakistan','ultimate-member'),
1534
+ 'PW' => __('Palau','ultimate-member'),
1535
+ 'PS' => __('Palestine','ultimate-member'),
1536
+ 'PA' => __('Panama','ultimate-member'),
1537
+ 'PG' => __('Papua New Guinea','ultimate-member'),
1538
+ 'PY' => __('Paraguay','ultimate-member'),
1539
+ 'PE' => __('Peru','ultimate-member'),
1540
+ 'PH' => __('Philippines','ultimate-member'),
1541
+ 'PN' => __('Pitcairn','ultimate-member'),
1542
+ 'PL' => __('Poland','ultimate-member'),
1543
+ 'PT' => __('Portugal','ultimate-member'),
1544
+ 'PR' => __('Puerto Rico','ultimate-member'),
1545
+ 'QA' => __('Qatar','ultimate-member'),
1546
+ 'RE' => __('Réunion','ultimate-member'),
1547
+ 'RO' => __('Romania','ultimate-member'),
1548
+ 'RU' => __('Russian Federation','ultimate-member'),
1549
+ 'RW' => __('Rwanda','ultimate-member'),
1550
+ 'BL' => __('Saint Barthélemy','ultimate-member'),
1551
+ 'SH' => __('Saint Helena','ultimate-member'),
1552
+ 'KN' => __('Saint Kitts and Nevis','ultimate-member'),
1553
+ 'LC' => __('Saint Lucia','ultimate-member'),
1554
+ 'MF' => __('Saint Martin (French part)','ultimate-member'),
1555
+ 'PM' => __('Saint Pierre and Miquelon','ultimate-member'),
1556
+ 'VC' => __('Saint Vincent and the Grenadines','ultimate-member'),
1557
+ 'WS' => __('Samoa','ultimate-member'),
1558
+ 'SM' => __('San Marino','ultimate-member'),
1559
+ 'ST' => __('Sao Tome and Principe','ultimate-member'),
1560
+ 'SA' => __('Saudi Arabia','ultimate-member'),
1561
+ 'SN' => __('Senegal','ultimate-member'),
1562
+ 'RS' => __('Serbia','ultimate-member'),
1563
+ 'SC' => __('Seychelles','ultimate-member'),
1564
+ 'SL' => __('Sierra Leone','ultimate-member'),
1565
+ 'SG' => __('Singapore','ultimate-member'),
1566
+ 'SK' => __('Slovakia','ultimate-member'),
1567
+ 'SI' => __('Slovenia','ultimate-member'),
1568
+ 'SB' => __('Solomon Islands','ultimate-member'),
1569
+ 'SO' => __('Somalia','ultimate-member'),
1570
+ 'ZA' => __('South Africa','ultimate-member'),
1571
+ 'GS' => __('South Georgia and the South Sandwich Islands','ultimate-member'),
1572
+ 'SS' => __('South Sudan','ultimate-member'),
1573
+ 'ES' => __('Spain','ultimate-member'),
1574
+ 'LK' => __('Sri Lanka','ultimate-member'),
1575
+ 'SD' => __('Sudan','ultimate-member'),
1576
+ 'SR' => __('Suriname','ultimate-member'),
1577
+ 'SJ' => __('Svalbard and Jan Mayen','ultimate-member'),
1578
+ 'SZ' => __('Swaziland','ultimate-member'),
1579
+ 'SE' => __('Sweden','ultimate-member'),
1580
+ 'CH' => __('Switzerland','ultimate-member'),
1581
+ 'SY' => __('Syrian Arab Republic','ultimate-member'),
1582
+ 'TW' => __('Taiwan, Province of China','ultimate-member'),
1583
+ 'TJ' => __('Tajikistan','ultimate-member'),
1584
+ 'TZ' => __('Tanzania, United Republic of','ultimate-member'),
1585
+ 'TH' => __('Thailand','ultimate-member'),
1586
+ 'TL' => __('Timor-Leste','ultimate-member'),
1587
+ 'TG' => __('Togo','ultimate-member'),
1588
+ 'TK' => __('Tokelau','ultimate-member'),
1589
+ 'TO' => __('Tonga','ultimate-member'),
1590
+ 'TT' => __('Trinidad and Tobago','ultimate-member'),
1591
+ 'TN' => __('Tunisia','ultimate-member'),
1592
+ 'TR' => __('Turkey','ultimate-member'),
1593
+ 'TM' => __('Turkmenistan','ultimate-member'),
1594
+ 'TC' => __('Turks and Caicos Islands','ultimate-member'),
1595
+ 'TV' => __('Tuvalu','ultimate-member'),
1596
+ 'UG' => __('Uganda','ultimate-member'),
1597
+ 'UA' => __('Ukraine','ultimate-member'),
1598
+ 'AE' => __('United Arab Emirates','ultimate-member'),
1599
+ 'GB' => __('United Kingdom','ultimate-member'),
1600
+ 'US' => __('United States','ultimate-member'),
1601
+ 'UM' => __('United States Minor Outlying Islands','ultimate-member'),
1602
+ 'UY' => __('Uruguay','ultimate-member'),
1603
+ 'UZ' => __('Uzbekistan','ultimate-member'),
1604
+ 'VU' => __('Vanuatu','ultimate-member'),
1605
+ 'VE' => __('Venezuela, Bolivarian Republic of','ultimate-member'),
1606
+ 'VN' => __('Viet Nam','ultimate-member'),
1607
+ 'VG' => __('Virgin Islands, British','ultimate-member'),
1608
+ 'VI' => __('Virgin Islands, U.S.','ultimate-member'),
1609
+ 'WF' => __('Wallis and Futuna','ultimate-member'),
1610
+ 'EH' => __('Western Sahara','ultimate-member'),
1611
+ 'YE' => __('Yemen','ultimate-member'),
1612
+ 'ZM' => __('Zambia','ultimate-member'),
1613
+ 'ZW' => __('Zimbabwe','ultimate-member'),
1614
  );
1615
  break;
1616
 
core/um-cron.php CHANGED
@@ -12,7 +12,7 @@ class UM_Cron {
12
  // Adds once weekly to the existing schedules.
13
  $schedules['weekly'] = array(
14
  'interval' => 604800,
15
- 'display' => __( 'Once Weekly', 'ultimatemember' )
16
  );
17
 
18
  return $schedules;
12
  // Adds once weekly to the existing schedules.
13
  $schedules['weekly'] = array(
14
  'interval' => 604800,
15
+ 'display' => __( 'Once Weekly', 'ultimate-member')
16
  );
17
 
18
  return $schedules;
core/um-datetime.php CHANGED
@@ -23,7 +23,7 @@ class UM_DateTime {
23
  $diff = (int) abs( $to - $from );
24
  if ( $diff < 60 ) {
25
 
26
- $since = __('just now','ultimatemember');
27
 
28
  } elseif ( $diff < HOUR_IN_SECONDS ) {
29
 
@@ -31,9 +31,9 @@ class UM_DateTime {
31
  if ( $mins <= 1 )
32
  $mins = 1;
33
  if ( $mins == 1 ) {
34
- $since = sprintf( __('%s min','ultimatemember'), $mins );
35
  } else {
36
- $since = sprintf( __('%s mins','ultimatemember'), $mins );
37
  }
38
 
39
  } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
@@ -42,9 +42,9 @@ class UM_DateTime {
42
  if ( $hours <= 1 )
43
  $hours = 1;
44
  if ( $hours == 1 ) {
45
- $since = sprintf( __('%s hr','ultimatemember'), $hours );
46
  } else {
47
- $since = sprintf( __('%s hrs','ultimatemember'), $hours );
48
  }
49
 
50
  } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
@@ -53,22 +53,22 @@ class UM_DateTime {
53
  if ( $days <= 1 )
54
  $days = 1;
55
  if ( $days == 1 ) {
56
- $since = sprintf( __('Yesterday at %s','ultimatemember'), date('g:ia', $from ) );
57
  } else {
58
- $since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
59
  }
60
 
61
  } elseif ( $diff < 30 * DAY_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
62
 
63
- $since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
64
 
65
  } elseif ( $diff < YEAR_IN_SECONDS && $diff >= 30 * DAY_IN_SECONDS ) {
66
 
67
- $since = sprintf(__('%s at %s','ultimatemember'), date('F d', $from ), date('g:ia', $from ) );
68
 
69
  } elseif ( $diff >= YEAR_IN_SECONDS ) {
70
 
71
- $since = sprintf(__('%s at %s','ultimatemember'), date( 'F d, Y', $from ), date('g:ia', $from ) );
72
 
73
  }
74
 
@@ -85,11 +85,11 @@ class UM_DateTime {
85
  $age = date('Y') - $then_year;
86
  if( strtotime('+' . $age . ' years', $then_ts) > current_time( 'timestamp' ) ) $age--;
87
  if ( $age == 1 )
88
- return sprintf(__('%s year old','ultimatemember'), $age );
89
  if ( $age > 1 )
90
- return sprintf(__('%s years old','ultimatemember'), $age );
91
  if ( $age == 0 )
92
- return __('Less than 1 year old','ultimatemember');
93
  }
94
 
95
  /***
23
  $diff = (int) abs( $to - $from );
24
  if ( $diff < 60 ) {
25
 
26
+ $since = __('just now','ultimate-member');
27
 
28
  } elseif ( $diff < HOUR_IN_SECONDS ) {
29
 
31
  if ( $mins <= 1 )
32
  $mins = 1;
33
  if ( $mins == 1 ) {
34
+ $since = sprintf( __('%s min','ultimate-member'), $mins );
35
  } else {
36
+ $since = sprintf( __('%s mins','ultimate-member'), $mins );
37
  }
38
 
39
  } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
42
  if ( $hours <= 1 )
43
  $hours = 1;
44
  if ( $hours == 1 ) {
45
+ $since = sprintf( __('%s hr','ultimate-member'), $hours );
46
  } else {
47
+ $since = sprintf( __('%s hrs','ultimate-member'), $hours );
48
  }
49
 
50
  } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
53
  if ( $days <= 1 )
54
  $days = 1;
55
  if ( $days == 1 ) {
56
+ $since = sprintf( __('Yesterday at %s','ultimate-member'), date('g:ia', $from ) );
57
  } else {
58
+ $since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
59
  }
60
 
61
  } elseif ( $diff < 30 * DAY_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
62
 
63
+ $since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
64
 
65
  } elseif ( $diff < YEAR_IN_SECONDS && $diff >= 30 * DAY_IN_SECONDS ) {
66
 
67
+ $since = sprintf(__('%s at %s','ultimate-member'), date('F d', $from ), date('g:ia', $from ) );
68
 
69
  } elseif ( $diff >= YEAR_IN_SECONDS ) {
70
 
71
+ $since = sprintf(__('%s at %s','ultimate-member'), date( 'F d, Y', $from ), date('g:ia', $from ) );
72
 
73
  }
74
 
85
  $age = date('Y') - $then_year;
86
  if( strtotime('+' . $age . ' years', $then_ts) > current_time( 'timestamp' ) ) $age--;
87
  if ( $age == 1 )
88
+ return sprintf(__('%s year old','ultimate-member'), $age );
89
  if ( $age > 1 )
90
+ return sprintf(__('%s years old','ultimate-member'), $age );
91
  if ( $age == 0 )
92
+ return __('Less than 1 year old','ultimate-member');
93
  }
94
 
95
  /***
core/um-enqueue.php CHANGED
@@ -121,7 +121,7 @@ class UM_Enqueue {
121
  wp_enqueue_script('um_datetime_locale');
122
  }
123
 
124
- if(is_object($post) && has_shortcode($post->post_content,'ultimatemember')) {
125
  wp_dequeue_script('jquery-form');
126
  }
127
  }
121
  wp_enqueue_script('um_datetime_locale');
122
  }
123
 
124
+ if(is_object($post) && has_shortcode($post->post_content,'ultimatemember' )) {
125
  wp_dequeue_script('jquery-form');
126
  }
127
  }
core/um-fields.php CHANGED
@@ -54,7 +54,7 @@ class UM_Fields {
54
 
55
 
56
  /**
57
- * Hidden field insaide a shortcode
58
  * @param string $field
59
  */
60
  function add_hidden_field( $field ) {
@@ -439,13 +439,16 @@ class UM_Fields {
439
 
440
  if ( strstr( $key, 'user_pass' ) && $this->set_mode != 'password' ) return '';
441
 
442
- return $ultimatemember->form->post_form[ $key ];
443
 
444
  } else if ( um_user( $key ) && $this->editing == true ) {
445
 
446
  if ( strstr( $key, 'user_pass' ) ) return '';
 
 
 
447
 
448
- return apply_filters( "um_edit_{$key}_field_value", um_user( $key ), $key );
449
 
450
  } else if ( ( um_user( $key ) || isset( $data['show_anyway'] ) ) && $this->viewing == true ) {
451
 
@@ -743,7 +746,7 @@ class UM_Fields {
743
  return $fields[$key]['title'];
744
  if ( isset( $fields[$key]['label'] ) )
745
  return $fields[$key]['label'];
746
- return __('Custom Field','ultimatemember');
747
  }
748
 
749
  /**
@@ -1018,18 +1021,18 @@ class UM_Fields {
1018
  if ( $array['min_width'] == '' && $array['crop'] == 3 ) $array['min_width'] = 600;
1019
  if ( $array['min_height'] == '' && $array['crop'] == 3 ) $array['min_height'] = 600;
1020
 
1021
- if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimatemember');
1022
  if (!isset($array['allowed_types'])) {
1023
  $array['allowed_types'] = "gif,jpg,jpeg,png";
1024
  } else {
1025
  $array['allowed_types'] = implode(',',$array['allowed_types']);
1026
  }
1027
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
1028
- if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
1029
- if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimatemember');
1030
- if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimatemember');
1031
- if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimatemember');
1032
- if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimatemember');
1033
  if (!isset($array['max_size'])) $array['max_size'] = 999999999;
1034
  if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
1035
  if (!isset($array['icon']) ) $array['icon'] = '';
@@ -1046,11 +1049,11 @@ class UM_Fields {
1046
  $array['allowed_types'] = implode(',',$array['allowed_types']);
1047
  }
1048
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
1049
- if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimatemember');
1050
- if (!isset($array['extension_error'])) $array['extension_error'] = "Sorry this is not a valid file.";
1051
- if (!isset($array['max_size_error'])) $array['max_size_error'] = "This file is too large!";
1052
- if (!isset($array['min_size_error'])) $array['min_size_error'] = "This file is too small!";
1053
- if (!isset($array['max_files_error'])) $array['max_files_error'] = "You can only upload one file";
1054
  if (!isset($array['max_size'])) $array['max_size'] = 999999999;
1055
  if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
1056
  if (!isset($array['icon']) ) $array['icon'] = '';
@@ -1331,7 +1334,7 @@ class UM_Fields {
1331
  $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
1332
 
1333
  if ( isset( $data['label'] ) ) {
1334
- $output .= $this->field_label( __('Current Password','ultimatemember'), $key, $data);
1335
  }
1336
 
1337
  $output .= '<div class="um-field-area">';
@@ -1360,7 +1363,7 @@ class UM_Fields {
1360
 
1361
  if ( $this->set_mode == 'account' && um_is_core_page('account') || $this->set_mode == 'password' && um_is_core_page('password-reset') ) {
1362
 
1363
- $output .= $this->field_label( __('New Password','ultimatemember'), $key, $data);
1364
 
1365
  } else if ( isset( $data['label'] ) ) {
1366
 
@@ -1392,7 +1395,7 @@ class UM_Fields {
1392
  $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
1393
 
1394
  if ( isset( $data['label'] ) ) {
1395
- $output .= $this->field_label( sprintf(__('Confirm %s','ultimatemember'), $data['label'] ), $key, $data);
1396
  }
1397
 
1398
  $output .= '<div class="um-field-area">';
@@ -1614,7 +1617,7 @@ class UM_Fields {
1614
  $output .= $this->field_label($label, $key, $data);
1615
  }
1616
 
1617
- $modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
1618
 
1619
  $output .= '<div class="um-field-area" style="text-align: center">';
1620
 
@@ -1633,7 +1636,7 @@ class UM_Fields {
1633
 
1634
  $output .= '<div class="um-single-image-preview show '. $crop_class .'" data-crop="'.$crop_data.'" data-key="'.$key.'">
1635
  <a href="#" class="cancel"><i class="um-icon-close"></i></a>' . $img . '
1636
- </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimatemember') . '</a>';
1637
 
1638
  } else {
1639
 
@@ -1668,8 +1671,8 @@ class UM_Fields {
1668
 
1669
  $output .= '<div class="um-modal-footer">
1670
  <div class="um-modal-right">
1671
- <a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimatemember').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Apply','ultimatemember') . '</a>
1672
- <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
1673
  </div>
1674
  <div class="um-clear"></div>
1675
  </div>';
@@ -1698,7 +1701,7 @@ class UM_Fields {
1698
  $output .= $this->field_label($label, $key, $data);
1699
  }
1700
 
1701
- $modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimatemember');
1702
 
1703
  $output .= '<div class="um-field-area" style="text-align: center">';
1704
 
@@ -1714,7 +1717,7 @@ class UM_Fields {
1714
  <span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
1715
  </a>
1716
  </div>
1717
- </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimatemember') . '</a>';
1718
 
1719
  } else {
1720
 
@@ -1756,8 +1759,8 @@ class UM_Fields {
1756
 
1757
  $output .= '<div class="um-modal-footer">
1758
  <div class="um-modal-right">
1759
- <a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimatemember').'"> ' . __('Save','ultimatemember') . '</a>
1760
- <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimatemember') . '</a>
1761
  </div>
1762
  <div class="um-clear"></div>
1763
  </div>';
@@ -1987,33 +1990,32 @@ class UM_Fields {
1987
  $output .= '<option value=""></option>';
1988
 
1989
  $arr_selected = array();
1990
- // add options
1991
- foreach( $options as $k => $v ) {
 
1992
 
1993
- $v = rtrim( $v );
1994
 
1995
- $um_field_checkbox_item_title = $v;
1996
- $opt_value = $v;
1997
-
1998
- if ( $use_keyword ) {
1999
  $um_field_checkbox_item_title = $v;
2000
- $opt_value = $k;
2001
- }
 
 
 
 
2002
 
2003
-
2004
- $opt_value = apply_filters('um_field_non_utf8_value',$opt_value );
2005
-
2006
- $output .= '<option value="'.$opt_value.'" ';
2007
- if ( $this->is_selected( $key, $opt_value, $data ) ) {
 
 
 
 
 
2008
 
2009
- $output .= 'selected';
2010
- $arr_selected[ $opt_value ] = $opt_value;
2011
  }
2012
-
2013
- $output .= '>'.__( $um_field_checkbox_item_title ,UM_TEXTDOMAIN).'</option>';
2014
-
2015
-
2016
-
2017
  }
2018
 
2019
  $output .= '</select>';
@@ -2662,9 +2664,9 @@ class UM_Fields {
2662
  }
2663
 
2664
  if ( um_is_myprofile() ) {
2665
- $output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimatemember'), um_edit_profile_url() ) . '</span></p>';
2666
  } else {
2667
- $output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimatemember') . '</span></p>';
2668
  }
2669
  }
2670
 
54
 
55
 
56
  /**
57
+ * Hidden field inside a shortcode
58
  * @param string $field
59
  */
60
  function add_hidden_field( $field ) {
439
 
440
  if ( strstr( $key, 'user_pass' ) && $this->set_mode != 'password' ) return '';
441
 
442
+ return stripslashes_deep( $ultimatemember->form->post_form[ $key ] );
443
 
444
  } else if ( um_user( $key ) && $this->editing == true ) {
445
 
446
  if ( strstr( $key, 'user_pass' ) ) return '';
447
+ $value = um_user( $key );
448
+ $value = apply_filters( "um_edit_{$key}_field_value", $value, $key );
449
+ $value = apply_filters( "um_edit_{$type}_field_value", $value, $key );
450
 
451
+ return $value;
452
 
453
  } else if ( ( um_user( $key ) || isset( $data['show_anyway'] ) ) && $this->viewing == true ) {
454
 
746
  return $fields[$key]['title'];
747
  if ( isset( $fields[$key]['label'] ) )
748
  return $fields[$key]['label'];
749
+ return __('Custom Field','ultimate-member');
750
  }
751
 
752
  /**
1021
  if ( $array['min_width'] == '' && $array['crop'] == 3 ) $array['min_width'] = 600;
1022
  if ( $array['min_height'] == '' && $array['crop'] == 3 ) $array['min_height'] = 600;
1023
 
1024
+ if (!isset($array['invalid_image'])) $array['invalid_image'] = __("Please upload a valid image!",'ultimate-member');
1025
  if (!isset($array['allowed_types'])) {
1026
  $array['allowed_types'] = "gif,jpg,jpeg,png";
1027
  } else {
1028
  $array['allowed_types'] = implode(',',$array['allowed_types']);
1029
  }
1030
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
1031
+ if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
1032
+ if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid image.",'ultimate-member');
1033
+ if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This image is too large!",'ultimate-member');
1034
+ if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This image is too small!",'ultimate-member');
1035
+ if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one image",'ultimate-member');
1036
  if (!isset($array['max_size'])) $array['max_size'] = 999999999;
1037
  if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
1038
  if (!isset($array['icon']) ) $array['icon'] = '';
1049
  $array['allowed_types'] = implode(',',$array['allowed_types']);
1050
  }
1051
  if (!isset($array['upload_text'])) $array['upload_text'] = '';
1052
+ if (!isset($array['button_text'])) $array['button_text'] = __('Upload','ultimate-member');
1053
+ if (!isset($array['extension_error'])) $array['extension_error'] = __("Sorry this is not a valid file.",'ultimate-member');
1054
+ if (!isset($array['max_size_error'])) $array['max_size_error'] = __("This file is too large!",'ultimate-member');
1055
+ if (!isset($array['min_size_error'])) $array['min_size_error'] = __("This file is too small!",'ultimate-member');
1056
+ if (!isset($array['max_files_error'])) $array['max_files_error'] = __("You can only upload one file",'ultimate-member');
1057
  if (!isset($array['max_size'])) $array['max_size'] = 999999999;
1058
  if (!isset($array['upload_help_text'])) $array['upload_help_text'] = '';
1059
  if (!isset($array['icon']) ) $array['icon'] = '';
1334
  $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
1335
 
1336
  if ( isset( $data['label'] ) ) {
1337
+ $output .= $this->field_label( __('Current Password','ultimate-member'), $key, $data);
1338
  }
1339
 
1340
  $output .= '<div class="um-field-area">';
1363
 
1364
  if ( $this->set_mode == 'account' && um_is_core_page('account') || $this->set_mode == 'password' && um_is_core_page('password-reset') ) {
1365
 
1366
+ $output .= $this->field_label( __('New Password','ultimate-member'), $key, $data);
1367
 
1368
  } else if ( isset( $data['label'] ) ) {
1369
 
1395
  $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="'.$key.'">';
1396
 
1397
  if ( isset( $data['label'] ) ) {
1398
+ $output .= $this->field_label( sprintf(__('Confirm %s','ultimate-member'), $data['label'] ), $key, $data);
1399
  }
1400
 
1401
  $output .= '<div class="um-field-area">';
1617
  $output .= $this->field_label($label, $key, $data);
1618
  }
1619
 
1620
+ $modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
1621
 
1622
  $output .= '<div class="um-field-area" style="text-align: center">';
1623
 
1636
 
1637
  $output .= '<div class="um-single-image-preview show '. $crop_class .'" data-crop="'.$crop_data.'" data-key="'.$key.'">
1638
  <a href="#" class="cancel"><i class="um-icon-close"></i></a>' . $img . '
1639
+ </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change photo','ultimate-member') . '</a>';
1640
 
1641
  } else {
1642
 
1671
 
1672
  $output .= '<div class="um-modal-footer">
1673
  <div class="um-modal-right">
1674
+ <a href="#" class="um-modal-btn um-finish-upload image disabled" data-key="'.$key.'" data-change="'.__('Change photo','ultimate-member').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Apply','ultimate-member') . '</a>
1675
+ <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
1676
  </div>
1677
  <div class="um-clear"></div>
1678
  </div>';
1701
  $output .= $this->field_label($label, $key, $data);
1702
  }
1703
 
1704
+ $modal_label = ( isset( $data['label'] ) ) ? $data['label'] : __('Upload Photo','ultimate-member');
1705
 
1706
  $output .= '<div class="um-field-area" style="text-align: center">';
1707
 
1717
  <span class="filename">' . $this->field_value( $key, $default, $data ) . '</span>
1718
  </a>
1719
  </div>
1720
+ </div><a href="#" data-modal="um_upload_single" data-modal-size="'.$modal_size.'" data-modal-copy="1" class="um-button um-btn-auto-width">'. __('Change file','ultimate-member') . '</a>';
1721
 
1722
  } else {
1723
 
1759
 
1760
  $output .= '<div class="um-modal-footer">
1761
  <div class="um-modal-right">
1762
+ <a href="#" class="um-modal-btn um-finish-upload file disabled" data-key="'.$key.'" data-change="'.__('Change file').'" data-processing="'.__('Processing...','ultimate-member').'"> ' . __('Save','ultimate-member') . '</a>
1763
+ <a href="#" class="um-modal-btn alt" data-action="um_remove_modal"> ' . __('Cancel','ultimate-member') . '</a>
1764
  </div>
1765
  <div class="um-clear"></div>
1766
  </div>';
1990
  $output .= '<option value=""></option>';
1991
 
1992
  $arr_selected = array();
1993
+ // add options
1994
+ if( ! empty( $options ) && is_array( $options ) ){
1995
+ foreach( $options as $k => $v ) {
1996
 
1997
+ $v = rtrim( $v );
1998
 
 
 
 
 
1999
  $um_field_checkbox_item_title = $v;
2000
+ $opt_value = $v;
2001
+
2002
+ if ( $use_keyword ) {
2003
+ $um_field_checkbox_item_title = $v;
2004
+ $opt_value = $k;
2005
+ }
2006
 
2007
+ $opt_value = apply_filters('um_field_non_utf8_value',$opt_value );
2008
+
2009
+ $output .= '<option value="'.$opt_value.'" ';
2010
+ if ( $this->is_selected( $key, $opt_value, $data ) ) {
2011
+
2012
+ $output .= 'selected';
2013
+ $arr_selected[ $opt_value ] = $opt_value;
2014
+ }
2015
+
2016
+ $output .= '>'.__( $um_field_checkbox_item_title ,UM_TEXTDOMAIN).'</option>';
2017
 
 
 
2018
  }
 
 
 
 
 
2019
  }
2020
 
2021
  $output .= '</select>';
2664
  }
2665
 
2666
  if ( um_is_myprofile() ) {
2667
+ $output .= '<p class="um-profile-note">' . $emo .'<span>' . sprintf(__('Your profile is looking a little empty. Why not <a href="%s">add</a> some information!','ultimate-member'), um_edit_profile_url() ) . '</span></p>';
2668
  } else {
2669
+ $output .= '<p class="um-profile-note">'. $emo . '<span>' . __('This user has not added any information to their profile yet.','ultimate-member') . '</span></p>';
2670
  }
2671
  }
2672
 
core/um-files.php CHANGED
@@ -201,6 +201,8 @@ class UM_Files {
201
  } else if ($info['mime'] == 'image/png'){
202
 
203
  $image = imagecreatefrompng( $source );
 
 
204
 
205
  }
206
 
@@ -374,7 +376,7 @@ class UM_Files {
374
  if ( $data == null ) {
375
  $data = apply_filters("um_custom_image_handle_{$field}", '' );
376
  if ( !$data ) {
377
- $error = __('This media type is not recognized.','ultimatemember');
378
  }
379
  }
380
 
@@ -382,15 +384,15 @@ class UM_Files {
382
  $data = apply_filters("um_image_handle_{$field}__option", $data );
383
 
384
  if ( $fileinfo['invalid_image'] == true ) {
385
- $error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
386
  } elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
387
  $error = ( isset( $data['extension_error'] ) && !empty( $data['extension_error'] ) ) ? $data['extension_error'] : 'not allowed';
388
  } elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
389
  $error = $data['min_size_error'];
390
  } elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
391
- $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_width']);
392
  } elseif ( isset($data['min_height']) && ( $fileinfo['height'] < $data['min_height'] ) ) {
393
- $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimatemember'), $data['min_height']);
394
  }
395
 
396
  return $error;
@@ -442,7 +444,7 @@ class UM_Files {
442
  unlink( $is_temp );
443
  rmdir( dirname( $is_temp ) );
444
  } else {
445
- wp_die( __('Ultimate Member: Not a valid temp file','ultimatemember') );
446
  }
447
  }
448
 
@@ -532,7 +534,7 @@ class UM_Files {
532
  function new_user_upload( $user_id, $source, $key ) {
533
 
534
  if( ! is_numeric( $user_id ) ){
535
- wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimatemember') );
536
  }
537
 
538
  $user_id = trim( $user_id );
@@ -541,13 +543,13 @@ class UM_Files {
541
  $this->new_user( $user_id );
542
 
543
  if ( is_user_logged_in() && ( get_current_user_id() != $user_id ) && !um_user_can('can_edit_everyone') ) {
544
- wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
545
  }
546
 
547
  $allow_frontend_image_uploads = apply_filters('um_allow_frontend_image_uploads', false, $user_id, $key );
548
 
549
  if ( $allow_frontend_image_uploads == false && !is_user_logged_in() && ( $key == 'profile_photo' || $key == 'cover_photo' ) ) {
550
- wp_die( __('Unauthorized to do this attempt.','ultimatemember') );
551
  }
552
 
553
  $ext = '.' . pathinfo($source, PATHINFO_EXTENSION);
201
  } else if ($info['mime'] == 'image/png'){
202
 
203
  $image = imagecreatefrompng( $source );
204
+ imagealphablending( $image, false );
205
+ imagesavealpha( $image, true );
206
 
207
  }
208
 
376
  if ( $data == null ) {
377
  $data = apply_filters("um_custom_image_handle_{$field}", '' );
378
  if ( !$data ) {
379
+ $error = __('This media type is not recognized.','ultimate-member');
380
  }
381
  }
382
 
384
  $data = apply_filters("um_image_handle_{$field}__option", $data );
385
 
386
  if ( $fileinfo['invalid_image'] == true ) {
387
+ $error = sprintf(__('Your image is invalid or too large!','ultimate-member') );
388
  } elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
389
  $error = ( isset( $data['extension_error'] ) && !empty( $data['extension_error'] ) ) ? $data['extension_error'] : 'not allowed';
390
  } elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
391
  $error = $data['min_size_error'];
392
  } elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
393
+ $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimate-member'), $data['min_width']);
394
  } elseif ( isset($data['min_height']) && ( $fileinfo['height'] < $data['min_height'] ) ) {
395
+ $error = sprintf(__('Your photo is too small. It must be at least %spx wide.','ultimate-member'), $data['min_height']);
396
  }
397
 
398
  return $error;
444
  unlink( $is_temp );
445
  rmdir( dirname( $is_temp ) );
446
  } else {
447
+ wp_die( __('Ultimate Member: Not a valid temp file','ultimate-member') );
448
  }
449
  }
450
 
534
  function new_user_upload( $user_id, $source, $key ) {
535
 
536
  if( ! is_numeric( $user_id ) ){
537
+ wp_die( __("Invalid user ID: ".json_encode( $user_id )." ",'ultimate-member') );
538
  }
539
 
540
  $user_id = trim( $user_id );
543
  $this->new_user( $user_id );
544
 
545
  if ( is_user_logged_in() && ( get_current_user_id() != $user_id ) && !um_user_can('can_edit_everyone') ) {
546
+ wp_die( __('Unauthorized to do this attempt.','ultimate-member') );
547
  }
548
 
549
  $allow_frontend_image_uploads = apply_filters('um_allow_frontend_image_uploads', false, $user_id, $key );
550
 
551
  if ( $allow_frontend_image_uploads == false && !is_user_logged_in() && ( $key == 'profile_photo' || $key == 'cover_photo' ) ) {
552
+ wp_die( __('Unauthorized to do this attempt.','ultimate-member') );
553
  }
554
 
555
  $ext = '.' . pathinfo($source, PATHINFO_EXTENSION);
core/um-filters-addons.php CHANGED
@@ -13,8 +13,8 @@
13
  'type' => 'switch',
14
  'title' => $addon[0],
15
  'desc' => $addon[1],
16
- 'on' => __('Activated','ultimatemember'),
17
- 'off' => __('Deactivated','ultimatemember'),
18
  );
19
  }
20
 
@@ -23,14 +23,14 @@
23
  $sections[] = array(
24
 
25
  'icon' => 'um-faicon-plug',
26
- 'title' => __( 'Extensions','ultimatemember'),
27
 
28
  );
29
 
30
  $sections[] = array(
31
 
32
  'subsection' => true,
33
- 'title' => __( 'Tools','ultimatemember'),
34
  'fields' => $array,
35
 
36
  );
@@ -54,7 +54,7 @@
54
  $sections[] = array(
55
 
56
  'icon' => 'um-faicon-key',
57
- 'title' => __( 'Licenses','ultimatemember'),
58
  'fields' => $fields,
59
  'subsection' => false,
60
 
13
  'type' => 'switch',
14
  'title' => $addon[0],
15
  'desc' => $addon[1],
16
+ 'on' => __('Activated','ultimate-member'),
17
+ 'off' => __('Deactivated','ultimate-member'),
18
  );
19
  }
20
 
23
  $sections[] = array(
24
 
25
  'icon' => 'um-faicon-plug',
26
+ 'title' => __( 'Extensions','ultimate-member'),
27
 
28
  );
29
 
30
  $sections[] = array(
31
 
32
  'subsection' => true,
33
+ 'title' => __( 'Tools','ultimate-member'),
34
  'fields' => $array,
35
 
36
  );
54
  $sections[] = array(
55
 
56
  'icon' => 'um-faicon-key',
57
+ 'title' => __( 'Licenses','ultimate-member'),
58
  'fields' => $fields,
59
  'subsection' => false,
60
 
core/um-filters-fields.php CHANGED
@@ -8,7 +8,7 @@
8
 
9
  $asterisk = um_get_option('form_asterisk');
10
  if ( $asterisk && isset( $data['required'] ) && $data['required'] == 1 )
11
- $label = $label . '<span class="um-req" title="'.__('Required','ultimatemember').'">*</span>';
12
 
13
  return $label;
14
  }
@@ -20,7 +20,7 @@
20
  function um_profile_field_filter_hook__soundcloud_track( $value, $data ) {
21
 
22
  if ( !is_numeric( $value ) ) {
23
- return __('Invalid soundcloud track ID','ultimatemember');
24
  }
25
 
26
  $value = '<div class="um-soundcloud">
@@ -79,7 +79,7 @@
79
  add_filter('um_profile_field_filter_hook__user_registered', 'um_profile_field_filter_hook__user_registered', 99, 2);
80
  function um_profile_field_filter_hook__user_registered( $value, $data ) {
81
  $value = strtotime($value);
82
- $value = sprintf(__('Joined %s','ultimatemember'), date_i18n('F d, Y', $value) );
83
  return $value;
84
  }
85
 
@@ -90,7 +90,7 @@
90
  add_filter('um_profile_field_filter_hook___um_last_login', 'um_profile_field_filter_hook__last_login', 99, 2);
91
  function um_profile_field_filter_hook__last_login( $value, $data ) {
92
 
93
- $value = sprintf( __('Last login: %s','ultimatemember'), um_user_last_login( um_user('ID') ) );
94
 
95
  return $value;
96
  }
@@ -106,6 +106,7 @@
106
  if ( isset( $data ) && isset( $data['html'] ) && $data['html'] == 1 )
107
  return $value;
108
 
 
109
  $value = preg_replace('$(https?://[a-z0-9_./?=&#-]+)(?![^<>]*>)$i', ' <a href="$1" target="_blank">$1</a> ', $value." ");
110
  $value = preg_replace('$(www\.[a-z0-9_./?=&#-]+)(?![^<>]*>)$i', '<a target="_blank" href="http://$1">$1</a> ', $value." ");
111
  $value = wpautop($value);
@@ -450,7 +451,7 @@
450
  $arr_options = array();
451
  if( is_array( $options ) ){
452
  foreach ( $options as $item ) {
453
- $arr_options[] = __( $item, 'ultimatemember' );
454
  }
455
  }
456
 
8
 
9
  $asterisk = um_get_option('form_asterisk');
10
  if ( $asterisk && isset( $data['required'] ) && $data['required'] == 1 )
11
+ $label = $label . '<span class="um-req" title="'.__('Required','ultimate-member').'">*</span>';
12
 
13
  return $label;
14
  }
20
  function um_profile_field_filter_hook__soundcloud_track( $value, $data ) {
21
 
22
  if ( !is_numeric( $value ) ) {
23
+ return __('Invalid soundcloud track ID','ultimate-member');
24
  }
25
 
26
  $value = '<div class="um-soundcloud">
79
  add_filter('um_profile_field_filter_hook__user_registered', 'um_profile_field_filter_hook__user_registered', 99, 2);
80
  function um_profile_field_filter_hook__user_registered( $value, $data ) {
81
  $value = strtotime($value);
82
+ $value = sprintf(__('Joined %s','ultimate-member'), date_i18n('F d, Y', $value) );
83
  return $value;
84
  }
85
 
90
  add_filter('um_profile_field_filter_hook___um_last_login', 'um_profile_field_filter_hook__last_login', 99, 2);
91
  function um_profile_field_filter_hook__last_login( $value, $data ) {
92
 
93
+ $value = sprintf( __('Last login: %s','ultimate-member'), um_user_last_login( um_user('ID') ) );
94
 
95
  return $value;
96
  }
106
  if ( isset( $data ) && isset( $data['html'] ) && $data['html'] == 1 )
107
  return $value;
108
 
109
+ $value = esc_textarea( $value );
110
  $value = preg_replace('$(https?://[a-z0-9_./?=&#-]+)(?![^<>]*>)$i', ' <a href="$1" target="_blank">$1</a> ', $value." ");
111
  $value = preg_replace('$(www\.[a-z0-9_./?=&#-]+)(?![^<>]*>)$i', '<a target="_blank" href="http://$1">$1</a> ', $value." ");
112
  $value = wpautop($value);
451
  $arr_options = array();
452
  if( is_array( $options ) ){
453
  foreach ( $options as $item ) {
454
+ $arr_options[] = __( $item, 'ultimate-member');
455
  }
456
  }
457
 
core/um-filters-login.php CHANGED
@@ -30,10 +30,10 @@
30
  if ( isset( $_REQUEST['err'] ) && !empty( $_REQUEST['err'] ) ) {
31
  switch( $_REQUEST['err'] ) {
32
  case 'blocked_email':
33
- $err = __('This email address has been blocked.','ultimatemember');
34
  break;
35
  case 'blocked_ip':
36
- $err = __('Your IP address has been blocked.','ultimatemember');
37
  break;
38
  }
39
  }
@@ -75,16 +75,16 @@
75
 
76
  switch( $status ) {
77
  case 'inactive':
78
- return new WP_Error( $status, __('Your account has been disabled.','ultimatemember') );
79
  break;
80
  case 'awaiting_admin_review':
81
- return new WP_Error( $status, __('Your account has not been approved yet.','ultimatemember') );
82
  break;
83
  case 'awaiting_email_confirmation':
84
- return new WP_Error( $status, __('Your account is awaiting e-mail verification.','ultimatemember') );
85
  break;
86
  case 'rejected':
87
- return new WP_Error( $status, __('Your membership request has been rejected.','ultimatemember') );
88
  break;
89
  }
90
 
30
  if ( isset( $_REQUEST['err'] ) && !empty( $_REQUEST['err'] ) ) {
31
  switch( $_REQUEST['err'] ) {
32
  case 'blocked_email':
33
+ $err = __('This email address has been blocked.','ultimate-member');
34
  break;
35
  case 'blocked_ip':
36
+ $err = __('Your IP address has been blocked.','ultimate-member');
37
  break;
38
  }
39
  }
75
 
76
  switch( $status ) {
77
  case 'inactive':
78
+ return new WP_Error( $status, __('Your account has been disabled.','ultimate-member') );
79
  break;
80
  case 'awaiting_admin_review':
81
+ return new WP_Error( $status, __('Your account has not been approved yet.','ultimate-member') );
82
  break;
83
  case 'awaiting_email_confirmation':
84
+ return new WP_Error( $status, __('Your account is awaiting e-mail verification.','ultimate-member') );
85
  break;
86
  case 'rejected':
87
+ return new WP_Error( $status, __('Your membership request has been rejected.','ultimate-member') );
88
  break;
89
  }
90
 
core/um-filters-profile.php CHANGED
@@ -7,7 +7,7 @@
7
  function um_profile_tabs( $tabs ) {
8
 
9
  $tabs['main'] = array(
10
- 'name' => __('About','ultimatemember'),
11
  'icon' => 'um-faicon-user'
12
  );
13
 
@@ -81,7 +81,7 @@
81
  if( $file_size >= 999999999 ){
82
 
83
  }else{
84
- $args['cover_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimatemember').': <span>'.$file_size.$unit.'</span> )</small>';
85
  }
86
  return $args;
87
  }
@@ -99,7 +99,7 @@
99
  if( $file_size >= 999999999 ){
100
 
101
  }else{
102
- $args['profile_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimatemember').': <span>'.$file_size.$unit.'</span> )</small>';
103
  }
104
  return $args;
105
  }
7
  function um_profile_tabs( $tabs ) {
8
 
9
  $tabs['main'] = array(
10
+ 'name' => __('About','ultimate-member'),
11
  'icon' => 'um-faicon-user'
12
  );
13
 
81
  if( $file_size >= 999999999 ){
82
 
83
  }else{
84
+ $args['cover_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimate-member').': <span>'.$file_size.$unit.'</span> )</small>';
85
  }
86
  return $args;
87
  }
99
  if( $file_size >= 999999999 ){
100
 
101
  }else{
102
+ $args['profile_photo']['upload_text'] .= '<small class=\'um-max-filesize\'>( '.__('max','ultimate-member').': <span>'.$file_size.$unit.'</span> )</small>';
103
  }
104
  return $args;
105
  }
core/um-filters-user.php CHANGED
@@ -8,13 +8,13 @@
8
 
9
  $actions = null;
10
 
11
- $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
12
- $actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimatemember') );
13
- $actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimatemember') );
14
- $actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimatemember') );
15
- $actions['um_deactivate'] = array( 'label' => __('Deactivate','ultimatemember') );
16
- $actions['um_reenable'] = array( 'label' => __('Reactivate','ultimatemember') );
17
- //$actions['um_delete'] = array( 'label' => __('Delete','ultimatemember') );
18
 
19
  return $actions;
20
  }
@@ -32,38 +32,38 @@
32
  if ( current_user_can('manage_options') ) {
33
 
34
  if ( um_user('account_status') == 'awaiting_admin_review' ){
35
- $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
36
- $actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimatemember') );
37
  }
38
 
39
  if ( um_user('account_status') == 'rejected' ) {
40
- $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimatemember') );
41
  }
42
 
43
  if ( um_user('account_status') == 'approved' ) {
44
- $actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimatemember') );
45
  }
46
 
47
  if ( um_user('account_status') == 'awaiting_email_confirmation' ) {
48
- $actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimatemember') );
49
  }
50
 
51
  if ( um_user('account_status') != 'inactive' ) {
52
- $actions['um_deactivate'] = array( 'label' => __('Deactivate this account','ultimatemember') );
53
  }
54
 
55
  if ( um_user('account_status') == 'inactive' ) {
56
- $actions['um_reenable'] = array( 'label' => __('Reactivate this account','ultimatemember') );
57
  }
58
 
59
  if ( um_current_user_can( 'delete', um_profile_id() ) ) {
60
- $actions['um_delete'] = array( 'label' => __('Delete this user','ultimatemember') );
61
  }
62
 
63
  }
64
 
65
  if ( current_user_can('delete_users') ) {
66
- $actions['um_switch_user'] = array( 'label' => __('Login as this user','ultimatemember') );
67
  }
68
 
69
 
8
 
9
  $actions = null;
10
 
11
+ $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
12
+ $actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimate-member') );
13
+ $actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimate-member') );
14
+ $actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimate-member') );
15
+ $actions['um_deactivate'] = array( 'label' => __('Deactivate','ultimate-member') );
16
+ $actions['um_reenable'] = array( 'label' => __('Reactivate','ultimate-member') );
17
+ //$actions['um_delete'] = array( 'label' => __('Delete','ultimate-member') );
18
 
19
  return $actions;
20
  }
32
  if ( current_user_can('manage_options') ) {
33
 
34
  if ( um_user('account_status') == 'awaiting_admin_review' ){
35
+ $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
36
+ $actions['um_reject_membership'] = array( 'label' => __('Reject Membership','ultimate-member') );
37
  }
38
 
39
  if ( um_user('account_status') == 'rejected' ) {
40
+ $actions['um_approve_membership'] = array( 'label' => __('Approve Membership','ultimate-member') );
41
  }
42
 
43
  if ( um_user('account_status') == 'approved' ) {
44
+ $actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review','ultimate-member') );
45
  }
46
 
47
  if ( um_user('account_status') == 'awaiting_email_confirmation' ) {
48
+ $actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail','ultimate-member') );
49
  }
50
 
51
  if ( um_user('account_status') != 'inactive' ) {
52
+ $actions['um_deactivate'] = array( 'label' => __('Deactivate this account','ultimate-member') );
53
  }
54
 
55
  if ( um_user('account_status') == 'inactive' ) {
56
+ $actions['um_reenable'] = array( 'label' => __('Reactivate this account','ultimate-member') );
57
  }
58
 
59
  if ( um_current_user_can( 'delete', um_profile_id() ) ) {
60
+ $actions['um_delete'] = array( 'label' => __('Delete this user','ultimate-member') );
61
  }
62
 
63
  }
64
 
65
  if ( current_user_can('delete_users') ) {
66
+ $actions['um_switch_user'] = array( 'label' => __('Login as this user','ultimate-member') );
67
  }
68
 
69
 
core/um-form.php CHANGED
@@ -121,8 +121,8 @@ class UM_Form {
121
  $role = current( $_POST['role'] );
122
  }
123
 
124
- if ( isset( $custom_field_roles ) && is_array( $custom_field_roles ) && ! in_array( $role , $custom_field_roles ) ) {
125
- wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
126
  }
127
 
128
  $this->post_form['role'] = $role;
@@ -138,7 +138,7 @@ class UM_Form {
138
  }
139
 
140
  if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
141
- wp_die('Hello, spam bot!','ultimatemember');
142
  }
143
 
144
  if ( !in_array( $this->form_data['mode'], array('login') ) ) {
@@ -147,10 +147,10 @@ class UM_Form {
147
  $live_timestamp = current_time( 'timestamp' );
148
 
149
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
150
- wp_die( __('Hello, spam bot!','ultimatemember') );
151
 
152
  if ( !current_user_can('manage_options') && $live_timestamp - $form_timestamp < 6 && um_get_option('enable_timebot') == 1 )
153
- wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimatemember') );
154
 
155
  }
156
 
121
  $role = current( $_POST['role'] );
122
  }
123
 
124
+ if ( isset( $custom_field_roles ) && is_array( $custom_field_roles ) && ! empty( $role ) && ! in_array( $role , $custom_field_roles ) ) {
125
+ wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
126
  }
127
 
128
  $this->post_form['role'] = $role;
138
  }
139
 
140
  if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
141
+ wp_die('Hello, spam bot!','ultimate-member');
142
  }
143
 
144
  if ( !in_array( $this->form_data['mode'], array('login') ) ) {
147
  $live_timestamp = current_time( 'timestamp' );
148
 
149
  if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
150
+ wp_die( __('Hello, spam bot!','ultimate-member') );
151
 
152
  if ( !current_user_can('manage_options') && $live_timestamp - $form_timestamp < 6 && um_get_option('enable_timebot') == 1 )
153
+ wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
154
 
155
  }
156
 
core/um-members.php CHANGED
@@ -97,7 +97,7 @@ class UM_Members {
97
 
98
  ?>
99
 
100
- <select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $attrs['label'] ), 'ultimatemember'); ?>">
101
 
102
  <option></option>
103
 
@@ -115,7 +115,7 @@ class UM_Members {
115
 
116
  ?>
117
 
118
- <option value="<?php echo $opt; ?>" <?php um_select_if_in_query_params( $filter, $opt ); ?>><?php echo __( $v, 'ultimatemember'); ?></option>
119
 
120
  <?php } ?>
121
 
@@ -129,7 +129,7 @@ class UM_Members {
129
 
130
  ?>
131
 
132
- <input type="text" autocomplete="off" name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" placeholder="<?php echo isset( $attrs['label'] ) ? __( $attrs['label'], 'ultimatemember') : ''; ?>" value='<?php echo esc_attr( um_queried_search_value( $filter, false ) ); ?>' />
133
 
134
  <?php
135
 
97
 
98
  ?>
99
 
100
+ <select name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" class="um-s1" style="width: 100%" data-placeholder="<?php echo __( stripslashes( $attrs['label'] ), 'ultimate-member'); ?>">
101
 
102
  <option></option>
103
 
115
 
116
  ?>
117
 
118
+ <option value="<?php echo $opt; ?>" <?php um_select_if_in_query_params( $filter, $opt ); ?>><?php echo __( $v, 'ultimate-member'); ?></option>
119
 
120
  <?php } ?>
121
 
129
 
130
  ?>
131
 
132
+ <input type="text" autocomplete="off" name="<?php echo $filter; ?>" id="<?php echo $filter; ?>" placeholder="<?php echo isset( $attrs['label'] ) ? __( $attrs['label'], 'ultimate-member') : ''; ?>" value='<?php echo esc_attr( um_queried_search_value( $filter, false ) ); ?>' />
133
 
134
  <?php
135
 
core/um-password.php CHANGED
@@ -30,7 +30,7 @@ class UM_Password {
30
  um_fetch_user( $user_id );
31
 
32
  if ( $_REQUEST['hash'] != um_user('reset_pass_hash') ){
33
- wp_die( __('This is not a valid hash, or it has expired.','ultimatemember') );
34
  }
35
 
36
  $ultimatemember->user->profile['reset_pass_hash_token'] = current_time( 'timestamp' );
30
  um_fetch_user( $user_id );
31
 
32
  if ( $_REQUEST['hash'] != um_user('reset_pass_hash') ){
33
+ wp_die( __('This is not a valid hash, or it has expired.','ultimate-member') );
34
  }
35
 
36
  $ultimatemember->user->profile['reset_pass_hash_token'] = current_time( 'timestamp' );
core/um-permalinks.php CHANGED
@@ -169,7 +169,7 @@ class UM_Permalinks {
169
  um_fetch_user( $user_id );
170
 
171
  if ( strtolower($_REQUEST['hash']) !== strtolower( um_user('account_secret_hash') ) )
172
- wp_die( __( 'This activation link is expired or have already been used.','ultimatemember' ) );
173
 
174
  $ultimatemember->user->approve();
175
  $redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');
@@ -181,11 +181,11 @@ class UM_Permalinks {
181
  $user_id = $user->ID;
182
 
183
  // update wp user
184
- wp_set_current_user( $user_id, $user_login );
185
  wp_set_auth_cookie( $user_id );
186
 
187
  ob_start();
188
- do_action( 'wp_login', $user_login );
189
  ob_end_clean();
190
  }
191
 
169
  um_fetch_user( $user_id );
170
 
171
  if ( strtolower($_REQUEST['hash']) !== strtolower( um_user('account_secret_hash') ) )
172
+ wp_die( __( 'This activation link is expired or have already been used.','ultimate-member') );
173
 
174
  $ultimatemember->user->approve();
175
  $redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');
181
  $user_id = $user->ID;
182
 
183
  // update wp user
184
+ wp_set_current_user( $user_id, $user->user_login );
185
  wp_set_auth_cookie( $user_id );
186
 
187
  ob_start();
188
+ do_action( 'wp_login', $user->user_login, $user );
189
  ob_end_clean();
190
  }
191
 
core/um-rewrite.php CHANGED
@@ -126,6 +126,10 @@ class UM_Rewrite {
126
  $user_id = $the_user->ID;
127
  }
128
 
 
 
 
 
129
  if( !$user_id ){
130
  $user_id = $ultimatemember->user->user_exists_by_email_as_username( $slug );
131
  }
126
  $user_id = $the_user->ID;
127
  }
128
 
129
+ if( !$user_id ){
130
+ $user_id = $ultimatemember->user->user_exists_by_email_as_username( um_queried_user() );
131
+ }
132
+
133
  if( !$user_id ){
134
  $user_id = $ultimatemember->user->user_exists_by_email_as_username( $slug );
135
  }
core/um-setup.php CHANGED
@@ -46,9 +46,9 @@ class UM_Setup {
46
  '_um_profile_photo' => '1',
47
  '_um_cover_photos' => '1',
48
  '_um_show_name' => '1',
49
- '_um_directory_header' => __('{total_users} Members','ultimatemember'),
50
- '_um_directory_header_single' => __('{total_users} Member','ultimatemember'),
51
- '_um_directory_no_users' => __('We are sorry. We cannot find any users who match your search criteria.','ultimatemember'),
52
  '_um_profiles_per_page' => 12,
53
  '_um_profiles_per_page_mobile' => 6,
54
  '_um_core' => 'members',
@@ -134,12 +134,12 @@ class UM_Setup {
134
  '_um_register_max_width' => '450px',
135
  '_um_register_align' => 'center',
136
  '_um_register_icons' => 'label',
137
- '_um_register_primary_btn_word' => __('Register','ultimatemember'),
138
  '_um_register_primary_btn_color' => '#3ba1da',
139
  '_um_register_primary_btn_hover' => '#44b0ec',
140
  '_um_register_primary_btn_text' => '#fff',
141
  '_um_register_secondary_btn' => 1,
142
- '_um_register_secondary_btn_word' => __('Login','ultimatemember'),
143
  '_um_register_secondary_btn_color' => '#eee',
144
  '_um_register_secondary_btn_hover' => '#e5e5e5',
145
  '_um_register_secondary_btn_text' => '#666',
@@ -148,21 +148,21 @@ class UM_Setup {
148
  '_um_login_max_width' => '450px',
149
  '_um_login_align' => 'center',
150
  '_um_login_icons' => 'label',
151
- '_um_login_primary_btn_word' => __('Login','ultimatemember'),
152
  '_um_login_primary_btn_color' => '#3ba1da',
153
  '_um_login_primary_btn_hover' => '#44b0ec',
154
  '_um_login_primary_btn_text' => '#fff',
155
  '_um_login_forgot_pass_link' => 1,
156
  '_um_login_show_rememberme' => 1,
157
  '_um_login_secondary_btn' => 1,
158
- '_um_login_secondary_btn_word' => __('Register','ultimatemember'),
159
  '_um_login_secondary_btn_color' => '#eee',
160
  '_um_login_secondary_btn_hover' => '#e5e5e5',
161
  '_um_login_secondary_btn_text' => '#666',
162
  '_um_login_secondary_btn_url' => '',
163
  '_um_directory_template' => 'members',
164
- '_um_directory_header' => __('{total_users} Members','ultimatemember'),
165
- '_um_directory_header_single' => __('{total_users} Member','ultimatemember'),
166
  );
167
 
168
  $this->core_form_meta_all = apply_filters('um_core_form_meta_all', $this->core_form_meta_all );
46
  '_um_profile_photo' => '1',
47
  '_um_cover_photos' => '1',
48
  '_um_show_name' => '1',
49
+ '_um_directory_header' => __('{total_users} Members','ultimate-member'),
50
+ '_um_directory_header_single' => __('{total_users} Member','ultimate-member'),
51
+ '_um_directory_no_users' => __('We are sorry. We cannot find any users who match your search criteria.','ultimate-member'),
52
  '_um_profiles_per_page' => 12,
53
  '_um_profiles_per_page_mobile' => 6,
54
  '_um_core' => 'members',
134
  '_um_register_max_width' => '450px',
135
  '_um_register_align' => 'center',
136
  '_um_register_icons' => 'label',
137
+ '_um_register_primary_btn_word' => __('Register','ultimate-member'),
138
  '_um_register_primary_btn_color' => '#3ba1da',
139
  '_um_register_primary_btn_hover' => '#44b0ec',
140
  '_um_register_primary_btn_text' => '#fff',
141
  '_um_register_secondary_btn' => 1,
142
+ '_um_register_secondary_btn_word' => __('Login','ultimate-member'),
143
  '_um_register_secondary_btn_color' => '#eee',
144
  '_um_register_secondary_btn_hover' => '#e5e5e5',
145
  '_um_register_secondary_btn_text' => '#666',
148
  '_um_login_max_width' => '450px',
149
  '_um_login_align' => 'center',
150
  '_um_login_icons' => 'label',
151
+ '_um_login_primary_btn_word' => __('Login','ultimate-member'),
152
  '_um_login_primary_btn_color' => '#3ba1da',
153
  '_um_login_primary_btn_hover' => '#44b0ec',
154
  '_um_login_primary_btn_text' => '#fff',
155
  '_um_login_forgot_pass_link' => 1,
156
  '_um_login_show_rememberme' => 1,
157
  '_um_login_secondary_btn' => 1,
158
+ '_um_login_secondary_btn_word' => __('Register','ultimate-member'),
159
  '_um_login_secondary_btn_color' => '#eee',
160
  '_um_login_secondary_btn_hover' => '#e5e5e5',
161
  '_um_login_secondary_btn_text' => '#666',
162
  '_um_login_secondary_btn_url' => '',
163
  '_um_directory_template' => 'members',
164
+ '_um_directory_header' => __('{total_users} Members','ultimate-member'),
165
+ '_um_directory_header_single' => __('{total_users} Member','ultimate-member'),
166
  );
167
 
168
  $this->core_form_meta_all = apply_filters('um_core_form_meta_all', $this->core_form_meta_all );
core/um-short-functions.php CHANGED
@@ -510,12 +510,12 @@
510
  }
511
 
512
  if ( $k == 'timestamp' ) {
513
- $k = __('date submitted','ultimatemember');
514
  $v = date("d M Y H:i", $v);
515
  }
516
 
517
  if ( $style ) {
518
- if ( !$v ) $v = __('(empty)','ultimatemember');
519
  $output .= "<p><label>$k</label><span>$v</span></p>";
520
  } else {
521
  $output .= "$k: $v" . "\r\n";
@@ -958,6 +958,8 @@
958
  $url = add_query_arg('profiletab', 'main', $url );
959
  }
960
 
 
 
961
  return $url;
962
  }
963
 
510
  }
511
 
512
  if ( $k == 'timestamp' ) {
513
+ $k = __('date submitted','ultimate-member');
514
  $v = date("d M Y H:i", $v);
515
  }
516
 
517
  if ( $style ) {
518
+ if ( !$v ) $v = __('(empty)','ultimate-member');
519
  $output .= "<p><label>$k</label><span>$v</span></p>";
520
  } else {
521
  $output .= "$k: $v" . "\r\n";
958
  $url = add_query_arg('profiletab', 'main', $url );
959
  }
960
 
961
+ $url = apply_filters('um_edit_profile_cancel_uri', $url );
962
+
963
  return $url;
964
  }
965
 
core/um-shortcodes.php CHANGED
@@ -8,7 +8,7 @@ class UM_Shortcodes {
8
 
9
  $this->loop = '';
10
 
11
- add_shortcode('ultimatemember', array(&$this, 'ultimatemember'), 1);
12
 
13
  add_shortcode('um_loggedin', array(&$this, 'um_loggedin'));
14
  add_shortcode('um_loggedout', array(&$this, 'um_loggedout'));
@@ -202,7 +202,7 @@ class UM_Shortcodes {
202
  ob_start();
203
 
204
  $defaults = array(
205
- 'lock_text' => __('This content has been restricted to logged in users only. Please <a href="{login_referrer}">login</a> to view this content.', 'ultimatemember'),
206
  'show_lock' => 'yes',
207
  );
208
 
@@ -411,7 +411,7 @@ class UM_Shortcodes {
411
  function get_templates($excluded = null) {
412
 
413
  if ($excluded) {
414
- $array[$excluded] = __('Default Template', 'ultimatemember');
415
  }
416
 
417
  $paths[] = glob(um_path . 'templates/' . '*.php');
8
 
9
  $this->loop = '';
10
 
11
+ add_shortcode('ultimatemember', array(&$this, 'ultimatemember' ), 1);
12
 
13
  add_shortcode('um_loggedin', array(&$this, 'um_loggedin'));
14
  add_shortcode('um_loggedout', array(&$this, 'um_loggedout'));
202
  ob_start();
203
 
204
  $defaults = array(
205
+ 'lock_text' => __('This content has been restricted to logged in users only. Please <a href="{login_referrer}">login</a> to view this content.', 'ultimate-member'),
206
  'show_lock' => 'yes',
207
  );
208
 
411
  function get_templates($excluded = null) {
412
 
413
  if ($excluded) {
414
+ $array[$excluded] = __('Default Template', 'ultimate-member');
415
  }
416
 
417
  $paths[] = glob(um_path . 'templates/' . '*.php');
core/um-tracking.php CHANGED
@@ -144,12 +144,12 @@ class UM_Tracking {
144
 
145
  echo '<div class="updated um-admin-notice"><p>';
146
 
147
- echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a 20% discount which you can use to purchase our core extensions bundle. No sensitive data is tracked.', 'ultimatemember' );
148
 
149
  echo '</p>';
150
 
151
- echo '<p><a href="' . esc_url( $optin_url ) . '" class="button button-primary">' . __( 'Allow tracking', 'ultimatemember' ) . '</a>';
152
- echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow tracking', 'ultimatemember' ) . '</a></p></div>';
153
 
154
  }
155
 
144
 
145
  echo '<div class="updated um-admin-notice"><p>';
146
 
147
+ echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will immediately e-mail you a 20% discount which you can use to purchase our core extensions bundle. No sensitive data is tracked.', 'ultimate-member');
148
 
149
  echo '</p>';
150
 
151
+ echo '<p><a href="' . esc_url( $optin_url ) . '" class="button button-primary">' . __( 'Allow tracking', 'ultimate-member') . '</a>';
152
+ echo '&nbsp;<a href="' . esc_url( $optout_url ) . '" class="button-secondary">' . __( 'Do not allow tracking', 'ultimate-member') . '</a></p></div>';
153
 
154
  }
155
 
core/um-user-posts.php CHANGED
@@ -64,12 +64,12 @@ class UM_User_posts {
64
  function add_tab( $tabs ){
65
 
66
  $tabs['posts'] = array(
67
- 'name' => __('Posts','ultimatemember'),
68
  'icon' => 'um-faicon-pencil',
69
  );
70
 
71
  $tabs['comments'] = array(
72
- 'name' => __('Comments','ultimatemember'),
73
  'icon' => 'um-faicon-comment',
74
  );
75
 
64
  function add_tab( $tabs ){
65
 
66
  $tabs['posts'] = array(
67
+ 'name' => __('Posts','ultimate-member'),
68
  'icon' => 'um-faicon-pencil',
69
  );
70
 
71
  $tabs['comments'] = array(
72
+ 'name' => __('Comments','ultimate-member'),
73
  'icon' => 'um-faicon-comment',
74
  );
75
 
core/um-user.php CHANGED
@@ -61,12 +61,12 @@ class UM_User {
61
 
62
  $um_user_role = get_user_meta($user->ID,'role',true);
63
  ?>
64
- <h2><?php _e('Ultimate Member','ultimatemember') ?></h2>
65
  <table class="form-table">
66
  <tbody>
67
  <tr>
68
  <th>
69
- <label for="um_role"><?php _e( 'Community Role', 'ultimatemember' ); ?></label>
70
  </th>
71
  <td>
72
  <select name="um_role" id="um_role">
@@ -74,7 +74,7 @@ class UM_User {
74
  <option value="<?php echo $key; ?>" <?php selected( $um_user_role, $key ); ?> ><?php echo $value; ?></option>
75
  <?php } ?>
76
  </select>
77
- <span class="description"><?php _e( 'Assign or change the community role for this user', 'ultimatemember' ); ?></span>
78
  </td>
79
  </tr>
80
  </tbody>
@@ -237,23 +237,23 @@ class UM_User {
237
  }
238
 
239
  if ( $this->usermeta['account_status'][0] == 'approved' ) {
240
- $this->usermeta['account_status_name'][0] = __('Approved','ultimatemember');
241
  }
242
 
243
  if ( $this->usermeta['account_status'][0] == 'awaiting_email_confirmation' ) {
244
- $this->usermeta['account_status_name'][0] = __('Awaiting E-mail Confirmation','ultimatemember');
245
  }
246
 
247
  if ( $this->usermeta['account_status'][0] == 'awaiting_admin_review' ) {
248
- $this->usermeta['account_status_name'][0] = __('Pending Review','ultimatemember');
249
  }
250
 
251
  if ( $this->usermeta['account_status'][0] == 'rejected' ) {
252
- $this->usermeta['account_status_name'][0] = __('Membership Rejected','ultimatemember');
253
  }
254
 
255
  if ( $this->usermeta['account_status'][0] == 'inactive' ) {
256
- $this->usermeta['account_status_name'][0] = __('Membership Inactive','ultimatemember');
257
  }
258
 
259
  // add user meta
@@ -841,7 +841,7 @@ class UM_User {
841
  */
842
  function is_private_profile( $user_id ) {
843
  $privacy = get_user_meta( $user_id, 'profile_privacy', true );
844
- if ( $privacy == __('Only me','ultimatemember') ) {
845
  return true;
846
  }
847
  return false;
61
 
62
  $um_user_role = get_user_meta($user->ID,'role',true);
63
  ?>
64
+ <h2><?php _e('Ultimate Member','ultimate-member') ?></h2>
65
  <table class="form-table">
66
  <tbody>
67
  <tr>
68
  <th>
69
+ <label for="um_role"><?php _e( 'Community Role', 'ultimate-member'); ?></label>
70
  </th>
71
  <td>
72
  <select name="um_role" id="um_role">
74
  <option value="<?php echo $key; ?>" <?php selected( $um_user_role, $key ); ?> ><?php echo $value; ?></option>
75
  <?php } ?>
76
  </select>
77
+ <span class="description"><?php _e( 'Assign or change the community role for this user', 'ultimate-member'); ?></span>
78
  </td>
79
  </tr>
80
  </tbody>
237
  }
238
 
239
  if ( $this->usermeta['account_status'][0] == 'approved' ) {
240
+ $this->usermeta['account_status_name'][0] = __('Approved','ultimate-member');
241
  }
242
 
243
  if ( $this->usermeta['account_status'][0] == 'awaiting_email_confirmation' ) {
244
+ $this->usermeta['account_status_name'][0] = __('Awaiting E-mail Confirmation','ultimate-member');
245
  }
246
 
247
  if ( $this->usermeta['account_status'][0] == 'awaiting_admin_review' ) {
248
+ $this->usermeta['account_status_name'][0] = __('Pending Review','ultimate-member');
249
  }
250
 
251
  if ( $this->usermeta['account_status'][0] == 'rejected' ) {
252
+ $this->usermeta['account_status_name'][0] = __('Membership Rejected','ultimate-member');
253
  }
254
 
255
  if ( $this->usermeta['account_status'][0] == 'inactive' ) {
256
+ $this->usermeta['account_status_name'][0] = __('Membership Inactive','ultimate-member');
257
  }
258
 
259
  // add user meta
841
  */
842
  function is_private_profile( $user_id ) {
843
  $privacy = get_user_meta( $user_id, 'profile_privacy', true );
844
+ if ( $privacy == __('Only me','ultimate-member') ) {
845
  return true;
846
  }
847
  return false;
core/widgets/um-search-widget.php CHANGED
@@ -10,10 +10,10 @@ class um_search_widget extends WP_Widget {
10
  'um_search_widget',
11
 
12
  // Widget name will appear in UI
13
- __('Ultimate Member - Search', 'ultimatemember'),
14
 
15
  // Widget description
16
- array( 'description' => __( 'Shows users they follow in a widget.', 'ultimatemember' ), )
17
  );
18
 
19
  }
@@ -41,7 +41,7 @@ class um_search_widget extends WP_Widget {
41
  if ( isset( $instance[ 'title' ] ) ) {
42
  $title = $instance[ 'title' ];
43
  } else {
44
- $title = __( 'Search Users', 'ultimatemember' );
45
  }
46
 
47
  if ( isset( $instance[ 'max' ] ) ) {
10
  'um_search_widget',
11
 
12
  // Widget name will appear in UI
13
+ __('Ultimate Member - Search', 'ultimate-member'),
14
 
15
  // Widget description
16
+ array( 'description' => __( 'Shows users they follow in a widget.', 'ultimate-member'), )
17
  );
18
 
19
  }
41
  if ( isset( $instance[ 'title' ] ) ) {
42
  $title = $instance[ 'title' ];
43
  } else {
44
+ $title = __( 'Search Users', 'ultimate-member');
45
  }
46
 
47
  if ( isset( $instance[ 'max' ] ) ) {
index.php CHANGED
@@ -3,10 +3,10 @@
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
- Version: 1.3.84
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
- Text Domain: ultimatemember
10
  Domain Path: /languages
11
  */
12
  defined('ABSPATH') || exit;
@@ -17,7 +17,7 @@ Domain Path: /languages
17
  define('um_url',plugin_dir_url(__FILE__ ));
18
  define('um_path',plugin_dir_path(__FILE__ ));
19
  define('um_plugin', plugin_basename( __FILE__ ) );
20
- define('UM_TEXTDOMAIN', 'ultimatemember');
21
 
22
  define('ultimatemember_version', $plugin_data['Version'] );
23
 
@@ -49,13 +49,13 @@ Domain Path: /languages
49
  ***/
50
  function ultimatemember_plugin_links( $links ) {
51
 
52
- $more_links[] = '<a href="http://docs.ultimatemember.com/">' . __('Docs','ultimatemember') . '</a>';
53
 
54
- $more_links[] = '<a href="'.admin_url().'admin.php?page=um_options">' . __('Settings','ultimatemember') . '</a>';
55
 
56
  $links = $more_links + $links;
57
 
58
- $links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="um-delete" title="'.__('Remove this plugin','ultimatemember').'">' . __( 'Uninstall','ultimatemember' ) . '</a>';
59
 
60
  return $links;
61
 
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
+ Version: 1.3.85
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
+ Text Domain: ultimate-member
10
  Domain Path: /languages
11
  */
12
  defined('ABSPATH') || exit;
17
  define('um_url',plugin_dir_url(__FILE__ ));
18
  define('um_path',plugin_dir_path(__FILE__ ));
19
  define('um_plugin', plugin_basename( __FILE__ ) );
20
+ define('UM_TEXTDOMAIN', 'ultimate-member');
21
 
22
  define('ultimatemember_version', $plugin_data['Version'] );
23
 
49
  ***/
50
  function ultimatemember_plugin_links( $links ) {
51
 
52
+ $more_links[] = '<a href="http://docs.ultimatemember.com/">' . __('Docs','ultimate-member') . '</a>';
53
 
54
+ $more_links[] = '<a href="'.admin_url().'admin.php?page=um_options">' . __('Settings','ultimate-member') . '</a>';
55
 
56
  $links = $more_links + $links;
57
 
58
+ $links[] = '<a href="'.admin_url().'?um_adm_action=uninstall_ultimatemember" class="um-delete" title="'.__('Remove this plugin','ultimate-member').'">' . __( 'Uninstall','ultimate-member') . '</a>';
59
 
60
  return $links;
61
 
languages/ultimate-member-en.mo ADDED
Binary file
languages/ultimate-member-en.po ADDED
@@ -0,0 +1,7858 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Ultimate Member\n"
4
+ "POT-Creation-Date: 2017-06-06 22:45+0800\n"
5
+ "PO-Revision-Date: 2017-06-06 22:45+0800\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: en\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.11\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-WPHeader: index.php\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
18
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
19
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: addons/install_info.php:85
24
+ msgid ""
25
+ "To copy the Install info, click below then press Ctrl + C (PC) or Cmd + C "
26
+ "(Mac)."
27
+ msgstr ""
28
+
29
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:453
30
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:685
31
+ msgid "You have changes that are not saved. Would you like to save them now?"
32
+ msgstr ""
33
+
34
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:461
35
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:686
36
+ msgid "Are you sure? Resetting will lose all custom values."
37
+ msgstr ""
38
+
39
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:469
40
+ msgid "Are you sure? Resetting will lose all custom values in this section."
41
+ msgstr ""
42
+
43
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:477
44
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:687
45
+ msgid ""
46
+ "Your current options will be replaced with the values of this preset. Would "
47
+ "you like to proceed?"
48
+ msgstr ""
49
+
50
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:484
51
+ msgid "Please Wait"
52
+ msgstr ""
53
+
54
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:495
55
+ msgid "There was an error saving. Here is the result of your action:"
56
+ msgstr ""
57
+
58
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/enqueue.php:496
59
+ msgid ""
60
+ "There was a problem with your action. Please try again or reload the page."
61
+ msgstr ""
62
+
63
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:65
64
+ msgid "Warning- This options panel will not work properly without javascript!"
65
+ msgstr ""
66
+
67
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:141
68
+ msgid "Settings Imported!"
69
+ msgstr ""
70
+
71
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:156
72
+ msgid "All Defaults Restored!"
73
+ msgstr ""
74
+
75
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:170
76
+ msgid "Section Defaults Restored!"
77
+ msgstr ""
78
+
79
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:184
80
+ msgid "Settings Saved!"
81
+ msgstr ""
82
+
83
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:204
84
+ msgid "Settings have changed, you should save them!"
85
+ msgstr ""
86
+
87
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:212
88
+ msgid "error(s) were found!"
89
+ msgstr ""
90
+
91
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:220
92
+ msgid "warning(s) were found!"
93
+ msgstr ""
94
+
95
+ #: admin/core/lib/ReduxFramework/ReduxCore/core/panel.php:312
96
+ msgid ""
97
+ "<strong>Your panel has bundled outdated copies of Redux Framework template "
98
+ "files</strong> &#8211; if you encounter functionality issues this could be "
99
+ "the reason. Ensure you update or remove them."
100
+ msgstr ""
101
+
102
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:220
103
+ #, php-format
104
+ msgid "Options panel created using %1$s"
105
+ msgstr ""
106
+
107
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:220
108
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:205
109
+ msgid "Redux Framework"
110
+ msgstr ""
111
+
112
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:224
113
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:228
114
+ #: admin/core/um-admin-metabox.php:297
115
+ msgid "Options"
116
+ msgstr ""
117
+
118
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1751
119
+ msgid "Enable"
120
+ msgstr ""
121
+
122
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1756
123
+ msgid "Disable"
124
+ msgstr ""
125
+
126
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1762
127
+ msgid "moving the mouse over"
128
+ msgstr ""
129
+
130
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1764
131
+ msgid "clicking"
132
+ msgstr ""
133
+
134
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1768
135
+ #, php-format
136
+ msgid ""
137
+ "Hints are tooltips that popup when %d the hint icon, offering addition "
138
+ "information about the field in which they appear. They can be %d d by using "
139
+ "the link below."
140
+ msgstr ""
141
+
142
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1773
143
+ msgid "Hints"
144
+ msgstr ""
145
+
146
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:1900
147
+ #: admin/templates/form/login_settings.php:6 um-config.php:200
148
+ msgid "Default"
149
+ msgstr ""
150
+
151
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:2778
152
+ msgid "Invalid security credential. Please reload the page and try again."
153
+ msgstr ""
154
+
155
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:2787
156
+ msgid "Invalid user capability. Please reload the page and try again."
157
+ msgstr ""
158
+
159
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:2867
160
+ msgid "Your panel has no fields. Nothing to save."
161
+ msgstr ""
162
+
163
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:3982
164
+ msgid ""
165
+ "<strong>Redux Framework Notice: </strong>There are references to the Redux "
166
+ "Framework support site in your config's <code>admin_bar_links</code> "
167
+ "argument. This is sample data. Please change or remove this data before "
168
+ "shipping your product."
169
+ msgstr ""
170
+
171
+ #: admin/core/lib/ReduxFramework/ReduxCore/framework.php:3997
172
+ msgid ""
173
+ "<strong>Redux Framework Notice: </strong>There are references to the Redux "
174
+ "Framework support site in your config's <code>share_icons</code> argument. "
175
+ "This is sample data. Please change or remove this data before shipping your "
176
+ "product."
177
+ msgstr ""
178
+
179
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_admin_notices.php:97
180
+ msgid "Dismiss"
181
+ msgstr ""
182
+
183
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_cdn.php:74
184
+ msgid ""
185
+ "Please wait a few minutes, then try refreshing the page. Unable to load some "
186
+ "remotely hosted scripts."
187
+ msgstr ""
188
+
189
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_cdn.php:76
190
+ #, php-format
191
+ msgid ""
192
+ "If you are developing offline, please download and install the <a href=\"%s"
193
+ "\" target=\"_blank\">Redux Vendor Support</a> plugin/extension to bypass the "
194
+ "our CDN and avoid this warning"
195
+ msgstr ""
196
+
197
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_cdn.php:81
198
+ msgid "Redux Framework Warning"
199
+ msgstr ""
200
+
201
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_cdn.php:81
202
+ #, php-format
203
+ msgid "%s CDN unavailable. Some controls may not render properly."
204
+ msgstr ""
205
+
206
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_cdn.php:113
207
+ #, php-format
208
+ msgid ""
209
+ "The <a href=\"%s\">Vendor Support plugin</a> (or extension) is either not "
210
+ "installed or not activated and thus, some controls may not render properly. "
211
+ "Please ensure that it is installed and <a href=\"%s\">activated</a>"
212
+ msgstr ""
213
+
214
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:31
215
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:60
216
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:271
217
+ msgid "File Permission Issues"
218
+ msgstr ""
219
+
220
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:31
221
+ #, php-format
222
+ msgid ""
223
+ "We were unable to modify required files. Please check your permissions, or "
224
+ "modify your wp-config.php file to contain your FTP login credentials as <a "
225
+ "href=\"%s\" target=\"_blank\">outlined here</a>."
226
+ msgstr ""
227
+
228
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:60
229
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_filesystem.php:271
230
+ #, php-format
231
+ msgid ""
232
+ "We were unable to modify required files. Please ensure that <code>%1s</code> "
233
+ "has the proper read-write permissions, or modify your wp-config.php file to "
234
+ "contain your FTP login credentials as <a href=\"%2s\" target=\"_blank"
235
+ "\">outlined here</a>."
236
+ msgstr ""
237
+
238
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/class.redux_helpers.php:610
239
+ #, php-format
240
+ msgid ""
241
+ "<code>%s</code> version <strong style=\"color:red\">%s</strong> is out of "
242
+ "date. The core version is %s"
243
+ msgstr ""
244
+
245
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:720
246
+ msgid "You have changes that are not saved. Would you like to save them now?"
247
+ msgstr ""
248
+
249
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:721
250
+ msgid "Are you sure? Resetting will lose all custom values."
251
+ msgstr ""
252
+
253
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/extension_customizer.php:722
254
+ msgid ""
255
+ "Your current options will be replaced with the values of this preset. Would "
256
+ "you like to proceed?"
257
+ msgstr ""
258
+
259
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:89
260
+ msgid "Press return or enter to open this panel"
261
+ msgstr ""
262
+
263
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:114
264
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:142
265
+ #, php-format
266
+ msgid "You are customizing %s"
267
+ msgstr ""
268
+
269
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:138
270
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_section.php:79
271
+ msgid "Back"
272
+ msgstr ""
273
+
274
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:146
275
+ msgid "Help"
276
+ msgstr ""
277
+
278
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_section.php:72
279
+ msgid "Press return or enter to open"
280
+ msgstr ""
281
+
282
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/customizer/inc/customizer_section.php:122
283
+ msgid "Press return or enter to expand"
284
+ msgstr ""
285
+
286
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/extension_import_export.php:120
287
+ msgid "Import / Export"
288
+ msgstr ""
289
+
290
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:91
291
+ msgid "Import Options"
292
+ msgstr ""
293
+
294
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:95
295
+ msgid "Import from File"
296
+ msgstr ""
297
+
298
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:98
299
+ msgid "Import from URL"
300
+ msgstr ""
301
+
302
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:104
303
+ msgid ""
304
+ "Input your backup file below and hit Import to restore your sites options "
305
+ "from a backup."
306
+ msgstr ""
307
+
308
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:111
309
+ msgid ""
310
+ "Input the URL to another sites options set and hit Import to load the "
311
+ "options from that site."
312
+ msgstr ""
313
+
314
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:116
315
+ msgid "Import"
316
+ msgstr ""
317
+
318
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:116
319
+ msgid ""
320
+ "WARNING! This will overwrite all existing option values, please proceed with "
321
+ "caution!"
322
+ msgstr ""
323
+
324
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:120
325
+ msgid "Export Options"
326
+ msgstr ""
327
+
328
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:124
329
+ msgid ""
330
+ "Here you can copy/download your current option settings. Keep this safe as "
331
+ "you can use it as a backup should anything go wrong, or you can use it to "
332
+ "restore your settings on this site (or any other site)."
333
+ msgstr ""
334
+
335
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:132
336
+ msgid "Copy Data"
337
+ msgstr ""
338
+
339
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:133
340
+ msgid "Download Data File"
341
+ msgstr ""
342
+
343
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/import_export/import_export/field_import_export.php:134
344
+ msgid "Copy Export URL"
345
+ msgstr ""
346
+
347
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/options_object/extension_options_object.php:82
348
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/options_object/options_object/field_options_object.php:104
349
+ msgid "Options Object"
350
+ msgstr ""
351
+
352
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/extensions/options_object/options_object/field_options_object.php:107
353
+ msgid "Show Object in Javascript Console Object"
354
+ msgstr ""
355
+
356
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:124
357
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/color/field_color.php:73
358
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/color_gradient/field_color_gradient.php:79
359
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/color_gradient/field_color_gradient.php:91
360
+ msgid "Transparent"
361
+ msgstr ""
362
+
363
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:141
364
+ msgid "Background Repeat"
365
+ msgstr ""
366
+
367
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:157
368
+ msgid "Background Clip"
369
+ msgstr ""
370
+
371
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:173
372
+ msgid "Background Origin"
373
+ msgstr ""
374
+
375
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:188
376
+ msgid "Background Size"
377
+ msgstr ""
378
+
379
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:203
380
+ msgid "Background Attachment"
381
+ msgstr ""
382
+
383
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:223
384
+ msgid "Background Position"
385
+ msgstr ""
386
+
387
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:277
388
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/media/field_media.php:149
389
+ msgid "No media selected"
390
+ msgstr ""
391
+
392
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:314
393
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/media/field_media.php:198
394
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:126
395
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:188
396
+ #: core/um-fields.php:1031 core/um-fields.php:1052
397
+ msgid "Upload"
398
+ msgstr ""
399
+
400
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/background/field_background.php:321
401
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/media/field_media.php:205
402
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/multi_text/field_multi_text.php:69
403
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/multi_text/field_multi_text.php:73
404
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/multi_text/field_multi_text.php:76
405
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:133
406
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:190
407
+ #: admin/core/um-admin-notices.php:179 core/um-actions-profile.php:217
408
+ msgid "Remove"
409
+ msgstr ""
410
+
411
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:125
412
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:191
413
+ msgid "All"
414
+ msgstr ""
415
+
416
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:138
417
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:215
418
+ msgid "Top"
419
+ msgstr ""
420
+
421
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:145
422
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:222
423
+ msgid "Right"
424
+ msgstr ""
425
+
426
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:152
427
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:229
428
+ msgid "Bottom"
429
+ msgstr ""
430
+
431
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:159
432
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:236
433
+ msgid "Left"
434
+ msgstr ""
435
+
436
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/border/field_border.php:174
437
+ msgid "Border style"
438
+ msgstr ""
439
+
440
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/color_gradient/field_color_gradient.php:68
441
+ msgid "From "
442
+ msgstr ""
443
+
444
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/color_gradient/field_color_gradient.php:82
445
+ msgid "To "
446
+ msgstr ""
447
+
448
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/dimensions/field_dimensions.php:162
449
+ msgid "Width"
450
+ msgstr ""
451
+
452
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/dimensions/field_dimensions.php:178
453
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:442
454
+ msgid "Height"
455
+ msgstr ""
456
+
457
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/dimensions/field_dimensions.php:189
458
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/dimensions/field_dimensions.php:190
459
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:245
460
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/spacing/field_spacing.php:246
461
+ msgid "Units"
462
+ msgstr ""
463
+
464
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/gallery/field_gallery.php:73
465
+ msgid "Add/Edit Gallery"
466
+ msgstr ""
467
+
468
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/gallery/field_gallery.php:74
469
+ msgid "Clear Gallery"
470
+ msgstr ""
471
+
472
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/link_color/field_link_color.php:88
473
+ msgid "Regular"
474
+ msgstr ""
475
+
476
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/link_color/field_link_color.php:92
477
+ msgid "Hover"
478
+ msgstr ""
479
+
480
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/link_color/field_link_color.php:96
481
+ msgid "Visited"
482
+ msgstr ""
483
+
484
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/link_color/field_link_color.php:100
485
+ msgid "Active"
486
+ msgstr ""
487
+
488
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/multi_text/field_multi_text.php:61
489
+ msgid "Add More"
490
+ msgstr ""
491
+
492
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/password/field_password.php:62
493
+ #: core/um-builtin.php:580 core/um-builtin.php:583 core/um-builtin.php:1033
494
+ #: core/um-builtin.php:1036
495
+ msgid "Password"
496
+ msgstr ""
497
+
498
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/password/field_password.php:63
499
+ #: core/um-builtin.php:556 core/um-builtin.php:559 um-config.php:116
500
+ #: um-config.php:135
501
+ msgid "Username"
502
+ msgstr ""
503
+
504
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/select/field_select.php:83
505
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/select_image/field_select_image.php:63
506
+ msgid "Select an item"
507
+ msgstr ""
508
+
509
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/select/field_select.php:134
510
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/select_image/field_select_image.php:144
511
+ msgid "No items of this type were found."
512
+ msgstr ""
513
+
514
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:68
515
+ msgid "Slide"
516
+ msgstr ""
517
+
518
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:73
519
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:174
520
+ #, php-format
521
+ msgid "New %s"
522
+ msgstr ""
523
+
524
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:145
525
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:200
526
+ #: admin/core/um-admin-columns.php:48 admin/core/um-admin-columns.php:66
527
+ msgid "Title"
528
+ msgstr ""
529
+
530
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:149
531
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:204
532
+ msgid "Description"
533
+ msgstr ""
534
+
535
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:153
536
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:207
537
+ msgid "URL"
538
+ msgstr ""
539
+
540
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:167
541
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:220
542
+ msgid "Delete"
543
+ msgstr ""
544
+
545
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/slides/field_slides.php:223
546
+ #, php-format
547
+ msgid "Add %s"
548
+ msgstr ""
549
+
550
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/switch/field_switch.php:41
551
+ #: um-config.php:230 um-config.php:240 um-config.php:264 um-config.php:274
552
+ #: um-config.php:284 um-config.php:294 um-config.php:317 um-config.php:326
553
+ #: um-config.php:336 um-config.php:347 um-config.php:357 um-config.php:367
554
+ #: um-config.php:941 um-config.php:974 um-config.php:1008 um-config.php:1434
555
+ #: um-config.php:1522 um-config.php:1548 um-config.php:1603 um-config.php:1613
556
+ #: um-config.php:1623 um-config.php:1633 um-config.php:1665 um-config.php:1675
557
+ #: um-config.php:1690 um-config.php:1702 um-config.php:1749 um-config.php:1827
558
+ #: um-config.php:1929 um-config.php:1957 um-config.php:1967 um-config.php:2014
559
+ #: um-config.php:2024 um-config.php:2034 um-config.php:2057 um-config.php:2067
560
+ #: um-config.php:2077 um-config.php:2087 um-config.php:2097 um-config.php:2107
561
+ #: um-config.php:2134 um-config.php:2143
562
+ msgid "On"
563
+ msgstr ""
564
+
565
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/switch/field_switch.php:44
566
+ #: um-config.php:231 um-config.php:241 um-config.php:265 um-config.php:275
567
+ #: um-config.php:285 um-config.php:295 um-config.php:318 um-config.php:327
568
+ #: um-config.php:337 um-config.php:348 um-config.php:358 um-config.php:368
569
+ #: um-config.php:942 um-config.php:975 um-config.php:1009 um-config.php:1435
570
+ #: um-config.php:1523 um-config.php:1549 um-config.php:1604 um-config.php:1614
571
+ #: um-config.php:1624 um-config.php:1634 um-config.php:1666 um-config.php:1676
572
+ #: um-config.php:1691 um-config.php:1703 um-config.php:1750 um-config.php:1828
573
+ #: um-config.php:1930 um-config.php:1958 um-config.php:1968 um-config.php:2015
574
+ #: um-config.php:2025 um-config.php:2035 um-config.php:2058 um-config.php:2068
575
+ #: um-config.php:2078 um-config.php:2088 um-config.php:2098 um-config.php:2108
576
+ #: um-config.php:2135 um-config.php:2144
577
+ msgid "Off"
578
+ msgstr ""
579
+
580
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:231
581
+ msgid "Font Family"
582
+ msgstr ""
583
+
584
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:232
585
+ msgid "Font family"
586
+ msgstr ""
587
+
588
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:258
589
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:259
590
+ msgid "Backup Font Family"
591
+ msgstr ""
592
+
593
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:273
594
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:281
595
+ msgid "Font style"
596
+ msgstr ""
597
+
598
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:274
599
+ msgid "Font Weight &amp; Style"
600
+ msgstr ""
601
+
602
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:281
603
+ msgid "Style"
604
+ msgstr ""
605
+
606
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:321
607
+ msgid "Font subsets"
608
+ msgstr ""
609
+
610
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:323
611
+ msgid "Font Subsets"
612
+ msgstr ""
613
+
614
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:325
615
+ msgid "Subsets"
616
+ msgstr ""
617
+
618
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:325
619
+ msgid "Font script"
620
+ msgstr ""
621
+
622
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:342
623
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:343
624
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:344
625
+ msgid "Text Align"
626
+ msgstr ""
627
+
628
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:365
629
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:366
630
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:367
631
+ msgid "Text Transform"
632
+ msgstr ""
633
+
634
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:388
635
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:389
636
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:390
637
+ msgid "Font Variant"
638
+ msgstr ""
639
+
640
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:408
641
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:409
642
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:410
643
+ msgid "Text Decoration"
644
+ msgstr ""
645
+
646
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:432
647
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:433
648
+ msgid "Font Size"
649
+ msgstr ""
650
+
651
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:433
652
+ msgid "Size"
653
+ msgstr ""
654
+
655
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:441
656
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:442
657
+ msgid "Line Height"
658
+ msgstr ""
659
+
660
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:450
661
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:451
662
+ msgid "Word Spacing"
663
+ msgstr ""
664
+
665
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:459
666
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:460
667
+ msgid "Letter Spacing"
668
+ msgstr ""
669
+
670
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:478
671
+ msgid "Font Color"
672
+ msgstr ""
673
+
674
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:480
675
+ msgid "Font color"
676
+ msgstr ""
677
+
678
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:890
679
+ msgid "Standard Fonts"
680
+ msgstr ""
681
+
682
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/fields/typography/field_typography.php:991
683
+ msgid "Google Webfonts"
684
+ msgstr ""
685
+
686
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/embedded.php:15
687
+ #, php-format
688
+ msgid ""
689
+ "<span class=\"tc-lead tc-recommended\">RECOMMENDED</span>: If you are "
690
+ "submitting to WordPress.org Theme Repository, it is <strong>strongly</"
691
+ "strong> suggested that you read <a href=\"%s\" target=\"_blank\">this "
692
+ "document</a>, or your theme will be rejected because of Redux."
693
+ msgstr ""
694
+
695
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/embedded.php:24
696
+ #, php-format
697
+ msgid ""
698
+ "<span class=\"tc-lead tc-required\">REQUIRED</span>: You MUST delete "
699
+ "<strong> %s </strong>, or your theme will be rejected by WP.org theme "
700
+ "submission because of Redux."
701
+ msgstr ""
702
+
703
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/embedded.php:38
704
+ msgid "Optional"
705
+ msgstr ""
706
+
707
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/embedded.php:40
708
+ msgid ""
709
+ "<span class=\"tc-lead tc-recommended\">RECOMMENDED</span>: The following "
710
+ "arguments MUST be used for WP.org submissions, or you will be rejected "
711
+ "because of your Redux configuration."
712
+ msgstr ""
713
+
714
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:16
715
+ msgid "Redux localization utilities"
716
+ msgstr ""
717
+
718
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:17
719
+ msgid "Redux Resting Diles"
720
+ msgstr ""
721
+
722
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:18
723
+ msgid "Redux Code Styles"
724
+ msgstr ""
725
+
726
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:19
727
+ msgid "Redux Unit Testing"
728
+ msgstr ""
729
+
730
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:20
731
+ msgid "Redux Plugin File"
732
+ msgstr ""
733
+
734
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:21
735
+ msgid "Redux Boostrap Tests"
736
+ msgstr ""
737
+
738
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:22
739
+ msgid "CI Testing FIle"
740
+ msgstr ""
741
+
742
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:23
743
+ msgid "PHP Unit Testing"
744
+ msgstr ""
745
+
746
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/themecheck/checks/full_package.php:36
747
+ msgid ""
748
+ "It appears that you have embedded the full Redux package inside your theme. "
749
+ "You need only embed the <strong>ReduxCore</strong> folder. Embedding "
750
+ "anything else will get your rejected from theme submission. Suspected Redux "
751
+ "package file(s):"
752
+ msgstr ""
753
+
754
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:129
755
+ msgid "Help improve Our Panel"
756
+ msgstr ""
757
+
758
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:130
759
+ msgid ""
760
+ "Please helps us improve our panel by allowing us to gather anonymous usage "
761
+ "stats so we know which configurations, plugins and themes to test to ensure "
762
+ "compatibility."
763
+ msgstr ""
764
+
765
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:135
766
+ #: core/um-tracking.php:151
767
+ msgid "Allow tracking"
768
+ msgstr ""
769
+
770
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:140
771
+ #: core/um-tracking.php:152
772
+ msgid "Do not allow tracking"
773
+ msgstr ""
774
+
775
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:151
776
+ msgid "Welcome to the Redux Demo Panel"
777
+ msgstr ""
778
+
779
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:152
780
+ msgid "Getting Started"
781
+ msgstr ""
782
+
783
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:152
784
+ #, php-format
785
+ msgid ""
786
+ "This panel demonstrates the many features of Redux. Before digging in, we "
787
+ "suggest you get up to speed by reviewing %1$s."
788
+ msgstr ""
789
+
790
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:152
791
+ msgid "our documentation"
792
+ msgstr ""
793
+
794
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:153
795
+ msgid "Redux Generator"
796
+ msgstr ""
797
+
798
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:153
799
+ #, php-format
800
+ msgid ""
801
+ "Want to get a head start? Use the %1$s. It will create a customized "
802
+ "boilerplate theme or a standalone admin folder complete with all things "
803
+ "Redux (with the help of Underscores and TGM). Save yourself a headache and "
804
+ "try it today."
805
+ msgstr ""
806
+
807
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:154
808
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:229
809
+ msgid "Redux Extensions"
810
+ msgstr ""
811
+
812
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:154
813
+ #, php-format
814
+ msgid ""
815
+ "Did you know we have extensions, which greatly enhance the features of "
816
+ "Redux? Visit our %1$s to learn more!"
817
+ msgstr ""
818
+
819
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:154
820
+ msgid "extensions directory"
821
+ msgstr ""
822
+
823
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:155
824
+ msgid "Like Redux?"
825
+ msgstr ""
826
+
827
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:155
828
+ #, php-format
829
+ msgid ""
830
+ "If so, please %1$s and consider making a %2$s to keep development of Redux "
831
+ "moving forward."
832
+ msgstr ""
833
+
834
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:155
835
+ msgid "leave us a favorable review on WordPress.org"
836
+ msgstr ""
837
+
838
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:155
839
+ msgid "donation"
840
+ msgstr ""
841
+
842
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:156
843
+ msgid "Newsletter"
844
+ msgstr ""
845
+
846
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:156
847
+ msgid ""
848
+ "If you'd like to keep up to with all things Redux, please subscribe to our "
849
+ "newsletter"
850
+ msgstr ""
851
+
852
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:157
853
+ msgid "Email address"
854
+ msgstr ""
855
+
856
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:157
857
+ msgid "Subscribe"
858
+ msgstr ""
859
+
860
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/tracking.php:166
861
+ msgid "Close"
862
+ msgstr ""
863
+
864
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/color/validation_color.php:15
865
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/color_rgba/validation_color_rgba.php:14
866
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/colorrgba/validation_colorrgba.php:16
867
+ msgid "This field must be a valid color value."
868
+ msgstr ""
869
+
870
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/comma_numeric/validation_comma_numeric.php:16
871
+ msgid ""
872
+ "You must provide a comma separated list of numerical values for this option."
873
+ msgstr ""
874
+
875
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/css/validation_css.php:39
876
+ msgid "Unsafe strings were found in your CSS and have been filtered out."
877
+ msgstr ""
878
+
879
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/date/validation_date.php:16
880
+ msgid "This field must be a valid date."
881
+ msgstr ""
882
+
883
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/email/validation_email.php:16
884
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/email_not_empty/validation_email_not_empty.php:16
885
+ msgid "You must provide a valid email for this option."
886
+ msgstr ""
887
+
888
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/no_html/validation_no_html.php:15
889
+ msgid ""
890
+ "You must not enter any HTML in this field, all HTML tags have been removed."
891
+ msgstr ""
892
+
893
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/no_special_chars/validation_no_special_chars.php:16
894
+ msgid ""
895
+ "You must not enter any special characters in this field, all special "
896
+ "characters have been removed."
897
+ msgstr ""
898
+
899
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/not_empty/validation_not_empty.php:16
900
+ msgid "This field cannot be empty. Please provide a value."
901
+ msgstr ""
902
+
903
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/numeric/validation_numeric.php:16
904
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/numeric_not_empty/validation_numeric_not_empty.php:16
905
+ msgid "You must provide a numerical value for this option."
906
+ msgstr ""
907
+
908
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/unique_slug/validation_unique_slug.php:16
909
+ #, php-format
910
+ msgid ""
911
+ "That URL slug is in use, please choose another. <code>%s</code> is open for "
912
+ "use."
913
+ msgstr ""
914
+
915
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/validation/url/validation_url.php:16
916
+ msgid "You must provide a valid URL for this option."
917
+ msgstr ""
918
+
919
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:2
920
+ #, php-format
921
+ msgid "Welcome to Redux Framework %s"
922
+ msgstr ""
923
+
924
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:5
925
+ #, php-format
926
+ msgid ""
927
+ "Thank you for updating to the latest version! Redux Framework %s is a huge "
928
+ "step forward in Redux Development. Look at all that's new."
929
+ msgstr ""
930
+
931
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:8
932
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/changelog.php:10
933
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/credits.php:10
934
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/extensions.php:81
935
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:34
936
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:8
937
+ #, php-format
938
+ msgid "Version %s"
939
+ msgstr ""
940
+
941
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:15
942
+ msgid "What is Redux Framework?"
943
+ msgstr ""
944
+
945
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:17
946
+ msgid ""
947
+ "Redux Framework is the core of many products on the web. It is an option "
948
+ "framework which developers use to\n"
949
+ " enhance their products."
950
+ msgstr ""
951
+
952
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:22
953
+ msgid "Learn More"
954
+ msgstr ""
955
+
956
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/about.php:28
957
+ msgid "New in this Release"
958
+ msgstr ""
959
+
960
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/changelog.php:2
961
+ msgid "Redux Framework - Changelog"
962
+ msgstr ""
963
+
964
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/changelog.php:5
965
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:30
966
+ msgid ""
967
+ "Our core mantra at Redux is backwards compatibility. With hundreds of "
968
+ "thousands of instances worldwide, you can be assured that we will take care "
969
+ "of you and your clients."
970
+ msgstr ""
971
+
972
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/credits.php:2
973
+ msgid "Redux Framework - A Community Effort"
974
+ msgstr ""
975
+
976
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/credits.php:5
977
+ msgid ""
978
+ "We recognize we are nothing without our community. We would like to thank "
979
+ "all of those who help Redux to be what it is. Thank you for your involvement."
980
+ msgstr ""
981
+
982
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/credits.php:18
983
+ #, php-format
984
+ msgid ""
985
+ "Redux is created by a community of developers world wide. Want to have your "
986
+ "name listed too? <a href=\"%d\" target=\"_blank\">Contribute to Redux</a>."
987
+ msgstr ""
988
+
989
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/extensions.php:73
990
+ msgid "Redux Framework - Extensions"
991
+ msgstr ""
992
+
993
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/extensions.php:76
994
+ msgid ""
995
+ "Supercharge your Redux experience. Our extensions provide you with features "
996
+ "that will take your products to the next level."
997
+ msgstr ""
998
+
999
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/extensions.php:89
1000
+ msgid ""
1001
+ "While some are built specificially for developers, extensions such as Custom "
1002
+ "Fonts are sure to make any user happy."
1003
+ msgstr ""
1004
+
1005
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:26
1006
+ msgid "Redux Framework - System Status"
1007
+ msgstr ""
1008
+
1009
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:43
1010
+ msgid ""
1011
+ "Please copy and paste this information in your ticket when contacting "
1012
+ "support:"
1013
+ msgstr ""
1014
+
1015
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:48
1016
+ msgid "Get System Report"
1017
+ msgstr ""
1018
+
1019
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:53
1020
+ msgid "Understanding the Status Report"
1021
+ msgstr ""
1022
+
1023
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:62
1024
+ msgid "Copied!"
1025
+ msgstr ""
1026
+
1027
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:63
1028
+ msgid "Copy for Support"
1029
+ msgstr ""
1030
+
1031
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:73
1032
+ msgid "WordPress Environment"
1033
+ msgstr ""
1034
+
1035
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:80
1036
+ msgid "Home URL"
1037
+ msgstr ""
1038
+
1039
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:83
1040
+ msgid "The URL of your site's homepage."
1041
+ msgstr ""
1042
+
1043
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:89
1044
+ msgid "Site URL"
1045
+ msgstr ""
1046
+
1047
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:92
1048
+ msgid "The root URL of your site."
1049
+ msgstr ""
1050
+
1051
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:100
1052
+ msgid "Redux Version"
1053
+ msgstr ""
1054
+
1055
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:103
1056
+ msgid "The version of Redux Framework installed on your site."
1057
+ msgstr ""
1058
+
1059
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:111
1060
+ msgid "Redux Data Directory Writable"
1061
+ msgstr ""
1062
+
1063
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:114
1064
+ msgid ""
1065
+ "Redux and its extensions write data to the <code>uploads</code> directory. "
1066
+ "This directory must be writable."
1067
+ msgstr ""
1068
+
1069
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:120
1070
+ #, php-format
1071
+ msgid "To allow data saving, make <code>%s</code> writable."
1072
+ msgstr ""
1073
+
1074
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:126
1075
+ msgid "WP Content URL"
1076
+ msgstr ""
1077
+
1078
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:129
1079
+ msgid "The location of Wordpress's content URL."
1080
+ msgstr ""
1081
+
1082
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:137
1083
+ msgid "WP Version"
1084
+ msgstr ""
1085
+
1086
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:140
1087
+ msgid "The version of WordPress installed on your site."
1088
+ msgstr ""
1089
+
1090
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:148
1091
+ msgid "WP Multisite"
1092
+ msgstr ""
1093
+
1094
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:151
1095
+ msgid "Whether or not you have WordPress Multisite enabled."
1096
+ msgstr ""
1097
+
1098
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:162
1099
+ msgid "Permalink Structure"
1100
+ msgstr ""
1101
+
1102
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:165
1103
+ msgid ""
1104
+ "The current permalink structure as defined in Wordpress Settings->Permalinks."
1105
+ msgstr ""
1106
+
1107
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:174
1108
+ msgid "Front Page Display"
1109
+ msgstr ""
1110
+
1111
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:176
1112
+ msgid "The current Reading mode of Wordpress."
1113
+ msgstr ""
1114
+
1115
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:185
1116
+ msgid "Front Page"
1117
+ msgstr ""
1118
+
1119
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:188
1120
+ msgid "The currently selected page which acts as the site's Front Page."
1121
+ msgstr ""
1122
+
1123
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:196
1124
+ msgid "Posts Page"
1125
+ msgstr ""
1126
+
1127
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:199
1128
+ msgid "The currently selected page in where blog posts are displayed."
1129
+ msgstr ""
1130
+
1131
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:210
1132
+ msgid "WP Memory Limit"
1133
+ msgstr ""
1134
+
1135
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:213
1136
+ msgid "The maximum amount of memory (RAM) that your site can use at one time."
1137
+ msgstr ""
1138
+
1139
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:220
1140
+ #, php-format
1141
+ msgid ""
1142
+ "%s - We recommend setting memory to at least 40MB. See: <a href=\"%s\" "
1143
+ "target=\"_blank\">Increasing memory allocated to PHP</a>"
1144
+ msgstr ""
1145
+
1146
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:229
1147
+ msgid "Database Table Prefix"
1148
+ msgstr ""
1149
+
1150
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:232
1151
+ msgid "The prefix structure of the current Wordpress database."
1152
+ msgstr ""
1153
+
1154
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:240
1155
+ msgid "WP Debug Mode"
1156
+ msgstr ""
1157
+
1158
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:243
1159
+ msgid "Displays whether or not WordPress is in Debug Mode."
1160
+ msgstr ""
1161
+
1162
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:255
1163
+ #: admin/core/um-admin-dashboard.php:185 admin/core/um-admin-dashboard.php:187
1164
+ #: admin/core/um-admin-dashboard.php:189
1165
+ msgid "Language"
1166
+ msgstr ""
1167
+
1168
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:258
1169
+ msgid "The current language used by WordPress. Default = English"
1170
+ msgstr ""
1171
+
1172
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:270
1173
+ msgid "Browser"
1174
+ msgstr ""
1175
+
1176
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:277
1177
+ msgid "Browser Info"
1178
+ msgstr ""
1179
+
1180
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:280
1181
+ msgid "Information about web browser current in use."
1182
+ msgstr ""
1183
+
1184
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:297
1185
+ msgid "Server Environment"
1186
+ msgstr ""
1187
+
1188
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:304
1189
+ msgid "Server Info"
1190
+ msgstr ""
1191
+
1192
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:307
1193
+ msgid "Information about the web server that is currently hosting your site."
1194
+ msgstr ""
1195
+
1196
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:315
1197
+ msgid "Localhost Environment"
1198
+ msgstr ""
1199
+
1200
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:318
1201
+ msgid "Is the server running in a localhost environment."
1202
+ msgstr ""
1203
+
1204
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:332
1205
+ msgid "PHP Version"
1206
+ msgstr ""
1207
+
1208
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:335
1209
+ msgid "The version of PHP installed on your hosting server."
1210
+ msgstr ""
1211
+
1212
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:343
1213
+ msgid "ABSPATH"
1214
+ msgstr ""
1215
+
1216
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:346
1217
+ msgid "The ABSPATH variable on the server."
1218
+ msgstr ""
1219
+
1220
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:355
1221
+ msgid "PHP Memory Limit"
1222
+ msgstr ""
1223
+
1224
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:356
1225
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:361
1226
+ msgid "The largest filesize that can be contained in one post."
1227
+ msgstr ""
1228
+
1229
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:360
1230
+ msgid "PHP Post Max Size"
1231
+ msgstr ""
1232
+
1233
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:365
1234
+ msgid "PHP Time Limit"
1235
+ msgstr ""
1236
+
1237
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:366
1238
+ msgid ""
1239
+ "The amount of time (in seconds) that your site will spend on a single "
1240
+ "operation before timing out (to avoid server lockups)"
1241
+ msgstr ""
1242
+
1243
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:370
1244
+ msgid "PHP Max Input Vars"
1245
+ msgstr ""
1246
+
1247
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:371
1248
+ msgid ""
1249
+ "The maximum number of variables your server can use for a single function to "
1250
+ "avoid overloads."
1251
+ msgstr ""
1252
+
1253
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:375
1254
+ msgid "PHP Display Errors"
1255
+ msgstr ""
1256
+
1257
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:376
1258
+ msgid "Determines if PHP will display errors within the browser."
1259
+ msgstr ""
1260
+
1261
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:387
1262
+ msgid "SUHOSIN Installed"
1263
+ msgstr ""
1264
+
1265
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:388
1266
+ msgid ""
1267
+ "Suhosin is an advanced protection system for PHP installations. It was "
1268
+ "designed to protect your servers on the one hand against a number of well "
1269
+ "known problems in PHP applications and on the other hand against potential "
1270
+ "unknown vulnerabilities within these applications or the PHP core itself. "
1271
+ "If enabled on your server, Suhosin may need to be configured to increase its "
1272
+ "data submission limits."
1273
+ msgstr ""
1274
+
1275
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:399
1276
+ msgid "MySQL Version"
1277
+ msgstr ""
1278
+
1279
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:400
1280
+ msgid "The version of MySQL installed on your hosting server."
1281
+ msgstr ""
1282
+
1283
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:404
1284
+ msgid "Max Upload Size"
1285
+ msgstr ""
1286
+
1287
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:405
1288
+ msgid ""
1289
+ "The largest filesize that can be uploaded to your WordPress installation."
1290
+ msgstr ""
1291
+
1292
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:410
1293
+ msgid "Default Timezone is UTC"
1294
+ msgstr ""
1295
+
1296
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:412
1297
+ msgid "The default timezone for your server."
1298
+ msgstr ""
1299
+
1300
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:416
1301
+ #, php-format
1302
+ msgid "Default timezone is %s - it should be UTC"
1303
+ msgstr ""
1304
+
1305
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:428
1306
+ msgid "Used when communicating with remote services with PHP."
1307
+ msgstr ""
1308
+
1309
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:434
1310
+ msgid ""
1311
+ "Your server does not have fsockopen or cURL enabled - cURL is used to "
1312
+ "communicate with other servers. Please contact your hosting provider."
1313
+ msgstr ""
1314
+
1315
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:473
1316
+ msgid "Remote Post"
1317
+ msgstr ""
1318
+
1319
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:474
1320
+ msgid "Used to send data to remote servers."
1321
+ msgstr ""
1322
+
1323
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:479
1324
+ msgid ""
1325
+ "wp_remote_post() failed. Many advanced features may not function. Contact "
1326
+ "your hosting provider."
1327
+ msgstr ""
1328
+
1329
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:482
1330
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:497
1331
+ #, php-format
1332
+ msgid "Error: %s"
1333
+ msgstr ""
1334
+
1335
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:489
1336
+ msgid "Remote Get"
1337
+ msgstr ""
1338
+
1339
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:490
1340
+ msgid "Used to grab information from remote servers for updates updates."
1341
+ msgstr ""
1342
+
1343
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:495
1344
+ msgid ""
1345
+ "wp_remote_get() failed. This is needed to get information from remote "
1346
+ "servers. Contact your hosting provider."
1347
+ msgstr ""
1348
+
1349
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:531
1350
+ msgid "Active Plugins"
1351
+ msgstr ""
1352
+
1353
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:546
1354
+ msgid "Visit plugin homepage"
1355
+ msgstr ""
1356
+
1357
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:553
1358
+ #, php-format
1359
+ msgctxt "by author"
1360
+ msgid "by %s"
1361
+ msgstr ""
1362
+
1363
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:572
1364
+ msgid "Redux Instance: "
1365
+ msgstr ""
1366
+
1367
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:579
1368
+ msgid "The opt_name argument for this instance of Redux."
1369
+ msgstr ""
1370
+
1371
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:587
1372
+ msgid "The global_variable argument for this instance of Redux."
1373
+ msgstr ""
1374
+
1375
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:595
1376
+ msgid "Indicates if developer mode is enabled for this instance of Redux."
1377
+ msgstr ""
1378
+
1379
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:600
1380
+ msgid "Indicates if ajax based saving is enabled for this instance of Redux."
1381
+ msgstr ""
1382
+
1383
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:605
1384
+ msgid ""
1385
+ "The page slug denotes the string used for the options panel page for this "
1386
+ "instance of Redux."
1387
+ msgstr ""
1388
+
1389
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:610
1390
+ msgid ""
1391
+ "The page permissions variable sets the permission level required to access "
1392
+ "the options panel for this instance of Redux."
1393
+ msgstr ""
1394
+
1395
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:615
1396
+ msgid ""
1397
+ "This variable set whether or not the menu is displayed as an admin menu item "
1398
+ "for this instance of Redux."
1399
+ msgstr ""
1400
+
1401
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:620
1402
+ msgid ""
1403
+ "The page parent variable sets where the options menu will be placed on the "
1404
+ "WordPress admin sidebar for this instance of Redux."
1405
+ msgstr ""
1406
+
1407
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:626
1408
+ msgid "Indicates if the compiler flag is enabled for this instance of Redux."
1409
+ msgstr ""
1410
+
1411
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:631
1412
+ msgid ""
1413
+ "Indicates if output flag for globally shutting off all CSS output is enabled "
1414
+ "for this instance of Redux."
1415
+ msgstr ""
1416
+
1417
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:636
1418
+ msgid ""
1419
+ "The output_tag variable sets whether or not dynamic CSS will be generated "
1420
+ "for the customizer and Google fonts for this instance of Redux."
1421
+ msgstr ""
1422
+
1423
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:645
1424
+ msgid ""
1425
+ "The specified template path containing custom template files for this "
1426
+ "instance of Redux."
1427
+ msgstr ""
1428
+
1429
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:650
1430
+ msgid "List of template files overriding the default Redux template files."
1431
+ msgstr ""
1432
+
1433
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:676
1434
+ msgid "Indicates the installed Redux extensions and their version numbers."
1435
+ msgstr ""
1436
+
1437
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:705
1438
+ msgid "Theme"
1439
+ msgstr ""
1440
+
1441
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:710
1442
+ msgid "Name"
1443
+ msgstr ""
1444
+
1445
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:711
1446
+ msgid "The name of the current active theme."
1447
+ msgstr ""
1448
+
1449
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:715
1450
+ msgid "Version"
1451
+ msgstr ""
1452
+
1453
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:716
1454
+ msgid "The installed version of the current active theme."
1455
+ msgstr ""
1456
+
1457
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:722
1458
+ msgid "is available"
1459
+ msgstr ""
1460
+
1461
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:728
1462
+ msgid "Author URL"
1463
+ msgstr ""
1464
+
1465
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:729
1466
+ msgid "The theme developers URL."
1467
+ msgstr ""
1468
+
1469
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:733
1470
+ msgid "Child Theme"
1471
+ msgstr ""
1472
+
1473
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:734
1474
+ msgid "Displays whether or not the current theme is a child theme."
1475
+ msgstr ""
1476
+
1477
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:737
1478
+ #, php-format
1479
+ msgid ""
1480
+ "If you're modifying Redux Framework or a parent theme you didn't build "
1481
+ "personally, we recommend using a child theme. See: <a href=\"%s\" target="
1482
+ "\"_blank\">How to create a child theme</a>"
1483
+ msgstr ""
1484
+
1485
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:745
1486
+ msgid "Parent Theme Name"
1487
+ msgstr ""
1488
+
1489
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:747
1490
+ msgid "The name of the parent theme."
1491
+ msgstr ""
1492
+
1493
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:752
1494
+ msgid "Parent Theme Version"
1495
+ msgstr ""
1496
+
1497
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:754
1498
+ msgid "The installed version of the parent theme."
1499
+ msgstr ""
1500
+
1501
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:759
1502
+ msgid "Parent Theme Author URL"
1503
+ msgstr ""
1504
+
1505
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/status_report.php:761
1506
+ msgid "The parent theme developers URL."
1507
+ msgstr ""
1508
+
1509
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:2
1510
+ msgid "Redux Framework - Support"
1511
+ msgstr ""
1512
+
1513
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:4
1514
+ msgid ""
1515
+ "We are an open source project used by developers to make powerful control "
1516
+ "panels."
1517
+ msgstr ""
1518
+
1519
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:19
1520
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:40
1521
+ msgid "Generate a Support URL"
1522
+ msgstr ""
1523
+
1524
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:20
1525
+ msgid "Select Support Type"
1526
+ msgstr ""
1527
+
1528
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:21
1529
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:87
1530
+ msgid "How to Get Support"
1531
+ msgstr ""
1532
+
1533
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:27
1534
+ msgid "Submit a Support Request"
1535
+ msgstr ""
1536
+
1537
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:31
1538
+ msgid "To get started, we will need to generate a support hash."
1539
+ msgstr ""
1540
+
1541
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:35
1542
+ #, php-format
1543
+ msgid ""
1544
+ "This will provide to your developer all the information they may need to "
1545
+ "remedy your issue. This action WILL send information securely to a remote "
1546
+ "server. To see the type of information sent, please look at the <a href=\"%s"
1547
+ "\">Status tab</a>."
1548
+ msgstr ""
1549
+
1550
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:52
1551
+ msgid "Select Your Support Type"
1552
+ msgstr ""
1553
+
1554
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:56
1555
+ msgid "What type of user are you?"
1556
+ msgstr ""
1557
+
1558
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:63
1559
+ msgid "User"
1560
+ msgstr ""
1561
+
1562
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:65
1563
+ msgid "I am a user, using a pre-built product."
1564
+ msgstr ""
1565
+
1566
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:70
1567
+ msgid "Developer"
1568
+ msgstr ""
1569
+
1570
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:72
1571
+ msgid "I am a developer, building a product using Redux."
1572
+ msgstr ""
1573
+
1574
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:92
1575
+ msgid ""
1576
+ "Please proceed to the Redux Framework issue tracker and supply us with your "
1577
+ "support URL below. Please also provide any information that will help us to "
1578
+ "reproduce your issue."
1579
+ msgstr ""
1580
+
1581
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:101
1582
+ msgid ""
1583
+ "Listed below are the Wordpress plugins and/or theme installed on your site "
1584
+ "that utilize Redux Framework. We do not directly support products created "
1585
+ "with our framework. It is the responsibility of the plugin or theme "
1586
+ "developer to support their work. You will need to contact the author(s) of "
1587
+ "the products listed below with your support questions."
1588
+ msgstr ""
1589
+
1590
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:105
1591
+ msgid ""
1592
+ "Please be sure to include for your developer - via cut and paste - the "
1593
+ "Support URL in the box below."
1594
+ msgstr ""
1595
+
1596
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/views/support.php:134
1597
+ #, php-format
1598
+ msgid ""
1599
+ "Should the developer not be responsive, read the <a href=\"%s\" target="
1600
+ "\"_blank\">following article</a> before asking for support from us directly."
1601
+ msgstr ""
1602
+
1603
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:106
1604
+ msgid ""
1605
+ "If you like <strong>Redux</strong> please leave us a <a href=\"https://"
1606
+ "wordpress.org/support/view/plugin-reviews/redux-framework?filter=5#postform"
1607
+ "\" target=\"_blank\" class=\"redux-rating-link\" data-rated="
1608
+ "\"Thanks :)\">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating. A huge thank "
1609
+ "you from Redux in advance!"
1610
+ msgstr ""
1611
+
1612
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:183
1613
+ msgid "Support hash could not be generated. Please try again later."
1614
+ msgstr ""
1615
+
1616
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:205
1617
+ msgid "Welcome to Redux Framework"
1618
+ msgstr ""
1619
+
1620
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:213
1621
+ msgid "Redux Framework Changelog"
1622
+ msgstr ""
1623
+
1624
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:221
1625
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:416
1626
+ msgid "Get Support"
1627
+ msgstr ""
1628
+
1629
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:238
1630
+ msgid "The people that develop Redux Framework"
1631
+ msgstr ""
1632
+
1633
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:246
1634
+ msgid "Redux Framework Status"
1635
+ msgstr ""
1636
+
1637
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:346
1638
+ msgid "What's New"
1639
+ msgstr ""
1640
+
1641
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:349
1642
+ #: admin/core/um-admin-dashboard.php:159 core/um-filters-addons.php:26
1643
+ msgid "Extensions"
1644
+ msgstr ""
1645
+
1646
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:352
1647
+ msgid "Changelog"
1648
+ msgstr ""
1649
+
1650
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:355
1651
+ msgid "Credits"
1652
+ msgstr ""
1653
+
1654
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:358
1655
+ #: admin/templates/welcome/about_header.php:22
1656
+ msgid "Support"
1657
+ msgstr ""
1658
+
1659
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:361
1660
+ msgid "Status"
1661
+ msgstr ""
1662
+
1663
+ #: admin/core/lib/ReduxFramework/ReduxCore/inc/welcome/welcome.php:521
1664
+ #, php-format
1665
+ msgid "View %s"
1666
+ msgstr ""
1667
+
1668
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/footer.tpl.php:57
1669
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header_stickybar.tpl.php:21
1670
+ msgid "Save Changes"
1671
+ msgstr ""
1672
+
1673
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/footer.tpl.php:61
1674
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header_stickybar.tpl.php:25
1675
+ msgid "Reset Section"
1676
+ msgstr ""
1677
+
1678
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/footer.tpl.php:62
1679
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header_stickybar.tpl.php:26
1680
+ msgid "Reset All"
1681
+ msgstr ""
1682
+
1683
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/footer.tpl.php:67
1684
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header_stickybar.tpl.php:29
1685
+ msgid "Working..."
1686
+ msgstr ""
1687
+
1688
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:11
1689
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:49
1690
+ msgid "Developer Mode Enabled"
1691
+ msgstr ""
1692
+
1693
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:20
1694
+ msgid "WP_DEBUG is enabled"
1695
+ msgstr ""
1696
+
1697
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:26
1698
+ msgid "you are working in a localhost environment"
1699
+ msgstr ""
1700
+
1701
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:31
1702
+ msgid "and"
1703
+ msgstr ""
1704
+
1705
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:34
1706
+ msgid "This has been automatically enabled because"
1707
+ msgstr ""
1708
+
1709
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:36
1710
+ msgid ""
1711
+ "If you are not a developer, your theme/plugin author shipped with developer "
1712
+ "mode enabled. Contact them directly to fix it."
1713
+ msgstr ""
1714
+
1715
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header.tpl.php:58
1716
+ msgid "FORCED DEV MODE OFF ENABLED"
1717
+ msgstr ""
1718
+
1719
+ #: admin/core/lib/ReduxFramework/ReduxCore/templates/panel/header_stickybar.tpl.php:15
1720
+ msgid "Expand"
1721
+ msgstr ""
1722
+
1723
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:312
1724
+ msgid "Redux Framework has an embedded demo."
1725
+ msgstr ""
1726
+
1727
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:312
1728
+ msgid "Click here to activate the sample config file."
1729
+ msgstr ""
1730
+
1731
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:413
1732
+ #: admin/templates/welcome/about_header.php:21 index.php:52
1733
+ msgid "Docs"
1734
+ msgstr ""
1735
+
1736
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:414
1737
+ msgid "Repo"
1738
+ msgstr ""
1739
+
1740
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:415
1741
+ msgid "Builder"
1742
+ msgstr ""
1743
+
1744
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:421
1745
+ msgid "Deactivate Demo Mode"
1746
+ msgstr ""
1747
+
1748
+ #: admin/core/lib/ReduxFramework/class.redux-plugin.php:423
1749
+ msgid "Activate Demo Mode"
1750
+ msgstr ""
1751
+
1752
+ #. Plugin Name of the plugin/theme
1753
+ #. Author of the plugin/theme
1754
+ #: admin/core/um-admin-access.php:107 admin/core/um-admin-dashboard.php:127
1755
+ #: admin/core/um-admin-redux.php:55 core/um-user.php:64
1756
+ msgid "Ultimate Member"
1757
+ msgstr ""
1758
+
1759
+ #: admin/core/um-admin-actions-ajax.php:11
1760
+ #: admin/core/um-admin-actions-fields.php:11
1761
+ #: admin/core/um-admin-actions-modal.php:98
1762
+ msgid "Please login as administrator"
1763
+ msgstr ""
1764
+
1765
+ #: admin/core/um-admin-actions-ajax.php:63 core/um-actions-ajax.php:216
1766
+ #: core/um-actions-password.php:185 core/um-form.php:125
1767
+ msgid "This is not possible for security reasons."
1768
+ msgstr ""
1769
+
1770
+ #: admin/core/um-admin-actions-modal.php:23
1771
+ msgid "Manage conditional fields support"
1772
+ msgstr ""
1773
+
1774
+ #: admin/core/um-admin-actions-modal.php:25
1775
+ msgid "Add conditional fields support"
1776
+ msgstr ""
1777
+
1778
+ #: admin/core/um-admin-actions-modal.php:30
1779
+ msgid "Reset all rules"
1780
+ msgstr ""
1781
+
1782
+ #: admin/core/um-admin-actions-modal.php:123
1783
+ msgid "Search Icons..."
1784
+ msgstr ""
1785
+
1786
+ #: admin/core/um-admin-actions-modal.php:145
1787
+ msgid "Setup New Field"
1788
+ msgstr ""
1789
+
1790
+ #: admin/core/um-admin-actions-modal.php:161
1791
+ msgid "Predefined Fields"
1792
+ msgstr ""
1793
+
1794
+ #: admin/core/um-admin-actions-modal.php:173 admin/templates/role/sync.php:22
1795
+ #: core/um-builtin.php:1143
1796
+ msgid "None"
1797
+ msgstr ""
1798
+
1799
+ #: admin/core/um-admin-actions-modal.php:177
1800
+ msgid "Custom Fields"
1801
+ msgstr ""
1802
+
1803
+ #: admin/core/um-admin-actions-modal.php:187
1804
+ msgid "You did not create any custom fields"
1805
+ msgstr ""
1806
+
1807
+ #: admin/core/um-admin-actions-modal.php:221
1808
+ #: admin/core/um-admin-actions-modal.php:291
1809
+ msgid "This field type is not setup correcty."
1810
+ msgstr ""
1811
+
1812
+ #: admin/core/um-admin-actions.php:19 admin/core/um-admin-users.php:366
1813
+ #: core/um-user.php:69
1814
+ msgid "Community Role"
1815
+ msgstr ""
1816
+
1817
+ #: admin/core/um-admin-actions.php:78 admin/core/um-admin-actions.php:115
1818
+ #: admin/templates/access/settings.php:17
1819
+ msgid "Content Availability"
1820
+ msgstr ""
1821
+
1822
+ #: admin/core/um-admin-actions.php:79 admin/core/um-admin-actions.php:116
1823
+ #: admin/templates/access/settings.php:23
1824
+ msgid "Content accessible to Everyone"
1825
+ msgstr ""
1826
+
1827
+ #: admin/core/um-admin-actions.php:80 admin/core/um-admin-actions.php:117
1828
+ #: admin/templates/access/settings.php:24
1829
+ msgid "Content accessible to Logged Out Users"
1830
+ msgstr ""
1831
+
1832
+ #: admin/core/um-admin-actions.php:81 admin/core/um-admin-actions.php:118
1833
+ #: admin/templates/access/settings.php:25
1834
+ msgid "Content accessible to Logged In Users"
1835
+ msgstr ""
1836
+
1837
+ #: admin/core/um-admin-actions.php:86 admin/core/um-admin-actions.php:123
1838
+ msgid "Roles who can see the content"
1839
+ msgstr ""
1840
+
1841
+ #: admin/core/um-admin-actions.php:90 admin/core/um-admin-actions.php:133
1842
+ msgid "This is applicable only if you restrict the content to logged-in users."
1843
+ msgstr ""
1844
+
1845
+ #: admin/core/um-admin-actions.php:91 admin/core/um-admin-actions.php:97
1846
+ #: admin/core/um-admin-actions.php:136 admin/core/um-admin-actions.php:143
1847
+ msgid "Content Restriction Redirect URL"
1848
+ msgstr ""
1849
+
1850
+ #: admin/core/um-admin-actions.php:93 admin/core/um-admin-actions.php:99
1851
+ #: admin/core/um-admin-actions.php:139 admin/core/um-admin-actions.php:146
1852
+ msgid "Users who cannot see content will get redirected to that URL."
1853
+ msgstr ""
1854
+
1855
+ #: admin/core/um-admin-actions.php:220
1856
+ msgid "This is a translation of UM profile page?"
1857
+ msgstr ""
1858
+
1859
+ #: admin/core/um-admin-actions.php:226
1860
+ msgid "This is a translation of UM account page?"
1861
+ msgstr ""
1862
+
1863
+ #: admin/core/um-admin-actions.php:307
1864
+ #, php-format
1865
+ msgid "Duplicate of %s"
1866
+ msgstr ""
1867
+
1868
+ #: admin/core/um-admin-builder.php:97 admin/core/um-admin-builder.php:167
1869
+ #: admin/core/um-admin-dragdrop.php:149
1870
+ msgid "Add Row"
1871
+ msgstr ""
1872
+
1873
+ #: admin/core/um-admin-builder.php:98 admin/core/um-admin-builder.php:168
1874
+ #: admin/core/um-admin-dragdrop.php:150
1875
+ msgid "Edit Row"
1876
+ msgstr ""
1877
+
1878
+ #: admin/core/um-admin-builder.php:171 admin/core/um-admin-dragdrop.php:152
1879
+ #: admin/core/um-admin-dragdrop.php:166 admin/core/um-admin-dragdrop.php:191
1880
+ msgid "Delete Row"
1881
+ msgstr ""
1882
+
1883
+ #: admin/core/um-admin-columns.php:25
1884
+ msgid "Duplicate"
1885
+ msgstr ""
1886
+
1887
+ #: admin/core/um-admin-columns.php:47 admin/core/um-admin-columns.php:65
1888
+ msgid "ID"
1889
+ msgstr ""
1890
+
1891
+ #: admin/core/um-admin-columns.php:49
1892
+ msgid "Type"
1893
+ msgstr ""
1894
+
1895
+ #: admin/core/um-admin-columns.php:50 admin/core/um-admin-columns.php:67
1896
+ #: admin/core/um-admin-metabox.php:241 admin/core/um-admin-metabox.php:283
1897
+ msgid "Shortcode"
1898
+ msgstr ""
1899
+
1900
+ #: admin/core/um-admin-columns.php:51 admin/core/um-admin-columns.php:68
1901
+ msgid "Date"
1902
+ msgstr ""
1903
+
1904
+ #: admin/core/um-admin-dashboard.php:44
1905
+ #, php-format
1906
+ msgid ""
1907
+ "If you like Ultimate Member please consider leaving a %s&#9733;&#9733;&#9733;"
1908
+ "&#9733;&#9733;%s review. It will help us to grow the plugin and make it more "
1909
+ "popular. Thank you."
1910
+ msgstr ""
1911
+
1912
+ #: admin/core/um-admin-dashboard.php:44
1913
+ msgid "Thanks :)"
1914
+ msgstr ""
1915
+
1916
+ #: admin/core/um-admin-dashboard.php:107
1917
+ msgctxt "Admin menu name"
1918
+ msgid "Users"
1919
+ msgstr ""
1920
+
1921
+ #: admin/core/um-admin-dashboard.php:115
1922
+ msgctxt "Admin menu name"
1923
+ msgid "All Users"
1924
+ msgstr ""
1925
+
1926
+ #: admin/core/um-admin-dashboard.php:130
1927
+ msgid "Dashboard"
1928
+ msgstr ""
1929
+
1930
+ #: admin/core/um-admin-dashboard.php:133
1931
+ #, php-format
1932
+ msgid "%s | Ultimate Member"
1933
+ msgstr ""
1934
+
1935
+ #: admin/core/um-admin-dashboard.php:143 core/um-taxonomies.php:18
1936
+ msgid "Forms"
1937
+ msgstr ""
1938
+
1939
+ #: admin/core/um-admin-dashboard.php:144 core/um-taxonomies.php:36
1940
+ msgid "User Roles"
1941
+ msgstr ""
1942
+
1943
+ #: admin/core/um-admin-dashboard.php:147 core/um-taxonomies.php:56
1944
+ msgid "Member Directories"
1945
+ msgstr ""
1946
+
1947
+ #: admin/core/um-admin-dashboard.php:177
1948
+ msgid "Users Overview"
1949
+ msgstr ""
1950
+
1951
+ #: admin/core/um-admin-dashboard.php:179
1952
+ msgid "Latest from our blog"
1953
+ msgstr ""
1954
+
1955
+ #: admin/core/um-admin-dashboard.php:181
1956
+ msgid "Purge Temp Files"
1957
+ msgstr ""
1958
+
1959
+ #: admin/core/um-admin-dashboard.php:182
1960
+ msgid "User Cache"
1961
+ msgstr ""
1962
+
1963
+ #: admin/core/um-admin-functions.php:28 admin/core/um-admin-functions.php:31
1964
+ msgid "Form updated."
1965
+ msgstr ""
1966
+
1967
+ #: admin/core/um-admin-functions.php:29 admin/core/um-admin-functions.php:47
1968
+ msgid "Custom field updated."
1969
+ msgstr ""
1970
+
1971
+ #: admin/core/um-admin-functions.php:30 admin/core/um-admin-functions.php:48
1972
+ msgid "Custom field deleted."
1973
+ msgstr ""
1974
+
1975
+ #: admin/core/um-admin-functions.php:32
1976
+ msgid "Form restored to revision."
1977
+ msgstr ""
1978
+
1979
+ #: admin/core/um-admin-functions.php:33
1980
+ msgid "Form created."
1981
+ msgstr ""
1982
+
1983
+ #: admin/core/um-admin-functions.php:34
1984
+ msgid "Form saved."
1985
+ msgstr ""
1986
+
1987
+ #: admin/core/um-admin-functions.php:35
1988
+ msgid "Form submitted."
1989
+ msgstr ""
1990
+
1991
+ #: admin/core/um-admin-functions.php:36
1992
+ msgid "Form scheduled."
1993
+ msgstr ""
1994
+
1995
+ #: admin/core/um-admin-functions.php:37
1996
+ msgid "Form draft updated."
1997
+ msgstr ""
1998
+
1999
+ #: admin/core/um-admin-functions.php:46 admin/core/um-admin-functions.php:49
2000
+ msgid "Role updated."
2001
+ msgstr ""
2002
+
2003
+ #: admin/core/um-admin-functions.php:50
2004
+ msgid "Role restored to revision."
2005
+ msgstr ""
2006
+
2007
+ #: admin/core/um-admin-functions.php:51
2008
+ msgid "Role created."
2009
+ msgstr ""
2010
+
2011
+ #: admin/core/um-admin-functions.php:52
2012
+ msgid "Role saved."
2013
+ msgstr ""
2014
+
2015
+ #: admin/core/um-admin-functions.php:53
2016
+ msgid "Role submitted."
2017
+ msgstr ""
2018
+
2019
+ #: admin/core/um-admin-functions.php:54
2020
+ msgid "Role scheduled."
2021
+ msgstr ""
2022
+
2023
+ #: admin/core/um-admin-functions.php:55
2024
+ msgid "Role draft updated."
2025
+ msgstr ""
2026
+
2027
+ #: admin/core/um-admin-metabox.php:115 core/um-builtin.php:1013
2028
+ #: core/um-builtin.php:1028 um-config.php:159 um-config.php:169
2029
+ #: um-config.php:179 um-config.php:189 um-config.php:219 um-config.php:429
2030
+ #: um-config.php:438 um-config.php:448 um-config.php:458 um-config.php:490
2031
+ #: um-config.php:521 um-config.php:530 um-config.php:550 um-config.php:1342
2032
+ msgid "Yes"
2033
+ msgstr ""
2034
+
2035
+ #: admin/core/um-admin-metabox.php:116 admin/core/um-admin-roles.php:60
2036
+ #: core/um-actions-account.php:46 core/um-builtin.php:1012
2037
+ #: core/um-builtin.php:1013 core/um-builtin.php:1027 core/um-builtin.php:1028
2038
+ #: um-config.php:160 um-config.php:170 um-config.php:180 um-config.php:190
2039
+ #: um-config.php:220 um-config.php:430 um-config.php:439 um-config.php:449
2040
+ #: um-config.php:459 um-config.php:491 um-config.php:522 um-config.php:531
2041
+ #: um-config.php:551 um-config.php:1343
2042
+ msgid "No"
2043
+ msgstr ""
2044
+
2045
+ #: admin/core/um-admin-metabox.php:236
2046
+ msgid "General Options"
2047
+ msgstr ""
2048
+
2049
+ #: admin/core/um-admin-metabox.php:237
2050
+ msgid "Profile Card"
2051
+ msgstr ""
2052
+
2053
+ #: admin/core/um-admin-metabox.php:238
2054
+ msgid "Search Options"
2055
+ msgstr ""
2056
+
2057
+ #: admin/core/um-admin-metabox.php:239
2058
+ msgid "Results &amp; Pagination"
2059
+ msgstr ""
2060
+
2061
+ #: admin/core/um-admin-metabox.php:243
2062
+ msgid "Styling: General"
2063
+ msgstr ""
2064
+
2065
+ #: admin/core/um-admin-metabox.php:245
2066
+ msgid "Styling: Profile Card"
2067
+ msgstr ""
2068
+
2069
+ #: admin/core/um-admin-metabox.php:254
2070
+ msgid "Sync with WordPress Role"
2071
+ msgstr ""
2072
+
2073
+ #: admin/core/um-admin-metabox.php:256
2074
+ msgid "Administrative Permissions"
2075
+ msgstr ""
2076
+
2077
+ #: admin/core/um-admin-metabox.php:258
2078
+ msgid "General Permissions"
2079
+ msgstr ""
2080
+
2081
+ #: admin/core/um-admin-metabox.php:260
2082
+ msgid "Profile Access"
2083
+ msgstr ""
2084
+
2085
+ #: admin/core/um-admin-metabox.php:262
2086
+ msgid "Homepage Options"
2087
+ msgstr ""
2088
+
2089
+ #: admin/core/um-admin-metabox.php:264
2090
+ msgid "Registration Options"
2091
+ msgstr ""
2092
+
2093
+ #: admin/core/um-admin-metabox.php:266
2094
+ msgid "Login Options"
2095
+ msgstr ""
2096
+
2097
+ #: admin/core/um-admin-metabox.php:268
2098
+ msgid "Logout Options"
2099
+ msgstr ""
2100
+
2101
+ #: admin/core/um-admin-metabox.php:270
2102
+ msgid "Delete Options"
2103
+ msgstr ""
2104
+
2105
+ #: admin/core/um-admin-metabox.php:281
2106
+ msgid "Select Form Type"
2107
+ msgstr ""
2108
+
2109
+ #: admin/core/um-admin-metabox.php:282
2110
+ msgid "Form Builder"
2111
+ msgstr ""
2112
+
2113
+ #: admin/core/um-admin-metabox.php:285 admin/core/um-admin-metabox.php:290
2114
+ #: admin/core/um-admin-metabox.php:296
2115
+ msgid "Customize this form"
2116
+ msgstr ""
2117
+
2118
+ #: admin/core/um-admin-metabox.php:286 admin/core/um-admin-metabox.php:292
2119
+ #: admin/core/um-admin-metabox.php:298 admin/templates/form/login_css.php:4
2120
+ #: admin/templates/form/profile_css.php:4
2121
+ #: admin/templates/form/register_css.php:4 um-config.php:1979
2122
+ #: um-config.php:1985
2123
+ msgid "Custom CSS"
2124
+ msgstr ""
2125
+
2126
+ #: admin/core/um-admin-metabox.php:291
2127
+ msgid "User Meta"
2128
+ msgstr ""
2129
+
2130
+ #: admin/core/um-admin-metabox.php:467
2131
+ msgid ""
2132
+ "Select where this field should appear. This option should only be changed on "
2133
+ "the profile form and allows you to show a field in one mode only (edit or "
2134
+ "view) or in both modes."
2135
+ msgstr ""
2136
+
2137
+ #: admin/core/um-admin-metabox.php:501
2138
+ msgid "If"
2139
+ msgstr ""
2140
+
2141
+ #: admin/core/um-admin-metabox.php:570
2142
+ msgid "Value"
2143
+ msgstr ""
2144
+
2145
+ #: admin/core/um-admin-metabox.php:690
2146
+ msgid "Optional text to include with the divider"
2147
+ msgstr ""
2148
+
2149
+ #: admin/core/um-admin-metabox.php:881
2150
+ msgid ""
2151
+ "Turn on to force users to create a strong password (A combination of one "
2152
+ "lowercase letter, one uppercase letter, and one number). If turned on this "
2153
+ "option is only applied to register forms and not to login forms."
2154
+ msgstr ""
2155
+
2156
+ #: admin/core/um-admin-metabox.php:891
2157
+ msgid ""
2158
+ "Turn on to add a confirm password field. If turned on the confirm password "
2159
+ "field will only show on register forms and not on login forms."
2160
+ msgstr ""
2161
+
2162
+ #: admin/core/um-admin-metabox.php:1255
2163
+ msgid "Minimum number that can be entered in this field"
2164
+ msgstr ""
2165
+
2166
+ #: admin/core/um-admin-metabox.php:1265
2167
+ msgid "Maximum number that can be entered in this field"
2168
+ msgstr ""
2169
+
2170
+ #: admin/core/um-admin-notices.php:50
2171
+ #, php-format
2172
+ msgid ""
2173
+ "Registration is disabled. Please go to the <a href=\"%s\">general settings</"
2174
+ "a> page in the WordPress admin and select anyone can register. <a href=\"%s"
2175
+ "\">Hide this notice</a>"
2176
+ msgstr ""
2177
+
2178
+ #: admin/core/um-admin-notices.php:62
2179
+ #, php-format
2180
+ msgid ""
2181
+ "Exif is not enabled on your server. Mobile photo uploads will not be rotated "
2182
+ "correctly until you enable the exif extension. <a href=\"%s\">Hide this "
2183
+ "notice</a>"
2184
+ msgstr ""
2185
+
2186
+ #: admin/core/um-admin-notices.php:84
2187
+ msgid ""
2188
+ "One or more of your Ultimate Member pages are not correctly setup. Please "
2189
+ "visit <strong>Ultimate Member > Settings</strong> to re-assign your missing "
2190
+ "pages."
2191
+ msgstr ""
2192
+
2193
+ #: admin/core/um-admin-notices.php:90
2194
+ msgid "Ultimate Member Setup Error: User page can not be a child page."
2195
+ msgstr ""
2196
+
2197
+ #: admin/core/um-admin-notices.php:97
2198
+ msgid "Ultimate Member Setup Error: Account page can not be a child page."
2199
+ msgstr ""
2200
+
2201
+ #: admin/core/um-admin-notices.php:128
2202
+ #, php-format
2203
+ msgid ""
2204
+ "Your site language is <strong>%1$s</strong>. Good news! Ultimate Member is "
2205
+ "already available in <strong>%2$s language</strong>. <a href=\"%3$s"
2206
+ "\">Download the translation</a> files and start using the plugin in your "
2207
+ "language now. <a href=\"%4$s\">Hide this notice</a>"
2208
+ msgstr ""
2209
+
2210
+ #: admin/core/um-admin-notices.php:141
2211
+ #, php-format
2212
+ msgid ""
2213
+ "Ultimate Member has not yet been translated to your langeuage: <strong>%1$s</"
2214
+ "strong>. If you have translated the plugin you need put these files "
2215
+ "<code>ultimatemember-%1$s.po and ultimatemember-%1$s.mo</code> in <strong>/"
2216
+ "wp-content/languages/plugins/</strong> for the plugin to be translated in "
2217
+ "your language. <a href=\"%2$s\">Hide this notice</a>"
2218
+ msgstr ""
2219
+
2220
+ #: admin/core/um-admin-notices.php:178
2221
+ #, php-format
2222
+ msgid ""
2223
+ "Are you sure you want to delete the selected user(s)? The following users "
2224
+ "will be deleted: <p>%s</p> <strong>This cannot be undone!</strong>"
2225
+ msgstr ""
2226
+
2227
+ #: admin/core/um-admin-notices.php:179
2228
+ msgid "Undo"
2229
+ msgstr ""
2230
+
2231
+ #: admin/core/um-admin-notices.php:184
2232
+ msgid "Your translation files have been updated successfully."
2233
+ msgstr ""
2234
+
2235
+ #: admin/core/um-admin-notices.php:188
2236
+ msgid "Your temp uploads directory is now clean."
2237
+ msgstr ""
2238
+
2239
+ #: admin/core/um-admin-notices.php:192
2240
+ msgid "Your user cache is now removed."
2241
+ msgstr ""
2242
+
2243
+ #: admin/core/um-admin-notices.php:196
2244
+ msgid "The form has been duplicated successfully."
2245
+ msgstr ""
2246
+
2247
+ #: admin/core/um-admin-notices.php:200
2248
+ msgid "User has been updated."
2249
+ msgstr ""
2250
+
2251
+ #: admin/core/um-admin-notices.php:204
2252
+ msgid "Users have been updated."
2253
+ msgstr ""
2254
+
2255
+ #: admin/core/um-admin-notices.php:208
2256
+ msgid "Changed roles."
2257
+ msgstr ""
2258
+
2259
+ #: admin/core/um-admin-notices.php:212
2260
+ msgid "Super administrators cannot be modified."
2261
+ msgstr ""
2262
+
2263
+ #: admin/core/um-admin-notices.php:213
2264
+ msgid "Other users have been updated."
2265
+ msgstr ""
2266
+
2267
+ #: admin/core/um-admin-redux.php:59 admin/core/um-admin-redux.php:60
2268
+ #: admin/templates/welcome/about_header.php:20 index.php:54
2269
+ msgid "Settings"
2270
+ msgstr ""
2271
+
2272
+ #: admin/core/um-admin-roles.php:32
2273
+ msgid "Role Title"
2274
+ msgstr ""
2275
+
2276
+ #: admin/core/um-admin-roles.php:33
2277
+ msgid "No. of Members"
2278
+ msgstr ""
2279
+
2280
+ #: admin/core/um-admin-roles.php:33
2281
+ msgid "The total number of members who have this role on your site"
2282
+ msgstr ""
2283
+
2284
+ #: admin/core/um-admin-roles.php:34
2285
+ msgid "Core / Built-in"
2286
+ msgstr ""
2287
+
2288
+ #: admin/core/um-admin-roles.php:34
2289
+ msgid "A core role is installed by default and may not be removed"
2290
+ msgstr ""
2291
+
2292
+ #: admin/core/um-admin-roles.php:35
2293
+ msgid "WP-Admin Access"
2294
+ msgstr ""
2295
+
2296
+ #: admin/core/um-admin-roles.php:35
2297
+ msgid ""
2298
+ "Let you know If users of this role can view the WordPress backend or not"
2299
+ msgstr ""
2300
+
2301
+ #: admin/core/um-admin-roles.php:58
2302
+ msgid "This role can access the WordPress backend"
2303
+ msgstr ""
2304
+
2305
+ #: admin/core/um-admin-roles.php:76
2306
+ msgid "Core"
2307
+ msgstr ""
2308
+
2309
+ #: admin/core/um-admin-users.php:35 core/um-actions-account.php:385
2310
+ #: core/um-actions-account.php:420
2311
+ msgid "View profile"
2312
+ msgstr ""
2313
+
2314
+ #: admin/core/um-admin-users.php:38
2315
+ msgid "Info"
2316
+ msgstr ""
2317
+
2318
+ #: admin/core/um-admin-users.php:129 admin/templates/dashboard/users.php:12
2319
+ #: core/um-user.php:240
2320
+ msgid "Approved"
2321
+ msgstr ""
2322
+
2323
+ #: admin/core/um-admin-users.php:130
2324
+ msgid "Pending review"
2325
+ msgstr ""
2326
+
2327
+ #: admin/core/um-admin-users.php:131
2328
+ msgid "Waiting e-mail confirmation"
2329
+ msgstr ""
2330
+
2331
+ #: admin/core/um-admin-users.php:132 admin/templates/dashboard/users.php:40
2332
+ msgid "Inactive"
2333
+ msgstr ""
2334
+
2335
+ #: admin/core/um-admin-users.php:133 admin/templates/dashboard/users.php:17
2336
+ msgid "Rejected"
2337
+ msgstr ""
2338
+
2339
+ #: admin/core/um-admin-users.php:178 admin/core/um-admin-users.php:236
2340
+ #: core/um-actions-core.php:21
2341
+ msgid "You do not have enough permissions to do that."
2342
+ msgstr ""
2343
+
2344
+ #: admin/core/um-admin-users.php:307 admin/core/um-admin-users.php:309
2345
+ msgid "Filter by"
2346
+ msgstr ""
2347
+
2348
+ #: admin/core/um-admin-users.php:322
2349
+ msgid "Filter"
2350
+ msgstr ""
2351
+
2352
+ #: admin/core/um-admin-users.php:328 admin/core/um-admin-users.php:330
2353
+ msgid "UM Action"
2354
+ msgstr ""
2355
+
2356
+ #: admin/core/um-admin-users.php:334 core/um-fields.php:1674
2357
+ msgid "Apply"
2358
+ msgstr ""
2359
+
2360
+ #: admin/core/um-admin-users.php:340
2361
+ msgid "Community role&hellip;"
2362
+ msgstr ""
2363
+
2364
+ #: admin/core/um-admin-users.php:347
2365
+ msgid "Change"
2366
+ msgstr ""
2367
+
2368
+ #: admin/core/um-admin-users.php:366
2369
+ msgid "This is the membership role set by Ultimate Member plugin"
2370
+ msgstr ""
2371
+
2372
+ #: admin/templates/access/settings.php:9
2373
+ msgid "Apply custom access settings?"
2374
+ msgstr ""
2375
+
2376
+ #: admin/templates/access/settings.php:9
2377
+ msgid "Switch to yes to override global access settings"
2378
+ msgstr ""
2379
+
2380
+ #: admin/templates/access/settings.php:17
2381
+ msgid "Who can access this content?"
2382
+ msgstr ""
2383
+
2384
+ #: admin/templates/access/settings.php:33
2385
+ #: admin/templates/access/settings.php:60
2386
+ msgid "Redirect URL"
2387
+ msgstr ""
2388
+
2389
+ #: admin/templates/access/settings.php:33
2390
+ #: admin/templates/access/settings.php:60
2391
+ msgid ""
2392
+ "This is the URL that user is redirected to If he is not permitted to view "
2393
+ "this content"
2394
+ msgstr ""
2395
+
2396
+ #: admin/templates/access/settings.php:47
2397
+ msgid "Select the member roles that can see this content?"
2398
+ msgstr ""
2399
+
2400
+ #: admin/templates/access/settings.php:47
2401
+ msgid ""
2402
+ "If you do not select any role, all members will be able to view this content"
2403
+ msgstr ""
2404
+
2405
+ #: admin/templates/dashboard/language-contrib.php:1
2406
+ #, php-format
2407
+ msgid ""
2408
+ "Ultimate Member is not yet available in your language: <strong>%1$s</strong>."
2409
+ msgstr ""
2410
+
2411
+ #: admin/templates/dashboard/language-contrib.php:3
2412
+ msgid ""
2413
+ "If you want to contribute this translation to the plugin, please add it on "
2414
+ "our <a href=\"https://ultimatemember.com/forums/\">community forum</a>."
2415
+ msgstr ""
2416
+
2417
+ #: admin/templates/dashboard/language-download.php:1
2418
+ #, php-format
2419
+ msgid ""
2420
+ "Ultimate Member is available in your language: <strong>%1$s (%2$s)</strong>."
2421
+ msgstr ""
2422
+
2423
+ #: admin/templates/dashboard/language-download.php:3
2424
+ msgid "Download Translation"
2425
+ msgstr ""
2426
+
2427
+ #: admin/templates/dashboard/language-update.php:1
2428
+ #, php-format
2429
+ msgid ""
2430
+ "You are currently using Ultimate Member in your language: <strong>%1$s "
2431
+ "(%2$s)</strong>."
2432
+ msgstr ""
2433
+
2434
+ #: admin/templates/dashboard/language-update.php:3
2435
+ msgid "Force Update Translation"
2436
+ msgstr ""
2437
+
2438
+ #: admin/templates/dashboard/users.php:7 um-config.php:93
2439
+ msgid "Users"
2440
+ msgstr ""
2441
+
2442
+ #: admin/templates/dashboard/users.php:30 core/um-user.php:248
2443
+ msgid "Pending Review"
2444
+ msgstr ""
2445
+
2446
+ #: admin/templates/dashboard/users.php:35 core/um-user.php:244
2447
+ msgid "Awaiting E-mail Confirmation"
2448
+ msgstr ""
2449
+
2450
+ #: admin/templates/directory/appearance.php:3
2451
+ #: admin/templates/form/login_customize.php:14
2452
+ #: admin/templates/form/profile_customize.php:26
2453
+ #: admin/templates/form/register_customize.php:26
2454
+ msgid "Template"
2455
+ msgstr ""
2456
+
2457
+ #: admin/templates/directory/general.php:24
2458
+ msgid "User Roles to Display"
2459
+ msgstr ""
2460
+
2461
+ #: admin/templates/directory/general.php:37
2462
+ msgid "Only show members who have uploaded a profile photo"
2463
+ msgstr ""
2464
+
2465
+ #: admin/templates/directory/general.php:46
2466
+ msgid "Only show members who have uploaded a cover photo"
2467
+ msgstr ""
2468
+
2469
+ #: admin/templates/directory/general.php:55
2470
+ msgid "Sort users by"
2471
+ msgstr ""
2472
+
2473
+ #: admin/templates/directory/general.php:59
2474
+ msgid "New users first"
2475
+ msgstr ""
2476
+
2477
+ #: admin/templates/directory/general.php:60
2478
+ msgid "Old users first"
2479
+ msgstr ""
2480
+
2481
+ #: admin/templates/directory/general.php:61
2482
+ msgid "Last login"
2483
+ msgstr ""
2484
+
2485
+ #: admin/templates/directory/general.php:62
2486
+ msgid "Display Name"
2487
+ msgstr ""
2488
+
2489
+ #: admin/templates/directory/general.php:63 core/um-builtin.php:594
2490
+ #: core/um-builtin.php:597
2491
+ msgid "First Name"
2492
+ msgstr ""
2493
+
2494
+ #: admin/templates/directory/general.php:64 core/um-builtin.php:604
2495
+ #: core/um-builtin.php:607
2496
+ msgid "Last Name"
2497
+ msgstr ""
2498
+
2499
+ #: admin/templates/directory/general.php:65
2500
+ msgid "Random"
2501
+ msgstr ""
2502
+
2503
+ #: admin/templates/directory/general.php:66
2504
+ msgid "Other (custom field)"
2505
+ msgstr ""
2506
+
2507
+ #: admin/templates/directory/general.php:74
2508
+ msgid "Meta key"
2509
+ msgstr ""
2510
+
2511
+ #: admin/templates/directory/general.php:83
2512
+ msgid "Only show specific users (Enter one username per line)"
2513
+ msgstr ""
2514
+
2515
+ #: admin/templates/directory/pagination.php:6
2516
+ msgid "Number of profiles per page"
2517
+ msgstr ""
2518
+
2519
+ #: admin/templates/directory/pagination.php:6
2520
+ msgid "Number of profiles to appear on page for standard users"
2521
+ msgstr ""
2522
+
2523
+ #: admin/templates/directory/pagination.php:15
2524
+ msgid "Number of profiles per page (for Mobiles & Tablets)"
2525
+ msgstr ""
2526
+
2527
+ #: admin/templates/directory/pagination.php:15
2528
+ msgid "Number of profiles to appear on page for mobile users"
2529
+ msgstr ""
2530
+
2531
+ #: admin/templates/directory/pagination.php:24
2532
+ msgid "Maximum number of profiles"
2533
+ msgstr ""
2534
+
2535
+ #: admin/templates/directory/pagination.php:24
2536
+ msgid ""
2537
+ "Use this setting to control the maximum number of profiles to appear in this "
2538
+ "directory. Leave blank to disable this limit"
2539
+ msgstr ""
2540
+
2541
+ #: admin/templates/directory/profile.php:6
2542
+ msgid "Enable Profile Photo"
2543
+ msgstr ""
2544
+
2545
+ #: admin/templates/directory/profile.php:15
2546
+ msgid "Enable Cover Photo"
2547
+ msgstr ""
2548
+
2549
+ #: admin/templates/directory/profile.php:24
2550
+ msgid "Show display name"
2551
+ msgstr ""
2552
+
2553
+ #: admin/templates/directory/profile.php:33
2554
+ msgid "Show tagline below profile name"
2555
+ msgstr ""
2556
+
2557
+ #: admin/templates/directory/profile.php:42
2558
+ msgid "Choose field(s) to display in tagline"
2559
+ msgstr ""
2560
+
2561
+ #: admin/templates/directory/profile.php:90
2562
+ msgid "Show extra user information below tagline?"
2563
+ msgstr ""
2564
+
2565
+ #: admin/templates/directory/profile.php:99
2566
+ msgid "Enable reveal section transition by default"
2567
+ msgstr ""
2568
+
2569
+ #: admin/templates/directory/profile.php:108
2570
+ msgid "Choose field(s) to display in reveal section"
2571
+ msgstr ""
2572
+
2573
+ #: admin/templates/directory/profile.php:156
2574
+ msgid "Show social connect icons"
2575
+ msgstr ""
2576
+
2577
+ #: admin/templates/directory/profile_card.php:3
2578
+ msgid "Profile card background"
2579
+ msgstr ""
2580
+
2581
+ #: admin/templates/directory/profile_card.php:7
2582
+ msgid "Profile card text"
2583
+ msgstr ""
2584
+
2585
+ #: admin/templates/directory/profile_card.php:11
2586
+ msgid "Profile card border color"
2587
+ msgstr ""
2588
+
2589
+ #: admin/templates/directory/profile_card.php:15
2590
+ msgid "Profile photo border color"
2591
+ msgstr ""
2592
+
2593
+ #: admin/templates/directory/profile_card.php:19
2594
+ msgid "Profile card border thickness"
2595
+ msgstr ""
2596
+
2597
+ #: admin/templates/directory/search.php:6
2598
+ msgid "Enable Search feature"
2599
+ msgstr ""
2600
+
2601
+ #: admin/templates/directory/search.php:15
2602
+ msgid "Show results only after search"
2603
+ msgstr ""
2604
+
2605
+ #: admin/templates/directory/search.php:24
2606
+ msgid "User Roles that can use search"
2607
+ msgstr ""
2608
+
2609
+ #: admin/templates/directory/search.php:37
2610
+ msgid "Choose field(s) to enable in search"
2611
+ msgstr ""
2612
+
2613
+ #: admin/templates/directory/search.php:89
2614
+ msgid "Results Text"
2615
+ msgstr ""
2616
+
2617
+ #: admin/templates/directory/search.php:89
2618
+ msgid ""
2619
+ "Customize the search result text . e.g. Found 3,000 Members. Leave this "
2620
+ "blank to not show result text"
2621
+ msgstr ""
2622
+
2623
+ #: admin/templates/directory/search.php:92 core/um-setup.php:49
2624
+ #: core/um-setup.php:164
2625
+ msgid "{total_users} Members"
2626
+ msgstr ""
2627
+
2628
+ #: admin/templates/directory/search.php:98
2629
+ msgid "Single Result Text"
2630
+ msgstr ""
2631
+
2632
+ #: admin/templates/directory/search.php:98
2633
+ msgid "Same as above but in case of 1 user found only"
2634
+ msgstr ""
2635
+
2636
+ #: admin/templates/directory/search.php:101 core/um-setup.php:50
2637
+ #: core/um-setup.php:165
2638
+ msgid "{total_users} Member"
2639
+ msgstr ""
2640
+
2641
+ #: admin/templates/directory/search.php:107
2642
+ msgid "Custom text if no users were found"
2643
+ msgstr ""
2644
+
2645
+ #: admin/templates/directory/search.php:110 core/um-setup.php:51
2646
+ msgid "We are sorry. We cannot find any users who match your search criteria."
2647
+ msgstr ""
2648
+
2649
+ #: admin/templates/form/builder.php:14
2650
+ msgid "Live Preview"
2651
+ msgstr ""
2652
+
2653
+ #: admin/templates/form/builder.php:28
2654
+ msgid "Add Master Row"
2655
+ msgstr ""
2656
+
2657
+ #: admin/templates/form/login_css.php:4 admin/templates/form/profile_css.php:4
2658
+ #: admin/templates/form/register_css.php:4
2659
+ msgid "Enter custom css that will be applied to this form only"
2660
+ msgstr ""
2661
+
2662
+ #: admin/templates/form/login_customize.php:4
2663
+ #: admin/templates/form/profile_customize.php:4
2664
+ #: admin/templates/form/register_customize.php:4
2665
+ msgid "Use global settings?"
2666
+ msgstr ""
2667
+
2668
+ #: admin/templates/form/login_customize.php:26
2669
+ #: admin/templates/form/profile_customize.php:38
2670
+ #: admin/templates/form/register_customize.php:38
2671
+ msgid "Max. Width (px)"
2672
+ msgstr ""
2673
+
2674
+ #: admin/templates/form/login_customize.php:30
2675
+ #: admin/templates/form/profile_customize.php:46
2676
+ #: admin/templates/form/register_customize.php:42
2677
+ msgid "Alignment"
2678
+ msgstr ""
2679
+
2680
+ #: admin/templates/form/login_customize.php:40
2681
+ #: admin/templates/form/profile_customize.php:56
2682
+ #: admin/templates/form/register_customize.php:52
2683
+ msgid "Field Icons"
2684
+ msgstr ""
2685
+
2686
+ #: admin/templates/form/login_customize.php:50
2687
+ #: admin/templates/form/profile_customize.php:66
2688
+ #: admin/templates/form/register_customize.php:62
2689
+ msgid "Primary Button Text"
2690
+ msgstr ""
2691
+
2692
+ #: admin/templates/form/login_customize.php:54
2693
+ #: admin/templates/form/profile_customize.php:70
2694
+ #: admin/templates/form/register_customize.php:66
2695
+ msgid "Primary Button Color"
2696
+ msgstr ""
2697
+
2698
+ #: admin/templates/form/login_customize.php:58
2699
+ #: admin/templates/form/profile_customize.php:74
2700
+ #: admin/templates/form/register_customize.php:70
2701
+ msgid "Primary Button Hover Color"
2702
+ msgstr ""
2703
+
2704
+ #: admin/templates/form/login_customize.php:62
2705
+ #: admin/templates/form/profile_customize.php:78
2706
+ #: admin/templates/form/register_customize.php:74
2707
+ msgid "Primary Button Text Color"
2708
+ msgstr ""
2709
+
2710
+ #: admin/templates/form/login_customize.php:67
2711
+ #: admin/templates/form/profile_customize.php:83
2712
+ #: admin/templates/form/register_customize.php:79
2713
+ msgid "Show Secondary Button"
2714
+ msgstr ""
2715
+
2716
+ #: admin/templates/form/login_customize.php:75
2717
+ #: admin/templates/form/profile_customize.php:91
2718
+ #: admin/templates/form/register_customize.php:87
2719
+ msgid "Secondary Button Text"
2720
+ msgstr ""
2721
+
2722
+ #: admin/templates/form/login_customize.php:79
2723
+ #: admin/templates/form/profile_customize.php:95
2724
+ #: admin/templates/form/register_customize.php:91
2725
+ msgid "Secondary Button Color"
2726
+ msgstr ""
2727
+
2728
+ #: admin/templates/form/login_customize.php:83
2729
+ #: admin/templates/form/profile_customize.php:99
2730
+ #: admin/templates/form/register_customize.php:95
2731
+ msgid "Secondary Button Hover Color"
2732
+ msgstr ""
2733
+
2734
+ #: admin/templates/form/login_customize.php:87
2735
+ #: admin/templates/form/profile_customize.php:103
2736
+ #: admin/templates/form/register_customize.php:99
2737
+ msgid "Secondary Button Text Color"
2738
+ msgstr ""
2739
+
2740
+ #: admin/templates/form/login_customize.php:92
2741
+ msgid "Show Forgot Password Link?"
2742
+ msgstr ""
2743
+
2744
+ #: admin/templates/form/login_customize.php:101
2745
+ msgid "Show \"Remember Me\"?"
2746
+ msgstr ""
2747
+
2748
+ #: admin/templates/form/login_settings.php:3
2749
+ msgid "Redirection after Login"
2750
+ msgstr ""
2751
+
2752
+ #: admin/templates/form/login_settings.php:16
2753
+ #: admin/templates/role/delete.php:18 admin/templates/role/login.php:20
2754
+ #: admin/templates/role/logout.php:18 admin/templates/role/register.php:37
2755
+ #: admin/templates/role/register.php:85 admin/templates/role/register.php:133
2756
+ msgid "Set Custom Redirect URL"
2757
+ msgstr ""
2758
+
2759
+ #: admin/templates/form/mode.php:6
2760
+ msgid ""
2761
+ "<strong>Note:</strong> Form type cannot be changed for the default forms."
2762
+ msgstr ""
2763
+
2764
+ #: admin/templates/form/mode.php:9 um-config.php:1764
2765
+ msgid "Registration Form"
2766
+ msgstr ""
2767
+
2768
+ #: admin/templates/form/mode.php:11
2769
+ msgid "Profile Form"
2770
+ msgstr ""
2771
+
2772
+ #: admin/templates/form/mode.php:13 um-config.php:1866
2773
+ msgid "Login Form"
2774
+ msgstr ""
2775
+
2776
+ #: admin/templates/form/profile_customize.php:14
2777
+ msgid "Make this profile role-specific"
2778
+ msgstr ""
2779
+
2780
+ #: admin/templates/form/profile_customize.php:42
2781
+ msgid "Profile Area Max. Width (px)"
2782
+ msgstr ""
2783
+
2784
+ #: admin/templates/form/profile_customize.php:107
2785
+ msgid "Base Background Color"
2786
+ msgstr ""
2787
+
2788
+ #: admin/templates/form/profile_customize.php:111
2789
+ msgid "Base Text Color"
2790
+ msgstr ""
2791
+
2792
+ #: admin/templates/form/profile_customize.php:115
2793
+ msgid "Enable Cover Photos"
2794
+ msgstr ""
2795
+
2796
+ #: admin/templates/form/profile_customize.php:123
2797
+ msgid "Cover photo ratio"
2798
+ msgstr ""
2799
+
2800
+ #: admin/templates/form/profile_customize.php:133 um-config.php:1497
2801
+ msgid "Profile Photo Size"
2802
+ msgstr ""
2803
+
2804
+ #: admin/templates/form/profile_customize.php:137 um-config.php:1506
2805
+ msgid "Profile Photo Style"
2806
+ msgstr ""
2807
+
2808
+ #: admin/templates/form/profile_customize.php:140 um-config.php:1510
2809
+ msgid "Circle"
2810
+ msgstr ""
2811
+
2812
+ #: admin/templates/form/profile_customize.php:141 um-config.php:1511
2813
+ msgid "Rounded Corners"
2814
+ msgstr ""
2815
+
2816
+ #: admin/templates/form/profile_customize.php:142 um-config.php:1512
2817
+ msgid "Square"
2818
+ msgstr ""
2819
+
2820
+ #: admin/templates/form/profile_customize.php:147
2821
+ msgid "Make Profile Photo Required"
2822
+ msgstr ""
2823
+
2824
+ #: admin/templates/form/profile_customize.php:155
2825
+ msgid "Header Background Color"
2826
+ msgstr ""
2827
+
2828
+ #: admin/templates/form/profile_customize.php:159
2829
+ msgid "Header Meta Text Color"
2830
+ msgstr ""
2831
+
2832
+ #: admin/templates/form/profile_customize.php:163
2833
+ msgid "Header Link Color"
2834
+ msgstr ""
2835
+
2836
+ #: admin/templates/form/profile_customize.php:167
2837
+ msgid "Header Link Hover"
2838
+ msgstr ""
2839
+
2840
+ #: admin/templates/form/profile_customize.php:171
2841
+ msgid "Header Icon Link Color"
2842
+ msgstr ""
2843
+
2844
+ #: admin/templates/form/profile_customize.php:175
2845
+ msgid "Header Icon Link Hover"
2846
+ msgstr ""
2847
+
2848
+ #: admin/templates/form/profile_customize.php:180
2849
+ msgid "Show display name in profile header?"
2850
+ msgstr ""
2851
+
2852
+ #: admin/templates/form/profile_customize.php:189
2853
+ msgid "Show social links in profile header?"
2854
+ msgstr ""
2855
+
2856
+ #: admin/templates/form/profile_customize.php:198
2857
+ msgid "Show user description in profile header?"
2858
+ msgstr ""
2859
+
2860
+ #: admin/templates/form/profile_settings.php:4
2861
+ msgid "Field(s) to show in user meta"
2862
+ msgstr ""
2863
+
2864
+ #: admin/templates/form/register_customize.php:4
2865
+ msgid ""
2866
+ "Switch to no if you want to customize this form settings, styling &amp; "
2867
+ "appearance"
2868
+ msgstr ""
2869
+
2870
+ #: admin/templates/form/register_customize.php:14
2871
+ msgid "Assign role to form"
2872
+ msgstr ""
2873
+
2874
+ #: admin/templates/form/register_customize.php:42 um-config.php:1397
2875
+ #: um-config.php:1790 um-config.php:1892
2876
+ msgid "The shortcode is centered by default unless you specify otherwise here"
2877
+ msgstr ""
2878
+
2879
+ #: admin/templates/form/register_customize.php:52
2880
+ msgid ""
2881
+ "Whether to show field icons and where to show them relative to the field"
2882
+ msgstr ""
2883
+
2884
+ #: admin/templates/form/register_customize.php:62
2885
+ #: admin/templates/form/register_customize.php:87
2886
+ msgid "Customize the button text"
2887
+ msgstr ""
2888
+
2889
+ #: admin/templates/form/register_customize.php:66
2890
+ msgid "Override the default primary button color"
2891
+ msgstr ""
2892
+
2893
+ #: admin/templates/form/register_customize.php:70
2894
+ msgid "Override the default primary button hover color"
2895
+ msgstr ""
2896
+
2897
+ #: admin/templates/form/register_customize.php:74
2898
+ msgid "Override the default primary button text color"
2899
+ msgstr ""
2900
+
2901
+ #: admin/templates/form/register_customize.php:91
2902
+ msgid "Override the default secondary button color"
2903
+ msgstr ""
2904
+
2905
+ #: admin/templates/form/register_customize.php:95
2906
+ msgid "Override the default secondary button hover color"
2907
+ msgstr ""
2908
+
2909
+ #: admin/templates/form/register_customize.php:99
2910
+ msgid "Override the default secondary button text color"
2911
+ msgstr ""
2912
+
2913
+ #: admin/templates/modal/dynamic_edit_field.php:6
2914
+ msgid "Edit Field"
2915
+ msgstr ""
2916
+
2917
+ #: admin/templates/modal/dynamic_edit_field.php:14
2918
+ #: admin/templates/modal/dynamic_edit_row.php:14
2919
+ msgid "Update"
2920
+ msgstr ""
2921
+
2922
+ #: admin/templates/modal/dynamic_edit_field.php:15
2923
+ #: admin/templates/modal/dynamic_edit_row.php:15
2924
+ #: admin/templates/modal/dynamic_new_divider.php:15
2925
+ #: admin/templates/modal/dynamic_new_field.php:15
2926
+ #: admin/templates/modal/dynamic_new_group.php:15
2927
+ #: core/um-actions-profile.php:218 core/um-actions-profile.php:332
2928
+ #: core/um-actions-profile.php:344 core/um-actions-profile.php:505
2929
+ #: core/um-fields.php:1675 core/um-fields.php:1763
2930
+ msgid "Cancel"
2931
+ msgstr ""
2932
+
2933
+ #: admin/templates/modal/dynamic_edit_row.php:6
2934
+ msgid "Edit Row Settings"
2935
+ msgstr ""
2936
+
2937
+ #: admin/templates/modal/dynamic_form_preview.php:4
2938
+ msgid "Live Form Preview"
2939
+ msgstr ""
2940
+
2941
+ #: admin/templates/modal/dynamic_form_preview.php:12
2942
+ msgid "Continue editing"
2943
+ msgstr ""
2944
+
2945
+ #: admin/templates/modal/dynamic_new_divider.php:6
2946
+ msgid "Add a New Divider"
2947
+ msgstr ""
2948
+
2949
+ #: admin/templates/modal/dynamic_new_divider.php:14
2950
+ #: admin/templates/modal/dynamic_new_field.php:14
2951
+ #: admin/templates/modal/dynamic_new_group.php:14
2952
+ msgid "Add"
2953
+ msgstr ""
2954
+
2955
+ #: admin/templates/modal/dynamic_new_field.php:6
2956
+ msgid "Add a New Field"
2957
+ msgstr ""
2958
+
2959
+ #: admin/templates/modal/dynamic_new_group.php:6
2960
+ msgid "Add a New Field Group"
2961
+ msgstr ""
2962
+
2963
+ #: admin/templates/modal/dynamic_registration_preview.php:4
2964
+ msgid "Review Registration Details"
2965
+ msgstr ""
2966
+
2967
+ #: admin/templates/modal/fields.php:4
2968
+ msgid "Fields Manager"
2969
+ msgstr ""
2970
+
2971
+ #: admin/templates/modal/fonticons.php:4
2972
+ #, php-format
2973
+ msgid "Choose from %s available icons"
2974
+ msgstr ""
2975
+
2976
+ #: admin/templates/role/admin.php:7 admin/templates/role/admin.php:16
2977
+ msgid "Can access wp-admin?"
2978
+ msgstr ""
2979
+
2980
+ #: admin/templates/role/admin.php:7
2981
+ msgid ""
2982
+ "The core admin role must always have access to wp-admin / WordPress backend"
2983
+ msgstr ""
2984
+
2985
+ #: admin/templates/role/admin.php:11 admin/templates/role/admin.php:20
2986
+ msgid "Force hiding adminbar in frontend?"
2987
+ msgstr ""
2988
+
2989
+ #: admin/templates/role/admin.php:11 admin/templates/role/admin.php:20
2990
+ msgid "Show/hide the adminbar on frontend"
2991
+ msgstr ""
2992
+
2993
+ #: admin/templates/role/admin.php:16
2994
+ msgid ""
2995
+ "Allow this role to access the admin dashboard. If turned on the WordPress "
2996
+ "toolbar will appear at top of the page."
2997
+ msgstr ""
2998
+
2999
+ #: admin/templates/role/admin.php:26
3000
+ msgid "Can edit other member accounts?"
3001
+ msgstr ""
3002
+
3003
+ #: admin/templates/role/admin.php:26
3004
+ msgid "Allow this role to edit accounts of other members"
3005
+ msgstr ""
3006
+
3007
+ #: admin/templates/role/admin.php:31
3008
+ msgid "Can edit these user roles only"
3009
+ msgstr ""
3010
+
3011
+ #: admin/templates/role/admin.php:31
3012
+ msgid ""
3013
+ "Which roles that role can edit, choose none to allow role to edit all member "
3014
+ "roles"
3015
+ msgstr ""
3016
+
3017
+ #: admin/templates/role/admin.php:44
3018
+ msgid "Can delete other member accounts?"
3019
+ msgstr ""
3020
+
3021
+ #: admin/templates/role/admin.php:44
3022
+ msgid "Allow this role to edit the profile fields of certain roles only"
3023
+ msgstr ""
3024
+
3025
+ #: admin/templates/role/admin.php:49
3026
+ msgid "Can delete these user roles only"
3027
+ msgstr ""
3028
+
3029
+ #: admin/templates/role/admin.php:49
3030
+ msgid ""
3031
+ "Which roles that role can delete, choose none to allow role to delete all "
3032
+ "member roles"
3033
+ msgstr ""
3034
+
3035
+ #: admin/templates/role/delete.php:6
3036
+ msgid "Action to be taken after account is deleted"
3037
+ msgstr ""
3038
+
3039
+ #: admin/templates/role/delete.php:6
3040
+ msgid ""
3041
+ "Select what happens when a user with this role deletes their own account"
3042
+ msgstr ""
3043
+
3044
+ #: admin/templates/role/delete.php:10 admin/templates/role/logout.php:10
3045
+ msgid "Go to Homepage"
3046
+ msgstr ""
3047
+
3048
+ #: admin/templates/role/delete.php:11 admin/templates/role/logout.php:11
3049
+ msgid "Go to Custom URL"
3050
+ msgstr ""
3051
+
3052
+ #: admin/templates/role/delete.php:18
3053
+ msgid "Set a url to redirect this user role to after they delete account"
3054
+ msgstr ""
3055
+
3056
+ #: admin/templates/role/general.php:6
3057
+ msgid "Can edit their profile?"
3058
+ msgstr ""
3059
+
3060
+ #: admin/templates/role/general.php:6
3061
+ msgid "Can this role edit his own profile?"
3062
+ msgstr ""
3063
+
3064
+ #: admin/templates/role/general.php:11
3065
+ msgid "Can delete their account?"
3066
+ msgstr ""
3067
+
3068
+ #: admin/templates/role/general.php:11
3069
+ msgid ""
3070
+ "Allow this role to delete their account and end their membership on your site"
3071
+ msgstr ""
3072
+
3073
+ #: admin/templates/role/home.php:6
3074
+ msgid "Can view default homepage?"
3075
+ msgstr ""
3076
+
3077
+ #: admin/templates/role/home.php:6
3078
+ msgid "Allow this user role to view your site's homepage"
3079
+ msgstr ""
3080
+
3081
+ #: admin/templates/role/home.php:15
3082
+ msgid "Custom Homepage Redirect"
3083
+ msgstr ""
3084
+
3085
+ #: admin/templates/role/home.php:15
3086
+ msgid ""
3087
+ "Set a url to redirect this user role to if they try to view your site's "
3088
+ "homepage "
3089
+ msgstr ""
3090
+
3091
+ #: admin/templates/role/login.php:6
3092
+ msgid "Action to be taken after login"
3093
+ msgstr ""
3094
+
3095
+ #: admin/templates/role/login.php:6
3096
+ msgid "Select what happens when a user with this role logins to your site"
3097
+ msgstr ""
3098
+
3099
+ #: admin/templates/role/login.php:10 admin/templates/role/register.php:29
3100
+ msgid "Redirect to profile"
3101
+ msgstr ""
3102
+
3103
+ #: admin/templates/role/login.php:11 admin/templates/role/register.php:30
3104
+ #: admin/templates/role/register.php:69 admin/templates/role/register.php:117
3105
+ msgid "Redirect to URL"
3106
+ msgstr ""
3107
+
3108
+ #: admin/templates/role/login.php:12
3109
+ msgid "Refresh active page"
3110
+ msgstr ""
3111
+
3112
+ #: admin/templates/role/login.php:13
3113
+ msgid "Redirect to WordPress Admin"
3114
+ msgstr ""
3115
+
3116
+ #: admin/templates/role/login.php:20
3117
+ msgid ""
3118
+ "Set a url to redirect this user role to after they login with their account"
3119
+ msgstr ""
3120
+
3121
+ #: admin/templates/role/logout.php:6
3122
+ msgid "Action to be taken after logout"
3123
+ msgstr ""
3124
+
3125
+ #: admin/templates/role/logout.php:6
3126
+ msgid "Select what happens when a user with this role logouts of your site"
3127
+ msgstr ""
3128
+
3129
+ #: admin/templates/role/logout.php:18
3130
+ msgid "Set a url to redirect this user role to after they logout from site"
3131
+ msgstr ""
3132
+
3133
+ #: admin/templates/role/profile.php:6
3134
+ msgid "Can view other member profiles?"
3135
+ msgstr ""
3136
+
3137
+ #: admin/templates/role/profile.php:6
3138
+ msgid "Can this role view all member profiles?"
3139
+ msgstr ""
3140
+
3141
+ #: admin/templates/role/profile.php:11
3142
+ msgid "Can view these user roles only"
3143
+ msgstr ""
3144
+
3145
+ #: admin/templates/role/profile.php:11
3146
+ msgid ""
3147
+ "Which roles that role can view, choose none to allow role to view all member "
3148
+ "roles"
3149
+ msgstr ""
3150
+
3151
+ #: admin/templates/role/profile.php:24
3152
+ msgid "Can make their profile private?"
3153
+ msgstr ""
3154
+
3155
+ #: admin/templates/role/profile.php:24
3156
+ msgid "Can this role make their profile private?"
3157
+ msgstr ""
3158
+
3159
+ #: admin/templates/role/profile.php:29
3160
+ msgid "Can view/access private profiles?"
3161
+ msgstr ""
3162
+
3163
+ #: admin/templates/role/profile.php:29
3164
+ msgid "Can this role view private profiles?"
3165
+ msgstr ""
3166
+
3167
+ #: admin/templates/role/register.php:6
3168
+ msgid "Registration Status"
3169
+ msgstr ""
3170
+
3171
+ #: admin/templates/role/register.php:6
3172
+ msgid ""
3173
+ "Select the status you would like this user role to have after they register "
3174
+ "on your site"
3175
+ msgstr ""
3176
+
3177
+ #: admin/templates/role/register.php:13
3178
+ msgid "Auto Approve"
3179
+ msgstr ""
3180
+
3181
+ #: admin/templates/role/register.php:14
3182
+ msgid "Require Email Activation"
3183
+ msgstr ""
3184
+
3185
+ #: admin/templates/role/register.php:15
3186
+ msgid "Require Admin Review"
3187
+ msgstr ""
3188
+
3189
+ #: admin/templates/role/register.php:25 admin/templates/role/register.php:62
3190
+ #: admin/templates/role/register.php:110
3191
+ msgid "Action to be taken after registration"
3192
+ msgstr ""
3193
+
3194
+ #: admin/templates/role/register.php:25 admin/templates/role/register.php:62
3195
+ #: admin/templates/role/register.php:110
3196
+ msgid ""
3197
+ "Select what action is taken after a person registers on your site. Depending "
3198
+ "on the status you can redirect them to their profile, a custom url or show a "
3199
+ "custom message"
3200
+ msgstr ""
3201
+
3202
+ #: admin/templates/role/register.php:53
3203
+ msgid "Login user after validating the activation link?"
3204
+ msgstr ""
3205
+
3206
+ #: admin/templates/role/register.php:53
3207
+ msgid "Login the user after validating the activation link"
3208
+ msgstr ""
3209
+
3210
+ #: admin/templates/role/register.php:68 admin/templates/role/register.php:116
3211
+ msgid "Show custom message"
3212
+ msgstr ""
3213
+
3214
+ #: admin/templates/role/register.php:76 admin/templates/role/register.php:124
3215
+ msgid "Personalize the custom message"
3216
+ msgstr ""
3217
+
3218
+ #: admin/templates/role/register.php:79
3219
+ msgid ""
3220
+ "Thank you for registering. Before you can login we need you to activate your "
3221
+ "account by clicking the activation link in the email we just sent you."
3222
+ msgstr ""
3223
+
3224
+ #: admin/templates/role/register.php:94
3225
+ msgid "URL redirect after e-mail activation"
3226
+ msgstr ""
3227
+
3228
+ #: admin/templates/role/register.php:94
3229
+ msgid ""
3230
+ "If you want users to go to a specific page other than login page after e-"
3231
+ "mail activation, enter the URL here."
3232
+ msgstr ""
3233
+
3234
+ #: admin/templates/role/register.php:127
3235
+ msgid ""
3236
+ "Thank you for applying for membership to our site. We will review your "
3237
+ "details and send you an email letting you know whether your application has "
3238
+ "been successful or not."
3239
+ msgstr ""
3240
+
3241
+ #: admin/templates/role/sync.php:19
3242
+ msgid "Link to WordPress role"
3243
+ msgstr ""
3244
+
3245
+ #: admin/templates/role/sync.php:19
3246
+ msgid ""
3247
+ "Users who get this community role will be assigned this WordPress role "
3248
+ "automatically"
3249
+ msgstr ""
3250
+
3251
+ #: admin/templates/role/sync.php:28
3252
+ msgid "Sync / update all existing users"
3253
+ msgstr ""
3254
+
3255
+ #: admin/templates/welcome/about_header.php:15
3256
+ msgid ""
3257
+ "Thank you for installing! Ultimate Member is a powerful community and "
3258
+ "membership plugin that allows you to create beautiful community and "
3259
+ "membership sites with WordPress."
3260
+ msgstr ""
3261
+
3262
+ #: core/lib/upload/um-file-upload.php:58 core/lib/upload/um-image-upload.php:56
3263
+ msgid "A theme or plugin compatibility issue"
3264
+ msgstr ""
3265
+
3266
+ #: core/um-account.php:31 um-config.php:255
3267
+ msgid "Account"
3268
+ msgstr ""
3269
+
3270
+ #: core/um-account.php:34
3271
+ msgid "Change Password"
3272
+ msgstr ""
3273
+
3274
+ #: core/um-account.php:37
3275
+ msgid "Privacy"
3276
+ msgstr ""
3277
+
3278
+ #: core/um-account.php:40 um-config.php:924
3279
+ msgid "Notifications"
3280
+ msgstr ""
3281
+
3282
+ #: core/um-account.php:43 core/um-actions-account.php:232
3283
+ #: core/um-builtin.php:1019 core/um-builtin.php:1022
3284
+ msgid "Delete Account"
3285
+ msgstr ""
3286
+
3287
+ #: core/um-actions-account.php:114
3288
+ msgid "You must provide your first name"
3289
+ msgstr ""
3290
+
3291
+ #: core/um-actions-account.php:118
3292
+ msgid "You must provide your last name"
3293
+ msgstr ""
3294
+
3295
+ #: core/um-actions-account.php:122
3296
+ msgid "You must provide your e-mail"
3297
+ msgstr ""
3298
+
3299
+ #: core/um-actions-account.php:126
3300
+ msgid "Please provide a valid e-mail"
3301
+ msgstr ""
3302
+
3303
+ #: core/um-actions-account.php:130
3304
+ msgid "Email already linked to another account"
3305
+ msgstr ""
3306
+
3307
+ #: core/um-actions-account.php:144 core/um-actions-account.php:184
3308
+ msgid "This is not your password"
3309
+ msgstr ""
3310
+
3311
+ #: core/um-actions-account.php:149
3312
+ msgid "Your new password does not match"
3313
+ msgstr ""
3314
+
3315
+ #: core/um-actions-account.php:156 core/um-actions-password.php:195
3316
+ msgid "Your password must contain at least 8 characters"
3317
+ msgstr ""
3318
+
3319
+ #: core/um-actions-account.php:160 core/um-actions-password.php:199
3320
+ msgid "Your password must contain less than 30 characters"
3321
+ msgstr ""
3322
+
3323
+ #: core/um-actions-account.php:164 core/um-actions-form.php:250
3324
+ #: core/um-actions-password.php:203
3325
+ msgid ""
3326
+ "Your password must contain at least one lowercase letter, one capital letter "
3327
+ "and one number"
3328
+ msgstr ""
3329
+
3330
+ #: core/um-actions-account.php:174
3331
+ msgid "Your username is invalid"
3332
+ msgstr ""
3333
+
3334
+ #: core/um-actions-account.php:181
3335
+ msgid "You must enter your password"
3336
+ msgstr ""
3337
+
3338
+ #: core/um-actions-account.php:262
3339
+ msgid "Update Privacy"
3340
+ msgstr ""
3341
+
3342
+ #: core/um-actions-account.php:292
3343
+ msgid "Update Account"
3344
+ msgstr ""
3345
+
3346
+ #: core/um-actions-account.php:322
3347
+ msgid "Update Password"
3348
+ msgstr ""
3349
+
3350
+ #: core/um-actions-account.php:349
3351
+ msgid "Email me when"
3352
+ msgstr ""
3353
+
3354
+ #: core/um-actions-account.php:358
3355
+ msgid "Update Notifications"
3356
+ msgstr ""
3357
+
3358
+ #: core/um-actions-ajax.php:50 core/um-actions-ajax.php:66
3359
+ #: core/um-actions-ajax.php:120
3360
+ msgid "You can not edit this user"
3361
+ msgstr ""
3362
+
3363
+ #: core/um-actions-ajax.php:84
3364
+ msgid "Invalid parameters"
3365
+ msgstr ""
3366
+
3367
+ #: core/um-actions-ajax.php:87
3368
+ msgid "Invalid coordinates"
3369
+ msgstr ""
3370
+
3371
+ #: core/um-actions-ajax.php:90
3372
+ msgid "Invalid Image file"
3373
+ msgstr ""
3374
+
3375
+ #: core/um-actions-core.php:17
3376
+ msgid "Super administrators can not be modified."
3377
+ msgstr ""
3378
+
3379
+ #: core/um-actions-core.php:81
3380
+ msgid "You do not have permission to delete this user."
3381
+ msgstr ""
3382
+
3383
+ #: core/um-actions-form.php:99
3384
+ msgid "You are not allowed to use this word as your username."
3385
+ msgstr ""
3386
+
3387
+ #: core/um-actions-form.php:158 core/um-actions-form.php:191
3388
+ #: core/um-actions-form.php:195 core/um-actions-form.php:199
3389
+ #: core/um-actions-form.php:203
3390
+ #, php-format
3391
+ msgid "%s is required."
3392
+ msgstr ""
3393
+
3394
+ #: core/um-actions-form.php:208
3395
+ msgid "Please specify account type."
3396
+ msgstr ""
3397
+
3398
+ #: core/um-actions-form.php:216
3399
+ #, php-format
3400
+ msgid "%s is required"
3401
+ msgstr ""
3402
+
3403
+ #: core/um-actions-form.php:222
3404
+ #, php-format
3405
+ msgid "You are only allowed to enter a maximum of %s words"
3406
+ msgstr ""
3407
+
3408
+ #: core/um-actions-form.php:228
3409
+ #, php-format
3410
+ msgid "Your %s must contain at least %s characters"
3411
+ msgstr ""
3412
+
3413
+ #: core/um-actions-form.php:234
3414
+ #, php-format
3415
+ msgid "Your %s must contain less than %s characters"
3416
+ msgstr ""
3417
+
3418
+ #: core/um-actions-form.php:243
3419
+ msgid "You can not use HTML tags here"
3420
+ msgstr ""
3421
+
3422
+ #: core/um-actions-form.php:256
3423
+ msgid "Please confirm your password"
3424
+ msgstr ""
3425
+
3426
+ #: core/um-actions-form.php:259 core/um-actions-password.php:213
3427
+ msgid "Your passwords do not match"
3428
+ msgstr ""
3429
+
3430
+ #: core/um-actions-form.php:265
3431
+ #, php-format
3432
+ msgid "Please select at least %s choices"
3433
+ msgstr ""
3434
+
3435
+ #: core/um-actions-form.php:271
3436
+ #, php-format
3437
+ msgid "You can only select up to %s choices"
3438
+ msgstr ""
3439
+
3440
+ #: core/um-actions-form.php:277
3441
+ #, php-format
3442
+ msgid "Minimum number limit is %s"
3443
+ msgstr ""
3444
+
3445
+ #: core/um-actions-form.php:283
3446
+ #, php-format
3447
+ msgid "Maximum number limit is %s"
3448
+ msgstr ""
3449
+
3450
+ #: core/um-actions-form.php:299
3451
+ msgid "Please enter numbers only in this field"
3452
+ msgstr ""
3453
+
3454
+ #: core/um-actions-form.php:306
3455
+ msgid "Please enter a valid phone number"
3456
+ msgstr ""
3457
+
3458
+ #: core/um-actions-form.php:312 core/um-actions-form.php:318
3459
+ #: core/um-actions-form.php:324 core/um-actions-form.php:330
3460
+ #: core/um-actions-form.php:336 core/um-actions-form.php:342
3461
+ #: core/um-actions-form.php:348 core/um-actions-form.php:354
3462
+ #: core/um-actions-form.php:366
3463
+ #, php-format
3464
+ msgid "Please enter a valid %s username or profile URL"
3465
+ msgstr ""
3466
+
3467
+ #: core/um-actions-form.php:360
3468
+ msgid "Please enter a valid URL"
3469
+ msgstr ""
3470
+
3471
+ #: core/um-actions-form.php:373 core/um-actions-form.php:387
3472
+ msgid "You must provide a username"
3473
+ msgstr ""
3474
+
3475
+ #: core/um-actions-form.php:375 core/um-actions-form.php:389
3476
+ msgid "Your username is already taken"
3477
+ msgstr ""
3478
+
3479
+ #: core/um-actions-form.php:377
3480
+ msgid "Username cannot be an email"
3481
+ msgstr ""
3482
+
3483
+ #: core/um-actions-form.php:379 core/um-actions-form.php:393
3484
+ msgid "Your username contains invalid characters"
3485
+ msgstr ""
3486
+
3487
+ #: core/um-actions-form.php:391 core/um-actions-form.php:413
3488
+ #: core/um-actions-form.php:415 core/um-actions-form.php:427
3489
+ #: core/um-actions-form.php:434
3490
+ msgid "This email is already linked to an existing account"
3491
+ msgstr ""
3492
+
3493
+ #: core/um-actions-form.php:411
3494
+ msgid "You must provide your email"
3495
+ msgstr ""
3496
+
3497
+ #: core/um-actions-form.php:417 core/um-actions-form.php:425
3498
+ msgid "This is not a valid email"
3499
+ msgstr ""
3500
+
3501
+ #: core/um-actions-form.php:419
3502
+ msgid "Your email contains invalid characters"
3503
+ msgstr ""
3504
+
3505
+ #: core/um-actions-form.php:459
3506
+ msgid "You must provide a unique value"
3507
+ msgstr ""
3508
+
3509
+ #: core/um-actions-form.php:469
3510
+ msgid "You must provide alphabetic letters"
3511
+ msgstr ""
3512
+
3513
+ #: core/um-actions-form.php:479
3514
+ msgid "You must provide lowercase letters."
3515
+ msgstr ""
3516
+
3517
+ #: core/um-actions-form.php:498
3518
+ #, php-format
3519
+ msgid "Your user description must contain less than %s characters"
3520
+ msgstr ""
3521
+
3522
+ #: core/um-actions-global.php:29
3523
+ msgid "Only fill in if you are not human"
3524
+ msgstr ""
3525
+
3526
+ #: core/um-actions-login.php:18
3527
+ msgid "Please enter your username or email"
3528
+ msgstr ""
3529
+
3530
+ #: core/um-actions-login.php:22
3531
+ msgid "Please enter your username"
3532
+ msgstr ""
3533
+
3534
+ #: core/um-actions-login.php:26
3535
+ msgid "Please enter your email"
3536
+ msgstr ""
3537
+
3538
+ #: core/um-actions-login.php:50
3539
+ msgid " Sorry, we can't find an account with that email address"
3540
+ msgstr ""
3541
+
3542
+ #: core/um-actions-login.php:52
3543
+ msgid " Sorry, we can't find an account with that username"
3544
+ msgstr ""
3545
+
3546
+ #: core/um-actions-login.php:56
3547
+ msgid "Please enter your password"
3548
+ msgstr ""
3549
+
3550
+ #: core/um-actions-login.php:64
3551
+ msgid "Password is incorrect. Please try again."
3552
+ msgstr ""
3553
+
3554
+ #: core/um-actions-login.php:186
3555
+ msgid "This action has been prevented for security measures."
3556
+ msgstr ""
3557
+
3558
+ #: core/um-actions-login.php:263
3559
+ msgid "Keep me signed in"
3560
+ msgstr ""
3561
+
3562
+ #: core/um-actions-login.php:297
3563
+ msgid "Forgot your password?"
3564
+ msgstr ""
3565
+
3566
+ #: core/um-actions-members.php:63
3567
+ msgid "Search"
3568
+ msgstr ""
3569
+
3570
+ #: core/um-actions-members.php:63
3571
+ msgid "Reset"
3572
+ msgstr ""
3573
+
3574
+ #: core/um-actions-members.php:134
3575
+ msgid "Jump to page:"
3576
+ msgstr ""
3577
+
3578
+ #: core/um-actions-members.php:139
3579
+ #, php-format
3580
+ msgid "%s of %d"
3581
+ msgstr ""
3582
+
3583
+ #: core/um-actions-members.php:149
3584
+ msgid "First Page"
3585
+ msgstr ""
3586
+
3587
+ #: core/um-actions-members.php:155
3588
+ msgid "Previous"
3589
+ msgstr ""
3590
+
3591
+ #: core/um-actions-members.php:175
3592
+ msgid "Next"
3593
+ msgstr ""
3594
+
3595
+ #: core/um-actions-members.php:181
3596
+ msgid "Last Page"
3597
+ msgstr ""
3598
+
3599
+ #: core/um-actions-misc.php:64 core/um-actions-misc.php:99
3600
+ msgid "Registration is currently disabled"
3601
+ msgstr ""
3602
+
3603
+ #: core/um-actions-misc.php:75
3604
+ msgid "Your account was updated successfully."
3605
+ msgstr ""
3606
+
3607
+ #: core/um-actions-misc.php:79
3608
+ msgid "You have successfully changed your password."
3609
+ msgstr ""
3610
+
3611
+ #: core/um-actions-misc.php:83
3612
+ msgid "Your account is now active! You can login."
3613
+ msgstr ""
3614
+
3615
+ #: core/um-actions-misc.php:95
3616
+ msgid "An error has been encountered"
3617
+ msgstr ""
3618
+
3619
+ #: core/um-actions-misc.php:103 core/um-filters-login.php:33
3620
+ msgid "This email address has been blocked."
3621
+ msgstr ""
3622
+
3623
+ #: core/um-actions-misc.php:107
3624
+ msgid "We do not accept registrations from that domain."
3625
+ msgstr ""
3626
+
3627
+ #: core/um-actions-misc.php:111 core/um-filters-login.php:36
3628
+ msgid "Your IP address has been blocked."
3629
+ msgstr ""
3630
+
3631
+ #: core/um-actions-misc.php:115 core/um-filters-login.php:78
3632
+ msgid "Your account has been disabled."
3633
+ msgstr ""
3634
+
3635
+ #: core/um-actions-misc.php:119 core/um-filters-login.php:81
3636
+ msgid "Your account has not been approved yet."
3637
+ msgstr ""
3638
+
3639
+ #: core/um-actions-misc.php:123 core/um-filters-login.php:84
3640
+ msgid "Your account is awaiting e-mail verification."
3641
+ msgstr ""
3642
+
3643
+ #: core/um-actions-misc.php:127 core/um-filters-login.php:87
3644
+ msgid "Your membership request has been rejected."
3645
+ msgstr ""
3646
+
3647
+ #: core/um-actions-password.php:105 core/um-actions-password.php:168
3648
+ #: core/um-form.php:150
3649
+ msgid "Hello, spam bot!"
3650
+ msgstr ""
3651
+
3652
+ #: core/um-actions-password.php:108 core/um-actions-password.php:171
3653
+ #: core/um-form.php:153
3654
+ msgid ""
3655
+ "Whoa, slow down! You're seeing this message because you tried to submit a "
3656
+ "form too fast and we think you might be a spam bot. If you are a real human "
3657
+ "being please wait a few seconds before submitting the form. Thanks!"
3658
+ msgstr ""
3659
+
3660
+ #: core/um-actions-password.php:119
3661
+ msgid "Please provide your username or email"
3662
+ msgstr ""
3663
+
3664
+ #: core/um-actions-password.php:123
3665
+ msgid "We can't find an account registered with that address or username"
3666
+ msgstr ""
3667
+
3668
+ #: core/um-actions-password.php:142
3669
+ msgid ""
3670
+ "You have reached the limit for requesting password change for this user "
3671
+ "already. Contact support if you cannot open the email"
3672
+ msgstr ""
3673
+
3674
+ #: core/um-actions-password.php:189
3675
+ msgid "You must enter a new password"
3676
+ msgstr ""
3677
+
3678
+ #: core/um-actions-password.php:209
3679
+ msgid "You must confirm your new password"
3680
+ msgstr ""
3681
+
3682
+ #: core/um-actions-password.php:267
3683
+ msgid "Reset my password"
3684
+ msgstr ""
3685
+
3686
+ #: core/um-actions-password.php:294
3687
+ msgid "Change my password"
3688
+ msgstr ""
3689
+
3690
+ #: core/um-actions-profile.php:56
3691
+ msgid "You are not allowed to edit this user."
3692
+ msgstr ""
3693
+
3694
+ #: core/um-actions-profile.php:200 core/um-builtin.php:956
3695
+ msgid "Change your cover photo"
3696
+ msgstr ""
3697
+
3698
+ #: core/um-actions-profile.php:216
3699
+ msgid "Change cover photo"
3700
+ msgstr ""
3701
+
3702
+ #: core/um-actions-profile.php:258
3703
+ msgid "Upload a cover photo"
3704
+ msgstr ""
3705
+
3706
+ #: core/um-actions-profile.php:331
3707
+ msgid "Upload photo"
3708
+ msgstr ""
3709
+
3710
+ #: core/um-actions-profile.php:342 core/um-fields.php:1639
3711
+ #: core/um-fields.php:1674
3712
+ msgid "Change photo"
3713
+ msgstr ""
3714
+
3715
+ #: core/um-actions-profile.php:343
3716
+ msgid "Remove photo"
3717
+ msgstr ""
3718
+
3719
+ #: core/um-actions-profile.php:404
3720
+ msgid "Tell us a bit about yourself..."
3721
+ msgstr ""
3722
+
3723
+ #: core/um-actions-profile.php:417
3724
+ #, php-format
3725
+ msgid "This user account status is %s"
3726
+ msgstr ""
3727
+
3728
+ #: core/um-actions-profile.php:502
3729
+ msgid "Edit Profile"
3730
+ msgstr ""
3731
+
3732
+ #: core/um-actions-profile.php:503
3733
+ msgid "My Account"
3734
+ msgstr ""
3735
+
3736
+ #: core/um-actions-profile.php:504 core/um-actions-user.php:100
3737
+ msgid "Logout"
3738
+ msgstr ""
3739
+
3740
+ #: core/um-actions-user.php:99
3741
+ msgid "Your account"
3742
+ msgstr ""
3743
+
3744
+ #: core/um-api.php:134
3745
+ msgid "You must specify both a token and API key!"
3746
+ msgstr ""
3747
+
3748
+ #: core/um-api.php:145
3749
+ msgid "Your request could not be authenticated"
3750
+ msgstr ""
3751
+
3752
+ #: core/um-api.php:156
3753
+ msgid "Invalid API key"
3754
+ msgstr ""
3755
+
3756
+ #: core/um-api.php:294 core/um-api.php:339 core/um-api.php:376
3757
+ #: core/um-api.php:483 core/um-api.php:512
3758
+ msgid "You must provide a user ID"
3759
+ msgstr ""
3760
+
3761
+ #: core/um-api.php:299
3762
+ msgid "You need to provide data to update"
3763
+ msgstr ""
3764
+
3765
+ #: core/um-api.php:308
3766
+ msgid "User status has been changed."
3767
+ msgstr ""
3768
+
3769
+ #: core/um-api.php:312
3770
+ msgid "User level has been changed."
3771
+ msgstr ""
3772
+
3773
+ #: core/um-api.php:317
3774
+ msgid "User WordPress role has been changed."
3775
+ msgstr ""
3776
+
3777
+ #: core/um-api.php:321
3778
+ msgid "User meta has been changed."
3779
+ msgstr ""
3780
+
3781
+ #: core/um-api.php:347 core/um-api.php:384
3782
+ msgid "No users were found"
3783
+ msgstr ""
3784
+
3785
+ #: core/um-api.php:358 core/um-api.php:395
3786
+ msgid "Invalid request"
3787
+ msgstr ""
3788
+
3789
+ #: core/um-api.php:489 core/um-api.php:518
3790
+ msgid "Invalid user specified"
3791
+ msgstr ""
3792
+
3793
+ #: core/um-api.php:496
3794
+ msgid "User has been successfully deleted."
3795
+ msgstr ""
3796
+
3797
+ #: core/um-api.php:640
3798
+ msgid "Invalid query!"
3799
+ msgstr ""
3800
+
3801
+ #: core/um-api.php:749
3802
+ msgid "Ultimate Member REST API"
3803
+ msgstr ""
3804
+
3805
+ #: core/um-api.php:754
3806
+ msgid "Generate API Key"
3807
+ msgstr ""
3808
+
3809
+ #: core/um-api.php:757
3810
+ msgid "Public key:"
3811
+ msgstr ""
3812
+
3813
+ #: core/um-api.php:758
3814
+ msgid "Secret key:"
3815
+ msgstr ""
3816
+
3817
+ #: core/um-api.php:759
3818
+ msgid "Token:"
3819
+ msgstr ""
3820
+
3821
+ #: core/um-api.php:762
3822
+ msgid "Revoke API Keys"
3823
+ msgstr ""
3824
+
3825
+ #: core/um-builtin.php:82
3826
+ msgid "Your meta key is a reserved core field and cannot be used"
3827
+ msgstr ""
3828
+
3829
+ #: core/um-builtin.php:83
3830
+ msgid "Your meta key is a predefined reserved key and cannot be used"
3831
+ msgstr ""
3832
+
3833
+ #: core/um-builtin.php:84
3834
+ msgid "Your meta key already exists in your fields list"
3835
+ msgstr ""
3836
+
3837
+ #: core/um-builtin.php:85
3838
+ msgid "Your meta key contains illegal characters. Please correct it."
3839
+ msgstr ""
3840
+
3841
+ #: core/um-builtin.php:94
3842
+ msgid "Please provide a date range beginning"
3843
+ msgstr ""
3844
+
3845
+ #: core/um-builtin.php:95
3846
+ msgid "Please enter a valid start date in the date range"
3847
+ msgstr ""
3848
+
3849
+ #: core/um-builtin.php:104
3850
+ msgid "Please provide a date range end"
3851
+ msgstr ""
3852
+
3853
+ #: core/um-builtin.php:105
3854
+ msgid "Please enter a valid end date in the date range"
3855
+ msgstr ""
3856
+
3857
+ #: core/um-builtin.php:106
3858
+ msgid "The end of date range must be greater than the start of date range"
3859
+ msgstr ""
3860
+
3861
+ #: core/um-builtin.php:142 core/um-builtin.php:158 core/um-builtin.php:174
3862
+ #: core/um-builtin.php:190 core/um-builtin.php:210 core/um-builtin.php:230
3863
+ #: core/um-builtin.php:250 core/um-builtin.php:270 core/um-builtin.php:286
3864
+ #: core/um-builtin.php:302 core/um-builtin.php:322 core/um-builtin.php:342
3865
+ #: core/um-builtin.php:368 core/um-builtin.php:384 core/um-builtin.php:401
3866
+ #: core/um-builtin.php:414 core/um-builtin.php:431 core/um-builtin.php:444
3867
+ #: core/um-builtin.php:457 core/um-builtin.php:473 core/um-builtin.php:489
3868
+ #: core/um-builtin.php:505
3869
+ msgid "You must provide a title"
3870
+ msgstr ""
3871
+
3872
+ #: core/um-builtin.php:151
3873
+ msgid "Number"
3874
+ msgstr ""
3875
+
3876
+ #: core/um-builtin.php:197 core/um-builtin.php:217 core/um-builtin.php:237
3877
+ #: core/um-builtin.php:257
3878
+ msgid "You have not added any choices yet."
3879
+ msgstr ""
3880
+
3881
+ #: core/um-builtin.php:309 core/um-builtin.php:329
3882
+ msgid "Please enter a valid size"
3883
+ msgstr ""
3884
+
3885
+ #: core/um-builtin.php:349
3886
+ msgid "Number of years is not valid"
3887
+ msgstr ""
3888
+
3889
+ #: core/um-builtin.php:418
3890
+ msgid "You must add a shortcode to the content area"
3891
+ msgstr ""
3892
+
3893
+ #: core/um-builtin.php:551 core/um-builtin.php:996
3894
+ msgid "Everyone"
3895
+ msgstr ""
3896
+
3897
+ #: core/um-builtin.php:551 core/um-user.php:844
3898
+ msgid "Only me"
3899
+ msgstr ""
3900
+
3901
+ #: core/um-builtin.php:569 core/um-builtin.php:572 core/um-builtin.php:975
3902
+ msgid "Username or E-mail"
3903
+ msgstr ""
3904
+
3905
+ #: core/um-builtin.php:614 core/um-builtin.php:617 um-config.php:134
3906
+ msgid "Nickname"
3907
+ msgstr ""
3908
+
3909
+ #: core/um-builtin.php:624 core/um-builtin.php:627
3910
+ msgid "Registration Date"
3911
+ msgstr ""
3912
+
3913
+ #: core/um-builtin.php:635 core/um-builtin.php:638
3914
+ msgid "Last Login"
3915
+ msgstr ""
3916
+
3917
+ #: core/um-builtin.php:646 core/um-builtin.php:649
3918
+ msgid "E-mail Address"
3919
+ msgstr ""
3920
+
3921
+ #: core/um-builtin.php:657 core/um-builtin.php:660
3922
+ msgid "Secondary E-mail Address"
3923
+ msgstr ""
3924
+
3925
+ #: core/um-builtin.php:669 core/um-builtin.php:672
3926
+ msgid "Biography"
3927
+ msgstr ""
3928
+
3929
+ #: core/um-builtin.php:682 core/um-builtin.php:685
3930
+ msgid "Birth Date"
3931
+ msgstr ""
3932
+
3933
+ #: core/um-builtin.php:696 core/um-builtin.php:699
3934
+ msgid "Gender"
3935
+ msgstr ""
3936
+
3937
+ #: core/um-builtin.php:703
3938
+ msgid "Male"
3939
+ msgstr ""
3940
+
3941
+ #: core/um-builtin.php:703
3942
+ msgid "Female"
3943
+ msgstr ""
3944
+
3945
+ #: core/um-builtin.php:707 core/um-builtin.php:710
3946
+ msgid "Country"
3947
+ msgstr ""
3948
+
3949
+ #: core/um-builtin.php:711
3950
+ msgid "Choose a Country"
3951
+ msgstr ""
3952
+
3953
+ #: core/um-builtin.php:719 core/um-builtin.php:722
3954
+ msgid "Facebook"
3955
+ msgstr ""
3956
+
3957
+ #: core/um-builtin.php:737 core/um-builtin.php:740
3958
+ msgid "Twitter"
3959
+ msgstr ""
3960
+
3961
+ #: core/um-builtin.php:755 core/um-builtin.php:758
3962
+ msgid "LinkedIn"
3963
+ msgstr ""
3964
+
3965
+ #: core/um-builtin.php:773 core/um-builtin.php:776
3966
+ msgid "Google+"
3967
+ msgstr ""
3968
+
3969
+ #: core/um-builtin.php:791 core/um-builtin.php:794
3970
+ msgid "Instagram"
3971
+ msgstr ""
3972
+
3973
+ #: core/um-builtin.php:809 core/um-builtin.php:812 core/um-builtin.php:1155
3974
+ msgid "Skype ID"
3975
+ msgstr ""
3976
+
3977
+ #: core/um-builtin.php:824 core/um-builtin.php:827
3978
+ msgid "YouTube"
3979
+ msgstr ""
3980
+
3981
+ #: core/um-builtin.php:842 core/um-builtin.php:845
3982
+ msgid "SoundCloud"
3983
+ msgstr ""
3984
+
3985
+ #: core/um-builtin.php:860 core/um-builtin.php:863
3986
+ msgid "VKontakte"
3987
+ msgstr ""
3988
+
3989
+ #: core/um-builtin.php:878
3990
+ msgid "Roles (Dropdown)"
3991
+ msgstr ""
3992
+
3993
+ #: core/um-builtin.php:881 core/um-builtin.php:893
3994
+ msgid "Account Type"
3995
+ msgstr ""
3996
+
3997
+ #: core/um-builtin.php:890
3998
+ msgid "Roles (Radio)"
3999
+ msgstr ""
4000
+
4001
+ #: core/um-builtin.php:901
4002
+ msgid "Languages"
4003
+ msgstr ""
4004
+
4005
+ #: core/um-builtin.php:904
4006
+ msgid "Languages Spoken"
4007
+ msgstr ""
4008
+
4009
+ #: core/um-builtin.php:905
4010
+ msgid "Select languages"
4011
+ msgstr ""
4012
+
4013
+ #: core/um-builtin.php:913 core/um-builtin.php:916 core/um-builtin.php:1154
4014
+ msgid "Phone Number"
4015
+ msgstr ""
4016
+
4017
+ #: core/um-builtin.php:925 core/um-builtin.php:928
4018
+ msgid "Mobile Number"
4019
+ msgstr ""
4020
+
4021
+ #: core/um-builtin.php:939
4022
+ msgid "Profile Photo"
4023
+ msgstr ""
4024
+
4025
+ #: core/um-builtin.php:942
4026
+ msgid "Change your profile photo"
4027
+ msgstr ""
4028
+
4029
+ #: core/um-builtin.php:943
4030
+ msgid "Upload your photo here"
4031
+ msgstr ""
4032
+
4033
+ #: core/um-builtin.php:953
4034
+ msgid "Cover Photo"
4035
+ msgstr ""
4036
+
4037
+ #: core/um-builtin.php:957
4038
+ msgid "Upload profile cover here"
4039
+ msgstr ""
4040
+
4041
+ #: core/um-builtin.php:968
4042
+ msgid "Password Reset"
4043
+ msgstr ""
4044
+
4045
+ #: core/um-builtin.php:970
4046
+ msgid ""
4047
+ "To reset your password, please enter your email address or username below"
4048
+ msgstr ""
4049
+
4050
+ #: core/um-builtin.php:978
4051
+ msgid "Enter your username or email"
4052
+ msgstr ""
4053
+
4054
+ #: core/um-builtin.php:988 core/um-builtin.php:991
4055
+ msgid "Profile Privacy"
4056
+ msgstr ""
4057
+
4058
+ #: core/um-builtin.php:992
4059
+ msgid "Who can see your public profile?"
4060
+ msgstr ""
4061
+
4062
+ #: core/um-builtin.php:1004 core/um-builtin.php:1007
4063
+ msgid "Hide my profile from directory"
4064
+ msgstr ""
4065
+
4066
+ #: core/um-builtin.php:1008
4067
+ msgid "Here you can hide yourself from appearing in public directory"
4068
+ msgstr ""
4069
+
4070
+ #: core/um-builtin.php:1023
4071
+ msgid ""
4072
+ "If you confirm, everything related to your profile will be deleted "
4073
+ "permanently from the site"
4074
+ msgstr ""
4075
+
4076
+ #: core/um-builtin.php:1144
4077
+ msgid "Alphabetic value only"
4078
+ msgstr ""
4079
+
4080
+ #: core/um-builtin.php:1145
4081
+ msgid "Alpha-numeric value"
4082
+ msgstr ""
4083
+
4084
+ #: core/um-builtin.php:1146
4085
+ msgid "English letters only"
4086
+ msgstr ""
4087
+
4088
+ #: core/um-builtin.php:1147
4089
+ msgid "Facebook URL"
4090
+ msgstr ""
4091
+
4092
+ #: core/um-builtin.php:1148
4093
+ msgid "Google+ URL"
4094
+ msgstr ""
4095
+
4096
+ #: core/um-builtin.php:1149
4097
+ msgid "Instagram URL"
4098
+ msgstr ""
4099
+
4100
+ #: core/um-builtin.php:1150
4101
+ msgid "LinkedIn URL"
4102
+ msgstr ""
4103
+
4104
+ #: core/um-builtin.php:1151
4105
+ msgid "VKontakte URL"
4106
+ msgstr ""
4107
+
4108
+ #: core/um-builtin.php:1152
4109
+ msgid "Lowercase only"
4110
+ msgstr ""
4111
+
4112
+ #: core/um-builtin.php:1153
4113
+ msgid "Numeric value only"
4114
+ msgstr ""
4115
+
4116
+ #: core/um-builtin.php:1156
4117
+ msgid "SoundCloud Profile"
4118
+ msgstr ""
4119
+
4120
+ #: core/um-builtin.php:1157
4121
+ msgid "Twitter URL"
4122
+ msgstr ""
4123
+
4124
+ #: core/um-builtin.php:1158
4125
+ msgid "Unique E-mail"
4126
+ msgstr ""
4127
+
4128
+ #: core/um-builtin.php:1159
4129
+ msgid "Unique Metakey value"
4130
+ msgstr ""
4131
+
4132
+ #: core/um-builtin.php:1160
4133
+ msgid "Unique Username"
4134
+ msgstr ""
4135
+
4136
+ #: core/um-builtin.php:1161
4137
+ msgid "Unique Username/E-mail"
4138
+ msgstr ""
4139
+
4140
+ #: core/um-builtin.php:1162
4141
+ msgid "Website URL"
4142
+ msgstr ""
4143
+
4144
+ #: core/um-builtin.php:1163
4145
+ msgid "YouTube Profile"
4146
+ msgstr ""
4147
+
4148
+ #: core/um-builtin.php:1164
4149
+ msgid "Custom Validation"
4150
+ msgstr ""
4151
+
4152
+ #: core/um-builtin.php:1178
4153
+ msgid "Afar"
4154
+ msgstr ""
4155
+
4156
+ #: core/um-builtin.php:1179
4157
+ msgid "Abkhazian"
4158
+ msgstr ""
4159
+
4160
+ #: core/um-builtin.php:1180
4161
+ msgid "Avestan"
4162
+ msgstr ""
4163
+
4164
+ #: core/um-builtin.php:1181
4165
+ msgid "Afrikaans"
4166
+ msgstr ""
4167
+
4168
+ #: core/um-builtin.php:1182
4169
+ msgid "Akan"
4170
+ msgstr ""
4171
+
4172
+ #: core/um-builtin.php:1183
4173
+ msgid "Amharic"
4174
+ msgstr ""
4175
+
4176
+ #: core/um-builtin.php:1184
4177
+ msgid "Aragonese"
4178
+ msgstr ""
4179
+
4180
+ #: core/um-builtin.php:1185
4181
+ msgid "Arabic"
4182
+ msgstr ""
4183
+
4184
+ #: core/um-builtin.php:1186
4185
+ msgid "Assamese"
4186
+ msgstr ""
4187
+
4188
+ #: core/um-builtin.php:1187
4189
+ msgid "Avaric"
4190
+ msgstr ""
4191
+
4192
+ #: core/um-builtin.php:1188
4193
+ msgid "Aymara"
4194
+ msgstr ""
4195
+
4196
+ #: core/um-builtin.php:1189
4197
+ msgid "Azerbaijani"
4198
+ msgstr ""
4199
+
4200
+ #: core/um-builtin.php:1190
4201
+ msgid "Bashkir"
4202
+ msgstr ""
4203
+
4204
+ #: core/um-builtin.php:1191
4205
+ msgid "Belarusian"
4206
+ msgstr ""
4207
+
4208
+ #: core/um-builtin.php:1192
4209
+ msgid "Bulgarian"
4210
+ msgstr ""
4211
+
4212
+ #: core/um-builtin.php:1193
4213
+ msgid "Bihari"
4214
+ msgstr ""
4215
+
4216
+ #: core/um-builtin.php:1194
4217
+ msgid "Bislama"
4218
+ msgstr ""
4219
+
4220
+ #: core/um-builtin.php:1195
4221
+ msgid "Bambara"
4222
+ msgstr ""
4223
+
4224
+ #: core/um-builtin.php:1196
4225
+ msgid "Bengali"
4226
+ msgstr ""
4227
+
4228
+ #: core/um-builtin.php:1197
4229
+ msgid "Tibetan"
4230
+ msgstr ""
4231
+
4232
+ #: core/um-builtin.php:1198
4233
+ msgid "Breton"
4234
+ msgstr ""
4235
+
4236
+ #: core/um-builtin.php:1199
4237
+ msgid "Bosnian"
4238
+ msgstr ""
4239
+
4240
+ #: core/um-builtin.php:1200
4241
+ msgid "Catalan"
4242
+ msgstr ""
4243
+
4244
+ #: core/um-builtin.php:1201
4245
+ msgid "Chechen"
4246
+ msgstr ""
4247
+
4248
+ #: core/um-builtin.php:1202
4249
+ msgid "Chamorro"
4250
+ msgstr ""
4251
+
4252
+ #: core/um-builtin.php:1203
4253
+ msgid "Corsican"
4254
+ msgstr ""
4255
+
4256
+ #: core/um-builtin.php:1204
4257
+ msgid "Cree"
4258
+ msgstr ""
4259
+
4260
+ #: core/um-builtin.php:1205
4261
+ msgid "Czech"
4262
+ msgstr ""
4263
+
4264
+ #: core/um-builtin.php:1206
4265
+ msgid "Church Slavic"
4266
+ msgstr ""
4267
+
4268
+ #: core/um-builtin.php:1207
4269
+ msgid "Chuvash"
4270
+ msgstr ""
4271
+
4272
+ #: core/um-builtin.php:1208
4273
+ msgid "Welsh"
4274
+ msgstr ""
4275
+
4276
+ #: core/um-builtin.php:1209
4277
+ msgid "Danish"
4278
+ msgstr ""
4279
+
4280
+ #: core/um-builtin.php:1210
4281
+ msgid "German"
4282
+ msgstr ""
4283
+
4284
+ #: core/um-builtin.php:1211
4285
+ msgid "Divehi"
4286
+ msgstr ""
4287
+
4288
+ #: core/um-builtin.php:1212
4289
+ msgid "Dzongkha"
4290
+ msgstr ""
4291
+
4292
+ #: core/um-builtin.php:1213
4293
+ msgid "Ewe"
4294
+ msgstr ""
4295
+
4296
+ #: core/um-builtin.php:1214
4297
+ msgid "Greek"
4298
+ msgstr ""
4299
+
4300
+ #: core/um-builtin.php:1215
4301
+ msgid "English"
4302
+ msgstr ""
4303
+
4304
+ #: core/um-builtin.php:1216
4305
+ msgid "Esperanto"
4306
+ msgstr ""
4307
+
4308
+ #: core/um-builtin.php:1217
4309
+ msgid "Spanish"
4310
+ msgstr ""
4311
+
4312
+ #: core/um-builtin.php:1218
4313
+ msgid "Estonian"
4314
+ msgstr ""
4315
+
4316
+ #: core/um-builtin.php:1219
4317
+ msgid "Basque"
4318
+ msgstr ""
4319
+
4320
+ #: core/um-builtin.php:1220
4321
+ msgid "Persian"
4322
+ msgstr ""
4323
+
4324
+ #: core/um-builtin.php:1221
4325
+ msgid "Fulah"
4326
+ msgstr ""
4327
+
4328
+ #: core/um-builtin.php:1222
4329
+ msgid "Finnish"
4330
+ msgstr ""
4331
+
4332
+ #: core/um-builtin.php:1223
4333
+ msgid "Fijian"
4334
+ msgstr ""
4335
+
4336
+ #: core/um-builtin.php:1224
4337
+ msgid "Faroese"
4338
+ msgstr ""
4339
+
4340
+ #: core/um-builtin.php:1225
4341
+ msgid "French"
4342
+ msgstr ""
4343
+
4344
+ #: core/um-builtin.php:1226
4345
+ msgid "Western Frisian"
4346
+ msgstr ""
4347
+
4348
+ #: core/um-builtin.php:1227
4349
+ msgid "Irish"
4350
+ msgstr ""
4351
+
4352
+ #: core/um-builtin.php:1228
4353
+ msgid "Scottish Gaelic"
4354
+ msgstr ""
4355
+
4356
+ #: core/um-builtin.php:1229
4357
+ msgid "Galician"
4358
+ msgstr ""
4359
+
4360
+ #: core/um-builtin.php:1230
4361
+ msgid "Guarani"
4362
+ msgstr ""
4363
+
4364
+ #: core/um-builtin.php:1231
4365
+ msgid "Gujarati"
4366
+ msgstr ""
4367
+
4368
+ #: core/um-builtin.php:1232
4369
+ msgid "Manx"
4370
+ msgstr ""
4371
+
4372
+ #: core/um-builtin.php:1233
4373
+ msgid "Hausa"
4374
+ msgstr ""
4375
+
4376
+ #: core/um-builtin.php:1234
4377
+ msgid "Hebrew"
4378
+ msgstr ""
4379
+
4380
+ #: core/um-builtin.php:1235
4381
+ msgid "Hindi"
4382
+ msgstr ""
4383
+
4384
+ #: core/um-builtin.php:1236
4385
+ msgid "Hiri Motu"
4386
+ msgstr ""
4387
+
4388
+ #: core/um-builtin.php:1237
4389
+ msgid "Croatian"
4390
+ msgstr ""
4391
+
4392
+ #: core/um-builtin.php:1238
4393
+ msgid "Haitian"
4394
+ msgstr ""
4395
+
4396
+ #: core/um-builtin.php:1239
4397
+ msgid "Hungarian"
4398
+ msgstr ""
4399
+
4400
+ #: core/um-builtin.php:1240
4401
+ msgid "Armenian"
4402
+ msgstr ""
4403
+
4404
+ #: core/um-builtin.php:1241
4405
+ msgid "Herero"
4406
+ msgstr ""
4407
+
4408
+ #: core/um-builtin.php:1242
4409
+ msgid "Interlingua (International Auxiliary Language Association)"
4410
+ msgstr ""
4411
+
4412
+ #: core/um-builtin.php:1243
4413
+ msgid "Indonesian"
4414
+ msgstr ""
4415
+
4416
+ #: core/um-builtin.php:1244
4417
+ msgid "Interlingue"
4418
+ msgstr ""
4419
+
4420
+ #: core/um-builtin.php:1245
4421
+ msgid "Igbo"
4422
+ msgstr ""
4423
+
4424
+ #: core/um-builtin.php:1246
4425
+ msgid "Sichuan Yi"
4426
+ msgstr ""
4427
+
4428
+ #: core/um-builtin.php:1247
4429
+ msgid "Inupiaq"
4430
+ msgstr ""
4431
+
4432
+ #: core/um-builtin.php:1248
4433
+ msgid "Ido"
4434
+ msgstr ""
4435
+
4436
+ #: core/um-builtin.php:1249
4437
+ msgid "Icelandic"
4438
+ msgstr ""
4439
+
4440
+ #: core/um-builtin.php:1250
4441
+ msgid "Italian"
4442
+ msgstr ""
4443
+
4444
+ #: core/um-builtin.php:1251
4445
+ msgid "Inuktitut"
4446
+ msgstr ""
4447
+
4448
+ #: core/um-builtin.php:1252
4449
+ msgid "Japanese"
4450
+ msgstr ""
4451
+
4452
+ #: core/um-builtin.php:1253
4453
+ msgid "Javanese"
4454
+ msgstr ""
4455
+
4456
+ #: core/um-builtin.php:1254
4457
+ msgid "Georgian"
4458
+ msgstr ""
4459
+
4460
+ #: core/um-builtin.php:1255
4461
+ msgid "Kongo"
4462
+ msgstr ""
4463
+
4464
+ #: core/um-builtin.php:1256
4465
+ msgid "Kikuyu"
4466
+ msgstr ""
4467
+
4468
+ #: core/um-builtin.php:1257
4469
+ msgid "Kwanyama"
4470
+ msgstr ""
4471
+
4472
+ #: core/um-builtin.php:1258
4473
+ msgid "Kazakh"
4474
+ msgstr ""
4475
+
4476
+ #: core/um-builtin.php:1259
4477
+ msgid "Kalaallisut"
4478
+ msgstr ""
4479
+
4480
+ #: core/um-builtin.php:1260
4481
+ msgid "Khmer"
4482
+ msgstr ""
4483
+
4484
+ #: core/um-builtin.php:1261
4485
+ msgid "Kannada"
4486
+ msgstr ""
4487
+
4488
+ #: core/um-builtin.php:1262
4489
+ msgid "Korean"
4490
+ msgstr ""
4491
+
4492
+ #: core/um-builtin.php:1263
4493
+ msgid "Kanuri"
4494
+ msgstr ""
4495
+
4496
+ #: core/um-builtin.php:1264
4497
+ msgid "Kashmiri"
4498
+ msgstr ""
4499
+
4500
+ #: core/um-builtin.php:1265
4501
+ msgid "Kurdish"
4502
+ msgstr ""
4503
+
4504
+ #: core/um-builtin.php:1266
4505
+ msgid "Komi"
4506
+ msgstr ""
4507
+
4508
+ #: core/um-builtin.php:1267
4509
+ msgid "Cornish"
4510
+ msgstr ""
4511
+
4512
+ #: core/um-builtin.php:1268
4513
+ msgid "Kirghiz"
4514
+ msgstr ""
4515
+
4516
+ #: core/um-builtin.php:1269
4517
+ msgid "Latin"
4518
+ msgstr ""
4519
+
4520
+ #: core/um-builtin.php:1270
4521
+ msgid "Luxembourgish"
4522
+ msgstr ""
4523
+
4524
+ #: core/um-builtin.php:1271
4525
+ msgid "Ganda"
4526
+ msgstr ""
4527
+
4528
+ #: core/um-builtin.php:1272
4529
+ msgid "Limburgish"
4530
+ msgstr ""
4531
+
4532
+ #: core/um-builtin.php:1273
4533
+ msgid "Lingala"
4534
+ msgstr ""
4535
+
4536
+ #: core/um-builtin.php:1274
4537
+ msgid "Lao"
4538
+ msgstr ""
4539
+
4540
+ #: core/um-builtin.php:1275
4541
+ msgid "Lithuanian"
4542
+ msgstr ""
4543
+
4544
+ #: core/um-builtin.php:1276
4545
+ msgid "Luba-Katanga"
4546
+ msgstr ""
4547
+
4548
+ #: core/um-builtin.php:1277
4549
+ msgid "Latvian"
4550
+ msgstr ""
4551
+
4552
+ #: core/um-builtin.php:1278
4553
+ msgid "Malagasy"
4554
+ msgstr ""
4555
+
4556
+ #: core/um-builtin.php:1279
4557
+ msgid "Marshallese"
4558
+ msgstr ""
4559
+
4560
+ #: core/um-builtin.php:1280
4561
+ msgid "Maori"
4562
+ msgstr ""
4563
+
4564
+ #: core/um-builtin.php:1281
4565
+ msgid "Macedonian"
4566
+ msgstr ""
4567
+
4568
+ #: core/um-builtin.php:1282
4569
+ msgid "Malayalam"
4570
+ msgstr ""
4571
+
4572
+ #: core/um-builtin.php:1283
4573
+ msgid "Mongolian"
4574
+ msgstr ""
4575
+
4576
+ #: core/um-builtin.php:1284
4577
+ msgid "Marathi"
4578
+ msgstr ""
4579
+
4580
+ #: core/um-builtin.php:1285
4581
+ msgid "Malay"
4582
+ msgstr ""
4583
+
4584
+ #: core/um-builtin.php:1286
4585
+ msgid "Maltese"
4586
+ msgstr ""
4587
+
4588
+ #: core/um-builtin.php:1287
4589
+ msgid "Burmese"
4590
+ msgstr ""
4591
+
4592
+ #: core/um-builtin.php:1288 core/um-builtin.php:1519
4593
+ msgid "Nauru"
4594
+ msgstr ""
4595
+
4596
+ #: core/um-builtin.php:1289
4597
+ msgid "Norwegian Bokmal"
4598
+ msgstr ""
4599
+
4600
+ #: core/um-builtin.php:1290
4601
+ msgid "North Ndebele"
4602
+ msgstr ""
4603
+
4604
+ #: core/um-builtin.php:1291
4605
+ msgid "Nepali"
4606
+ msgstr ""
4607
+
4608
+ #: core/um-builtin.php:1292
4609
+ msgid "Ndonga"
4610
+ msgstr ""
4611
+
4612
+ #: core/um-builtin.php:1293
4613
+ msgid "Dutch"
4614
+ msgstr ""
4615
+
4616
+ #: core/um-builtin.php:1294
4617
+ msgid "Norwegian Nynorsk"
4618
+ msgstr ""
4619
+
4620
+ #: core/um-builtin.php:1295
4621
+ msgid "Norwegian"
4622
+ msgstr ""
4623
+
4624
+ #: core/um-builtin.php:1296
4625
+ msgid "South Ndebele"
4626
+ msgstr ""
4627
+
4628
+ #: core/um-builtin.php:1297
4629
+ msgid "Navajo"
4630
+ msgstr ""
4631
+
4632
+ #: core/um-builtin.php:1298
4633
+ msgid "Chichewa"
4634
+ msgstr ""
4635
+
4636
+ #: core/um-builtin.php:1299
4637
+ msgid "Occitan"
4638
+ msgstr ""
4639
+
4640
+ #: core/um-builtin.php:1300
4641
+ msgid "Ojibwa"
4642
+ msgstr ""
4643
+
4644
+ #: core/um-builtin.php:1301
4645
+ msgid "Oromo"
4646
+ msgstr ""
4647
+
4648
+ #: core/um-builtin.php:1302
4649
+ msgid "Oriya"
4650
+ msgstr ""
4651
+
4652
+ #: core/um-builtin.php:1303
4653
+ msgid "Ossetian"
4654
+ msgstr ""
4655
+
4656
+ #: core/um-builtin.php:1304
4657
+ msgid "Panjabi"
4658
+ msgstr ""
4659
+
4660
+ #: core/um-builtin.php:1305
4661
+ msgid "Pali"
4662
+ msgstr ""
4663
+
4664
+ #: core/um-builtin.php:1306
4665
+ msgid "Polish"
4666
+ msgstr ""
4667
+
4668
+ #: core/um-builtin.php:1307
4669
+ msgid "Pashto"
4670
+ msgstr ""
4671
+
4672
+ #: core/um-builtin.php:1308
4673
+ msgid "Portuguese"
4674
+ msgstr ""
4675
+
4676
+ #: core/um-builtin.php:1309
4677
+ msgid "Quechua"
4678
+ msgstr ""
4679
+
4680
+ #: core/um-builtin.php:1310
4681
+ msgid "Raeto-Romance"
4682
+ msgstr ""
4683
+
4684
+ #: core/um-builtin.php:1311
4685
+ msgid "Kirundi"
4686
+ msgstr ""
4687
+
4688
+ #: core/um-builtin.php:1312
4689
+ msgid "Romanian"
4690
+ msgstr ""
4691
+
4692
+ #: core/um-builtin.php:1313
4693
+ msgid "Russian"
4694
+ msgstr ""
4695
+
4696
+ #: core/um-builtin.php:1314
4697
+ msgid "Kinyarwanda"
4698
+ msgstr ""
4699
+
4700
+ #: core/um-builtin.php:1315
4701
+ msgid "Sanskrit"
4702
+ msgstr ""
4703
+
4704
+ #: core/um-builtin.php:1316
4705
+ msgid "Sardinian"
4706
+ msgstr ""
4707
+
4708
+ #: core/um-builtin.php:1317
4709
+ msgid "Sindhi"
4710
+ msgstr ""
4711
+
4712
+ #: core/um-builtin.php:1318
4713
+ msgid "Northern Sami"
4714
+ msgstr ""
4715
+
4716
+ #: core/um-builtin.php:1319
4717
+ msgid "Sango"
4718
+ msgstr ""
4719
+
4720
+ #: core/um-builtin.php:1320
4721
+ msgid "Sinhala"
4722
+ msgstr ""
4723
+
4724
+ #: core/um-builtin.php:1321
4725
+ msgid "Slovak"
4726
+ msgstr ""
4727
+
4728
+ #: core/um-builtin.php:1322
4729
+ msgid "Slovenian"
4730
+ msgstr ""
4731
+
4732
+ #: core/um-builtin.php:1323
4733
+ msgid "Samoan"
4734
+ msgstr ""
4735
+
4736
+ #: core/um-builtin.php:1324
4737
+ msgid "Shona"
4738
+ msgstr ""
4739
+
4740
+ #: core/um-builtin.php:1325
4741
+ msgid "Somali"
4742
+ msgstr ""
4743
+
4744
+ #: core/um-builtin.php:1326
4745
+ msgid "Albanian"
4746
+ msgstr ""
4747
+
4748
+ #: core/um-builtin.php:1327
4749
+ msgid "Serbian"
4750
+ msgstr ""
4751
+
4752
+ #: core/um-builtin.php:1328
4753
+ msgid "Swati"
4754
+ msgstr ""
4755
+
4756
+ #: core/um-builtin.php:1329
4757
+ msgid "Southern Sotho"
4758
+ msgstr ""
4759
+
4760
+ #: core/um-builtin.php:1330
4761
+ msgid "Sundanese"
4762
+ msgstr ""
4763
+
4764
+ #: core/um-builtin.php:1331
4765
+ msgid "Swedish"
4766
+ msgstr ""
4767
+
4768
+ #: core/um-builtin.php:1332
4769
+ msgid "Swahili"
4770
+ msgstr ""
4771
+
4772
+ #: core/um-builtin.php:1333
4773
+ msgid "Tamil"
4774
+ msgstr ""
4775
+
4776
+ #: core/um-builtin.php:1334
4777
+ msgid "Telugu"
4778
+ msgstr ""
4779
+
4780
+ #: core/um-builtin.php:1335
4781
+ msgid "Tajik"
4782
+ msgstr ""
4783
+
4784
+ #: core/um-builtin.php:1336
4785
+ msgid "Thai"
4786
+ msgstr ""
4787
+
4788
+ #: core/um-builtin.php:1337
4789
+ msgid "Tigrinya"
4790
+ msgstr ""
4791
+
4792
+ #: core/um-builtin.php:1338
4793
+ msgid "Turkmen"
4794
+ msgstr ""
4795
+
4796
+ #: core/um-builtin.php:1339
4797
+ msgid "Tagalog"
4798
+ msgstr ""
4799
+
4800
+ #: core/um-builtin.php:1340
4801
+ msgid "Tswana"
4802
+ msgstr ""
4803
+
4804
+ #: core/um-builtin.php:1341 core/um-builtin.php:1589
4805
+ msgid "Tonga"
4806
+ msgstr ""
4807
+
4808
+ #: core/um-builtin.php:1342
4809
+ msgid "Turkish"
4810
+ msgstr ""
4811
+
4812
+ #: core/um-builtin.php:1343
4813
+ msgid "Tsonga"
4814
+ msgstr ""
4815
+
4816
+ #: core/um-builtin.php:1344
4817
+ msgid "Tatar"
4818
+ msgstr ""
4819
+
4820
+ #: core/um-builtin.php:1345
4821
+ msgid "Twi"
4822
+ msgstr ""
4823
+
4824
+ #: core/um-builtin.php:1346
4825
+ msgid "Tahitian"
4826
+ msgstr ""
4827
+
4828
+ #: core/um-builtin.php:1347
4829
+ msgid "Uighur"
4830
+ msgstr ""
4831
+
4832
+ #: core/um-builtin.php:1348
4833
+ msgid "Ukrainian"
4834
+ msgstr ""
4835
+
4836
+ #: core/um-builtin.php:1349
4837
+ msgid "Urdu"
4838
+ msgstr ""
4839
+
4840
+ #: core/um-builtin.php:1350
4841
+ msgid "Uzbek"
4842
+ msgstr ""
4843
+
4844
+ #: core/um-builtin.php:1351
4845
+ msgid "Venda"
4846
+ msgstr ""
4847
+
4848
+ #: core/um-builtin.php:1352
4849
+ msgid "Vietnamese"
4850
+ msgstr ""
4851
+
4852
+ #: core/um-builtin.php:1353
4853
+ msgid "Volapuk"
4854
+ msgstr ""
4855
+
4856
+ #: core/um-builtin.php:1354
4857
+ msgid "Walloon"
4858
+ msgstr ""
4859
+
4860
+ #: core/um-builtin.php:1355
4861
+ msgid "Wolof"
4862
+ msgstr ""
4863
+
4864
+ #: core/um-builtin.php:1356
4865
+ msgid "Xhosa"
4866
+ msgstr ""
4867
+
4868
+ #: core/um-builtin.php:1357
4869
+ msgid "Yiddish"
4870
+ msgstr ""
4871
+
4872
+ #: core/um-builtin.php:1358
4873
+ msgid "Yoruba"
4874
+ msgstr ""
4875
+
4876
+ #: core/um-builtin.php:1359
4877
+ msgid "Zhuang"
4878
+ msgstr ""
4879
+
4880
+ #: core/um-builtin.php:1360
4881
+ msgid "Chinese"
4882
+ msgstr ""
4883
+
4884
+ #: core/um-builtin.php:1361
4885
+ msgid "Zulu"
4886
+ msgstr ""
4887
+
4888
+ #: core/um-builtin.php:1367
4889
+ msgid "Afghanistan"
4890
+ msgstr ""
4891
+
4892
+ #: core/um-builtin.php:1368
4893
+ msgid "Åland Islands"
4894
+ msgstr ""
4895
+
4896
+ #: core/um-builtin.php:1369
4897
+ msgid "Albania"
4898
+ msgstr ""
4899
+
4900
+ #: core/um-builtin.php:1370
4901
+ msgid "Algeria"
4902
+ msgstr ""
4903
+
4904
+ #: core/um-builtin.php:1371
4905
+ msgid "American Samoa"
4906
+ msgstr ""
4907
+
4908
+ #: core/um-builtin.php:1372
4909
+ msgid "Andorra"
4910
+ msgstr ""
4911
+
4912
+ #: core/um-builtin.php:1373
4913
+ msgid "Angola"
4914
+ msgstr ""
4915
+
4916
+ #: core/um-builtin.php:1374
4917
+ msgid "Anguilla"
4918
+ msgstr ""
4919
+
4920
+ #: core/um-builtin.php:1375
4921
+ msgid "Antarctica"
4922
+ msgstr ""
4923
+
4924
+ #: core/um-builtin.php:1376
4925
+ msgid "Antigua and Barbuda"
4926
+ msgstr ""
4927
+
4928
+ #: core/um-builtin.php:1377
4929
+ msgid "Argentina"
4930
+ msgstr ""
4931
+
4932
+ #: core/um-builtin.php:1378
4933
+ msgid "Armenia"
4934
+ msgstr ""
4935
+
4936
+ #: core/um-builtin.php:1379
4937
+ msgid "Aruba"
4938
+ msgstr ""
4939
+
4940
+ #: core/um-builtin.php:1380
4941
+ msgid "Australia"
4942
+ msgstr ""
4943
+
4944
+ #: core/um-builtin.php:1381
4945
+ msgid "Austria"
4946
+ msgstr ""
4947
+
4948
+ #: core/um-builtin.php:1382
4949
+ msgid "Azerbaijan"
4950
+ msgstr ""
4951
+
4952
+ #: core/um-builtin.php:1383
4953
+ msgid "Bahamas"
4954
+ msgstr ""
4955
+
4956
+ #: core/um-builtin.php:1384
4957
+ msgid "Bahrain"
4958
+ msgstr ""
4959
+
4960
+ #: core/um-builtin.php:1385
4961
+ msgid "Bangladesh"
4962
+ msgstr ""
4963
+
4964
+ #: core/um-builtin.php:1386
4965
+ msgid "Barbados"
4966
+ msgstr ""
4967
+
4968
+ #: core/um-builtin.php:1387
4969
+ msgid "Belarus"
4970
+ msgstr ""
4971
+
4972
+ #: core/um-builtin.php:1388
4973
+ msgid "Belgium"
4974
+ msgstr ""
4975
+
4976
+ #: core/um-builtin.php:1389
4977
+ msgid "Belize"
4978
+ msgstr ""
4979
+
4980
+ #: core/um-builtin.php:1390
4981
+ msgid "Benin"
4982
+ msgstr ""
4983
+
4984
+ #: core/um-builtin.php:1391
4985
+ msgid "Bermuda"
4986
+ msgstr ""
4987
+
4988
+ #: core/um-builtin.php:1392
4989
+ msgid "Bhutan"
4990
+ msgstr ""
4991
+
4992
+ #: core/um-builtin.php:1393
4993
+ msgid "Bolivia, Plurinational State of"
4994
+ msgstr ""
4995
+
4996
+ #: core/um-builtin.php:1394
4997
+ msgid "Bosnia and Herzegovina"
4998
+ msgstr ""
4999
+
5000
+ #: core/um-builtin.php:1395
5001
+ msgid "Botswana"
5002
+ msgstr ""
5003
+
5004
+ #: core/um-builtin.php:1396
5005
+ msgid "Bouvet Island"
5006
+ msgstr ""
5007
+
5008
+ #: core/um-builtin.php:1397
5009
+ msgid "Brazil"
5010
+ msgstr ""
5011
+
5012
+ #: core/um-builtin.php:1398
5013
+ msgid "British Indian Ocean Territory"
5014
+ msgstr ""
5015
+
5016
+ #: core/um-builtin.php:1399
5017
+ msgid "Brunei Darussalam"
5018
+ msgstr ""
5019
+
5020
+ #: core/um-builtin.php:1400
5021
+ msgid "Bulgaria"
5022
+ msgstr ""
5023
+
5024
+ #: core/um-builtin.php:1401
5025
+ msgid "Burkina Faso"
5026
+ msgstr ""
5027
+
5028
+ #: core/um-builtin.php:1402
5029
+ msgid "Burundi"
5030
+ msgstr ""
5031
+
5032
+ #: core/um-builtin.php:1403
5033
+ msgid "Cambodia"
5034
+ msgstr ""
5035
+
5036
+ #: core/um-builtin.php:1404
5037
+ msgid "Cameroon"
5038
+ msgstr ""
5039
+
5040
+ #: core/um-builtin.php:1405
5041
+ msgid "Canada"
5042
+ msgstr ""
5043
+
5044
+ #: core/um-builtin.php:1406
5045
+ msgid "Cape Verde"
5046
+ msgstr ""
5047
+
5048
+ #: core/um-builtin.php:1407
5049
+ msgid "Cayman Islands"
5050
+ msgstr ""
5051
+
5052
+ #: core/um-builtin.php:1408
5053
+ msgid "Central African Republic"
5054
+ msgstr ""
5055
+
5056
+ #: core/um-builtin.php:1409
5057
+ msgid "Chad"
5058
+ msgstr ""
5059
+
5060
+ #: core/um-builtin.php:1410
5061
+ msgid "Chile"
5062
+ msgstr ""
5063
+
5064
+ #: core/um-builtin.php:1411
5065
+ msgid "China"
5066
+ msgstr ""
5067
+
5068
+ #: core/um-builtin.php:1412
5069
+ msgid "Christmas Island"
5070
+ msgstr ""
5071
+
5072
+ #: core/um-builtin.php:1413
5073
+ msgid "Cocos (Keeling) Islands"
5074
+ msgstr ""
5075
+
5076
+ #: core/um-builtin.php:1414
5077
+ msgid "Colombia"
5078
+ msgstr ""
5079
+
5080
+ #: core/um-builtin.php:1415
5081
+ msgid "Comoros"
5082
+ msgstr ""
5083
+
5084
+ #: core/um-builtin.php:1416
5085
+ msgid "Congo"
5086
+ msgstr ""
5087
+
5088
+ #: core/um-builtin.php:1417
5089
+ msgid "Congo, the Democratic Republic of the"
5090
+ msgstr ""
5091
+
5092
+ #: core/um-builtin.php:1418
5093
+ msgid "Cook Islands"
5094
+ msgstr ""
5095
+
5096
+ #: core/um-builtin.php:1419
5097
+ msgid "Costa Rica"
5098
+ msgstr ""
5099
+
5100
+ #: core/um-builtin.php:1420
5101
+ msgid "Côte d'Ivoire"
5102
+ msgstr ""
5103
+
5104
+ #: core/um-builtin.php:1421
5105
+ msgid "Croatia"
5106
+ msgstr ""
5107
+
5108
+ #: core/um-builtin.php:1422
5109
+ msgid "Cuba"
5110
+ msgstr ""
5111
+
5112
+ #: core/um-builtin.php:1423
5113
+ msgid "Cyprus"
5114
+ msgstr ""
5115
+
5116
+ #: core/um-builtin.php:1424
5117
+ msgid "Czech Republic"
5118
+ msgstr ""
5119
+
5120
+ #: core/um-builtin.php:1425
5121
+ msgid "Denmark"
5122
+ msgstr ""
5123
+
5124
+ #: core/um-builtin.php:1426
5125
+ msgid "Djibouti"
5126
+ msgstr ""
5127
+
5128
+ #: core/um-builtin.php:1427
5129
+ msgid "Dominica"
5130
+ msgstr ""
5131
+
5132
+ #: core/um-builtin.php:1428
5133
+ msgid "Dominican Republic"
5134
+ msgstr ""
5135
+
5136
+ #: core/um-builtin.php:1429
5137
+ msgid "Ecuador"
5138
+ msgstr ""
5139
+
5140
+ #: core/um-builtin.php:1430
5141
+ msgid "Egypt"
5142
+ msgstr ""
5143
+
5144
+ #: core/um-builtin.php:1431
5145
+ msgid "El Salvador"
5146
+ msgstr ""
5147
+
5148
+ #: core/um-builtin.php:1432
5149
+ msgid "Equatorial Guinea"
5150
+ msgstr ""
5151
+
5152
+ #: core/um-builtin.php:1433
5153
+ msgid "Eritrea"
5154
+ msgstr ""
5155
+
5156
+ #: core/um-builtin.php:1434
5157
+ msgid "Estonia"
5158
+ msgstr ""
5159
+
5160
+ #: core/um-builtin.php:1435
5161
+ msgid "Ethiopia"
5162
+ msgstr ""
5163
+
5164
+ #: core/um-builtin.php:1436
5165
+ msgid "Falkland Islands (Malvinas)"
5166
+ msgstr ""
5167
+
5168
+ #: core/um-builtin.php:1437
5169
+ msgid "Faroe Islands"
5170
+ msgstr ""
5171
+
5172
+ #: core/um-builtin.php:1438
5173
+ msgid "Fiji"
5174
+ msgstr ""
5175
+
5176
+ #: core/um-builtin.php:1439
5177
+ msgid "Finland"
5178
+ msgstr ""
5179
+
5180
+ #: core/um-builtin.php:1440
5181
+ msgid "France"
5182
+ msgstr ""
5183
+
5184
+ #: core/um-builtin.php:1441
5185
+ msgid "French Guiana"
5186
+ msgstr ""
5187
+
5188
+ #: core/um-builtin.php:1442
5189
+ msgid "French Polynesia"
5190
+ msgstr ""
5191
+
5192
+ #: core/um-builtin.php:1443
5193
+ msgid "French Southern Territories"
5194
+ msgstr ""
5195
+
5196
+ #: core/um-builtin.php:1444
5197
+ msgid "Gabon"
5198
+ msgstr ""
5199
+
5200
+ #: core/um-builtin.php:1445
5201
+ msgid "Gambia"
5202
+ msgstr ""
5203
+
5204
+ #: core/um-builtin.php:1446
5205
+ msgid "Georgia"
5206
+ msgstr ""
5207
+
5208
+ #: core/um-builtin.php:1447
5209
+ msgid "Germany"
5210
+ msgstr ""
5211
+
5212
+ #: core/um-builtin.php:1448
5213
+ msgid "Ghana"
5214
+ msgstr ""
5215
+
5216
+ #: core/um-builtin.php:1449
5217
+ msgid "Gibraltar"
5218
+ msgstr ""
5219
+
5220
+ #: core/um-builtin.php:1450
5221
+ msgid "Greece"
5222
+ msgstr ""
5223
+
5224
+ #: core/um-builtin.php:1451
5225
+ msgid "Greenland"
5226
+ msgstr ""
5227
+
5228
+ #: core/um-builtin.php:1452
5229
+ msgid "Grenada"
5230
+ msgstr ""
5231
+
5232
+ #: core/um-builtin.php:1453
5233
+ msgid "Guadeloupe"
5234
+ msgstr ""
5235
+
5236
+ #: core/um-builtin.php:1454
5237
+ msgid "Guam"
5238
+ msgstr ""
5239
+
5240
+ #: core/um-builtin.php:1455
5241
+ msgid "Guatemala"
5242
+ msgstr ""
5243
+
5244
+ #: core/um-builtin.php:1456
5245
+ msgid "Guernsey"
5246
+ msgstr ""
5247
+
5248
+ #: core/um-builtin.php:1457
5249
+ msgid "Guinea"
5250
+ msgstr ""
5251
+
5252
+ #: core/um-builtin.php:1458
5253
+ msgid "Guinea-Bissau"
5254
+ msgstr ""
5255
+
5256
+ #: core/um-builtin.php:1459
5257
+ msgid "Guyana"
5258
+ msgstr ""
5259
+
5260
+ #: core/um-builtin.php:1460
5261
+ msgid "Haiti"
5262
+ msgstr ""
5263
+
5264
+ #: core/um-builtin.php:1461
5265
+ msgid "Heard Island and McDonald Islands"
5266
+ msgstr ""
5267
+
5268
+ #: core/um-builtin.php:1462
5269
+ msgid "Holy See (Vatican City State)"
5270
+ msgstr ""
5271
+
5272
+ #: core/um-builtin.php:1463
5273
+ msgid "Honduras"
5274
+ msgstr ""
5275
+
5276
+ #: core/um-builtin.php:1464
5277
+ msgid "Hong Kong"
5278
+ msgstr ""
5279
+
5280
+ #: core/um-builtin.php:1465
5281
+ msgid "Hungary"
5282
+ msgstr ""
5283
+
5284
+ #: core/um-builtin.php:1466
5285
+ msgid "Iceland"
5286
+ msgstr ""
5287
+
5288
+ #: core/um-builtin.php:1467
5289
+ msgid "India"
5290
+ msgstr ""
5291
+
5292
+ #: core/um-builtin.php:1468
5293
+ msgid "Indonesia"
5294
+ msgstr ""
5295
+
5296
+ #: core/um-builtin.php:1469
5297
+ msgid "Iran, Islamic Republic of"
5298
+ msgstr ""
5299
+
5300
+ #: core/um-builtin.php:1470
5301
+ msgid "Iraq"
5302
+ msgstr ""
5303
+
5304
+ #: core/um-builtin.php:1471
5305
+ msgid "Ireland"
5306
+ msgstr ""
5307
+
5308
+ #: core/um-builtin.php:1472
5309
+ msgid "Isle of Man"
5310
+ msgstr ""
5311
+
5312
+ #: core/um-builtin.php:1473
5313
+ msgid "Israel"
5314
+ msgstr ""
5315
+
5316
+ #: core/um-builtin.php:1474
5317
+ msgid "Italy"
5318
+ msgstr ""
5319
+
5320
+ #: core/um-builtin.php:1475
5321
+ msgid "Jamaica"
5322
+ msgstr ""
5323
+
5324
+ #: core/um-builtin.php:1476
5325
+ msgid "Japan"
5326
+ msgstr ""
5327
+
5328
+ #: core/um-builtin.php:1477
5329
+ msgid "Jersey"
5330
+ msgstr ""
5331
+
5332
+ #: core/um-builtin.php:1478
5333
+ msgid "Jordan"
5334
+ msgstr ""
5335
+
5336
+ #: core/um-builtin.php:1479
5337
+ msgid "Kazakhstan"
5338
+ msgstr ""
5339
+
5340
+ #: core/um-builtin.php:1480
5341
+ msgid "Kenya"
5342
+ msgstr ""
5343
+
5344
+ #: core/um-builtin.php:1481
5345
+ msgid "Kiribati"
5346
+ msgstr ""
5347
+
5348
+ #: core/um-builtin.php:1482
5349
+ msgid "Korea, Democratic People's Republic of"
5350
+ msgstr ""
5351
+
5352
+ #: core/um-builtin.php:1483
5353
+ msgid "Korea, Republic of"
5354
+ msgstr ""
5355
+
5356
+ #: core/um-builtin.php:1484
5357
+ msgid "Kuwait"
5358
+ msgstr ""
5359
+
5360
+ #: core/um-builtin.php:1485
5361
+ msgid "Kyrgyzstan"
5362
+ msgstr ""
5363
+
5364
+ #: core/um-builtin.php:1486
5365
+ msgid "Lao People's Democratic Republic"
5366
+ msgstr ""
5367
+
5368
+ #: core/um-builtin.php:1487
5369
+ msgid "Latvia"
5370
+ msgstr ""
5371
+
5372
+ #: core/um-builtin.php:1488
5373
+ msgid "Lebanon"
5374
+ msgstr ""
5375
+
5376
+ #: core/um-builtin.php:1489
5377
+ msgid "Lesotho"
5378
+ msgstr ""
5379
+
5380
+ #: core/um-builtin.php:1490
5381
+ msgid "Liberia"
5382
+ msgstr ""
5383
+
5384
+ #: core/um-builtin.php:1491
5385
+ msgid "Libyan Arab Jamahiriya"
5386
+ msgstr ""
5387
+
5388
+ #: core/um-builtin.php:1492
5389
+ msgid "Liechtenstein"
5390
+ msgstr ""
5391
+
5392
+ #: core/um-builtin.php:1493
5393
+ msgid "Lithuania"
5394
+ msgstr ""
5395
+
5396
+ #: core/um-builtin.php:1494
5397
+ msgid "Luxembourg"
5398
+ msgstr ""
5399
+
5400
+ #: core/um-builtin.php:1495
5401
+ msgid "Macao"
5402
+ msgstr ""
5403
+
5404
+ #: core/um-builtin.php:1496
5405
+ msgid "Macedonia, the former Yugoslav Republic of"
5406
+ msgstr ""
5407
+
5408
+ #: core/um-builtin.php:1497
5409
+ msgid "Madagascar"
5410
+ msgstr ""
5411
+
5412
+ #: core/um-builtin.php:1498
5413
+ msgid "Malawi"
5414
+ msgstr ""
5415
+
5416
+ #: core/um-builtin.php:1499
5417
+ msgid "Malaysia"
5418
+ msgstr ""
5419
+
5420
+ #: core/um-builtin.php:1500
5421
+ msgid "Maldives"
5422
+ msgstr ""
5423
+
5424
+ #: core/um-builtin.php:1501
5425
+ msgid "Mali"
5426
+ msgstr ""
5427
+
5428
+ #: core/um-builtin.php:1502
5429
+ msgid "Malta"
5430
+ msgstr ""
5431
+
5432
+ #: core/um-builtin.php:1503
5433
+ msgid "Marshall Islands"
5434
+ msgstr ""
5435
+
5436
+ #: core/um-builtin.php:1504
5437
+ msgid "Martinique"
5438
+ msgstr ""
5439
+
5440
+ #: core/um-builtin.php:1505
5441
+ msgid "Mauritania"
5442
+ msgstr ""
5443
+
5444
+ #: core/um-builtin.php:1506
5445
+ msgid "Mauritius"
5446
+ msgstr ""
5447
+
5448
+ #: core/um-builtin.php:1507
5449
+ msgid "Mayotte"
5450
+ msgstr ""
5451
+
5452
+ #: core/um-builtin.php:1508
5453
+ msgid "Mexico"
5454
+ msgstr ""
5455
+
5456
+ #: core/um-builtin.php:1509
5457
+ msgid "Micronesia, Federated States of"
5458
+ msgstr ""
5459
+
5460
+ #: core/um-builtin.php:1510
5461
+ msgid "Moldova, Republic of"
5462
+ msgstr ""
5463
+
5464
+ #: core/um-builtin.php:1511
5465
+ msgid "Monaco"
5466
+ msgstr ""
5467
+
5468
+ #: core/um-builtin.php:1512
5469
+ msgid "Mongolia"
5470
+ msgstr ""
5471
+
5472
+ #: core/um-builtin.php:1513
5473
+ msgid "Montenegro"
5474
+ msgstr ""
5475
+
5476
+ #: core/um-builtin.php:1514
5477
+ msgid "Montserrat"
5478
+ msgstr ""
5479
+
5480
+ #: core/um-builtin.php:1515
5481
+ msgid "Morocco"
5482
+ msgstr ""
5483
+
5484
+ #: core/um-builtin.php:1516
5485
+ msgid "Mozambique"
5486
+ msgstr ""
5487
+
5488
+ #: core/um-builtin.php:1517
5489
+ msgid "Myanmar"
5490
+ msgstr ""
5491
+
5492
+ #: core/um-builtin.php:1518
5493
+ msgid "Namibia"
5494
+ msgstr ""
5495
+
5496
+ #: core/um-builtin.php:1520
5497
+ msgid "Nepal"
5498
+ msgstr ""
5499
+
5500
+ #: core/um-builtin.php:1521
5501
+ msgid "Netherlands"
5502
+ msgstr ""
5503
+
5504
+ #: core/um-builtin.php:1522
5505
+ msgid "Netherlands Antilles"
5506
+ msgstr ""
5507
+
5508
+ #: core/um-builtin.php:1523
5509
+ msgid "New Caledonia"
5510
+ msgstr ""
5511
+
5512
+ #: core/um-builtin.php:1524
5513
+ msgid "New Zealand"
5514
+ msgstr ""
5515
+
5516
+ #: core/um-builtin.php:1525
5517
+ msgid "Nicaragua"
5518
+ msgstr ""
5519
+
5520
+ #: core/um-builtin.php:1526
5521
+ msgid "Niger"
5522
+ msgstr ""
5523
+
5524
+ #: core/um-builtin.php:1527
5525
+ msgid "Nigeria"
5526
+ msgstr ""
5527
+
5528
+ #: core/um-builtin.php:1528
5529
+ msgid "Niue"
5530
+ msgstr ""
5531
+
5532
+ #: core/um-builtin.php:1529
5533
+ msgid "Norfolk Island"
5534
+ msgstr ""
5535
+
5536
+ #: core/um-builtin.php:1530
5537
+ msgid "Northern Mariana Islands"
5538
+ msgstr ""
5539
+
5540
+ #: core/um-builtin.php:1531
5541
+ msgid "Norway"
5542
+ msgstr ""
5543
+
5544
+ #: core/um-builtin.php:1532
5545
+ msgid "Oman"
5546
+ msgstr ""
5547
+
5548
+ #: core/um-builtin.php:1533
5549
+ msgid "Pakistan"
5550
+ msgstr ""
5551
+
5552
+ #: core/um-builtin.php:1534
5553
+ msgid "Palau"
5554
+ msgstr ""
5555
+
5556
+ #: core/um-builtin.php:1535
5557
+ msgid "Palestine"
5558
+ msgstr ""
5559
+
5560
+ #: core/um-builtin.php:1536
5561
+ msgid "Panama"
5562
+ msgstr ""
5563
+
5564
+ #: core/um-builtin.php:1537
5565
+ msgid "Papua New Guinea"
5566
+ msgstr ""
5567
+
5568
+ #: core/um-builtin.php:1538
5569
+ msgid "Paraguay"
5570
+ msgstr ""
5571
+
5572
+ #: core/um-builtin.php:1539
5573
+ msgid "Peru"
5574
+ msgstr ""
5575
+
5576
+ #: core/um-builtin.php:1540
5577
+ msgid "Philippines"
5578
+ msgstr ""
5579
+
5580
+ #: core/um-builtin.php:1541
5581
+ msgid "Pitcairn"
5582
+ msgstr ""
5583
+
5584
+ #: core/um-builtin.php:1542
5585
+ msgid "Poland"
5586
+ msgstr ""
5587
+
5588
+ #: core/um-builtin.php:1543
5589
+ msgid "Portugal"
5590
+ msgstr ""
5591
+
5592
+ #: core/um-builtin.php:1544
5593
+ msgid "Puerto Rico"
5594
+ msgstr ""
5595
+
5596
+ #: core/um-builtin.php:1545
5597
+ msgid "Qatar"
5598
+ msgstr ""
5599
+
5600
+ #: core/um-builtin.php:1546
5601
+ msgid "Réunion"
5602
+ msgstr ""
5603
+
5604
+ #: core/um-builtin.php:1547
5605
+ msgid "Romania"
5606
+ msgstr ""
5607
+
5608
+ #: core/um-builtin.php:1548
5609
+ msgid "Russian Federation"
5610
+ msgstr ""
5611
+
5612
+ #: core/um-builtin.php:1549
5613
+ msgid "Rwanda"
5614
+ msgstr ""
5615
+
5616
+ #: core/um-builtin.php:1550
5617
+ msgid "Saint Barthélemy"
5618
+ msgstr ""
5619
+
5620
+ #: core/um-builtin.php:1551
5621
+ msgid "Saint Helena"
5622
+ msgstr ""
5623
+
5624
+ #: core/um-builtin.php:1552
5625
+ msgid "Saint Kitts and Nevis"
5626
+ msgstr ""
5627
+
5628
+ #: core/um-builtin.php:1553
5629
+ msgid "Saint Lucia"
5630
+ msgstr ""
5631
+
5632
+ #: core/um-builtin.php:1554
5633
+ msgid "Saint Martin (French part)"
5634
+ msgstr ""
5635
+
5636
+ #: core/um-builtin.php:1555
5637
+ msgid "Saint Pierre and Miquelon"
5638
+ msgstr ""
5639
+
5640
+ #: core/um-builtin.php:1556
5641
+ msgid "Saint Vincent and the Grenadines"
5642
+ msgstr ""
5643
+
5644
+ #: core/um-builtin.php:1557
5645
+ msgid "Samoa"
5646
+ msgstr ""
5647
+
5648
+ #: core/um-builtin.php:1558
5649
+ msgid "San Marino"
5650
+ msgstr ""
5651
+
5652
+ #: core/um-builtin.php:1559
5653
+ msgid "Sao Tome and Principe"
5654
+ msgstr ""
5655
+
5656
+ #: core/um-builtin.php:1560
5657
+ msgid "Saudi Arabia"
5658
+ msgstr ""
5659
+
5660
+ #: core/um-builtin.php:1561
5661
+ msgid "Senegal"
5662
+ msgstr ""
5663
+
5664
+ #: core/um-builtin.php:1562
5665
+ msgid "Serbia"
5666
+ msgstr ""
5667
+
5668
+ #: core/um-builtin.php:1563
5669
+ msgid "Seychelles"
5670
+ msgstr ""
5671
+
5672
+ #: core/um-builtin.php:1564
5673
+ msgid "Sierra Leone"
5674
+ msgstr ""
5675
+
5676
+ #: core/um-builtin.php:1565
5677
+ msgid "Singapore"
5678
+ msgstr ""
5679
+
5680
+ #: core/um-builtin.php:1566
5681
+ msgid "Slovakia"
5682
+ msgstr ""
5683
+
5684
+ #: core/um-builtin.php:1567
5685
+ msgid "Slovenia"
5686
+ msgstr ""
5687
+
5688
+ #: core/um-builtin.php:1568
5689
+ msgid "Solomon Islands"
5690
+ msgstr ""
5691
+
5692
+ #: core/um-builtin.php:1569
5693
+ msgid "Somalia"
5694
+ msgstr ""
5695
+
5696
+ #: core/um-builtin.php:1570
5697
+ msgid "South Africa"
5698
+ msgstr ""
5699
+
5700
+ #: core/um-builtin.php:1571
5701
+ msgid "South Georgia and the South Sandwich Islands"
5702
+ msgstr ""
5703
+
5704
+ #: core/um-builtin.php:1572
5705
+ msgid "South Sudan"
5706
+ msgstr ""
5707
+
5708
+ #: core/um-builtin.php:1573
5709
+ msgid "Spain"
5710
+ msgstr ""
5711
+
5712
+ #: core/um-builtin.php:1574
5713
+ msgid "Sri Lanka"
5714
+ msgstr ""
5715
+
5716
+ #: core/um-builtin.php:1575
5717
+ msgid "Sudan"
5718
+ msgstr ""
5719
+
5720
+ #: core/um-builtin.php:1576
5721
+ msgid "Suriname"
5722
+ msgstr ""
5723
+
5724
+ #: core/um-builtin.php:1577
5725
+ msgid "Svalbard and Jan Mayen"
5726
+ msgstr ""
5727
+
5728
+ #: core/um-builtin.php:1578
5729
+ msgid "Swaziland"
5730
+ msgstr ""
5731
+
5732
+ #: core/um-builtin.php:1579
5733
+ msgid "Sweden"
5734
+ msgstr ""
5735
+
5736
+ #: core/um-builtin.php:1580
5737
+ msgid "Switzerland"
5738
+ msgstr ""
5739
+
5740
+ #: core/um-builtin.php:1581
5741
+ msgid "Syrian Arab Republic"
5742
+ msgstr ""
5743
+
5744
+ #: core/um-builtin.php:1582
5745
+ msgid "Taiwan, Province of China"
5746
+ msgstr ""
5747
+
5748
+ #: core/um-builtin.php:1583
5749
+ msgid "Tajikistan"
5750
+ msgstr ""
5751
+
5752
+ #: core/um-builtin.php:1584
5753
+ msgid "Tanzania, United Republic of"
5754
+ msgstr ""
5755
+
5756
+ #: core/um-builtin.php:1585
5757
+ msgid "Thailand"
5758
+ msgstr ""
5759
+
5760
+ #: core/um-builtin.php:1586
5761
+ msgid "Timor-Leste"
5762
+ msgstr ""
5763
+
5764
+ #: core/um-builtin.php:1587
5765
+ msgid "Togo"
5766
+ msgstr ""
5767
+
5768
+ #: core/um-builtin.php:1588
5769
+ msgid "Tokelau"
5770
+ msgstr ""
5771
+
5772
+ #: core/um-builtin.php:1590
5773
+ msgid "Trinidad and Tobago"
5774
+ msgstr ""
5775
+
5776
+ #: core/um-builtin.php:1591
5777
+ msgid "Tunisia"
5778
+ msgstr ""
5779
+
5780
+ #: core/um-builtin.php:1592
5781
+ msgid "Turkey"
5782
+ msgstr ""
5783
+
5784
+ #: core/um-builtin.php:1593
5785
+ msgid "Turkmenistan"
5786
+ msgstr ""
5787
+
5788
+ #: core/um-builtin.php:1594
5789
+ msgid "Turks and Caicos Islands"
5790
+ msgstr ""
5791
+
5792
+ #: core/um-builtin.php:1595
5793
+ msgid "Tuvalu"
5794
+ msgstr ""
5795
+
5796
+ #: core/um-builtin.php:1596
5797
+ msgid "Uganda"
5798
+ msgstr ""
5799
+
5800
+ #: core/um-builtin.php:1597
5801
+ msgid "Ukraine"
5802
+ msgstr ""
5803
+
5804
+ #: core/um-builtin.php:1598
5805
+ msgid "United Arab Emirates"
5806
+ msgstr ""
5807
+
5808
+ #: core/um-builtin.php:1599
5809
+ msgid "United Kingdom"
5810
+ msgstr ""
5811
+
5812
+ #: core/um-builtin.php:1600
5813
+ msgid "United States"
5814
+ msgstr ""
5815
+
5816
+ #: core/um-builtin.php:1601
5817
+ msgid "United States Minor Outlying Islands"
5818
+ msgstr ""
5819
+
5820
+ #: core/um-builtin.php:1602
5821
+ msgid "Uruguay"
5822
+ msgstr ""
5823
+
5824
+ #: core/um-builtin.php:1603
5825
+ msgid "Uzbekistan"
5826
+ msgstr ""
5827
+
5828
+ #: core/um-builtin.php:1604
5829
+ msgid "Vanuatu"
5830
+ msgstr ""
5831
+
5832
+ #: core/um-builtin.php:1605
5833
+ msgid "Venezuela, Bolivarian Republic of"
5834
+ msgstr ""
5835
+
5836
+ #: core/um-builtin.php:1606
5837
+ msgid "Viet Nam"
5838
+ msgstr ""
5839
+
5840
+ #: core/um-builtin.php:1607
5841
+ msgid "Virgin Islands, British"
5842
+ msgstr ""
5843
+
5844
+ #: core/um-builtin.php:1608
5845
+ msgid "Virgin Islands, U.S."
5846
+ msgstr ""
5847
+
5848
+ #: core/um-builtin.php:1609
5849
+ msgid "Wallis and Futuna"
5850
+ msgstr ""
5851
+
5852
+ #: core/um-builtin.php:1610
5853
+ msgid "Western Sahara"
5854
+ msgstr ""
5855
+
5856
+ #: core/um-builtin.php:1611
5857
+ msgid "Yemen"
5858
+ msgstr ""
5859
+
5860
+ #: core/um-builtin.php:1612
5861
+ msgid "Zambia"
5862
+ msgstr ""
5863
+
5864
+ #: core/um-builtin.php:1613
5865
+ msgid "Zimbabwe"
5866
+ msgstr ""
5867
+
5868
+ #: core/um-cron.php:15
5869
+ msgid "Once Weekly"
5870
+ msgstr ""
5871
+
5872
+ #: core/um-datetime.php:26
5873
+ msgid "just now"
5874
+ msgstr ""
5875
+
5876
+ #: core/um-datetime.php:34
5877
+ #, php-format
5878
+ msgid "%s min"
5879
+ msgstr ""
5880
+
5881
+ #: core/um-datetime.php:36
5882
+ #, php-format
5883
+ msgid "%s mins"
5884
+ msgstr ""
5885
+
5886
+ #: core/um-datetime.php:45
5887
+ #, php-format
5888
+ msgid "%s hr"
5889
+ msgstr ""
5890
+
5891
+ #: core/um-datetime.php:47
5892
+ #, php-format
5893
+ msgid "%s hrs"
5894
+ msgstr ""
5895
+
5896
+ #: core/um-datetime.php:56
5897
+ #, php-format
5898
+ msgid "Yesterday at %s"
5899
+ msgstr ""
5900
+
5901
+ #: core/um-datetime.php:58 core/um-datetime.php:63 core/um-datetime.php:67
5902
+ #: core/um-datetime.php:71
5903
+ #, php-format
5904
+ msgid "%s at %s"
5905
+ msgstr ""
5906
+
5907
+ #: core/um-datetime.php:88
5908
+ #, php-format
5909
+ msgid "%s year old"
5910
+ msgstr ""
5911
+
5912
+ #: core/um-datetime.php:90
5913
+ #, php-format
5914
+ msgid "%s years old"
5915
+ msgstr ""
5916
+
5917
+ #: core/um-datetime.php:92
5918
+ msgid "Less than 1 year old"
5919
+ msgstr ""
5920
+
5921
+ #: core/um-fields.php:749
5922
+ msgid "Custom Field"
5923
+ msgstr ""
5924
+
5925
+ #: core/um-fields.php:1024
5926
+ msgid "Please upload a valid image!"
5927
+ msgstr ""
5928
+
5929
+ #: core/um-fields.php:1032
5930
+ msgid "Sorry this is not a valid image."
5931
+ msgstr ""
5932
+
5933
+ #: core/um-fields.php:1033
5934
+ msgid "This image is too large!"
5935
+ msgstr ""
5936
+
5937
+ #: core/um-fields.php:1034
5938
+ msgid "This image is too small!"
5939
+ msgstr ""
5940
+
5941
+ #: core/um-fields.php:1035
5942
+ msgid "You can only upload one image"
5943
+ msgstr ""
5944
+
5945
+ #: core/um-fields.php:1053
5946
+ msgid "Sorry this is not a valid file."
5947
+ msgstr ""
5948
+
5949
+ #: core/um-fields.php:1054
5950
+ msgid "This file is too large!"
5951
+ msgstr ""
5952
+
5953
+ #: core/um-fields.php:1055
5954
+ msgid "This file is too small!"
5955
+ msgstr ""
5956
+
5957
+ #: core/um-fields.php:1056
5958
+ msgid "You can only upload one file"
5959
+ msgstr ""
5960
+
5961
+ #: core/um-fields.php:1337
5962
+ msgid "Current Password"
5963
+ msgstr ""
5964
+
5965
+ #: core/um-fields.php:1366
5966
+ msgid "New Password"
5967
+ msgstr ""
5968
+
5969
+ #: core/um-fields.php:1398
5970
+ #, php-format
5971
+ msgid "Confirm %s"
5972
+ msgstr ""
5973
+
5974
+ #: core/um-fields.php:1620 core/um-fields.php:1704
5975
+ msgid "Upload Photo"
5976
+ msgstr ""
5977
+
5978
+ #: core/um-fields.php:1674 core/um-fields.php:1762
5979
+ msgid "Processing..."
5980
+ msgstr ""
5981
+
5982
+ #: core/um-fields.php:1720 core/um-fields.php:1762
5983
+ msgid "Change file"
5984
+ msgstr ""
5985
+
5986
+ #: core/um-fields.php:1762
5987
+ msgid "Save"
5988
+ msgstr ""
5989
+
5990
+ #: core/um-fields.php:2667
5991
+ #, php-format
5992
+ msgid ""
5993
+ "Your profile is looking a little empty. Why not <a href=\"%s\">add</a> some "
5994
+ "information!"
5995
+ msgstr ""
5996
+
5997
+ #: core/um-fields.php:2669
5998
+ msgid "This user has not added any information to their profile yet."
5999
+ msgstr ""
6000
+
6001
+ #: core/um-files.php:377
6002
+ msgid "This media type is not recognized."
6003
+ msgstr ""
6004
+
6005
+ #: core/um-files.php:385
6006
+ msgid "Your image is invalid or too large!"
6007
+ msgstr ""
6008
+
6009
+ #: core/um-files.php:391 core/um-files.php:393
6010
+ #, php-format
6011
+ msgid "Your photo is too small. It must be at least %spx wide."
6012
+ msgstr ""
6013
+
6014
+ #: core/um-files.php:445
6015
+ msgid "Ultimate Member: Not a valid temp file"
6016
+ msgstr ""
6017
+
6018
+ #: core/um-files.php:535
6019
+ msgid "Invalid user ID: "
6020
+ msgstr ""
6021
+
6022
+ #: core/um-files.php:544 core/um-files.php:550
6023
+ msgid "Unauthorized to do this attempt."
6024
+ msgstr ""
6025
+
6026
+ #: core/um-filters-addons.php:16
6027
+ msgid "Activated"
6028
+ msgstr ""
6029
+
6030
+ #: core/um-filters-addons.php:17
6031
+ msgid "Deactivated"
6032
+ msgstr ""
6033
+
6034
+ #: core/um-filters-addons.php:33
6035
+ msgid "Tools"
6036
+ msgstr ""
6037
+
6038
+ #: core/um-filters-addons.php:57
6039
+ msgid "Licenses"
6040
+ msgstr ""
6041
+
6042
+ #: core/um-filters-fields.php:11
6043
+ msgid "Required"
6044
+ msgstr ""
6045
+
6046
+ #: core/um-filters-fields.php:23
6047
+ msgid "Invalid soundcloud track ID"
6048
+ msgstr ""
6049
+
6050
+ #: core/um-filters-fields.php:82
6051
+ #, php-format
6052
+ msgid "Joined %s"
6053
+ msgstr ""
6054
+
6055
+ #: core/um-filters-fields.php:93
6056
+ #, php-format
6057
+ msgid "Last login: %s"
6058
+ msgstr ""
6059
+
6060
+ #: core/um-filters-fields.php:157
6061
+ msgid "This file has been removed."
6062
+ msgstr ""
6063
+
6064
+ #: core/um-filters-fields.php:178
6065
+ msgid "Untitled photo"
6066
+ msgstr ""
6067
+
6068
+ #: core/um-filters-profile.php:10
6069
+ msgid "About"
6070
+ msgstr ""
6071
+
6072
+ #: core/um-filters-profile.php:84 core/um-filters-profile.php:102
6073
+ msgid "max"
6074
+ msgstr ""
6075
+
6076
+ #: core/um-filters-user.php:11 core/um-filters-user.php:35
6077
+ #: core/um-filters-user.php:40
6078
+ msgid "Approve Membership"
6079
+ msgstr ""
6080
+
6081
+ #: core/um-filters-user.php:12 core/um-filters-user.php:36
6082
+ msgid "Reject Membership"
6083
+ msgstr ""
6084
+
6085
+ #: core/um-filters-user.php:13 core/um-filters-user.php:44
6086
+ msgid "Put as Pending Review"
6087
+ msgstr ""
6088
+
6089
+ #: core/um-filters-user.php:14 core/um-filters-user.php:48
6090
+ msgid "Resend Activation E-mail"
6091
+ msgstr ""
6092
+
6093
+ #: core/um-filters-user.php:15
6094
+ msgid "Deactivate"
6095
+ msgstr ""
6096
+
6097
+ #: core/um-filters-user.php:16
6098
+ msgid "Reactivate"
6099
+ msgstr ""
6100
+
6101
+ #: core/um-filters-user.php:52
6102
+ msgid "Deactivate this account"
6103
+ msgstr ""
6104
+
6105
+ #: core/um-filters-user.php:56
6106
+ msgid "Reactivate this account"
6107
+ msgstr ""
6108
+
6109
+ #: core/um-filters-user.php:60
6110
+ msgid "Delete this user"
6111
+ msgstr ""
6112
+
6113
+ #: core/um-filters-user.php:66
6114
+ msgid "Login as this user"
6115
+ msgstr ""
6116
+
6117
+ #: core/um-navmenu-walker-edit.php:18
6118
+ msgid "Display Mode"
6119
+ msgstr ""
6120
+
6121
+ #: core/um-navmenu-walker-edit.php:19
6122
+ msgid "By Role"
6123
+ msgstr ""
6124
+
6125
+ #: core/um-navmenu-walker-edit.php:94
6126
+ msgid "Who can see this menu link?"
6127
+ msgstr ""
6128
+
6129
+ #: core/um-navmenu-walker-edit.php:114
6130
+ msgid "Select the member roles that can see this link"
6131
+ msgstr ""
6132
+
6133
+ #: core/um-password.php:33
6134
+ msgid "This is not a valid hash, or it has expired."
6135
+ msgstr ""
6136
+
6137
+ #: core/um-permalinks.php:172
6138
+ msgid "This activation link is expired or have already been used."
6139
+ msgstr ""
6140
+
6141
+ #: core/um-setup.php:137 core/um-setup.php:158
6142
+ msgid "Register"
6143
+ msgstr ""
6144
+
6145
+ #: core/um-setup.php:142 core/um-setup.php:151
6146
+ msgid "Login"
6147
+ msgstr ""
6148
+
6149
+ #: core/um-short-functions.php:513
6150
+ msgid "date submitted"
6151
+ msgstr ""
6152
+
6153
+ #: core/um-short-functions.php:518
6154
+ msgid "(empty)"
6155
+ msgstr ""
6156
+
6157
+ #: core/um-shortcodes.php:205
6158
+ msgid ""
6159
+ "This content has been restricted to logged in users only. Please <a href="
6160
+ "\"{login_referrer}\">login</a> to view this content."
6161
+ msgstr ""
6162
+
6163
+ #: core/um-shortcodes.php:414
6164
+ msgid "Default Template"
6165
+ msgstr ""
6166
+
6167
+ #: core/um-taxonomies.php:19
6168
+ msgid "Form"
6169
+ msgstr ""
6170
+
6171
+ #: core/um-taxonomies.php:20 core/um-taxonomies.php:38
6172
+ #: core/um-taxonomies.php:58
6173
+ msgid "Add New"
6174
+ msgstr ""
6175
+
6176
+ #: core/um-taxonomies.php:21
6177
+ msgid "Add New Form"
6178
+ msgstr ""
6179
+
6180
+ #: core/um-taxonomies.php:22
6181
+ msgid "Edit Form"
6182
+ msgstr ""
6183
+
6184
+ #: core/um-taxonomies.php:23
6185
+ msgid "You did not create any forms yet"
6186
+ msgstr ""
6187
+
6188
+ #: core/um-taxonomies.php:24 core/um-taxonomies.php:42
6189
+ #: core/um-taxonomies.php:62
6190
+ msgid "Nothing found in Trash"
6191
+ msgstr ""
6192
+
6193
+ #: core/um-taxonomies.php:25
6194
+ msgid "Search Forms"
6195
+ msgstr ""
6196
+
6197
+ #: core/um-taxonomies.php:37
6198
+ msgid "User Role"
6199
+ msgstr ""
6200
+
6201
+ #: core/um-taxonomies.php:39
6202
+ msgid "Add New User Role"
6203
+ msgstr ""
6204
+
6205
+ #: core/um-taxonomies.php:40
6206
+ msgid "Edit User Role"
6207
+ msgstr ""
6208
+
6209
+ #: core/um-taxonomies.php:41
6210
+ msgid "You did not create any user roles yet"
6211
+ msgstr ""
6212
+
6213
+ #: core/um-taxonomies.php:43
6214
+ msgid "Search User Roles"
6215
+ msgstr ""
6216
+
6217
+ #: core/um-taxonomies.php:57
6218
+ msgid "Member Directory"
6219
+ msgstr ""
6220
+
6221
+ #: core/um-taxonomies.php:59
6222
+ msgid "Add New Member Directory"
6223
+ msgstr ""
6224
+
6225
+ #: core/um-taxonomies.php:60
6226
+ msgid "Edit Member Directory"
6227
+ msgstr ""
6228
+
6229
+ #: core/um-taxonomies.php:61
6230
+ msgid "You did not create any member directories yet"
6231
+ msgstr ""
6232
+
6233
+ #: core/um-taxonomies.php:63
6234
+ msgid "Search Member Directories"
6235
+ msgstr ""
6236
+
6237
+ #: core/um-tracking.php:147
6238
+ #, php-format
6239
+ msgid ""
6240
+ "Allow Ultimate Member to track plugin usage? Opt-in to tracking and our "
6241
+ "newsletter and we will immediately e-mail you a 20% discount which you can "
6242
+ "use to purchase our core extensions bundle. No sensitive data is tracked."
6243
+ msgstr ""
6244
+
6245
+ #: core/um-user-posts.php:67
6246
+ msgid "Posts"
6247
+ msgstr ""
6248
+
6249
+ #: core/um-user-posts.php:72
6250
+ msgid "Comments"
6251
+ msgstr ""
6252
+
6253
+ #: core/um-user.php:77
6254
+ msgid "Assign or change the community role for this user"
6255
+ msgstr ""
6256
+
6257
+ #: core/um-user.php:252
6258
+ msgid "Membership Rejected"
6259
+ msgstr ""
6260
+
6261
+ #: core/um-user.php:256
6262
+ msgid "Membership Inactive"
6263
+ msgstr ""
6264
+
6265
+ #: core/widgets/um-search-widget.php:13
6266
+ msgid "Ultimate Member - Search"
6267
+ msgstr ""
6268
+
6269
+ #: core/widgets/um-search-widget.php:16
6270
+ msgid "Shows users they follow in a widget."
6271
+ msgstr ""
6272
+
6273
+ #: core/widgets/um-search-widget.php:44
6274
+ msgid "Search Users"
6275
+ msgstr ""
6276
+
6277
+ #: core/widgets/um-search-widget.php:57
6278
+ msgid "Title:"
6279
+ msgstr ""
6280
+
6281
+ #: index.php:58
6282
+ msgid "Remove this plugin"
6283
+ msgstr ""
6284
+
6285
+ #: index.php:58
6286
+ msgid "Uninstall"
6287
+ msgstr ""
6288
+
6289
+ #: templates/password-reset.php:21
6290
+ msgid ""
6291
+ "We have sent you a password reset link to your e-mail. Please check your "
6292
+ "inbox."
6293
+ msgstr ""
6294
+
6295
+ #: templates/profile/comments-single.php:6
6296
+ #, php-format
6297
+ msgid "On <a href=\"%1$s\">%2$s</a>"
6298
+ msgstr ""
6299
+
6300
+ #: templates/profile/comments-single.php:15 templates/profile/comments.php:14
6301
+ msgid "load more comments"
6302
+ msgstr ""
6303
+
6304
+ #: templates/profile/comments.php:23
6305
+ msgid "You have not made any comments."
6306
+ msgstr ""
6307
+
6308
+ #: templates/profile/comments.php:23
6309
+ msgid "This user has not made any comments."
6310
+ msgstr ""
6311
+
6312
+ #: templates/profile/posts-single.php:16
6313
+ #, php-format
6314
+ msgid "%s ago"
6315
+ msgstr ""
6316
+
6317
+ #: templates/profile/posts-single.php:17
6318
+ msgid "in"
6319
+ msgstr ""
6320
+
6321
+ #: templates/profile/posts-single.php:18
6322
+ msgid "no comments"
6323
+ msgstr ""
6324
+
6325
+ #: templates/profile/posts-single.php:18
6326
+ msgid "1 comment"
6327
+ msgstr ""
6328
+
6329
+ #: templates/profile/posts-single.php:18
6330
+ #, php-format
6331
+ msgid "% comments"
6332
+ msgstr ""
6333
+
6334
+ #: templates/profile/posts-single.php:27 templates/profile/posts.php:16
6335
+ msgid "load more posts"
6336
+ msgstr ""
6337
+
6338
+ #: templates/profile/posts.php:25
6339
+ msgid "You have not created any posts."
6340
+ msgstr ""
6341
+
6342
+ #: templates/profile/posts.php:25
6343
+ msgid "This user has not created any posts."
6344
+ msgstr ""
6345
+
6346
+ #: templates/searchform.php:4 templates/searchform.php:5
6347
+ msgctxt "label"
6348
+ msgid "Search for:"
6349
+ msgstr ""
6350
+
6351
+ #: templates/searchform.php:5
6352
+ msgctxt "placeholder"
6353
+ msgid "Search &hellip;"
6354
+ msgstr ""
6355
+
6356
+ #: um-config.php:11 um-config.php:68
6357
+ msgid "User page"
6358
+ msgstr ""
6359
+
6360
+ #: um-config.php:12 um-config.php:69
6361
+ msgid "Account page"
6362
+ msgstr ""
6363
+
6364
+ #: um-config.php:13 um-config.php:70
6365
+ msgid "Members page"
6366
+ msgstr ""
6367
+
6368
+ #: um-config.php:14 um-config.php:71
6369
+ msgid "Register page"
6370
+ msgstr ""
6371
+
6372
+ #: um-config.php:15 um-config.php:72
6373
+ msgid "Login page"
6374
+ msgstr ""
6375
+
6376
+ #: um-config.php:16 um-config.php:73
6377
+ msgid "Logout page"
6378
+ msgstr ""
6379
+
6380
+ #: um-config.php:17 um-config.php:74
6381
+ msgid "Password reset page"
6382
+ msgstr ""
6383
+
6384
+ #: um-config.php:34
6385
+ msgid "Add page ID"
6386
+ msgstr ""
6387
+
6388
+ #: um-config.php:46
6389
+ msgid "Choose a page..."
6390
+ msgstr ""
6391
+
6392
+ #: um-config.php:56
6393
+ msgid "Setup"
6394
+ msgstr ""
6395
+
6396
+ #: um-config.php:100
6397
+ msgid "Default New User Role"
6398
+ msgstr ""
6399
+
6400
+ #: um-config.php:101
6401
+ msgid ""
6402
+ "Select the default role that will be assigned to user after registration If "
6403
+ "you did not specify custom role settings per form."
6404
+ msgstr ""
6405
+
6406
+ #: um-config.php:104
6407
+ msgid "Choose user role..."
6408
+ msgstr ""
6409
+
6410
+ #: um-config.php:111
6411
+ msgid "Profile Permalink Base"
6412
+ msgstr ""
6413
+
6414
+ #: um-config.php:112
6415
+ msgid ""
6416
+ "Here you can control the permalink structure of the user profile URL globally"
6417
+ msgstr ""
6418
+
6419
+ #: um-config.php:117
6420
+ msgid "First and Last Name with '.'"
6421
+ msgstr ""
6422
+
6423
+ #: um-config.php:118
6424
+ msgid "First and Last Name with '-'"
6425
+ msgstr ""
6426
+
6427
+ #: um-config.php:119
6428
+ msgid "First and Last Name with '+'"
6429
+ msgstr ""
6430
+
6431
+ #: um-config.php:120
6432
+ msgid "User ID"
6433
+ msgstr ""
6434
+
6435
+ #: um-config.php:122 um-config.php:143
6436
+ msgid "Select..."
6437
+ msgstr ""
6438
+
6439
+ #: um-config.php:129
6440
+ msgid "User Display Name"
6441
+ msgstr ""
6442
+
6443
+ #: um-config.php:130
6444
+ msgid ""
6445
+ "This is the name that will be displayed for users on the front end of your "
6446
+ "site. Default setting uses first/last name as display name if it exists"
6447
+ msgstr ""
6448
+
6449
+ #: um-config.php:133
6450
+ msgid "Default WP Display Name"
6451
+ msgstr ""
6452
+
6453
+ #: um-config.php:136
6454
+ msgid "First name & last name"
6455
+ msgstr ""
6456
+
6457
+ #: um-config.php:137
6458
+ msgid "Last name & first name"
6459
+ msgstr ""
6460
+
6461
+ #: um-config.php:138
6462
+ msgid "First name & first initial of last name"
6463
+ msgstr ""
6464
+
6465
+ #: um-config.php:139
6466
+ msgid "First initial of first name & last name"
6467
+ msgstr ""
6468
+
6469
+ #: um-config.php:140
6470
+ msgid "First name only"
6471
+ msgstr ""
6472
+
6473
+ #: um-config.php:141
6474
+ msgid "Custom field(s)"
6475
+ msgstr ""
6476
+
6477
+ #: um-config.php:149
6478
+ msgid "Display Name Custom Field(s)"
6479
+ msgstr ""
6480
+
6481
+ #: um-config.php:150
6482
+ msgid ""
6483
+ "Specify the custom field meta key or custom fields seperated by comma that "
6484
+ "you want to use to display users name on the frontend of your site"
6485
+ msgstr ""
6486
+
6487
+ #: um-config.php:157
6488
+ msgid "Force display name to be capitalized?"
6489
+ msgstr ""
6490
+
6491
+ #: um-config.php:166
6492
+ msgid "Automatically redirect author page to their profile?"
6493
+ msgstr ""
6494
+
6495
+ #: um-config.php:168
6496
+ msgid ""
6497
+ "If enabled, author pages will automatically redirect to the user's profile "
6498
+ "page"
6499
+ msgstr ""
6500
+
6501
+ #: um-config.php:176
6502
+ msgid "Enable Members Directory"
6503
+ msgstr ""
6504
+
6505
+ #: um-config.php:178
6506
+ msgid "Control whether to enable or disable member directories on this site"
6507
+ msgstr ""
6508
+
6509
+ #: um-config.php:186
6510
+ msgid "Use Gravatars?"
6511
+ msgstr ""
6512
+
6513
+ #: um-config.php:188
6514
+ msgid ""
6515
+ "Do you want to use gravatars instead of the default plugin profile photo (If "
6516
+ "the user did not upload a custom profile photo / avatar)"
6517
+ msgstr ""
6518
+
6519
+ #: um-config.php:196
6520
+ msgid "Use Gravatar builtin image"
6521
+ msgstr ""
6522
+
6523
+ #: um-config.php:197
6524
+ msgid ""
6525
+ "Gravatar has a number of built in options which you can also use as defaults"
6526
+ msgstr ""
6527
+
6528
+ #: um-config.php:201
6529
+ msgid "404 ( File Not Found response )"
6530
+ msgstr ""
6531
+
6532
+ #: um-config.php:202
6533
+ msgid "Mystery Man"
6534
+ msgstr ""
6535
+
6536
+ #: um-config.php:203
6537
+ msgid "Identicon"
6538
+ msgstr ""
6539
+
6540
+ #: um-config.php:204
6541
+ msgid "Monsterid"
6542
+ msgstr ""
6543
+
6544
+ #: um-config.php:205
6545
+ msgid "Wavatar"
6546
+ msgstr ""
6547
+
6548
+ #: um-config.php:206
6549
+ msgid "Retro"
6550
+ msgstr ""
6551
+
6552
+ #: um-config.php:207
6553
+ msgid "Blank ( a transparent PNG image )"
6554
+ msgstr ""
6555
+
6556
+ #: um-config.php:216
6557
+ msgid "Use Default plugin avatar as Gravatar's Default avatar"
6558
+ msgstr ""
6559
+
6560
+ #: um-config.php:218
6561
+ msgid ""
6562
+ "Do you want to use the plugin default avatar instead of the gravatar default "
6563
+ "photo (If the user did not upload a custom profile photo / avatar)"
6564
+ msgstr ""
6565
+
6566
+ #: um-config.php:227
6567
+ msgid "Require a strong password? (when user resets password only)"
6568
+ msgstr ""
6569
+
6570
+ #: um-config.php:229
6571
+ msgid ""
6572
+ "Enable or disable a strong password rules on password reset and change "
6573
+ "procedure"
6574
+ msgstr ""
6575
+
6576
+ #: um-config.php:237
6577
+ msgid "Editable primary email field in profile view"
6578
+ msgstr ""
6579
+
6580
+ #: um-config.php:239
6581
+ msgid ""
6582
+ "Allow users to edit their primary emails in profile view ( when email "
6583
+ "address field is added only )"
6584
+ msgstr ""
6585
+
6586
+ #: um-config.php:261
6587
+ msgid "Password Account Tab"
6588
+ msgstr ""
6589
+
6590
+ #: um-config.php:271
6591
+ msgid "Privacy Account Tab"
6592
+ msgstr ""
6593
+
6594
+ #: um-config.php:273
6595
+ msgid "Enable/disable the Privacy account tab in account page"
6596
+ msgstr ""
6597
+
6598
+ #: um-config.php:281
6599
+ msgid "Notifications Account Tab"
6600
+ msgstr ""
6601
+
6602
+ #: um-config.php:283
6603
+ msgid "Enable/disable the Notifications account tab in account page"
6604
+ msgstr ""
6605
+
6606
+ #: um-config.php:291
6607
+ msgid "Delete Account Tab"
6608
+ msgstr ""
6609
+
6610
+ #: um-config.php:293
6611
+ msgid "Enable/disable the Delete account tab in account page"
6612
+ msgstr ""
6613
+
6614
+ #: um-config.php:301
6615
+ msgid "Account Deletion Custom Text"
6616
+ msgstr ""
6617
+
6618
+ #: um-config.php