Version Description
- Rename to One User Avatar
- Rewrite to conform with WordPress Coding Standards
- Add translations for Dutch, English (UK), French, German, Italian, Portuguese, Romanian, Spanish
- Prevent conflict with old WP User Avatar plugin
- Fix indentation
- Fix unescaped attributes
- Fix missing translation strings
- Fix headers already sent error when performing bulk actions
- Fix headers already sent error on when updating avatar using shortcode
- Fix TinyMCE deprecation notice
- Fix previev image not reverting when removing from user profile
- Remove unused images
- Remove MailOptin recommendation
Download this release
Release Info
Developer | onedesigns |
Plugin | One User Avatar | User Profile Picture |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.0
- README.md +0 -13
- assets/css/jquery-ui.css +1 -1
- assets/css/tinymce-window.css +32 -32
- assets/css/wp-user-avatar.css +1 -1
- assets/js/tinymce-editor_plugin.js +18 -18
- assets/js/tinymce-window.js +70 -70
- assets/js/wp-user-avatar-admin.js +1 -1
- assets/js/wp-user-avatar-user.js +1 -1
- assets/js/wp-user-avatar.js +140 -140
- includes/class-wp-user-avatar-admin.php +21 -20
- includes/class-wp-user-avatar-functions.php +169 -170
- includes/class-wp-user-avatar-list-table.php +229 -225
- includes/class-wp-user-avatar-resource-manager.php +7 -7
- includes/class-wp-user-avatar-setup.php +18 -16
- includes/class-wp-user-avatar-shortcode.php +25 -25
- includes/class-wp-user-avatar-subscriber.php +8 -8
- includes/class-wp-user-avatar-update.php +11 -11
- includes/class-wp-user-avatar-widget.php +10 -10
- includes/class-wp-user-avatar.php +32 -32
- includes/wpua-functions.php +17 -17
- includes/wpua-globals.php +2 -2
- includes/wpua-media-page.php +12 -12
- includes/wpua-options-page.php +250 -250
- includes/wpua-tinymce-window.php +7 -7
- includes/wpua-tinymce.php +1 -1
- languages/de_DE.mo +0 -0
- languages/de_DE.po +34 -36
- languages/en_GB.mo +0 -0
- languages/en_GB.po +34 -36
- languages/es_ES.mo +0 -0
- languages/es_ES.po +34 -36
- languages/fr_FR.mo +0 -0
- languages/fr_FR.po +34 -36
- languages/it_IT.mo +0 -0
- languages/it_IT.po +39 -36
- languages/nl_NL.mo +0 -0
- languages/nl_NL.po +57 -46
- languages/one-user-avatar.pot +34 -36
- languages/pt_BR.mo +0 -0
- languages/pt_BR.po +0 -480
- languages/pt_PT.mo +0 -0
- languages/pt_PT.po +0 -480
- languages/ro_RO.mo +0 -0
- languages/ro_RO.po +36 -37
- one-user-avatar.php +12 -19
- readme.txt +1 -14
- uninstall.php +3 -3
README.md
CHANGED
@@ -385,19 +385,6 @@ This would output:
|
|
385 |
|
386 |
## Changelog
|
387 |
|
388 |
-
### 2.3.2
|
389 |
-
* Fix missing Portuguese translation
|
390 |
-
|
391 |
-
### 2.3.1
|
392 |
-
* Add Portuguese translation
|
393 |
-
* Add One_User_Avatar::plugin_dir_path() function
|
394 |
-
* Improve Dutch translation
|
395 |
-
* Remove redundant plural translation for 'All %s'
|
396 |
-
* Make URLs translatable
|
397 |
-
* Remove obsolete translation strings
|
398 |
-
* Fix indentation
|
399 |
-
* Fix nested call to wp_nonce_url()
|
400 |
-
|
401 |
### 2.3.0
|
402 |
* Rename to One User Avatar
|
403 |
* Rewrite to conform with WordPress Coding Standards
|
385 |
|
386 |
## Changelog
|
387 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
### 2.3.0
|
389 |
* Rename to One User Avatar
|
390 |
* Rewrite to conform with WordPress Coding Standards
|
assets/css/jquery-ui.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! jQuery UI - 2.3.
|
2 |
* http://jqueryui.com
|
3 |
* Includes: core.css, slider.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=smoothness&cornerRadiusShadow=8px&offsetLeftShadow=-8px&offsetTopShadow=-8px&thicknessShadow=8px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=aaaaaa&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cd0a0a&fcError=cd0a0a&borderColorError=cd0a0a&bgImgOpacityError=95&bgTextureError=glass&bgColorError=fef1ec&iconColorHighlight=2e83ff&fcHighlight=363636&borderColorHighlight=fcefa1&bgImgOpacityHighlight=55&bgTextureHighlight=glass&bgColorHighlight=fbf9ee&iconColorActive=454545&fcActive=212121&borderColorActive=aaaaaa&bgImgOpacityActive=65&bgTextureActive=glass&bgColorActive=ffffff&iconColorHover=454545&fcHover=212121&borderColorHover=999999&bgImgOpacityHover=75&bgTextureHover=glass&bgColorHover=dadada&iconColorDefault=888888&fcDefault=555555&borderColorDefault=d3d3d3&bgImgOpacityDefault=75&bgTextureDefault=glass&bgColorDefault=e6e6e6&iconColorContent=222222&fcContent=222222&borderColorContent=aaaaaa&bgImgOpacityContent=75&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=222222&fcHeader=222222&borderColorHeader=aaaaaa&bgImgOpacityHeader=75&bgTextureHeader=highlight_soft&bgColorHeader=cccccc&cornerRadius=4px&fsDefault=1.1em&fwDefault=normal&ffDefault=Verdana%2CArial%2Csans-serif
|
1 |
+
/*! jQuery UI - 2.3.3
|
2 |
* http://jqueryui.com
|
3 |
* Includes: core.css, slider.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=smoothness&cornerRadiusShadow=8px&offsetLeftShadow=-8px&offsetTopShadow=-8px&thicknessShadow=8px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=aaaaaa&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cd0a0a&fcError=cd0a0a&borderColorError=cd0a0a&bgImgOpacityError=95&bgTextureError=glass&bgColorError=fef1ec&iconColorHighlight=2e83ff&fcHighlight=363636&borderColorHighlight=fcefa1&bgImgOpacityHighlight=55&bgTextureHighlight=glass&bgColorHighlight=fbf9ee&iconColorActive=454545&fcActive=212121&borderColorActive=aaaaaa&bgImgOpacityActive=65&bgTextureActive=glass&bgColorActive=ffffff&iconColorHover=454545&fcHover=212121&borderColorHover=999999&bgImgOpacityHover=75&bgTextureHover=glass&bgColorHover=dadada&iconColorDefault=888888&fcDefault=555555&borderColorDefault=d3d3d3&bgImgOpacityDefault=75&bgTextureDefault=glass&bgColorDefault=e6e6e6&iconColorContent=222222&fcContent=222222&borderColorContent=aaaaaa&bgImgOpacityContent=75&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=222222&fcHeader=222222&borderColorHeader=aaaaaa&bgImgOpacityHeader=75&bgTextureHeader=highlight_soft&bgColorHeader=cccccc&cornerRadius=4px&fsDefault=1.1em&fwDefault=normal&ffDefault=Verdana%2CArial%2Csans-serif
|
assets/css/tinymce-window.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
@@ -7,67 +7,67 @@
|
|
7 |
*/
|
8 |
|
9 |
#wpua-tabs ul {
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
}
|
14 |
|
15 |
#wpua-tabs ul li {
|
16 |
-
|
17 |
}
|
18 |
|
19 |
#wpua-tabs ul li a {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
}
|
30 |
|
31 |
#wpua-tabs ul li.ui-tabs-active a {
|
32 |
-
|
33 |
}
|
34 |
|
35 |
#wpua-tabs form {
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
}
|
40 |
|
41 |
#wpua-tabs p,
|
42 |
#wpua-tabs h4 {
|
43 |
-
|
44 |
-
|
45 |
}
|
46 |
|
47 |
#wpua-tabs h4.center {
|
48 |
-
|
49 |
}
|
50 |
|
51 |
#wpua-tabs label {
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
}
|
58 |
|
59 |
#wpua-tabs .mceActionPanel {
|
60 |
-
|
61 |
-
|
62 |
}
|
63 |
|
64 |
#wpua-tabs .mceActionPanel #insert {
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
}
|
69 |
|
70 |
#wpua-tabs #wp_user_avatar_size_number_section,
|
71 |
#wpua-tabs #wp_user_avatar_link_external_section {
|
72 |
-
|
73 |
}
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
7 |
*/
|
8 |
|
9 |
#wpua-tabs ul {
|
10 |
+
margin: 0;
|
11 |
+
padding: 0;
|
12 |
+
list-style: none;
|
13 |
}
|
14 |
|
15 |
#wpua-tabs ul li {
|
16 |
+
float: left;
|
17 |
}
|
18 |
|
19 |
#wpua-tabs ul li a {
|
20 |
+
float: left;
|
21 |
+
padding: 2px 5px;
|
22 |
+
background: #ddd;
|
23 |
+
border: 1px solid #eee;
|
24 |
+
border-bottom: 0;
|
25 |
+
display: block;
|
26 |
+
font-weight: 700;
|
27 |
+
outline: none;
|
28 |
+
text-decoration: none;
|
29 |
}
|
30 |
|
31 |
#wpua-tabs ul li.ui-tabs-active a {
|
32 |
+
background: #fff;
|
33 |
}
|
34 |
|
35 |
#wpua-tabs form {
|
36 |
+
clear: both;
|
37 |
+
background: #fff;
|
38 |
+
border: 1px solid #eee;
|
39 |
}
|
40 |
|
41 |
#wpua-tabs p,
|
42 |
#wpua-tabs h4 {
|
43 |
+
margin: 0;
|
44 |
+
padding: 12px 0 0;
|
45 |
}
|
46 |
|
47 |
#wpua-tabs h4.center {
|
48 |
+
text-align: center;
|
49 |
}
|
50 |
|
51 |
#wpua-tabs label {
|
52 |
+
width: 150px;
|
53 |
+
margin-right: 3px;
|
54 |
+
display: inline-block;
|
55 |
+
text-align: right;
|
56 |
+
vertical-align: top;
|
57 |
}
|
58 |
|
59 |
#wpua-tabs .mceActionPanel {
|
60 |
+
padding: 7px 0 12px;
|
61 |
+
text-align: center;
|
62 |
}
|
63 |
|
64 |
#wpua-tabs .mceActionPanel #insert {
|
65 |
+
float: none;
|
66 |
+
width: 180px;
|
67 |
+
margin: 0 auto;
|
68 |
}
|
69 |
|
70 |
#wpua-tabs #wp_user_avatar_size_number_section,
|
71 |
#wpua-tabs #wp_user_avatar_link_external_section {
|
72 |
+
display: none;
|
73 |
}
|
assets/css/wp-user-avatar.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
assets/js/tinymce-editor_plugin.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
@@ -13,19 +13,19 @@
|
|
13 |
init: function (ed, url) {
|
14 |
ed.addCommand('mceWpUserAvatar', function() {
|
15 |
ed.windowManager.open({
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
});
|
24 |
|
25 |
ed.addButton('wpUserAvatar', {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
onPostRender: function() {
|
30 |
var ctrl = this;
|
31 |
|
@@ -33,19 +33,19 @@
|
|
33 |
ctrl.active(e.element.nodeName == 'IMG');
|
34 |
});
|
35 |
}
|
36 |
-
|
37 |
},
|
38 |
createControl: function(n, cm) {
|
39 |
return null;
|
40 |
},
|
41 |
getInfo: function () {
|
42 |
return {
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
},
|
50 |
});
|
51 |
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
13 |
init: function (ed, url) {
|
14 |
ed.addCommand('mceWpUserAvatar', function() {
|
15 |
ed.windowManager.open({
|
16 |
+
file: ajaxurl + '?action=wp_user_avatar_tinymce',
|
17 |
+
width: 500,
|
18 |
+
height: 360,
|
19 |
+
inline: 1
|
20 |
+
}, {
|
21 |
+
plugin_url: url,
|
22 |
+
});
|
23 |
});
|
24 |
|
25 |
ed.addButton('wpUserAvatar', {
|
26 |
+
title: ( typeof args.insert_avatar != 'undefined' ? args.insert_avatar : 'Insert Avatar' ),
|
27 |
+
cmd: 'mceWpUserAvatar',
|
28 |
+
image: url + '/../images/wpua-20x20.png',
|
29 |
onPostRender: function() {
|
30 |
var ctrl = this;
|
31 |
|
33 |
ctrl.active(e.element.nodeName == 'IMG');
|
34 |
});
|
35 |
}
|
36 |
+
});
|
37 |
},
|
38 |
createControl: function(n, cm) {
|
39 |
return null;
|
40 |
},
|
41 |
getInfo: function () {
|
42 |
return {
|
43 |
+
longname: 'One User Avatar',
|
44 |
+
author: 'One Designs',
|
45 |
+
authorurl: 'https://onedesigns.com/',
|
46 |
+
infourl: 'https://onedesigns.com/plugins/one-user-avatar/',
|
47 |
+
version: '2.3.3',
|
48 |
+
};
|
49 |
},
|
50 |
});
|
51 |
|
assets/js/tinymce-window.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
@@ -7,95 +7,95 @@
|
|
7 |
*/
|
8 |
|
9 |
function wpuaInsertAvatar() {
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
33 |
|
34 |
-
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
-
|
51 |
|
52 |
-
|
53 |
-
|
54 |
|
55 |
-
|
56 |
}
|
57 |
|
58 |
function wpuaInsertAvatarUpload() {
|
59 |
-
|
60 |
-
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
|
72 |
-
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
}
|
78 |
|
79 |
jQuery(function($) {
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
});
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
7 |
*/
|
8 |
|
9 |
function wpuaInsertAvatar() {
|
10 |
+
// Custom shortcode values
|
11 |
+
var shortcode,
|
12 |
+
closing_tag,
|
13 |
+
user = document.getElementById('wp_user_avatar_user').value,
|
14 |
+
size = document.getElementById('wp_user_avatar_size').value,
|
15 |
+
size_number = document.getElementById('wp_user_avatar_size_number').value,
|
16 |
+
align = document.getElementById('wp_user_avatar_align').value,
|
17 |
+
link = document.getElementById('wp_user_avatar_link').value,
|
18 |
+
link_external = document.getElementById('wp_user_avatar_link_external').value,
|
19 |
+
target = document.getElementById('wp_user_avatar_target').value,
|
20 |
+
caption = document.getElementById('wp_user_avatar_caption').value;
|
21 |
|
22 |
+
// Add tag to shortcode only if not blank
|
23 |
+
var user_tag = (user != '') ? ' user="' + user + '"' : '';
|
24 |
+
var size_tag = (size != '' && size_number == '') ? ' size="' + size + '"' : '';
|
25 |
|
26 |
+
size_tag = (size_number != '') ? ' size="' + size_number + '"' : size_tag;
|
27 |
|
28 |
+
var align_tag = (align != '') ? ' align="' + align + '"' : '';
|
29 |
|
30 |
+
var link_tag = (link != '' && link != 'custom-url' && link_external == '') ? ' link="' + link + '"' : '';
|
31 |
|
32 |
+
link_tag = (link_external != '') ? ' link="' + link_external + '"' : link_tag;
|
33 |
|
34 |
+
var target_tag = document.getElementById('wp_user_avatar_target').checked && (link_tag != '') ? ' target="' + target + '"' : '';
|
35 |
|
36 |
+
// Assemble the shortcode
|
37 |
+
closing_tag = (caption != '') ? "]" + caption + "[/avatar]" : " /]";
|
38 |
+
shortcode = "<p>[avatar" + user_tag + size_tag + align_tag + link_tag + target_tag + closing_tag + "</p>";
|
39 |
|
40 |
+
// Insert into Visual Editor
|
41 |
+
if ( window.tinyMCE ) {
|
42 |
+
var tmce_ver = window.tinyMCE.majorVersion;
|
43 |
|
44 |
+
if ( tmce_ver >= "4" ) {
|
45 |
+
window.tinyMCE.execCommand( 'mceInsertContent', false, shortcode );
|
46 |
+
} else {
|
47 |
+
window.tinyMCE.execInstanceCommand( window.tinyMCE.activeEditor.id, 'mceInsertContent', false, shortcode );
|
48 |
+
}
|
49 |
|
50 |
+
tinyMCEPopup.editor.execCommand( 'mceRepaint' );
|
51 |
|
52 |
+
tinyMCEPopup.close();
|
53 |
+
}
|
54 |
|
55 |
+
return;
|
56 |
}
|
57 |
|
58 |
function wpuaInsertAvatarUpload() {
|
59 |
+
// Upload shortcode
|
60 |
+
var shortcode = "<p>[avatar_upload /]</p>";
|
61 |
|
62 |
+
// Insert into Visual Editor
|
63 |
+
if ( window.tinyMCE ) {
|
64 |
+
var tmce_ver = window.tinyMCE.majorVersion;
|
65 |
|
66 |
+
if ( tmce_ver >= "4" ) {
|
67 |
+
window.tinyMCE.execCommand( 'mceInsertContent', false, shortcode );
|
68 |
+
} else {
|
69 |
+
window.tinyMCE.execInstanceCommand( window.tinyMCE.activeEditor.id, 'mceInsertContent', false, shortcode );
|
70 |
+
}
|
71 |
|
72 |
+
tinyMCEPopup.editor.execCommand( 'mceRepaint' );
|
73 |
|
74 |
+
tinyMCEPopup.close();
|
75 |
+
}
|
76 |
+
return;
|
77 |
}
|
78 |
|
79 |
jQuery(function($) {
|
80 |
+
// Show link input
|
81 |
+
$('#wp_user_avatar_link').change(function() {
|
82 |
+
$('#wp_user_avatar_link_external_section').toggle( $('#wp_user_avatar_link').val() == 'custom-url' );
|
83 |
+
});
|
84 |
+
|
85 |
+
// Show size input
|
86 |
+
$('#wp_user_avatar_size').change(function() {
|
87 |
+
$('#wp_user_avatar_size_number_section').toggle( $('#wp_user_avatar_size').val() == 'custom' );
|
88 |
+
});
|
89 |
+
|
90 |
+
$("#wpua-tabs li a").click(function(){
|
91 |
+
tab_id = $(this).attr('href');
|
92 |
+
|
93 |
+
if( tab_id == '#wpua') {
|
94 |
+
$("#wpua-upload").hide();
|
95 |
+
} else {
|
96 |
+
$('#wpua').hide();
|
97 |
+
}
|
98 |
+
|
99 |
+
$(tab_id).show();
|
100 |
+
});
|
101 |
});
|
assets/js/wp-user-avatar-admin.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
assets/js/wp-user-avatar-user.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
assets/js/wp-user-avatar.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! One User Avatar - 2.3.
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
@@ -9,155 +9,155 @@
|
|
9 |
(function($) {
|
10 |
var id;
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
id = '';
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
|
83 |
id = '-existing';
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
})(jQuery);
|
90 |
|
91 |
jQuery(function($) {
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
});
|
126 |
|
127 |
jQuery(function($) {
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
});
|
1 |
+
/*! One User Avatar - 2.3.3
|
2 |
* Copyright One Designs
|
3 |
* Copyright ProfilePress
|
4 |
* Copyright Flippercode
|
9 |
(function($) {
|
10 |
var id;
|
11 |
|
12 |
+
wp.media.wpUserAvatar = {
|
13 |
+
get: function() {
|
14 |
+
return wp.media.view.settings.post.wpUserAvatarId;
|
15 |
+
},
|
16 |
+
set: function(a) {
|
17 |
+
var b = wp.media.view.settings;
|
18 |
+
|
19 |
+
b.post.wpUserAvatarId = a;
|
20 |
+
b.post.wpUserAvatarSrc = $('div.attachment-info').find('img').attr('src');
|
21 |
+
|
22 |
+
if ( b.post.wpUserAvatarId && b.post.wpUserAvatarSrc ) {
|
23 |
+
$('#wp-user-avatar' + id).val( b.post.wpUserAvatarId );
|
24 |
+
$('#wpua-images' + id + ', #wpua-undo-button' + id).show();
|
25 |
+
$('#wpua-preview' + id).find('img').attr('src', b.post.wpUserAvatarSrc).removeAttr('height', '');
|
26 |
+
$('#wpua-remove-button' + id + ', #wpua-thumbnail' + id).hide();
|
27 |
+
$('#wp_user_avatar_radio').trigger('click')
|
28 |
+
}
|
29 |
+
|
30 |
+
wp.media.wpUserAvatar.frame().close();
|
31 |
+
},
|
32 |
+
frame: function() {
|
33 |
+
if ( this._frame ) {
|
34 |
+
return this._frame;
|
35 |
+
}
|
36 |
+
|
37 |
+
this._frame = wp.media({
|
38 |
+
library: {
|
39 |
+
type: 'image',
|
40 |
+
},
|
41 |
+
multiple: false,
|
42 |
+
title: $('#wpua-add' + id).data('title'),
|
43 |
+
});
|
44 |
+
|
45 |
+
this._frame.on('open', function() {
|
46 |
+
var a = $('#wp-user-avatar' + id).val();
|
47 |
+
|
48 |
+
if ( a == '' ) {
|
49 |
+
$('div.media-router').find('a:first').trigger('click');
|
50 |
+
} else {
|
51 |
+
var b = this.state().get('selection');
|
52 |
+
|
53 |
+
attachment = wp.media.attachment(a);
|
54 |
+
|
55 |
+
attachment.fetch();
|
56 |
+
|
57 |
+
b.add( attachment ? [attachment] : [] );
|
58 |
+
}
|
59 |
+
}, this._frame);
|
60 |
+
|
61 |
+
this._frame.state('library').on('select', this.select);
|
62 |
+
|
63 |
+
return this._frame;
|
64 |
+
},
|
65 |
+
select: function(a) {
|
66 |
+
selection = this.get('selection').single();
|
67 |
+
|
68 |
+
wp.media.wpUserAvatar.set( selection ? selection.id : -1 );
|
69 |
+
},
|
70 |
+
init: function() {
|
71 |
+
$('body').on('click', '#wpua-add', function(e) {
|
72 |
+
e.preventDefault();
|
73 |
+
e.stopPropagation();
|
74 |
|
75 |
id = '';
|
76 |
|
77 |
+
wp.media.wpUserAvatar.frame().open();
|
78 |
+
})
|
79 |
+
$('body').on('click', '#wpua-add-existing', function(e) {
|
80 |
+
e.preventDefault();
|
81 |
+
e.stopPropagation();
|
82 |
|
83 |
id = '-existing';
|
84 |
|
85 |
+
wp.media.wpUserAvatar.frame().open();
|
86 |
+
});
|
87 |
+
}
|
88 |
+
}
|
89 |
})(jQuery);
|
90 |
|
91 |
jQuery(function($) {
|
92 |
+
if ( typeof wp != 'undefined' ) {
|
93 |
+
wp.media.wpUserAvatar.init();
|
94 |
+
}
|
95 |
+
|
96 |
+
$('#your-profile').attr( 'enctype', 'multipart/form-data' );
|
97 |
+
|
98 |
+
var a = $('#wp-user-avatar').val();
|
99 |
+
var b = $('#wpua-preview').find('img').attr('src');
|
100 |
+
|
101 |
+
$('body').on('click', '#wpua-remove', function(e) {
|
102 |
+
e.preventDefault();
|
103 |
+
|
104 |
+
$('#wpua-original').remove();
|
105 |
+
$('#wpua-remove-button, #wpua-thumbnail').hide();
|
106 |
+
$('#wpua-preview').find('img:first').hide();
|
107 |
+
$('#wpua-preview').prepend('<img id="wpua-original" />');
|
108 |
+
$('#wpua-original').attr('src', wpua_custom.avatar_thumb);
|
109 |
+
$('#wp-user-avatar').val("");
|
110 |
+
$('#wpua-original, #wpua-undo-button').show();
|
111 |
+
$('#wp_user_avatar_radio').trigger('click');
|
112 |
+
});
|
113 |
+
|
114 |
+
$('body').on('click', '#wpua-undo', function(e) {
|
115 |
+
e.preventDefault();
|
116 |
+
|
117 |
+
$('#wpua-original').remove();
|
118 |
+
$('#wpua-images').removeAttr('style');
|
119 |
+
$('#wpua-undo-button').hide();
|
120 |
+
$('#wpua-remove-button, #wpua-thumbnail').show();
|
121 |
+
$('#wpua-preview').find('img:first').attr('src', b).show();
|
122 |
+
$('#wp-user-avatar').val(a);
|
123 |
+
$('#wp_user_avatar_radio').trigger('click');
|
124 |
+
});
|
125 |
});
|
126 |
|
127 |
jQuery(function($) {
|
128 |
+
if ( typeof wp != 'undefined' ) {
|
129 |
+
wp.media.wpUserAvatar.init();
|
130 |
+
}
|
131 |
+
|
132 |
+
$('#your-profile').attr('enctype', 'multipart/form-data');
|
133 |
+
|
134 |
+
var a = $('#wp-user-avatar-existing').val();
|
135 |
+
var b = $('#wpua-preview-existing').find('img').attr('src');
|
136 |
+
|
137 |
+
$('#wpua-undo-button-existing').hide();
|
138 |
+
|
139 |
+
$('body').on('click', '#wpua-remove-existing', function(e) {
|
140 |
+
e.preventDefault();
|
141 |
+
|
142 |
+
$('#wpua-original-existing').remove();
|
143 |
+
$('#wpua-remove-button-existing, #wpua-thumbnail-existing').hide();
|
144 |
+
$('#wpua-preview-existing').find('img:first').hide();
|
145 |
+
$('#wpua-preview-existing').prepend('<img id="wpua-original-existing" />');
|
146 |
+
$('#wpua-original-existing').attr('src', wpua_custom.avatar_thumb);
|
147 |
+
$('#wp-user-avatar-existing').val("");
|
148 |
+
$('#wpua-original-existing, #wpua-undo-button-existing').show();
|
149 |
+
$('#wp_user_avatar_radio').trigger('click');
|
150 |
+
});
|
151 |
+
|
152 |
+
$('body').on('click', '#wpua-undo-existing', function(e) {
|
153 |
+
e.preventDefault();
|
154 |
+
|
155 |
+
$('#wpua-original-existing').remove();
|
156 |
+
$('#wpua-images-existing').removeAttr('style');
|
157 |
+
$('#wpua-undo-button-existing').hide();
|
158 |
+
$('#wpua-remove-button-existing, #wpua-thumbnail-existing').show();
|
159 |
+
$('#wpua-preview-existing').find('img:first').attr('src', b).show();
|
160 |
+
$('#wp-user-avatar-existing').val(a);
|
161 |
+
$('#wp_user_avatar_radio').trigger('click');
|
162 |
+
});
|
163 |
});
|
includes/class-wp-user-avatar-admin.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Admin {
|
@@ -95,14 +95,15 @@ class WP_User_Avatar_Admin {
|
|
95 |
|
96 |
foreach ( $cron as $key => $value ) {
|
97 |
if ( is_array( $value ) ) {
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
}
|
102 |
}
|
103 |
|
104 |
update_option( 'cron', $cron );
|
105 |
-
|
|
|
106 |
}
|
107 |
|
108 |
/**
|
@@ -418,9 +419,9 @@ class WP_User_Avatar_Admin {
|
|
418 |
|
419 |
// Add WPUA to list
|
420 |
$wpua_list = sprintf(
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
|
425 |
$wpua_list .= preg_replace( "/src='(.+?)'/", "src='\$1'", $avatar_thumb_img );
|
426 |
$wpua_list .= ' ' . __( 'One User Avatar', 'one-user-avatar' ) . '</label>';
|
@@ -457,10 +458,10 @@ class WP_User_Avatar_Admin {
|
|
457 |
public function wpua_action_links( $links, $file ) {
|
458 |
if( basename( dirname( $file ) ) == 'one-user-avatar' ) {
|
459 |
$links[] = sprintf(
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
}
|
465 |
|
466 |
return $links;
|
@@ -476,10 +477,10 @@ class WP_User_Avatar_Admin {
|
|
476 |
public function wpua_row_meta( $links, $file ) {
|
477 |
if ( 'one-user-avatar' == basename( dirname( $file ) ) ) {
|
478 |
$links[] = sprintf(
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
}
|
484 |
|
485 |
return $links;
|
@@ -577,10 +578,10 @@ class WP_User_Avatar_Admin {
|
|
577 |
function wpua_admin_init() {
|
578 |
global $wpua_admin;
|
579 |
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
|
584 |
-
|
585 |
}
|
586 |
add_action( 'init', 'wpua_admin_init' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.3
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Admin {
|
95 |
|
96 |
foreach ( $cron as $key => $value ) {
|
97 |
if ( is_array( $value ) ) {
|
98 |
+
if ( array_key_exists( 'wpua_has_gravatar_cron_hook', $value ) ) {
|
99 |
+
unset($cron[$key]);
|
100 |
+
}
|
101 |
}
|
102 |
}
|
103 |
|
104 |
update_option( 'cron', $cron );
|
105 |
+
}
|
106 |
+
|
107 |
}
|
108 |
|
109 |
/**
|
419 |
|
420 |
// Add WPUA to list
|
421 |
$wpua_list = sprintf(
|
422 |
+
'<label><input type="radio" name="avatar_default" id="wp_user_avatar_radio" value="wp_user_avatar" %s /> ',
|
423 |
+
$selected_avatar
|
424 |
+
);
|
425 |
|
426 |
$wpua_list .= preg_replace( "/src='(.+?)'/", "src='\$1'", $avatar_thumb_img );
|
427 |
$wpua_list .= ' ' . __( 'One User Avatar', 'one-user-avatar' ) . '</label>';
|
458 |
public function wpua_action_links( $links, $file ) {
|
459 |
if( basename( dirname( $file ) ) == 'one-user-avatar' ) {
|
460 |
$links[] = sprintf(
|
461 |
+
'<a href="%s">%s</a>',
|
462 |
+
esc_url( add_query_arg( array( 'page' => 'one-user-avatar' ), admin_url( 'admin.php' ) ) ),
|
463 |
+
__( 'Settings', 'one-user-avatar' )
|
464 |
+
);
|
465 |
}
|
466 |
|
467 |
return $links;
|
477 |
public function wpua_row_meta( $links, $file ) {
|
478 |
if ( 'one-user-avatar' == basename( dirname( $file ) ) ) {
|
479 |
$links[] = sprintf(
|
480 |
+
'<a href="%s" target="_blank">%s</a>',
|
481 |
+
esc_url( 'https://onedesigns.com/support/forum/plugins/one-user-avatar/' ),
|
482 |
+
__( 'Support Forums', 'one-user-avatar' )
|
483 |
+
);
|
484 |
}
|
485 |
|
486 |
return $links;
|
578 |
function wpua_admin_init() {
|
579 |
global $wpua_admin;
|
580 |
|
581 |
+
if ( ! isset( $wpua_admin ) ) {
|
582 |
+
$wpua_admin = new WP_User_Avatar_Admin();
|
583 |
+
}
|
584 |
|
585 |
+
return $wpua_admin;
|
586 |
}
|
587 |
add_action( 'init', 'wpua_admin_init' );
|
includes/class-wp-user-avatar-functions.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Functions {
|
@@ -84,15 +84,15 @@ class WP_User_Avatar_Functions {
|
|
84 |
|
85 |
function wpua_get_default_avatar_url( $url, $id_or_email, $args ){
|
86 |
global $avatar_default,
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
$default_image_details = array();
|
98 |
|
@@ -102,9 +102,9 @@ class WP_User_Avatar_Functions {
|
|
102 |
if ( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
103 |
// Get image
|
104 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
// Image src
|
110 |
$url = $wpua_avatar_default_image[0];
|
@@ -139,20 +139,19 @@ class WP_User_Avatar_Functions {
|
|
139 |
* @param string $avatar_folder_dir
|
140 |
* @uses object $wpua_functions
|
141 |
* @uses wpua_get_avatar_filter()
|
142 |
-
|
143 |
public function wpua_bp_core_fetch_avatar_filter( $gravatar, $params, $item_id = '', $avatar_dir = '', $css_id = '', $html_width = '', $html_height =' ', $avatar_folder_url = '', $avatar_folder_dir = '') {
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
return $avatar;
|
156 |
}
|
157 |
|
158 |
return $gravatar;
|
@@ -193,22 +192,22 @@ class WP_User_Avatar_Functions {
|
|
193 |
*/
|
194 |
public function wpua_has_gravatar( $id_or_email = '', $has_gravatar = 0, $user = '', $email = '') {
|
195 |
global $wpua_hash_gravatar,
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
|
207 |
// User has WPUA
|
208 |
// Decide if check gravatar required or not.
|
209 |
if ( 'wp_user_avatar' != trim( $avatar_default ) ) {
|
210 |
return true;
|
211 |
-
|
212 |
|
213 |
if ( ! is_object( $id_or_email ) && ! empty( $id_or_email ) ) {
|
214 |
// Find user by ID or e-mail address
|
@@ -223,7 +222,7 @@ class WP_User_Avatar_Functions {
|
|
223 |
$email = $id_or_email;
|
224 |
} elseif ( ! is_numeric( $id_or_email ) && is_object( $id_or_email ) ) {
|
225 |
$email = $id_or_email->comment_author_email;
|
226 |
-
|
227 |
}
|
228 |
|
229 |
if ( '' != $email ) {
|
@@ -231,23 +230,24 @@ class WP_User_Avatar_Functions {
|
|
231 |
|
232 |
//check if gravatar exists for hashtag using options
|
233 |
if ( is_array( $wpua_hash_gravatar ) ) {
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
|
|
243 |
}
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
$http = 'https';
|
252 |
} else {
|
253 |
$http = 'http';
|
@@ -265,7 +265,7 @@ class WP_User_Avatar_Functions {
|
|
265 |
$has_gravatar = ( '200' == $data ) ? true : false;
|
266 |
|
267 |
if ( false == $wpua_hash_gravatar ) {
|
268 |
-
|
269 |
|
270 |
$wpua_hash_gravatar = [];
|
271 |
$wpua_hash_gravatar[ $hash ][ $date ] = (bool) $has_gravatar;
|
@@ -273,7 +273,7 @@ class WP_User_Avatar_Functions {
|
|
273 |
add_option( 'wpua_hash_gravatar', serialize( $wpua_hash_gravatar ), '', false );
|
274 |
} else {
|
275 |
if ( is_array( $wpua_hash_gravatar ) && ! empty( $wpua_hash_gravatar ) ) {
|
276 |
-
|
277 |
|
278 |
if ( array_key_exists( $hash, $wpua_hash_gravatar ) ){
|
279 |
unset( $wpua_hash_gravatar[ $hash ] );
|
@@ -294,7 +294,7 @@ class WP_User_Avatar_Functions {
|
|
294 |
$has_gravatar = ( '200' == $data ) ? true : false;
|
295 |
} else {
|
296 |
$has_gravatar = false;
|
297 |
-
|
298 |
|
299 |
// Check if Gravatar image returns 200 (OK) or 404 (Not Found)
|
300 |
return (bool) $has_gravatar;
|
@@ -413,15 +413,15 @@ class WP_User_Avatar_Functions {
|
|
413 |
*/
|
414 |
public function wpua_default_image( $size ) {
|
415 |
global $avatar_default,
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
|
426 |
$default_image_details = array();
|
427 |
|
@@ -429,19 +429,19 @@ class WP_User_Avatar_Functions {
|
|
429 |
if ( !empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
430 |
// Get image
|
431 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
|
436 |
// Image src
|
437 |
$default = $wpua_avatar_default_image[0];
|
438 |
|
439 |
// Add dimensions if numeric size
|
440 |
$default_image_details['dimensions'] = sprintf(
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
} else {
|
446 |
// Get mustache image based on numeric size comparison
|
447 |
if ( $size > get_option( 'medium_size_w' ) ) {
|
@@ -464,7 +464,7 @@ class WP_User_Avatar_Functions {
|
|
464 |
$default_image_details['size'] = $size;
|
465 |
$default_image_details['src'] = $default;
|
466 |
|
467 |
-
|
468 |
|
469 |
}
|
470 |
/**
|
@@ -475,10 +475,10 @@ class WP_User_Avatar_Functions {
|
|
475 |
* @param int|string $size
|
476 |
* @param string $default
|
477 |
* @param string $alt
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
* @uses string $avatar_default
|
483 |
* @uses string $mustache_admin
|
484 |
* @uses string $mustache_avatar
|
@@ -500,15 +500,15 @@ class WP_User_Avatar_Functions {
|
|
500 |
*/
|
501 |
public function wpua_get_avatar_filter( $avatar, $id_or_email = '', $size = '', $default = '', $alt = '') {
|
502 |
global $avatar_default,
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
|
513 |
// User has WPUA
|
514 |
if ( '' == $alt ) {
|
@@ -540,41 +540,41 @@ class WP_User_Avatar_Functions {
|
|
540 |
$avatar = get_wp_user_avatar( $id_or_email, $size, $default, $alt, $class );
|
541 |
// User has Gravatar and Gravatar is not disabled
|
542 |
} elseif( 1 != (bool) $wpua_disable_gravatar && $wpua_functions->wpua_has_gravatar( $id_or_email ) ) {
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
// User doesn't have WPUA or Gravatar and Default Avatar is wp_user_avatar, show custom Default Avatar
|
566 |
-
|
567 |
-
|
568 |
$class_string = ! empty( $class ) ? ' ' . esc_attr( implode( ' ', $class ) ) : '';
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
}
|
579 |
}
|
580 |
|
@@ -613,10 +613,10 @@ class WP_User_Avatar_Functions {
|
|
613 |
*/
|
614 |
public function wpua_get_avatar_original( $id_or_email = '', $size = '', $default = '', $alt = '' ) {
|
615 |
global $avatar_default,
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
|
621 |
// Remove get_avatar filter
|
622 |
remove_filter( 'get_avatar', array( $this, 'wpua_get_avatar_filter' ) );
|
@@ -627,11 +627,11 @@ class WP_User_Avatar_Functions {
|
|
627 |
if ( ! $wpua_functions->wpua_has_gravatar( $id_or_email ) && 'wp_user_avatar' == $avatar_default) {
|
628 |
// Show custom Default Avatar
|
629 |
if( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
|
636 |
$default = $wpua_avatar_default_image[0];
|
637 |
} else {
|
@@ -645,9 +645,9 @@ class WP_User_Avatar_Functions {
|
|
645 |
if ( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
646 |
$size_numeric_w_x_h = array( get_option( $size . '_size_w' ), get_option( $size . '_size_h' ) );
|
647 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
|
652 |
$default = $wpua_avatar_default_image[0];
|
653 |
} else {
|
@@ -675,10 +675,10 @@ class WP_User_Avatar_Functions {
|
|
675 |
* @param int|string $size
|
676 |
* @param string $align
|
677 |
* @param string $alt
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
* @uses array $_wp_additional_image_sizes
|
683 |
* @uses array $all_sizes
|
684 |
* @uses string $avatar_default
|
@@ -701,13 +701,13 @@ class WP_User_Avatar_Functions {
|
|
701 |
*/
|
702 |
public function get_wp_user_avatar( $id_or_email = '', $size = '96', $align = '', $alt = '', $class = [] ) {
|
703 |
global $all_sizes,
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
|
712 |
$email = 'unknown@gravatar.com';
|
713 |
|
@@ -774,22 +774,22 @@ class WP_User_Avatar_Functions {
|
|
774 |
|
775 |
// Add dimensions to img only if numeric size was specified
|
776 |
$dimensions = is_numeric( $size ) ? sprintf(
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
|
782 |
$class_string = ! empty( $class ) ? ' ' . $class : '';
|
783 |
|
784 |
// Construct the img tag
|
785 |
$avatar = sprintf(
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
} else {
|
794 |
// Check for custom image sizes
|
795 |
if ( in_array( $size, $all_sizes ) ) {
|
@@ -813,20 +813,19 @@ class WP_User_Avatar_Functions {
|
|
813 |
}
|
814 |
|
815 |
$replace = array(
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
$replacements = array(
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
$avatar = str_replace( $replace, $replacements, $avatar );
|
831 |
}
|
832 |
/**
|
@@ -874,10 +873,10 @@ class WP_User_Avatar_Functions {
|
|
874 |
function wpua_functions_init() {
|
875 |
global $wpua_functions;
|
876 |
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
|
881 |
-
|
882 |
}
|
883 |
add_action( 'plugins_loaded', 'wpua_functions_init' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Functions {
|
84 |
|
85 |
function wpua_get_default_avatar_url( $url, $id_or_email, $args ){
|
86 |
global $avatar_default,
|
87 |
+
$mustache_admin,
|
88 |
+
$mustache_avatar,
|
89 |
+
$mustache_medium,
|
90 |
+
$mustache_original,
|
91 |
+
$mustache_thumbnail,
|
92 |
+
$post,
|
93 |
+
$wpua_avatar_default,
|
94 |
+
$wpua_disable_gravatar,
|
95 |
+
$wpua_functions;
|
96 |
|
97 |
$default_image_details = array();
|
98 |
|
102 |
if ( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
103 |
// Get image
|
104 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
105 |
+
$wpua_avatar_default,
|
106 |
+
array( $size,$size )
|
107 |
+
);
|
108 |
|
109 |
// Image src
|
110 |
$url = $wpua_avatar_default_image[0];
|
139 |
* @param string $avatar_folder_dir
|
140 |
* @uses object $wpua_functions
|
141 |
* @uses wpua_get_avatar_filter()
|
142 |
+
*/
|
143 |
public function wpua_bp_core_fetch_avatar_filter( $gravatar, $params, $item_id = '', $avatar_dir = '', $css_id = '', $html_width = '', $html_height =' ', $avatar_folder_url = '', $avatar_folder_dir = '') {
|
144 |
+
global $wpua_functions;
|
145 |
+
|
146 |
+
if( -1 < strpos( $gravatar, 'gravatar.com' , 0 ) ) {
|
147 |
+
$avatar = $wpua_functions->wpua_get_avatar_filter(
|
148 |
+
$gravatar,
|
149 |
+
( 'user' == $params['object'] ) ? $params['item_id'] : '',
|
150 |
+
( 'user' == $params['object'] ) ? ( ( 'thumb' == $params['type'] ) ? 50 :150 ) : 50,
|
151 |
+
'',
|
152 |
+
''
|
153 |
+
);
|
154 |
+
return $avatar;
|
|
|
155 |
}
|
156 |
|
157 |
return $gravatar;
|
192 |
*/
|
193 |
public function wpua_has_gravatar( $id_or_email = '', $has_gravatar = 0, $user = '', $email = '') {
|
194 |
global $wpua_hash_gravatar,
|
195 |
+
$avatar_default,
|
196 |
+
$mustache_admin,
|
197 |
+
$mustache_avatar,
|
198 |
+
$mustache_medium,
|
199 |
+
$mustache_original,
|
200 |
+
$mustache_thumbnail,
|
201 |
+
$post,
|
202 |
+
$wpua_avatar_default,
|
203 |
+
$wpua_disable_gravatar,
|
204 |
+
$wpua_functions;
|
205 |
|
206 |
// User has WPUA
|
207 |
// Decide if check gravatar required or not.
|
208 |
if ( 'wp_user_avatar' != trim( $avatar_default ) ) {
|
209 |
return true;
|
210 |
+
}
|
211 |
|
212 |
if ( ! is_object( $id_or_email ) && ! empty( $id_or_email ) ) {
|
213 |
// Find user by ID or e-mail address
|
222 |
$email = $id_or_email;
|
223 |
} elseif ( ! is_numeric( $id_or_email ) && is_object( $id_or_email ) ) {
|
224 |
$email = $id_or_email->comment_author_email;
|
225 |
+
}
|
226 |
}
|
227 |
|
228 |
if ( '' != $email ) {
|
230 |
|
231 |
//check if gravatar exists for hashtag using options
|
232 |
if ( is_array( $wpua_hash_gravatar ) ) {
|
233 |
+
$date = date( 'm-d-Y' );
|
234 |
+
|
235 |
+
if (
|
236 |
+
array_key_exists( $hash, $wpua_hash_gravatar ) &&
|
237 |
+
is_array( $wpua_hash_gravatar[$hash] ) &&
|
238 |
+
array_key_exists( $date, $wpua_hash_gravatar[ $hash ] )
|
239 |
+
) {
|
240 |
+
return (bool) $wpua_hash_gravatar[ $hash ][ $date ];
|
241 |
+
}
|
242 |
+
|
243 |
}
|
244 |
|
245 |
+
if (
|
246 |
+
isset( $_SERVER['HTTPS'] ) &&
|
247 |
+
( 'on' == $_SERVER['HTTPS'] || 1 == $_SERVER['HTTPS'] ) ||
|
248 |
+
isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
|
249 |
+
'https' == $_SERVER['HTTP_X_FORWARDED_PROTO']
|
250 |
+
) {
|
251 |
$http = 'https';
|
252 |
} else {
|
253 |
$http = 'http';
|
265 |
$has_gravatar = ( '200' == $data ) ? true : false;
|
266 |
|
267 |
if ( false == $wpua_hash_gravatar ) {
|
268 |
+
$date = date( 'm-d-Y' );
|
269 |
|
270 |
$wpua_hash_gravatar = [];
|
271 |
$wpua_hash_gravatar[ $hash ][ $date ] = (bool) $has_gravatar;
|
273 |
add_option( 'wpua_hash_gravatar', serialize( $wpua_hash_gravatar ), '', false );
|
274 |
} else {
|
275 |
if ( is_array( $wpua_hash_gravatar ) && ! empty( $wpua_hash_gravatar ) ) {
|
276 |
+
$date = date( 'm-d-Y' );
|
277 |
|
278 |
if ( array_key_exists( $hash, $wpua_hash_gravatar ) ){
|
279 |
unset( $wpua_hash_gravatar[ $hash ] );
|
294 |
$has_gravatar = ( '200' == $data ) ? true : false;
|
295 |
} else {
|
296 |
$has_gravatar = false;
|
297 |
+
}
|
298 |
|
299 |
// Check if Gravatar image returns 200 (OK) or 404 (Not Found)
|
300 |
return (bool) $has_gravatar;
|
413 |
*/
|
414 |
public function wpua_default_image( $size ) {
|
415 |
global $avatar_default,
|
416 |
+
$mustache_admin,
|
417 |
+
$mustache_avatar,
|
418 |
+
$mustache_medium,
|
419 |
+
$mustache_original,
|
420 |
+
$mustache_thumbnail,
|
421 |
+
$post,
|
422 |
+
$wpua_avatar_default,
|
423 |
+
$wpua_disable_gravatar,
|
424 |
+
$wpua_functions;
|
425 |
|
426 |
$default_image_details = array();
|
427 |
|
429 |
if ( !empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
430 |
// Get image
|
431 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
432 |
+
$wpua_avatar_default,
|
433 |
+
array( $size, $size )
|
434 |
+
);
|
435 |
|
436 |
// Image src
|
437 |
$default = $wpua_avatar_default_image[0];
|
438 |
|
439 |
// Add dimensions if numeric size
|
440 |
$default_image_details['dimensions'] = sprintf(
|
441 |
+
' width="%s" height="%s"',
|
442 |
+
esc_attr( $wpua_avatar_default_image[1] ),
|
443 |
+
esc_attr( $wpua_avatar_default_image[2] )
|
444 |
+
);
|
445 |
} else {
|
446 |
// Get mustache image based on numeric size comparison
|
447 |
if ( $size > get_option( 'medium_size_w' ) ) {
|
464 |
$default_image_details['size'] = $size;
|
465 |
$default_image_details['src'] = $default;
|
466 |
|
467 |
+
return $default_image_details;
|
468 |
|
469 |
}
|
470 |
/**
|
475 |
* @param int|string $size
|
476 |
* @param string $default
|
477 |
* @param string $alt
|
478 |
+
* @param array $args
|
479 |
+
*
|
480 |
+
* @return string $avatar
|
481 |
+
* @since 1.4
|
482 |
* @uses string $avatar_default
|
483 |
* @uses string $mustache_admin
|
484 |
* @uses string $mustache_avatar
|
500 |
*/
|
501 |
public function wpua_get_avatar_filter( $avatar, $id_or_email = '', $size = '', $default = '', $alt = '') {
|
502 |
global $avatar_default,
|
503 |
+
$mustache_admin,
|
504 |
+
$mustache_avatar,
|
505 |
+
$mustache_medium,
|
506 |
+
$mustache_original,
|
507 |
+
$mustache_thumbnail,
|
508 |
+
$post,
|
509 |
+
$wpua_avatar_default,
|
510 |
+
$wpua_disable_gravatar,
|
511 |
+
$wpua_functions;
|
512 |
|
513 |
// User has WPUA
|
514 |
if ( '' == $alt ) {
|
540 |
$avatar = get_wp_user_avatar( $id_or_email, $size, $default, $alt, $class );
|
541 |
// User has Gravatar and Gravatar is not disabled
|
542 |
} elseif( 1 != (bool) $wpua_disable_gravatar && $wpua_functions->wpua_has_gravatar( $id_or_email ) ) {
|
543 |
+
// find our src
|
544 |
+
if ( ! empty( $avatar ) ) {
|
545 |
+
preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $avatar, $matches, PREG_SET_ORDER );
|
546 |
+
|
547 |
+
$wpua_avatar_image_src = ! empty( $matches ) ? $matches[0][1] : '';
|
548 |
+
$default_image_details = $this->wpua_default_image( $size );
|
549 |
+
$wpua_default_avatar_image_src = $default_image_details['src'];
|
550 |
+
$wpua_final_avatar_image_src = str_replace(
|
551 |
+
'd=wp_user_avatar',
|
552 |
+
'd=' . urlencode( $wpua_default_avatar_image_src ),
|
553 |
+
$wpua_avatar_image_src
|
554 |
+
);
|
555 |
+
}
|
556 |
+
|
557 |
+
$class_string = ! empty( $class ) ? ' ' . esc_attr( implode( ' ', $class ) ) : '';
|
558 |
+
$avatar = sprintf(
|
559 |
+
'<img src="%1$s"%2$s alt="%3$s" class="avatar avatar-%4$s wp-user-avatar wp-user-avatar-%4$s photo avatar-default" />',
|
560 |
+
esc_url( $wpua_final_avatar_image_src ),
|
561 |
+
$default_image_details['dimensions'],
|
562 |
+
esc_attr( $alt ),
|
563 |
+
esc_attr( $size ),
|
564 |
+
);
|
565 |
// User doesn't have WPUA or Gravatar and Default Avatar is wp_user_avatar, show custom Default Avatar
|
566 |
+
} elseif ( 'wp_user_avatar' == $avatar_default ) {
|
567 |
+
$default_image_details = $this->wpua_default_image( $size );
|
568 |
$class_string = ! empty( $class ) ? ' ' . esc_attr( implode( ' ', $class ) ) : '';
|
569 |
+
$avatar = sprintf(
|
570 |
+
'<img src="%1$s"%2$s alt="%3$s" class="avatar avatar-%4$s wp-user-avatar wp-user-avatar-%4$s photo avatar-default" />',
|
571 |
+
esc_url( $default_image_details['src'] ),
|
572 |
+
$default_image_details['dimensions'],
|
573 |
+
esc_attr( $alt ),
|
574 |
+
esc_attr( $size )
|
575 |
+
);
|
576 |
+
|
577 |
+
return $avatar;
|
578 |
}
|
579 |
}
|
580 |
|
613 |
*/
|
614 |
public function wpua_get_avatar_original( $id_or_email = '', $size = '', $default = '', $alt = '' ) {
|
615 |
global $avatar_default,
|
616 |
+
$mustache_avatar,
|
617 |
+
$wpua_avatar_default,
|
618 |
+
$wpua_disable_gravatar,
|
619 |
+
$wpua_functions;
|
620 |
|
621 |
// Remove get_avatar filter
|
622 |
remove_filter( 'get_avatar', array( $this, 'wpua_get_avatar_filter' ) );
|
627 |
if ( ! $wpua_functions->wpua_has_gravatar( $id_or_email ) && 'wp_user_avatar' == $avatar_default) {
|
628 |
// Show custom Default Avatar
|
629 |
if( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
630 |
+
$size_numeric_w_x_h = array( get_option( $size . '_size_w' ), get_option( $size . '_size_h' ) );
|
631 |
+
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
632 |
+
$wpua_avatar_default,
|
633 |
+
$size_numeric_w_x_h
|
634 |
+
);
|
635 |
|
636 |
$default = $wpua_avatar_default_image[0];
|
637 |
} else {
|
645 |
if ( ! empty( $wpua_avatar_default ) && $wpua_functions->wpua_attachment_is_image( $wpua_avatar_default ) ) {
|
646 |
$size_numeric_w_x_h = array( get_option( $size . '_size_w' ), get_option( $size . '_size_h' ) );
|
647 |
$wpua_avatar_default_image = $wpua_functions->wpua_get_attachment_image_src(
|
648 |
+
$wpua_avatar_default,
|
649 |
+
$size_numeric_w_x_h
|
650 |
+
);
|
651 |
|
652 |
$default = $wpua_avatar_default_image[0];
|
653 |
} else {
|
675 |
* @param int|string $size
|
676 |
* @param string $align
|
677 |
* @param string $alt
|
678 |
+
* @param array $class
|
679 |
+
*
|
680 |
+
* @return string $avatar
|
681 |
+
* @since 1.0
|
682 |
* @uses array $_wp_additional_image_sizes
|
683 |
* @uses array $all_sizes
|
684 |
* @uses string $avatar_default
|
701 |
*/
|
702 |
public function get_wp_user_avatar( $id_or_email = '', $size = '96', $align = '', $alt = '', $class = [] ) {
|
703 |
global $all_sizes,
|
704 |
+
$avatar_default,
|
705 |
+
$blog_id,
|
706 |
+
$post,
|
707 |
+
$wpdb,
|
708 |
+
$wpua_avatar_default,
|
709 |
+
$wpua_functions,
|
710 |
+
$_wp_additional_image_sizes;
|
711 |
|
712 |
$email = 'unknown@gravatar.com';
|
713 |
|
774 |
|
775 |
// Add dimensions to img only if numeric size was specified
|
776 |
$dimensions = is_numeric( $size ) ? sprintf(
|
777 |
+
' width="%s" height="%s"',
|
778 |
+
esc_attr( $wpua_image[1] ),
|
779 |
+
esc_attr( $wpua_image[2] )
|
780 |
+
) : '';
|
781 |
|
782 |
$class_string = ! empty( $class ) ? ' ' . $class : '';
|
783 |
|
784 |
// Construct the img tag
|
785 |
$avatar = sprintf(
|
786 |
+
'<img src="%1$s"%2$s alt="%3$s" class="avatar avatar-%4$s wp-user-avatar wp-user-avatar-%4$s%5$s photo" />',
|
787 |
+
esc_url( $wpua_image[0] ),
|
788 |
+
$dimensions,
|
789 |
+
esc_attr( $alt ),
|
790 |
+
esc_attr( $size ),
|
791 |
+
esc_attr( $alignclass )
|
792 |
+
);
|
793 |
} else {
|
794 |
// Check for custom image sizes
|
795 |
if ( in_array( $size, $all_sizes ) ) {
|
813 |
}
|
814 |
|
815 |
$replace = array(
|
816 |
+
'wp-user-avatar ',
|
817 |
+
'wp-user-avatar-' . $get_size . ' ',
|
818 |
+
'wp-user-avatar-' . $size . ' ',
|
819 |
+
'avatar-'.$get_size,
|
820 |
+
' photo'
|
821 |
+
);
|
|
|
822 |
$replacements = array(
|
823 |
+
'',
|
824 |
+
'',
|
825 |
+
'',
|
826 |
+
'avatar-' . $size,
|
827 |
+
'wp-user-avatar wp-user-avatar-' . $size . $alignclass . ' photo'
|
828 |
+
);
|
829 |
$avatar = str_replace( $replace, $replacements, $avatar );
|
830 |
}
|
831 |
/**
|
873 |
function wpua_functions_init() {
|
874 |
global $wpua_functions;
|
875 |
|
876 |
+
if ( ! isset( $wpua_functions ) ) {
|
877 |
+
$wpua_functions = new WP_User_Avatar_Functions();
|
878 |
+
}
|
879 |
|
880 |
+
return $wpua_functions;
|
881 |
}
|
882 |
add_action( 'plugins_loaded', 'wpua_functions_init' );
|
includes/class-wp-user-avatar-list-table.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_List_Table extends WP_List_Table {
|
@@ -53,7 +53,7 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
53 |
$avatars = array();
|
54 |
|
55 |
while ( $avatars_wp_query->have_posts() ) {
|
56 |
-
|
57 |
|
58 |
$avatars[] = $post->ID;
|
59 |
}
|
@@ -107,7 +107,7 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
107 |
if ( ! empty( $_REQUEST['detached'] ) ) {
|
108 |
printf( '<input type="hidden" name="detached" value="%s" />', esc_attr( $_REQUEST['detached'] ) );
|
109 |
}
|
110 |
-
|
111 |
|
112 |
<p class="search-box">
|
113 |
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
|
@@ -119,7 +119,7 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
119 |
<?php submit_button( $text, 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
|
120 |
</p>
|
121 |
|
122 |
-
|
123 |
}
|
124 |
|
125 |
/**
|
@@ -166,17 +166,21 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
166 |
$class = ( empty( $_GET['post_mime_type'] ) && ! isset( $_GET['status'] ) ) ? ' class="current"' : '';
|
167 |
|
168 |
$type_links['all'] = sprintf(
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
/* translators: uploaded files */
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
|
|
|
|
|
|
180 |
|
181 |
return $type_links;
|
182 |
}
|
@@ -283,7 +287,7 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
283 |
$alt = '';
|
284 |
|
285 |
while ( have_posts() ) :
|
286 |
-
|
287 |
|
288 |
$user_can_edit = current_user_can( 'edit_post', $post->ID );
|
289 |
|
@@ -293,212 +297,212 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
293 |
|
294 |
$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
|
295 |
$post_owner = (get_current_user_id() == $post->post_author) ? 'self' : 'other';
|
296 |
-
|
297 |
$att_title = _draft_or_post_title();
|
298 |
-
|
299 |
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
|
312 |
-
|
313 |
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
/* translators: post title */
|
323 |
printf( __( 'Select %s','one-user-avatar' ), $att_title );
|
324 |
?>
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
/* translators: time from now */
|
422 |
_x( '%s from now', 'time from now', 'one-user-avatar' ),
|
423 |
human_time_diff( $time)
|
424 |
);
|
425 |
-
|
426 |
-
|
427 |
/* translators: time ago */
|
428 |
_x( '%s ago', 'time ago', 'one-user-avatar' ),
|
429 |
human_time_diff( $time )
|
430 |
);
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
}
|
503 |
|
504 |
/**
|
@@ -518,36 +522,36 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
518 |
|
519 |
if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) {
|
520 |
$actions['edit'] = sprintf(
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
}
|
526 |
|
527 |
if ( current_user_can( 'delete_post', $post->ID ) ) {
|
528 |
if ( $this->is_trash ) {
|
529 |
$actions['untrash'] = sprintf(
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
} elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
535 |
$actions['trash'] = sprintf(
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
}
|
541 |
|
542 |
if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) {
|
543 |
$delete_ays = ( ! $this->is_trash && ! MEDIA_TRASH ) ? ' onclick="return showNotice.warn();"' : '';
|
544 |
|
545 |
$actions['delete'] = sprintf(
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
}
|
552 |
}
|
553 |
|
@@ -555,11 +559,11 @@ class WP_User_Avatar_List_Table extends WP_List_Table {
|
|
555 |
$title = _draft_or_post_title( $post->post_parent );
|
556 |
|
557 |
$actions['view'] = sprintf(
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
}
|
564 |
|
565 |
return $actions;
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_List_Table extends WP_List_Table {
|
53 |
$avatars = array();
|
54 |
|
55 |
while ( $avatars_wp_query->have_posts() ) {
|
56 |
+
$avatars_wp_query->the_post();
|
57 |
|
58 |
$avatars[] = $post->ID;
|
59 |
}
|
107 |
if ( ! empty( $_REQUEST['detached'] ) ) {
|
108 |
printf( '<input type="hidden" name="detached" value="%s" />', esc_attr( $_REQUEST['detached'] ) );
|
109 |
}
|
110 |
+
?>
|
111 |
|
112 |
<p class="search-box">
|
113 |
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
|
119 |
<?php submit_button( $text, 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
|
120 |
</p>
|
121 |
|
122 |
+
<?php
|
123 |
}
|
124 |
|
125 |
/**
|
166 |
$class = ( empty( $_GET['post_mime_type'] ) && ! isset( $_GET['status'] ) ) ? ' class="current"' : '';
|
167 |
|
168 |
$type_links['all'] = sprintf(
|
169 |
+
' <a href="%s">',
|
170 |
+
esc_url( add_query_arg( array(
|
171 |
+
'page' => 'wp-user-avatar-library',
|
172 |
+
), 'admin.php') )
|
173 |
+
);
|
174 |
+
$type_links['all'] .= sprintf(
|
175 |
/* translators: uploaded files */
|
176 |
+
_nx(
|
177 |
+
'All %s',
|
178 |
+
'All %s',
|
179 |
+
$_total_posts,
|
180 |
+
'uploaded files',
|
181 |
+
'one-user-avatar'
|
182 |
+
), sprintf( '<span class="count">(%s)</span>', number_format_i18n( $_total_posts ) ) );
|
183 |
+
$type_links['all'] .= '</a>';
|
184 |
|
185 |
return $type_links;
|
186 |
}
|
287 |
$alt = '';
|
288 |
|
289 |
while ( have_posts() ) :
|
290 |
+
the_post();
|
291 |
|
292 |
$user_can_edit = current_user_can( 'edit_post', $post->ID );
|
293 |
|
297 |
|
298 |
$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
|
299 |
$post_owner = (get_current_user_id() == $post->post_author) ? 'self' : 'other';
|
300 |
+
$tr_class = trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status );
|
301 |
$att_title = _draft_or_post_title();
|
302 |
+
?>
|
303 |
|
304 |
+
<tr id="post-<?php echo esc_attr( $post->ID ); ?>" class="<?php echo esc_attr( $tr_class ); ?>" valign="top">
|
305 |
+
<?php
|
306 |
+
list( $columns, $hidden ) = $this->get_column_info();
|
307 |
|
308 |
+
foreach ( $columns as $column_name => $column_display_name ) {
|
309 |
+
$class = sprintf( 'class="%1$s column-%1$s"', esc_attr( $column_name ) );
|
310 |
+
$style = '';
|
311 |
|
312 |
+
if ( in_array( $column_name, $hidden ) ) {
|
313 |
+
$style = ' style="display:none;"';
|
314 |
+
}
|
315 |
|
316 |
+
$attributes = $class . $style;
|
317 |
|
318 |
+
switch ( $column_name ) {
|
319 |
+
case 'cb':
|
320 |
+
?>
|
321 |
|
322 |
+
<th scope="row" class="check-column">
|
323 |
+
<?php if ( $user_can_edit ) : ?>
|
324 |
+
<label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>">
|
325 |
+
<?php
|
326 |
/* translators: post title */
|
327 |
printf( __( 'Select %s','one-user-avatar' ), $att_title );
|
328 |
?>
|
329 |
+
</label>
|
330 |
+
|
331 |
+
<input type="checkbox" name="media[]" id="cb-select-<?php the_ID(); ?>" value="<?php the_ID(); ?>" />
|
332 |
+
<?php endif; ?>
|
333 |
+
</th>
|
334 |
+
|
335 |
+
<?php
|
336 |
+
break;
|
337 |
+
|
338 |
+
case 'icon':
|
339 |
+
$attributes = 'class="column-icon media-icon"' . $style;
|
340 |
+
?>
|
341 |
+
|
342 |
+
<td <?php echo $attributes ?>>
|
343 |
+
<?php
|
344 |
+
if ( $thumb = $wpua_functions->wpua_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {
|
345 |
+
if ( $this->is_trash || ! $user_can_edit ) {
|
346 |
+
echo $thumb;
|
347 |
+
} else {
|
348 |
+
?>
|
349 |
+
<a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr( sprintf( __( 'Edit %s' ), sprintf( '“%s”', $att_title ) ) ); ?>">
|
350 |
+
<?php echo $thumb; ?>
|
351 |
+
</a>
|
352 |
+
<?php
|
353 |
+
}
|
354 |
+
}
|
355 |
+
?>
|
356 |
+
</td>
|
357 |
+
|
358 |
+
<?php
|
359 |
+
break;
|
360 |
+
|
361 |
+
case 'title':
|
362 |
+
?>
|
363 |
+
|
364 |
+
<td <?php echo $attributes ?>>
|
365 |
+
<strong>
|
366 |
+
<?php
|
367 |
+
if ( $this->is_trash || ! $user_can_edit ) {
|
368 |
+
echo $att_title;
|
369 |
+
} else {
|
370 |
+
?>
|
371 |
+
<a
|
372 |
+
href="<?php echo get_edit_post_link( $post->ID, true ); ?>"
|
373 |
+
title="<?php echo esc_attr( sprintf( __( 'Edit %s' ), sprintf( '“%s”', $att_title ) ) ); ?>"
|
374 |
+
>
|
375 |
+
<?php echo $att_title; ?>
|
376 |
+
</a>
|
377 |
+
<?php
|
378 |
+
}
|
379 |
+
|
380 |
+
_media_states( $post );
|
381 |
+
?>
|
382 |
+
</strong>
|
383 |
+
|
384 |
+
<p>
|
385 |
+
<?php
|
386 |
+
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) {
|
387 |
+
echo esc_html( strtoupper( $matches[1] ) );
|
388 |
+
} else {
|
389 |
+
echo strtoupper( str_replace('image/', '', get_post_mime_type() ) );
|
390 |
+
}
|
391 |
+
?>
|
392 |
+
</p>
|
393 |
+
|
394 |
+
<?php echo $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); ?>
|
395 |
+
</td>
|
396 |
+
|
397 |
+
<?php
|
398 |
+
break;
|
399 |
+
|
400 |
+
case 'author':
|
401 |
+
?>
|
402 |
+
|
403 |
+
<td <?php echo $attributes ?>>
|
404 |
+
<?php
|
405 |
+
printf(
|
406 |
+
'<a href="%s">%s</a>',
|
407 |
+
esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ),
|
408 |
+
get_the_author()
|
409 |
+
);
|
410 |
+
?>
|
411 |
+
</td>
|
412 |
+
|
413 |
+
<?php
|
414 |
+
break;
|
415 |
+
|
416 |
+
case 'date':
|
417 |
+
if( '0000-00-00 00:00:00' == $post->post_date ) {
|
418 |
+
$h_time = __( 'Unpublished','one-user-avatar' );
|
419 |
+
} else {
|
420 |
+
$m_time = $post->post_date;
|
421 |
+
$time = get_post_time( 'G', true, $post, false );
|
422 |
+
if ( ( abs( $t_diff = time() - $time ) ) < DAY_IN_SECONDS ) {
|
423 |
+
if ( 0 > $t_diff ) {
|
424 |
+
$h_time = sprintf(
|
425 |
/* translators: time from now */
|
426 |
_x( '%s from now', 'time from now', 'one-user-avatar' ),
|
427 |
human_time_diff( $time)
|
428 |
);
|
429 |
+
} else {
|
430 |
+
$h_time = sprintf(
|
431 |
/* translators: time ago */
|
432 |
_x( '%s ago', 'time ago', 'one-user-avatar' ),
|
433 |
human_time_diff( $time )
|
434 |
);
|
435 |
+
}
|
436 |
+
} else {
|
437 |
+
$h_time = mysql2date( __( 'Y/m/d', 'one-user-avatar' ), $m_time );
|
438 |
+
}
|
439 |
+
}
|
440 |
+
?>
|
441 |
+
|
442 |
+
<td <?php echo $attributes ?>><?php echo $h_time ?></td>
|
443 |
+
|
444 |
+
<?php
|
445 |
+
break;
|
446 |
+
|
447 |
+
case 'parent':
|
448 |
+
global $blog_id, $wpdb;
|
449 |
+
|
450 |
+
// Find all users with this WPUA
|
451 |
+
$wpua_metakey = $wpdb->get_blog_prefix( $blog_id ) . 'user_avatar';
|
452 |
+
$wpuas = $wpdb->get_results( $wpdb->prepare(
|
453 |
+
"SELECT wpum.user_id FROM $wpdb->usermeta AS wpum, $wpdb->users AS wpu WHERE wpum.meta_key = %s AND wpum.meta_value = %d AND wpum.user_id = wpu.ID ORDER BY wpu.user_login",
|
454 |
+
$wpua_metakey,
|
455 |
+
$post->ID
|
456 |
+
) );
|
457 |
+
|
458 |
+
// Find users without WPUA
|
459 |
+
$nowpuas = $wpdb->get_results( $wpdb->prepare(
|
460 |
+
"SELECT wpu.ID FROM $wpdb->users AS wpu, $wpdb->usermeta AS wpum WHERE wpum.meta_key = %s AND wpum.meta_value = %d AND wpum.user_id = wpu.ID ORDER BY wpu.user_login",
|
461 |
+
$wpua_metakey,
|
462 |
+
''
|
463 |
+
) );
|
464 |
+
|
465 |
+
$user_array = array();
|
466 |
+
?>
|
467 |
+
|
468 |
+
<td <?php echo $attributes ?>>
|
469 |
+
<strong>
|
470 |
+
<?php
|
471 |
+
if ( ! empty( $wpuas ) ) {
|
472 |
+
foreach ( $wpuas as $usermeta ) {
|
473 |
+
$user = get_userdata( $usermeta->user_id );
|
474 |
+
$user_array[] = sprintf(
|
475 |
+
'<a href="%s">%s</a>',
|
476 |
+
get_edit_user_link( $user->ID ),
|
477 |
+
$user->user_login
|
478 |
+
);
|
479 |
+
}
|
480 |
+
} else {
|
481 |
+
foreach ( $nowpuas as $usermeta ) {
|
482 |
+
$user = get_userdata($usermeta->ID);
|
483 |
+
$user_array[] = sprintf(
|
484 |
+
'<a href="%s">%s</a>',
|
485 |
+
get_edit_user_link($user->ID),
|
486 |
+
$user->user_login
|
487 |
+
);
|
488 |
+
}
|
489 |
+
}
|
490 |
+
|
491 |
+
echo implode( ', ', array_filter( $user_array ) );
|
492 |
+
?>
|
493 |
+
</strong>
|
494 |
+
</td>
|
495 |
+
|
496 |
+
<?php
|
497 |
+
break;
|
498 |
+
}
|
499 |
+
}
|
500 |
+
?>
|
501 |
+
|
502 |
+
</tr>
|
503 |
+
|
504 |
+
<?php
|
505 |
+
endwhile;
|
506 |
}
|
507 |
|
508 |
/**
|
522 |
|
523 |
if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) {
|
524 |
$actions['edit'] = sprintf(
|
525 |
+
'<a href="%s">%s</a>',
|
526 |
+
get_edit_post_link( $post->ID, true ),
|
527 |
+
__( 'Edit', 'one-user-avatar' )
|
528 |
+
);
|
529 |
}
|
530 |
|
531 |
if ( current_user_can( 'delete_post', $post->ID ) ) {
|
532 |
if ( $this->is_trash ) {
|
533 |
$actions['untrash'] = sprintf(
|
534 |
+
'<a class="submitdelete" href="%s">%s</a>',
|
535 |
+
wp_nonce_url( sprintf( 'post.php?action=untrash&post=%s', $post->ID ), 'untrash-post_' . $post->ID ),
|
536 |
+
__( 'Restore', 'one-user-avatar' )
|
537 |
+
);
|
538 |
} elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
|
539 |
$actions['trash'] = sprintf(
|
540 |
+
'<a class="submitdelete" href="%s">%s</a>',
|
541 |
+
wp_nonce_url( sprintf( 'post.php?action=trash&post=%s', $post->ID ), 'trash-post_' . $post->ID),
|
542 |
+
__( 'Trash', 'one-user-avatar' )
|
543 |
+
);
|
544 |
}
|
545 |
|
546 |
if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) {
|
547 |
$delete_ays = ( ! $this->is_trash && ! MEDIA_TRASH ) ? ' onclick="return showNotice.warn();"' : '';
|
548 |
|
549 |
$actions['delete'] = sprintf(
|
550 |
+
'<a class="submitdelete"%s href="%s">%s</a>',
|
551 |
+
$delete_ays,
|
552 |
+
wp_nonce_url( sprintf( 'post.php?action=delete&post=%s', $post->ID ), 'delete-post_'.$post->ID ),
|
553 |
+
__( 'Delete Permanently', 'one-user-avatar' )
|
554 |
+
);
|
555 |
}
|
556 |
}
|
557 |
|
559 |
$title = _draft_or_post_title( $post->post_parent );
|
560 |
|
561 |
$actions['view'] = sprintf(
|
562 |
+
'<a href="%s" title="%s" rel="permalink">%s</a>',
|
563 |
+
get_permalink( $post->ID ),
|
564 |
+
esc_attr( sprintf( __( 'View %s' ), sprintf( '“%s”', $title ) ) ),
|
565 |
+
__( 'View', 'one-user-avatar' )
|
566 |
+
);
|
567 |
}
|
568 |
|
569 |
return $actions;
|
includes/class-wp-user-avatar-resource-manager.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* @copyright 2014-2020 Flippercode
|
13 |
* @copyright 2020-2021 ProfilePress
|
14 |
* @copyright 2021 One Designs
|
15 |
-
* @version 2.3.
|
16 |
*/
|
17 |
|
18 |
class WP_User_Avatar_Resource_Manager {
|
@@ -182,8 +182,8 @@ class WP_User_Avatar_Resource_Manager {
|
|
182 |
// scripts and manipulate the buffer, so we can only provide a warning
|
183 |
if ( defined( 'W3TC' ) && defined( 'WP_DEBUG' ) && WP_DEBUG && ! is_admin() ) {
|
184 |
if ( ! defined( 'DONOTCACHEPAGE' ) ) {
|
185 |
-
|
186 |
-
|
187 |
|
188 |
error_log( sprintf(
|
189 |
/* translators: either wp_footer() or wp_print_footer_scripts() hook. */
|
@@ -221,8 +221,8 @@ class WP_User_Avatar_Resource_Manager {
|
|
221 |
// Once we have the footer scripts, we can modify the buffer and
|
222 |
// move the resources around
|
223 |
if ( $this->wrote_footer ) {
|
224 |
-
|
225 |
-
|
226 |
|
227 |
return $this->buffer;
|
228 |
}
|
@@ -233,8 +233,8 @@ class WP_User_Avatar_Resource_Manager {
|
|
233 |
*/
|
234 |
function shutdown() {
|
235 |
if ( $this->run_shutdown ) {
|
236 |
-
|
237 |
-
|
238 |
}
|
239 |
|
240 |
/**
|
12 |
* @copyright 2014-2020 Flippercode
|
13 |
* @copyright 2020-2021 ProfilePress
|
14 |
* @copyright 2021 One Designs
|
15 |
+
* @version 2.3.0
|
16 |
*/
|
17 |
|
18 |
class WP_User_Avatar_Resource_Manager {
|
182 |
// scripts and manipulate the buffer, so we can only provide a warning
|
183 |
if ( defined( 'W3TC' ) && defined( 'WP_DEBUG' ) && WP_DEBUG && ! is_admin() ) {
|
184 |
if ( ! defined( 'DONOTCACHEPAGE' ) ) {
|
185 |
+
define( 'DONOTCACHEPAGE', true );
|
186 |
+
}
|
187 |
|
188 |
error_log( sprintf(
|
189 |
/* translators: either wp_footer() or wp_print_footer_scripts() hook. */
|
221 |
// Once we have the footer scripts, we can modify the buffer and
|
222 |
// move the resources around
|
223 |
if ( $this->wrote_footer ) {
|
224 |
+
$this->move_resources();
|
225 |
+
}
|
226 |
|
227 |
return $this->buffer;
|
228 |
}
|
233 |
*/
|
234 |
function shutdown() {
|
235 |
if ( $this->run_shutdown ) {
|
236 |
+
echo $this->output_buffer( true );
|
237 |
+
}
|
238 |
}
|
239 |
|
240 |
/**
|
includes/class-wp-user-avatar-setup.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Setup {
|
@@ -30,9 +30,11 @@ class WP_User_Avatar_Setup {
|
|
30 |
* @since 1.9.2
|
31 |
*/
|
32 |
private function _define_constants() {
|
33 |
-
|
34 |
-
|
35 |
-
define( '
|
|
|
|
|
36 |
define( 'WPUA_INC', WPUA_DIR . 'includes' . '/' );
|
37 |
define( 'WPUA_URL', plugin_dir_url( WPUA_FOLDER ) . WPUA_FOLDER . '/' );
|
38 |
define( 'WPUA_ASSETS_URL', WPUA_URL . 'assets'.'/' );
|
@@ -50,20 +52,20 @@ class WP_User_Avatar_Setup {
|
|
50 |
private function _load_wp_includes() {
|
51 |
if ( ! is_admin() ) {
|
52 |
// wp_handle_upload
|
53 |
-
require_once( ABSPATH
|
54 |
|
55 |
-
|
56 |
-
require_once( ABSPATH
|
57 |
|
58 |
-
|
59 |
-
require_once( ABSPATH
|
60 |
|
61 |
// submit_button
|
62 |
-
require_once( ABSPATH
|
63 |
}
|
64 |
|
65 |
// add_screen_option
|
66 |
-
require_once(
|
67 |
}
|
68 |
|
69 |
/**
|
@@ -93,13 +95,13 @@ class WP_User_Avatar_Setup {
|
|
93 |
}
|
94 |
|
95 |
function wp_user_avatar_setup() {
|
96 |
-
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
-
|
103 |
}
|
104 |
|
105 |
/**
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Setup {
|
30 |
* @since 1.9.2
|
31 |
*/
|
32 |
private function _define_constants() {
|
33 |
+
$_file_ = One_User_Avatar::plugin_file_path();
|
34 |
+
|
35 |
+
define( 'WPUA_VERSION', '2.3.0' );
|
36 |
+
define( 'WPUA_FOLDER', basename( dirname( $_file_ ) ) );
|
37 |
+
define( 'WPUA_DIR', plugin_dir_path( $_file_ ) );
|
38 |
define( 'WPUA_INC', WPUA_DIR . 'includes' . '/' );
|
39 |
define( 'WPUA_URL', plugin_dir_url( WPUA_FOLDER ) . WPUA_FOLDER . '/' );
|
40 |
define( 'WPUA_ASSETS_URL', WPUA_URL . 'assets'.'/' );
|
52 |
private function _load_wp_includes() {
|
53 |
if ( ! is_admin() ) {
|
54 |
// wp_handle_upload
|
55 |
+
require_once( ABSPATH.'wp-admin/includes/file.php' );
|
56 |
|
57 |
+
// wp_generate_attachment_metadata
|
58 |
+
require_once( ABSPATH.'wp-admin/includes/image.php' );
|
59 |
|
60 |
+
// image_add_caption
|
61 |
+
require_once( ABSPATH.'wp-admin/includes/media.php' );
|
62 |
|
63 |
// submit_button
|
64 |
+
require_once( ABSPATH.'wp-admin/includes/template.php' );
|
65 |
}
|
66 |
|
67 |
// add_screen_option
|
68 |
+
require_once(ABSPATH.'wp-admin/includes/screen.php');
|
69 |
}
|
70 |
|
71 |
/**
|
95 |
}
|
96 |
|
97 |
function wp_user_avatar_setup() {
|
98 |
+
global $wp_user_avatar_setup;
|
99 |
|
100 |
+
if ( ! isset( $wp_user_avatar_setup ) ) {
|
101 |
+
$wp_user_avatar_setup = new WP_User_Avatar_Setup();
|
102 |
+
}
|
103 |
|
104 |
+
return $wp_user_avatar_setup;
|
105 |
}
|
106 |
|
107 |
/**
|
includes/class-wp-user-avatar-shortcode.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Shortcode {
|
@@ -67,22 +67,22 @@ class WP_User_Avatar_Shortcode {
|
|
67 |
|
68 |
// Set shortcode attributes
|
69 |
extract( shortcode_atts( array(
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
|
77 |
// Find user by ID, login, slug, or e-mail address
|
78 |
if ( ! empty( $user ) ) {
|
79 |
if ( 'current' == $user ) {
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
} else {
|
87 |
// Find author's name if id_or_email is empty
|
88 |
$author_name = get_query_var( 'author_name' );
|
@@ -135,12 +135,12 @@ class WP_User_Avatar_Shortcode {
|
|
135 |
|
136 |
// Wrap the avatar inside the link
|
137 |
$html = sprintf(
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
} else {
|
145 |
$html = get_wp_user_avatar( $id_or_email, $get_size, $align );
|
146 |
}
|
@@ -260,7 +260,7 @@ class WP_User_Avatar_Shortcode {
|
|
260 |
*/
|
261 |
private function wpua_edit_form($user) {
|
262 |
ob_start();
|
263 |
-
|
264 |
|
265 |
<form id="wpua-edit-<?php echo esc_attr( $user->ID ); ?>" class="wpua-edit" action="" method="post" enctype="multipart/form-data">
|
266 |
<?php do_action('wpua_show_profile', $user); ?>
|
@@ -273,7 +273,7 @@ class WP_User_Avatar_Shortcode {
|
|
273 |
<?php submit_button( __( 'Update Profile', 'one-user-avatar' ) ); ?>
|
274 |
</form>
|
275 |
|
276 |
-
|
277 |
|
278 |
return ob_get_clean();
|
279 |
}
|
@@ -286,10 +286,10 @@ class WP_User_Avatar_Shortcode {
|
|
286 |
function wpua_shortcode_init() {
|
287 |
global $wpua_shortcode;
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
|
293 |
-
|
294 |
}
|
295 |
add_action( 'init', 'wpua_shortcode_init' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Shortcode {
|
67 |
|
68 |
// Set shortcode attributes
|
69 |
extract( shortcode_atts( array(
|
70 |
+
'user' => '',
|
71 |
+
'size' => '96',
|
72 |
+
'align' => '',
|
73 |
+
'link' => '',
|
74 |
+
'target' => '',
|
75 |
+
), $atts ) );
|
76 |
|
77 |
// Find user by ID, login, slug, or e-mail address
|
78 |
if ( ! empty( $user ) ) {
|
79 |
if ( 'current' == $user ) {
|
80 |
+
$user = wp_get_current_user();
|
81 |
+
} else {
|
82 |
+
$user = is_numeric( $user ) ? get_user_by( 'id', $user ) : get_user_by('login', $user);
|
83 |
+
$user = empty( $user ) ? get_user_by( 'slug', $user ) : $user;
|
84 |
+
$user = empty( $user ) ? get_user_by( 'email', $user ) : $user;
|
85 |
+
}
|
86 |
} else {
|
87 |
// Find author's name if id_or_email is empty
|
88 |
$author_name = get_query_var( 'author_name' );
|
135 |
|
136 |
// Wrap the avatar inside the link
|
137 |
$html = sprintf(
|
138 |
+
'<a href="%s" class="wp-user-avatar-link wp-user-avatar-%s"%s>%s</a>',
|
139 |
+
esc_attr( $link ),
|
140 |
+
esc_attr( $link_class ),
|
141 |
+
$target_link,
|
142 |
+
get_wp_user_avatar( $id_or_email, $get_size, $align )
|
143 |
+
);
|
144 |
} else {
|
145 |
$html = get_wp_user_avatar( $id_or_email, $get_size, $align );
|
146 |
}
|
260 |
*/
|
261 |
private function wpua_edit_form($user) {
|
262 |
ob_start();
|
263 |
+
?>
|
264 |
|
265 |
<form id="wpua-edit-<?php echo esc_attr( $user->ID ); ?>" class="wpua-edit" action="" method="post" enctype="multipart/form-data">
|
266 |
<?php do_action('wpua_show_profile', $user); ?>
|
273 |
<?php submit_button( __( 'Update Profile', 'one-user-avatar' ) ); ?>
|
274 |
</form>
|
275 |
|
276 |
+
<?php
|
277 |
|
278 |
return ob_get_clean();
|
279 |
}
|
286 |
function wpua_shortcode_init() {
|
287 |
global $wpua_shortcode;
|
288 |
|
289 |
+
if ( ! isset( $wpua_shortcode ) ) {
|
290 |
+
$wpua_shortcode = new WP_User_Avatar_Shortcode();
|
291 |
+
}
|
292 |
|
293 |
+
return $wpua_shortcode;
|
294 |
}
|
295 |
add_action( 'init', 'wpua_shortcode_init' );
|
includes/class-wp-user-avatar-subscriber.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Subscriber {
|
@@ -60,9 +60,9 @@ class WP_User_Avatar_Subscriber {
|
|
60 |
|
61 |
$user_roles = get_option( $wp_user_roles );
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
|
67 |
update_option( $wp_user_roles, $user_roles );
|
68 |
}
|
@@ -75,10 +75,10 @@ class WP_User_Avatar_Subscriber {
|
|
75 |
function wpua_subscriber_init() {
|
76 |
global $wpua_subscriber;
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
|
82 |
-
|
83 |
}
|
84 |
add_action( 'init', 'wpua_subscriber_init' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Subscriber {
|
60 |
|
61 |
$user_roles = get_option( $wp_user_roles );
|
62 |
|
63 |
+
if ( isset( $user_roles['subscriber']['capabilities']['edit_posts'] ) ) {
|
64 |
+
unset( $user_roles['subscriber']['capabilities']['edit_posts'] );
|
65 |
+
}
|
66 |
|
67 |
update_option( $wp_user_roles, $user_roles );
|
68 |
}
|
75 |
function wpua_subscriber_init() {
|
76 |
global $wpua_subscriber;
|
77 |
|
78 |
+
if ( ! isset( $wpua_subscriber ) ) {
|
79 |
+
$wpua_subscriber = new WP_User_Avatar_Subscriber();
|
80 |
+
}
|
81 |
|
82 |
+
return $wpua_subscriber;
|
83 |
}
|
84 |
add_action( 'init', 'wpua_subscriber_init' );
|
includes/class-wp-user-avatar-update.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Update {
|
@@ -93,7 +93,7 @@ class WP_User_Avatar_Update {
|
|
93 |
foreach ( $users as $user ) {
|
94 |
$wpua = get_user_meta( $user->ID, 'wp_user_avatar', true );
|
95 |
|
96 |
-
|
97 |
update_user_meta( $user->ID, $wpua_metakey, $wpua );
|
98 |
delete_user_meta( $user->ID, 'wp_user_avatar' );
|
99 |
}
|
@@ -120,11 +120,11 @@ class WP_User_Avatar_Update {
|
|
120 |
$wpua_metakey = $wpdb->get_blog_prefix( $blog_id ) . 'user_avatar';
|
121 |
|
122 |
$wpuas = $wpdb->get_results( $wpdb->prepare(
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
|
129 |
foreach( $wpuas as $usermeta ) {
|
130 |
add_post_meta( $usermeta->meta_value, '_wp_attachment_wp_user_avatar', $usermeta->user_id );
|
@@ -141,10 +141,10 @@ class WP_User_Avatar_Update {
|
|
141 |
function wpua_update_init() {
|
142 |
global $wpua_update;
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
|
148 |
-
|
149 |
}
|
150 |
add_action('init', 'wpua_update_init');
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Update {
|
93 |
foreach ( $users as $user ) {
|
94 |
$wpua = get_user_meta( $user->ID, 'wp_user_avatar', true );
|
95 |
|
96 |
+
if ( ! empty( $wpua ) ) {
|
97 |
update_user_meta( $user->ID, $wpua_metakey, $wpua );
|
98 |
delete_user_meta( $user->ID, 'wp_user_avatar' );
|
99 |
}
|
120 |
$wpua_metakey = $wpdb->get_blog_prefix( $blog_id ) . 'user_avatar';
|
121 |
|
122 |
$wpuas = $wpdb->get_results( $wpdb->prepare(
|
123 |
+
"SELECT * FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != %d AND meta_value != %d",
|
124 |
+
$wpua_metakey,
|
125 |
+
0,
|
126 |
+
''
|
127 |
+
) );
|
128 |
|
129 |
foreach( $wpuas as $usermeta ) {
|
130 |
add_post_meta( $usermeta->meta_value, '_wp_attachment_wp_user_avatar', $usermeta->user_id );
|
141 |
function wpua_update_init() {
|
142 |
global $wpua_update;
|
143 |
|
144 |
+
if ( ! isset( $wpua_update ) ) {
|
145 |
+
$wpua_update = new WP_User_Avatar_Update();
|
146 |
+
}
|
147 |
|
148 |
+
return $wpua_update;
|
149 |
}
|
150 |
add_action('init', 'wpua_update_init');
|
includes/class-wp-user-avatar-widget.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
@@ -21,13 +21,13 @@ class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
|
21 |
*/
|
22 |
public function __construct() {
|
23 |
$widget_ops = array(
|
24 |
-
|
25 |
-
|
26 |
/* translators: [avatar_upload] shortcode */
|
27 |
__( 'Insert %s', 'one-user-avatar' ),
|
28 |
'[avatar_upload]'
|
29 |
),
|
30 |
-
|
31 |
|
32 |
parent::__construct( 'wp_user_avatar_profile', __( 'One User Avatar', 'one-user-avatar' ), $widget_ops );
|
33 |
}
|
@@ -76,7 +76,7 @@ class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
|
76 |
// Get [avatar_upload] shortcode
|
77 |
echo $wpua_shortcode->wpua_edit_shortcode( '' );
|
78 |
|
79 |
-
|
80 |
remove_filter('wpua_profile_title', '__return_null');
|
81 |
}
|
82 |
}
|
@@ -89,10 +89,10 @@ class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
|
89 |
*/
|
90 |
public function form( $instance ) {
|
91 |
$instance = wp_parse_args( (array) $instance, array(
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
<p>
|
98 |
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>">
|
@@ -113,7 +113,7 @@ class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
|
113 |
<?php _e( 'Automatically add paragraphs', 'one-user-avatar' ); ?>
|
114 |
</label>
|
115 |
</p>
|
116 |
-
|
117 |
}
|
118 |
|
119 |
/**
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar_Profile_Widget extends WP_Widget {
|
21 |
*/
|
22 |
public function __construct() {
|
23 |
$widget_ops = array(
|
24 |
+
'classname' => 'widget_wp_user_avatar',
|
25 |
+
'description' => sprintf(
|
26 |
/* translators: [avatar_upload] shortcode */
|
27 |
__( 'Insert %s', 'one-user-avatar' ),
|
28 |
'[avatar_upload]'
|
29 |
),
|
30 |
+
);
|
31 |
|
32 |
parent::__construct( 'wp_user_avatar_profile', __( 'One User Avatar', 'one-user-avatar' ), $widget_ops );
|
33 |
}
|
76 |
// Get [avatar_upload] shortcode
|
77 |
echo $wpua_shortcode->wpua_edit_shortcode( '' );
|
78 |
|
79 |
+
// Add back profile title
|
80 |
remove_filter('wpua_profile_title', '__return_null');
|
81 |
}
|
82 |
}
|
89 |
*/
|
90 |
public function form( $instance ) {
|
91 |
$instance = wp_parse_args( (array) $instance, array(
|
92 |
+
'title' => '',
|
93 |
+
'text' => '',
|
94 |
+
) );
|
95 |
+
?>
|
96 |
|
97 |
<p>
|
98 |
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>">
|
113 |
<?php _e( 'Automatically add paragraphs', 'one-user-avatar' ); ?>
|
114 |
</label>
|
115 |
</p>
|
116 |
+
<?php
|
117 |
}
|
118 |
|
119 |
/**
|
includes/class-wp-user-avatar.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar {
|
@@ -72,15 +72,15 @@ class WP_User_Avatar {
|
|
72 |
|
73 |
/**
|
74 |
* Avatars have no parent posts
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
*/
|
85 |
public function wpua_media_view_settings( $settings ) {
|
86 |
global $post, $wpua_is_profile;
|
@@ -456,14 +456,14 @@ class WP_User_Avatar {
|
|
456 |
*/
|
457 |
public static function wpua_action_process_option_update( $user_id ) {
|
458 |
global $blog_id,
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
|
468 |
// Check if user has publish_posts capability
|
469 |
if ( $wp_user_avatar->wpua_is_author_or_above() ) {
|
@@ -498,7 +498,7 @@ class WP_User_Avatar {
|
|
498 |
$avatars_wp_query = new WP_Query( $q );
|
499 |
|
500 |
while( $avatars_wp_query->have_posts() ) {
|
501 |
-
|
502 |
|
503 |
wp_delete_attachment( $post->ID );
|
504 |
}
|
@@ -518,8 +518,8 @@ class WP_User_Avatar {
|
|
518 |
$name = isset( $file['name'] ) ? sanitize_file_name( $file['name'] ) : '';
|
519 |
$type = isset( $file['type'] ) ? sanitize_mime_type( $file['type'] ) : '';
|
520 |
$file = wp_handle_upload( $file, array(
|
521 |
-
|
522 |
-
|
523 |
|
524 |
if ( isset( $file['url'] ) ) {
|
525 |
if ( ! empty( $type ) && preg_match( '/(jpe?g|gif|png)$/i' , $type ) ) {
|
@@ -587,10 +587,10 @@ class WP_User_Avatar {
|
|
587 |
$avatars_wp_query = new WP_Query( $q );
|
588 |
|
589 |
while ( $avatars_wp_query->have_posts() ){
|
590 |
-
|
591 |
|
592 |
wp_delete_attachment($post->ID);
|
593 |
-
|
594 |
|
595 |
wp_reset_query();
|
596 |
|
@@ -639,11 +639,11 @@ class WP_User_Avatar {
|
|
639 |
*/
|
640 |
public function wpua_is_author_or_above() {
|
641 |
$is_author_or_above = (
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
|
648 |
/**
|
649 |
* Filter Author privilege check
|
@@ -661,10 +661,10 @@ class WP_User_Avatar {
|
|
661 |
function wpua_init() {
|
662 |
global $wp_user_avatar;
|
663 |
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
|
668 |
-
|
669 |
}
|
670 |
add_action( 'init', 'wpua_init' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
class WP_User_Avatar {
|
72 |
|
73 |
/**
|
74 |
* Avatars have no parent posts
|
75 |
+
*
|
76 |
+
* @param array $settings
|
77 |
+
*
|
78 |
+
* @return array
|
79 |
+
* @uses object $post
|
80 |
+
* @uses bool $wpua_is_profile
|
81 |
+
* @uses is_admin()
|
82 |
+
* array $settings
|
83 |
+
* @since 1.8.4
|
84 |
*/
|
85 |
public function wpua_media_view_settings( $settings ) {
|
86 |
global $post, $wpua_is_profile;
|
456 |
*/
|
457 |
public static function wpua_action_process_option_update( $user_id ) {
|
458 |
global $blog_id,
|
459 |
+
$post,
|
460 |
+
$wpdb,
|
461 |
+
$wp_user_avatar,
|
462 |
+
$wpua_resize_crop,
|
463 |
+
$wpua_resize_h,
|
464 |
+
$wpua_resize_upload,
|
465 |
+
$wpua_resize_w,
|
466 |
+
$wpua_admin;
|
467 |
|
468 |
// Check if user has publish_posts capability
|
469 |
if ( $wp_user_avatar->wpua_is_author_or_above() ) {
|
498 |
$avatars_wp_query = new WP_Query( $q );
|
499 |
|
500 |
while( $avatars_wp_query->have_posts() ) {
|
501 |
+
$avatars_wp_query->the_post();
|
502 |
|
503 |
wp_delete_attachment( $post->ID );
|
504 |
}
|
518 |
$name = isset( $file['name'] ) ? sanitize_file_name( $file['name'] ) : '';
|
519 |
$type = isset( $file['type'] ) ? sanitize_mime_type( $file['type'] ) : '';
|
520 |
$file = wp_handle_upload( $file, array(
|
521 |
+
'test_form' => false,
|
522 |
+
) );
|
523 |
|
524 |
if ( isset( $file['url'] ) ) {
|
525 |
if ( ! empty( $type ) && preg_match( '/(jpe?g|gif|png)$/i' , $type ) ) {
|
587 |
$avatars_wp_query = new WP_Query( $q );
|
588 |
|
589 |
while ( $avatars_wp_query->have_posts() ){
|
590 |
+
$avatars_wp_query->the_post();
|
591 |
|
592 |
wp_delete_attachment($post->ID);
|
593 |
+
}
|
594 |
|
595 |
wp_reset_query();
|
596 |
|
639 |
*/
|
640 |
public function wpua_is_author_or_above() {
|
641 |
$is_author_or_above = (
|
642 |
+
current_user_can( 'edit_published_posts' ) &&
|
643 |
+
current_user_can( 'upload_files' ) &&
|
644 |
+
current_user_can( 'publish_posts') &&
|
645 |
+
current_user_can( 'delete_published_posts')
|
646 |
+
) ? true : false;
|
647 |
|
648 |
/**
|
649 |
* Filter Author privilege check
|
661 |
function wpua_init() {
|
662 |
global $wp_user_avatar;
|
663 |
|
664 |
+
if ( ! isset( $wp_user_avatar ) ) {
|
665 |
+
$wp_user_avatar = new WP_User_Avatar();
|
666 |
+
}
|
667 |
|
668 |
+
return $wp_user_avatar;
|
669 |
}
|
670 |
add_action( 'init', 'wpua_init' );
|
includes/wpua-functions.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -98,18 +98,18 @@ function wpua_do_before_avatar() {
|
|
98 |
* @param string $wpua_profile_title
|
99 |
*/
|
100 |
$wpua_profile_title = apply_filters( 'wpua_profile_title', $wpua_profile_title );
|
101 |
-
|
102 |
|
103 |
<?php if ( class_exists( 'bbPress' ) && bbp_is_edit() ) :
|
104 |
-
|
105 |
-
|
106 |
<h2 class="entry-title"><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></h2>
|
107 |
|
108 |
<fieldset class="bbp-form">
|
109 |
<legend><?php _e( 'Image', 'one-user-avatar' ); ?></legend>
|
110 |
<?php elseif( class_exists( 'WPUF_Main' ) && wpuf_has_shortcode( 'wpuf_editprofile' ) ) :
|
111 |
-
|
112 |
-
|
113 |
<fieldset>
|
114 |
<legend><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></legend>
|
115 |
|
@@ -119,8 +119,8 @@ function wpua_do_before_avatar() {
|
|
119 |
|
120 |
<td>
|
121 |
<?php else :
|
122 |
-
|
123 |
-
|
124 |
<div class="wpua-edit-container">
|
125 |
<?php echo $wpua_profile_title; ?>
|
126 |
<?php endif; ?>
|
@@ -136,21 +136,21 @@ add_action( 'wpua_before_avatar', 'wpua_do_before_avatar' );
|
|
136 |
* @uses wpuf_has_shortcode()
|
137 |
*/
|
138 |
function wpua_do_after_avatar() {
|
139 |
-
|
140 |
<?php if ( class_exists( 'bbPress' ) && bbp_is_edit() ) :
|
141 |
-
|
142 |
-
|
143 |
</fieldset>
|
144 |
<?php elseif ( class_exists( 'WPUF_Main' ) && wpuf_has_shortcode( 'wpuf_editprofile' ) ) :
|
145 |
-
|
146 |
-
|
147 |
</td>
|
148 |
</tr>
|
149 |
</table>
|
150 |
</fieldset>
|
151 |
<?php else :
|
152 |
-
|
153 |
-
|
154 |
</div>
|
155 |
<?php endif; ?>
|
156 |
<?php
|
@@ -180,7 +180,7 @@ function wpua_after_avatar_admin() {
|
|
180 |
* @since 1.9.4
|
181 |
*/
|
182 |
function wpua_do_before_avatar_admin() {
|
183 |
-
|
184 |
<table class="form-table">
|
185 |
<tr>
|
186 |
<th><label for="wp_user_avatar"><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></label></th>
|
@@ -195,7 +195,7 @@ add_action( 'wpua_before_avatar_admin', 'wpua_do_before_avatar_admin' );
|
|
195 |
* @since 1.9.4
|
196 |
*/
|
197 |
function wpua_do_after_avatar_admin() {
|
198 |
-
|
199 |
</td>
|
200 |
</tr>
|
201 |
</table>
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
98 |
* @param string $wpua_profile_title
|
99 |
*/
|
100 |
$wpua_profile_title = apply_filters( 'wpua_profile_title', $wpua_profile_title );
|
101 |
+
?>
|
102 |
|
103 |
<?php if ( class_exists( 'bbPress' ) && bbp_is_edit() ) :
|
104 |
+
// Add to bbPress profile with same style
|
105 |
+
?>
|
106 |
<h2 class="entry-title"><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></h2>
|
107 |
|
108 |
<fieldset class="bbp-form">
|
109 |
<legend><?php _e( 'Image', 'one-user-avatar' ); ?></legend>
|
110 |
<?php elseif( class_exists( 'WPUF_Main' ) && wpuf_has_shortcode( 'wpuf_editprofile' ) ) :
|
111 |
+
// Add to WP User Frontend profile with same style
|
112 |
+
?>
|
113 |
<fieldset>
|
114 |
<legend><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></legend>
|
115 |
|
119 |
|
120 |
<td>
|
121 |
<?php else :
|
122 |
+
// Add to profile without table
|
123 |
+
?>
|
124 |
<div class="wpua-edit-container">
|
125 |
<?php echo $wpua_profile_title; ?>
|
126 |
<?php endif; ?>
|
136 |
* @uses wpuf_has_shortcode()
|
137 |
*/
|
138 |
function wpua_do_after_avatar() {
|
139 |
+
?>
|
140 |
<?php if ( class_exists( 'bbPress' ) && bbp_is_edit() ) :
|
141 |
+
// Add to bbPress profile with same style
|
142 |
+
?>
|
143 |
</fieldset>
|
144 |
<?php elseif ( class_exists( 'WPUF_Main' ) && wpuf_has_shortcode( 'wpuf_editprofile' ) ) :
|
145 |
+
// Add to WP User Frontend profile with same style
|
146 |
+
?>
|
147 |
</td>
|
148 |
</tr>
|
149 |
</table>
|
150 |
</fieldset>
|
151 |
<?php else :
|
152 |
+
// Add to profile without table
|
153 |
+
?>
|
154 |
</div>
|
155 |
<?php endif; ?>
|
156 |
<?php
|
180 |
* @since 1.9.4
|
181 |
*/
|
182 |
function wpua_do_before_avatar_admin() {
|
183 |
+
?>
|
184 |
<table class="form-table">
|
185 |
<tr>
|
186 |
<th><label for="wp_user_avatar"><?php _e( 'Profile Picture', 'one-user-avatar' ); ?></label></th>
|
195 |
* @since 1.9.4
|
196 |
*/
|
197 |
function wpua_do_after_avatar_admin() {
|
198 |
+
?>
|
199 |
</td>
|
200 |
</tr>
|
201 |
</table>
|
includes/wpua-globals.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -53,7 +53,7 @@ global $avatar_default,
|
|
53 |
$wpua_hash_gravatar = get_option( 'wpua_hash_gravatar' );
|
54 |
|
55 |
if ( false != $wpua_hash_gravatar ) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
// Default avatar name
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
53 |
$wpua_hash_gravatar = get_option( 'wpua_hash_gravatar' );
|
54 |
|
55 |
if ( false != $wpua_hash_gravatar ) {
|
56 |
+
$wpua_hash_gravatar = maybe_unserialize( $wpua_hash_gravatar );
|
57 |
}
|
58 |
|
59 |
// Default avatar name
|
includes/wpua-media-page.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -60,14 +60,14 @@ $wp_list_table->prepare_items();
|
|
60 |
|
61 |
<?php if ( ! empty( $_REQUEST['s'] ) ) : ?>
|
62 |
<span class="subtitle">
|
63 |
-
|
64 |
printf(
|
65 |
/* translators: search query */
|
66 |
__( 'Search results for %s','one-user-avatar' ),
|
67 |
sprintf( '“%s”', get_search_query() )
|
68 |
);
|
69 |
?>
|
70 |
-
|
71 |
<?php endif; ?>
|
72 |
</h2>
|
73 |
|
@@ -76,19 +76,19 @@ $wp_list_table->prepare_items();
|
|
76 |
|
77 |
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) {
|
78 |
$message = sprintf(
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] );
|
88 |
}
|
89 |
-
|
90 |
|
91 |
-
|
92 |
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
93 |
<?php endif; ?>
|
94 |
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
60 |
|
61 |
<?php if ( ! empty( $_REQUEST['s'] ) ) : ?>
|
62 |
<span class="subtitle">
|
63 |
+
<?php
|
64 |
printf(
|
65 |
/* translators: search query */
|
66 |
__( 'Search results for %s','one-user-avatar' ),
|
67 |
sprintf( '“%s”', get_search_query() )
|
68 |
);
|
69 |
?>
|
70 |
+
</span>
|
71 |
<?php endif; ?>
|
72 |
</h2>
|
73 |
|
76 |
|
77 |
if ( ! empty( $_GET['deleted'] ) && $deleted = absint( $_GET['deleted'] ) ) {
|
78 |
$message = sprintf(
|
79 |
+
_n(
|
80 |
+
'Media attachment permanently deleted.',
|
81 |
+
'%d media attachments permanently deleted.',
|
82 |
+
$deleted
|
83 |
+
),
|
84 |
+
number_format_i18n( $_GET['deleted'] )
|
85 |
+
);
|
86 |
|
87 |
$_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] );
|
88 |
}
|
89 |
+
?>
|
90 |
|
91 |
+
<?php if ( ! empty( $message ) ) : ?>
|
92 |
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
93 |
<?php endif; ?>
|
94 |
|
includes/wpua-options-page.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -66,260 +66,260 @@ $wpua_options_page_title = apply_filters( 'wpua_options_page_title', $wpua_optio
|
|
66 |
<h2><?php echo $wpua_options_page_title; ?></h2>
|
67 |
|
68 |
<table>
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
/* translators: file name */
|
178 |
__( '%s exceeds the maximum upload size for this site.', 'one-user-avatar' ),
|
179 |
''
|
180 |
); ?></span>
|
181 |
|
182 |
-
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
/* translators: file size in KB */
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
</div>
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
66 |
<h2><?php echo $wpua_options_page_title; ?></h2>
|
67 |
|
68 |
<table>
|
69 |
+
<tr valign="top">
|
70 |
+
<td align="top">
|
71 |
+
<form method="post" action="<?php echo admin_url('options.php'); ?>">
|
72 |
+
|
73 |
+
<?php settings_fields('wpua-settings-group'); ?>
|
74 |
+
|
75 |
+
<?php do_settings_fields('wpua-settings-group', ""); ?>
|
76 |
+
|
77 |
+
<table class="form-table">
|
78 |
+
<?php
|
79 |
+
// Format settings in table rows
|
80 |
+
$wpua_before_settings = array();
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Filter settings at beginning of table
|
84 |
+
* @since 1.9
|
85 |
+
* @param array $wpua_before_settings
|
86 |
+
*/
|
87 |
+
$wpua_before_settings = apply_filters( 'wpua_before_settings', $wpua_before_settings );
|
88 |
+
|
89 |
+
echo implode( '', $wpua_before_settings );
|
90 |
+
?>
|
91 |
+
|
92 |
+
<tr valign="top">
|
93 |
+
<th scope="row"><?php _e( 'Settings', 'one-user-avatar' ); ?></th>
|
94 |
+
|
95 |
+
<td>
|
96 |
+
<?php
|
97 |
+
// Format settings in fieldsets
|
98 |
+
$wpua_settings = array();
|
99 |
+
|
100 |
+
$wpua_settings['tinymce'] = sprintf(
|
101 |
+
'<fieldset>
|
102 |
+
<label for="wp_user_avatar_tinymce">
|
103 |
+
<input name="wp_user_avatar_tinymce" type="checkbox" id="wp_user_avatar_tinymce" value="1" %s />
|
104 |
+
%s
|
105 |
+
</label>
|
106 |
+
</fieldset>',
|
107 |
+
checked( $wpua_tinymce, true, false ),
|
108 |
+
__( 'Add avatar button to Visual Editor', 'one-user-avatar' )
|
109 |
+
);
|
110 |
+
|
111 |
+
$wpua_settings['upload'] = sprintf(
|
112 |
+
'<fieldset>
|
113 |
+
<label for="wp_user_avatar_allow_upload">
|
114 |
+
<input name="wp_user_avatar_allow_upload" type="checkbox" id="wp_user_avatar_allow_upload" value="1" %s />
|
115 |
+
%s
|
116 |
+
</label>
|
117 |
+
</fieldset>',
|
118 |
+
checked( $wpua_allow_upload, true, false ),
|
119 |
+
__( 'Allow Contributors & Subscribers to upload avatars', 'one-user-avatar' )
|
120 |
+
);
|
121 |
+
|
122 |
+
$wpua_settings['gravatar'] = sprintf(
|
123 |
+
'<fieldset>
|
124 |
+
<label for="wp_user_avatar_disable_gravatar">
|
125 |
+
<input name="wp_user_avatar_disable_gravatar" type="checkbox" id="wp_user_avatar_disable_gravatar" value="1" %s />
|
126 |
+
%s
|
127 |
+
</label>
|
128 |
+
</fieldset>',
|
129 |
+
checked( $wpua_disable_gravatar, true, false ),
|
130 |
+
__( 'Disable Gravatar and use only local avatars', 'one-user-avatar' )
|
131 |
+
);
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Filter main settings
|
135 |
+
* @since 1.9
|
136 |
+
* @param array $wpua_settings
|
137 |
+
*/
|
138 |
+
$wpua_settings = apply_filters( 'wpua_settings', $wpua_settings );
|
139 |
+
|
140 |
+
echo implode( '', $wpua_settings );
|
141 |
+
?>
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
</table>
|
145 |
+
|
146 |
+
<?php
|
147 |
+
// Format settings in table
|
148 |
+
$wpua_subscriber_settings = array();
|
149 |
+
|
150 |
+
ob_start();
|
151 |
+
?>
|
152 |
+
|
153 |
+
<div id="wpua-contributors-subscribers"<?php echo $hide_size; ?>>
|
154 |
+
<table class="form-table">
|
155 |
+
<tr valign="top">
|
156 |
+
<th scope="row">
|
157 |
+
<label for="wp_user_avatar_upload_size_limit">'
|
158 |
+
<?php _e( 'Upload Size Limit', 'one-user-avatar' ); ?>
|
159 |
+
<?php _e( '(only for Contributors & Subscribers)', 'one-user-avatar' ); ?>
|
160 |
+
</label>
|
161 |
+
</th>
|
162 |
+
|
163 |
+
<td>
|
164 |
+
<fieldset>
|
165 |
+
<legend class="screen-reader-text">
|
166 |
+
<span>
|
167 |
+
<?php _e( 'Upload Size Limit', 'one-user-avatar' ); ?>
|
168 |
+
<?php _e( '(only for Contributors & Subscribers)', 'one-user-avatar' ); ?>
|
169 |
+
</span>
|
170 |
+
</legend>
|
171 |
+
|
172 |
+
<input name="wp_user_avatar_upload_size_limit" type="text" id="wp_user_avatar_upload_size_limit" value="<?php echo esc_attr( $wpua_upload_size_limit ); ?>" class="regular-text" />
|
173 |
+
|
174 |
+
<span id="wpua-readable-size"><?php echo $wpua_upload_size_limit_with_units; ?></span>
|
175 |
+
|
176 |
+
<span id="wpua-readable-size-error"><?php printf(
|
177 |
/* translators: file name */
|
178 |
__( '%s exceeds the maximum upload size for this site.', 'one-user-avatar' ),
|
179 |
''
|
180 |
); ?></span>
|
181 |
|
182 |
+
<div id="wpua-slider"></div>
|
183 |
|
184 |
+
<span class="description">
|
185 |
+
<?php
|
186 |
+
printf(
|
187 |
/* translators: file size in KB */
|
188 |
+
__( 'Maximum upload file size: %s.', 'one-user-avatar' ),
|
189 |
+
esc_html( wp_max_upload_size() ) . esc_html( sprintf( ' bytes (%s)', $upload_size_limit_with_units ) )
|
190 |
+
);
|
191 |
+
?>
|
192 |
+
</span>
|
193 |
+
</fieldset>
|
194 |
+
|
195 |
+
<fieldset>
|
196 |
+
<label for="wp_user_avatar_edit_avatar">
|
197 |
+
<input name="wp_user_avatar_edit_avatar" type="checkbox" id="wp_user_avatar_edit_avatar" value="1" <?php checked( $wpua_edit_avatar ); ?> />
|
198 |
+
|
199 |
+
<?php _e( 'Allow users to edit avatars', 'one-user-avatar' ); ?>
|
200 |
+
</label>
|
201 |
+
</fieldset>
|
202 |
+
|
203 |
+
<fieldset>
|
204 |
+
<label for="wp_user_avatar_resize_upload">
|
205 |
+
<input name="wp_user_avatar_resize_upload" type="checkbox" id="wp_user_avatar_resize_upload" value="1" <?php checked( $wpua_resize_upload ); ?> />
|
206 |
+
|
207 |
+
<?php _e( 'Resize avatars on upload', 'one-user-avatar' ); ?>
|
208 |
+
</label>
|
209 |
+
</fieldset>
|
210 |
+
|
211 |
+
<fieldset id="wpua-resize-sizes"'.$hide_resize.'>
|
212 |
+
<label for="wp_user_avatar_resize_w"><?php _e( 'Width', 'one-user-avatar' ); ?></label>
|
213 |
+
|
214 |
+
<input name="wp_user_avatar_resize_w" type="number" step="1" min="0" id="wp_user_avatar_resize_w" value="<?php echo esc_attr( get_option( 'wp_user_avatar_resize_w' ) ); ?>" class="small-text" />
|
215 |
+
|
216 |
+
<label for="wp_user_avatar_resize_h"><?php _e( 'Height', 'one-user-avatar' ); ?></label>
|
217 |
+
|
218 |
+
<input name="wp_user_avatar_resize_h" type="number" step="1" min="0" id="wp_user_avatar_resize_h" value="<?php echo esc_attr( get_option( 'wp_user_avatar_resize_h' ) ); ?>" class="small-text" />
|
219 |
+
|
220 |
+
<br />
|
221 |
+
|
222 |
+
<input name="wp_user_avatar_resize_crop" type="checkbox" id="wp_user_avatar_resize_crop" value="1" <?php checked( '1', $wpua_resize_crop ); ?> />
|
223 |
+
|
224 |
+
<label for="wp_user_avatar_resize_crop"><?php _e( 'Crop avatars to exact dimensions', 'one-user-avatar' ); ?></label>
|
225 |
+
</fieldset>
|
226 |
+
</td>
|
227 |
+
</tr>
|
228 |
+
</table>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<?php
|
232 |
+
$wpua_subscriber_settings['subscriber-settings'] = ob_get_clean();
|
233 |
+
|
234 |
+
/**
|
235 |
+
* Filter Subscriber settings
|
236 |
+
* @since 1.9
|
237 |
+
* @param array $wpua_subscriber_settings
|
238 |
+
*/
|
239 |
+
$wpua_subscriber_settings = apply_filters( 'wpua_subscriber_settings', $wpua_subscriber_settings );
|
240 |
+
|
241 |
+
echo implode( '', $wpua_subscriber_settings );
|
242 |
+
?>
|
243 |
+
|
244 |
+
<table class="form-table">
|
245 |
+
<tr valign="top">
|
246 |
+
<th scope="row"><?php _e( 'Avatar Display', 'one-user-avatar' ); ?></th>
|
247 |
+
|
248 |
+
<td>
|
249 |
+
<fieldset>
|
250 |
+
<legend class="screen-reader-text">
|
251 |
+
<span>
|
252 |
+
<?php _e( 'Avatar Display', 'one-user-avatar' ); ?>
|
253 |
+
</span>
|
254 |
+
</legend>
|
255 |
+
|
256 |
+
<label for="show_avatars">
|
257 |
+
<input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( $show_avatars ); ?> />
|
258 |
+
|
259 |
+
<?php _e( 'Show Avatars', 'one-user-avatar' ); ?>
|
260 |
+
</label>
|
261 |
+
</fieldset>
|
262 |
+
</td>
|
263 |
+
</tr>
|
264 |
+
|
265 |
+
<tr valign="top" id="avatar-rating"<?php echo ( 1 === (bool) $wpua_disable_gravatar ) ? ' style="display:none"' : '' ?>>
|
266 |
+
<th scope="row"><?php _e( 'Maximum Rating', 'one-user-avatar' ); ?></th>
|
267 |
+
|
268 |
+
<td>
|
269 |
+
<fieldset>
|
270 |
+
<legend class="screen-reader-text">
|
271 |
+
<span>
|
272 |
+
<?php _e( 'Maximum Rating', 'one-user-avatar' ); ?>
|
273 |
+
</span>
|
274 |
+
</legend>
|
275 |
+
|
276 |
+
<?php
|
277 |
+
$ratings = array(
|
278 |
+
'G' => __( 'G — Suitable for all audiences', 'one-user-avatar' ),
|
279 |
+
'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above', 'one-user-avatar' ),
|
280 |
+
'R' => __( 'R — Intended for adult audiences above 17', 'one-user-avatar' ),
|
281 |
+
'X' => __( 'X — Even more mature than above', 'one-user-avatar' ),
|
282 |
+
);
|
283 |
+
|
284 |
+
foreach ( $ratings as $key => $rating ) :
|
285 |
+
?>
|
286 |
+
<label>
|
287 |
+
<input type="radio" name="avatar_rating" value="<?php echo esc_attr( $key ); ?>" <?php checked( $key, get_option( 'avatar_rating' ) ); ?> />
|
288 |
+
<?php echo $rating; ?>
|
289 |
+
</label>
|
290 |
+
|
291 |
+
<br />
|
292 |
+
<?php
|
293 |
+
endforeach;
|
294 |
+
?>
|
295 |
+
</fieldset>
|
296 |
+
</td>
|
297 |
+
</tr>
|
298 |
+
|
299 |
+
<tr valign="top">
|
300 |
+
<th scope="row"><?php _e( 'Default Avatar', 'one-user-avatar' ); ?></th>
|
301 |
+
|
302 |
+
<td class="defaultavatarpicker">
|
303 |
+
<fieldset>
|
304 |
+
<legend class="screen-reader-text">
|
305 |
+
<span>
|
306 |
+
<?php _e( 'Default Avatar', 'one-user-avatar' ); ?>
|
307 |
+
</span>
|
308 |
+
</legend>
|
309 |
+
|
310 |
+
<?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.', 'one-user-avatar' ); ?>
|
311 |
+
|
312 |
+
<br />
|
313 |
+
|
314 |
+
<?php echo $wpua_admin->wpua_add_default_avatar(); ?>
|
315 |
+
</fieldset>
|
316 |
+
</td>
|
317 |
+
</tr>
|
318 |
+
</table>
|
319 |
+
|
320 |
+
<?php submit_button(); ?>
|
321 |
+
</form>
|
322 |
+
</td>
|
323 |
+
</tr>
|
324 |
+
</table>
|
325 |
</div>
|
includes/wpua-tinymce-window.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -104,16 +104,16 @@ $hook_suffix = 'one-user-avatar_tinymce-window';
|
|
104 |
<option value=""></option>
|
105 |
|
106 |
<?php
|
107 |
-
|
108 |
|
109 |
-
|
110 |
-
|
111 |
|
112 |
<option value="<?php echo esc_attr( $user->user_login ); ?>"><?php echo esc_html( $user->display_name ); ?></option>
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
</select>
|
118 |
</p>
|
119 |
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
104 |
<option value=""></option>
|
105 |
|
106 |
<?php
|
107 |
+
$users = get_users();
|
108 |
|
109 |
+
foreach($users as $user) :
|
110 |
+
?>
|
111 |
|
112 |
<option value="<?php echo esc_attr( $user->user_login ); ?>"><?php echo esc_html( $user->display_name ); ?></option>
|
113 |
|
114 |
+
<?php
|
115 |
+
endforeach;
|
116 |
+
?>
|
117 |
</select>
|
118 |
</p>
|
119 |
|
includes/wpua-tinymce.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
languages/de_DE.mo
CHANGED
Binary file
|
languages/de_DE.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
-
"PO-Revision-Date: 2021-
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: de\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -45,103 +45,101 @@ msgstr "One Designs"
|
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Du bist nicht berechtigt, diesen Beitrag zu löschen."
|
51 |
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Fehler beim Löschen."
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatare"
|
60 |
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Einstellungen"
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
msgid "Library"
|
71 |
msgstr "Bibliothek"
|
72 |
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Mystery Man"
|
76 |
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:
|
78 |
msgid "Blank"
|
79 |
msgstr "Leer"
|
80 |
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar-Logo"
|
84 |
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (automatisch generiert)"
|
88 |
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (automatisch generiert)"
|
92 |
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (automatisch generiert)"
|
96 |
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (automatisch generiert)"
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Bild auswählen"
|
105 |
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:
|
107 |
msgid "Remove"
|
108 |
msgstr "Entfernen"
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Rückgängig"
|
114 |
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
msgid "Support Forums"
|
121 |
msgstr "Support-Foren"
|
122 |
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
msgid "Profile Picture"
|
128 |
msgstr "Profilbild"
|
129 |
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:
|
131 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
msgid "Default Avatar"
|
133 |
msgstr "Standard-Avatar"
|
134 |
|
135 |
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:
|
137 |
msgid "Avatar"
|
138 |
msgstr "Avatar"
|
139 |
|
140 |
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
142 |
msgctxt "uploaded files"
|
143 |
msgid "All %s"
|
144 |
-
|
|
|
|
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -222,7 +220,7 @@ msgstr ""
|
|
222 |
"aufgerufen, was von One User Avatar benötigt wird. Bitte fügen Sie diesen "
|
223 |
"Aufruf Ihren Seitenvorlagen hinzu."
|
224 |
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
226 |
msgid "Profile updated."
|
227 |
msgstr "Profil aktualisiert."
|
228 |
|
@@ -470,7 +468,7 @@ msgid "Insert Avatar"
|
|
470 |
msgstr "Avatar einfügen"
|
471 |
|
472 |
#. translators: placeholder for <a> and </a> tags.
|
473 |
-
#: one-user-avatar.php:
|
474 |
msgid ""
|
475 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
476 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
9 |
+
"PO-Revision-Date: 2021-05-23 06:59+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: de\n"
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Du bist nicht berechtigt, diesen Beitrag zu löschen."
|
51 |
|
52 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Fehler beim Löschen."
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatare"
|
60 |
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Einstellungen"
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
70 |
msgid "Library"
|
71 |
msgstr "Bibliothek"
|
72 |
|
73 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Mystery Man"
|
76 |
|
77 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
78 |
msgid "Blank"
|
79 |
msgstr "Leer"
|
80 |
|
81 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar-Logo"
|
84 |
|
85 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (automatisch generiert)"
|
88 |
|
89 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (automatisch generiert)"
|
92 |
|
93 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (automatisch generiert)"
|
96 |
|
97 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (automatisch generiert)"
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Bild auswählen"
|
105 |
|
106 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
107 |
msgid "Remove"
|
108 |
msgstr "Entfernen"
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Rückgängig"
|
114 |
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
116 |
msgid "Support Forums"
|
117 |
msgstr "Support-Foren"
|
118 |
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
122 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
123 |
msgid "Profile Picture"
|
124 |
msgstr "Profilbild"
|
125 |
|
126 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
127 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
128 |
msgid "Default Avatar"
|
129 |
msgstr "Standard-Avatar"
|
130 |
|
131 |
#: includes/class-wp-user-avatar-functions.php:515
|
132 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
133 |
msgid "Avatar"
|
134 |
msgstr "Avatar"
|
135 |
|
136 |
#. translators: uploaded files
|
137 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
138 |
msgctxt "uploaded files"
|
139 |
msgid "All %s"
|
140 |
+
msgid_plural "All %s"
|
141 |
+
msgstr[0] "Alle %s"
|
142 |
+
msgstr[1] "Alle %s"
|
143 |
|
144 |
#: includes/class-wp-user-avatar-list-table.php:192
|
145 |
#: includes/class-wp-user-avatar-list-table.php:549
|
220 |
"aufgerufen, was von One User Avatar benötigt wird. Bitte fügen Sie diesen "
|
221 |
"Aufruf Ihren Seitenvorlagen hinzu."
|
222 |
|
223 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
224 |
msgid "Profile updated."
|
225 |
msgstr "Profil aktualisiert."
|
226 |
|
468 |
msgstr "Avatar einfügen"
|
469 |
|
470 |
#. translators: placeholder for <a> and </a> tags.
|
471 |
+
#: one-user-avatar.php:94
|
472 |
msgid ""
|
473 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
474 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
languages/en_GB.mo
CHANGED
Binary file
|
languages/en_GB.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
-
"PO-Revision-Date: 2021-
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: en_GB\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -44,103 +44,101 @@ msgstr "One Designs"
|
|
44 |
msgid "https://onedesigns.com/"
|
45 |
msgstr "https://onedesigns.com/"
|
46 |
|
47 |
-
#: includes/class-wp-user-avatar-admin.php:
|
48 |
msgid "You are not allowed to delete this post."
|
49 |
msgstr "You are not allowed to delete this post."
|
50 |
|
51 |
-
#: includes/class-wp-user-avatar-admin.php:
|
52 |
msgid "Error in deleting."
|
53 |
msgstr "Error in deleting."
|
54 |
|
55 |
-
#: includes/class-wp-user-avatar-admin.php:
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
msgid "Avatars"
|
58 |
msgstr "Avatars"
|
59 |
|
60 |
-
#: includes/class-wp-user-avatar-admin.php:
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
#: includes/wpua-options-page.php:93
|
64 |
msgid "Settings"
|
65 |
msgstr "Settings"
|
66 |
|
67 |
-
#: includes/class-wp-user-avatar-admin.php:
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
msgid "Library"
|
70 |
msgstr "Library"
|
71 |
|
72 |
-
#: includes/class-wp-user-avatar-admin.php:
|
73 |
msgid "Mystery Man"
|
74 |
msgstr "Mystery Man"
|
75 |
|
76 |
-
#: includes/class-wp-user-avatar-admin.php:
|
77 |
msgid "Blank"
|
78 |
msgstr "Blank"
|
79 |
|
80 |
-
#: includes/class-wp-user-avatar-admin.php:
|
81 |
msgid "Gravatar Logo"
|
82 |
msgstr "Gravatar Logo"
|
83 |
|
84 |
-
#: includes/class-wp-user-avatar-admin.php:
|
85 |
msgid "Identicon (Generated)"
|
86 |
msgstr "Identicon (Generated)"
|
87 |
|
88 |
-
#: includes/class-wp-user-avatar-admin.php:
|
89 |
msgid "Wavatar (Generated)"
|
90 |
msgstr "Wavatar (Generated)"
|
91 |
|
92 |
-
#: includes/class-wp-user-avatar-admin.php:
|
93 |
msgid "MonsterID (Generated)"
|
94 |
msgstr "MonsterID (Generated)"
|
95 |
|
96 |
-
#: includes/class-wp-user-avatar-admin.php:
|
97 |
msgid "Retro (Generated)"
|
98 |
msgstr "Retro (Generated)"
|
99 |
|
100 |
-
#: includes/class-wp-user-avatar-admin.php:
|
101 |
#: includes/class-wp-user-avatar.php:231
|
102 |
msgid "Choose Image"
|
103 |
msgstr "Choose Image"
|
104 |
|
105 |
-
#: includes/class-wp-user-avatar-admin.php:
|
106 |
msgid "Remove"
|
107 |
msgstr "Remove"
|
108 |
|
109 |
-
#: includes/class-wp-user-avatar-admin.php:
|
110 |
#: includes/class-wp-user-avatar.php:292
|
111 |
msgid "Undo"
|
112 |
msgstr "Undo"
|
113 |
|
114 |
-
#: includes/class-wp-user-avatar-admin.php:
|
115 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
116 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
|
118 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
119 |
msgid "Support Forums"
|
120 |
msgstr "Support Forums"
|
121 |
|
122 |
-
#: includes/class-wp-user-avatar-admin.php:
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
125 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
126 |
msgid "Profile Picture"
|
127 |
msgstr "Profile Picture"
|
128 |
|
129 |
-
#: includes/class-wp-user-avatar-admin.php:
|
130 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
131 |
msgid "Default Avatar"
|
132 |
msgstr "Default Avatar"
|
133 |
|
134 |
#: includes/class-wp-user-avatar-functions.php:515
|
135 |
-
#: includes/class-wp-user-avatar-functions.php:
|
136 |
msgid "Avatar"
|
137 |
msgstr "Avatar"
|
138 |
|
139 |
#. translators: uploaded files
|
140 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
141 |
msgctxt "uploaded files"
|
142 |
msgid "All %s"
|
143 |
-
|
|
|
|
|
144 |
|
145 |
#: includes/class-wp-user-avatar-list-table.php:192
|
146 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -220,7 +218,7 @@ msgstr ""
|
|
220 |
"We’re sorry, but your theme’s page template didn’t make a call to %s, which "
|
221 |
"is required by One User Avatar. Please add this call to your page templates."
|
222 |
|
223 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
224 |
msgid "Profile updated."
|
225 |
msgstr "Profile updated."
|
226 |
|
@@ -467,7 +465,7 @@ msgid "Insert Avatar"
|
|
467 |
msgstr "Insert Avatar"
|
468 |
|
469 |
#. translators: placeholder for <a> and </a> tags.
|
470 |
-
#: one-user-avatar.php:
|
471 |
msgid ""
|
472 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
473 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
9 |
+
"PO-Revision-Date: 2021-05-23 06:59+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: en_GB\n"
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
44 |
msgid "https://onedesigns.com/"
|
45 |
msgstr "https://onedesigns.com/"
|
46 |
|
47 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
48 |
msgid "You are not allowed to delete this post."
|
49 |
msgstr "You are not allowed to delete this post."
|
50 |
|
51 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
52 |
msgid "Error in deleting."
|
53 |
msgstr "Error in deleting."
|
54 |
|
55 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
57 |
msgid "Avatars"
|
58 |
msgstr "Avatars"
|
59 |
|
60 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
63 |
#: includes/wpua-options-page.php:93
|
64 |
msgid "Settings"
|
65 |
msgstr "Settings"
|
66 |
|
67 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
69 |
msgid "Library"
|
70 |
msgstr "Library"
|
71 |
|
72 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
73 |
msgid "Mystery Man"
|
74 |
msgstr "Mystery Man"
|
75 |
|
76 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
77 |
msgid "Blank"
|
78 |
msgstr "Blank"
|
79 |
|
80 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
81 |
msgid "Gravatar Logo"
|
82 |
msgstr "Gravatar Logo"
|
83 |
|
84 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
85 |
msgid "Identicon (Generated)"
|
86 |
msgstr "Identicon (Generated)"
|
87 |
|
88 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
89 |
msgid "Wavatar (Generated)"
|
90 |
msgstr "Wavatar (Generated)"
|
91 |
|
92 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
93 |
msgid "MonsterID (Generated)"
|
94 |
msgstr "MonsterID (Generated)"
|
95 |
|
96 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
97 |
msgid "Retro (Generated)"
|
98 |
msgstr "Retro (Generated)"
|
99 |
|
100 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
101 |
#: includes/class-wp-user-avatar.php:231
|
102 |
msgid "Choose Image"
|
103 |
msgstr "Choose Image"
|
104 |
|
105 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
106 |
msgid "Remove"
|
107 |
msgstr "Remove"
|
108 |
|
109 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
110 |
#: includes/class-wp-user-avatar.php:292
|
111 |
msgid "Undo"
|
112 |
msgstr "Undo"
|
113 |
|
114 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
115 |
msgid "Support Forums"
|
116 |
msgstr "Support Forums"
|
117 |
|
118 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
120 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
121 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
122 |
msgid "Profile Picture"
|
123 |
msgstr "Profile Picture"
|
124 |
|
125 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
126 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
127 |
msgid "Default Avatar"
|
128 |
msgstr "Default Avatar"
|
129 |
|
130 |
#: includes/class-wp-user-avatar-functions.php:515
|
131 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
132 |
msgid "Avatar"
|
133 |
msgstr "Avatar"
|
134 |
|
135 |
#. translators: uploaded files
|
136 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
137 |
msgctxt "uploaded files"
|
138 |
msgid "All %s"
|
139 |
+
msgid_plural "All %s"
|
140 |
+
msgstr[0] "All %s"
|
141 |
+
msgstr[1] "All %s"
|
142 |
|
143 |
#: includes/class-wp-user-avatar-list-table.php:192
|
144 |
#: includes/class-wp-user-avatar-list-table.php:549
|
218 |
"We’re sorry, but your theme’s page template didn’t make a call to %s, which "
|
219 |
"is required by One User Avatar. Please add this call to your page templates."
|
220 |
|
221 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
222 |
msgid "Profile updated."
|
223 |
msgstr "Profile updated."
|
224 |
|
465 |
msgstr "Insert Avatar"
|
466 |
|
467 |
#. translators: placeholder for <a> and </a> tags.
|
468 |
+
#: one-user-avatar.php:94
|
469 |
msgid ""
|
470 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
471 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
languages/es_ES.mo
CHANGED
Binary file
|
languages/es_ES.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
-
"PO-Revision-Date: 2021-
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: es\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -45,103 +45,101 @@ msgstr "One Designs"
|
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "No tienes permisos para eliminar esta entrada."
|
51 |
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Error al eliminar."
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatares"
|
60 |
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Ajustes"
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
msgid "Library"
|
71 |
msgstr "Biblioteca"
|
72 |
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Hombre misterioso"
|
76 |
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:
|
78 |
msgid "Blank"
|
79 |
msgstr "En blanco"
|
80 |
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Logo Gravatar"
|
84 |
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (generado)"
|
88 |
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (generado)"
|
92 |
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (generado)"
|
96 |
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (generado)"
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Elegir imagen"
|
105 |
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:
|
107 |
msgid "Remove"
|
108 |
msgstr "Eliminar"
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Deshacer"
|
114 |
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
msgid "Support Forums"
|
121 |
msgstr "Foro de soporte"
|
122 |
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
msgid "Profile Picture"
|
128 |
msgstr "Imagen del perfil"
|
129 |
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:
|
131 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
msgid "Default Avatar"
|
133 |
msgstr "Avatar por defecto"
|
134 |
|
135 |
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:
|
137 |
msgid "Avatar"
|
138 |
msgstr "Avatar"
|
139 |
|
140 |
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
142 |
msgctxt "uploaded files"
|
143 |
msgid "All %s"
|
144 |
-
|
|
|
|
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -222,7 +220,7 @@ msgstr ""
|
|
222 |
"%s, lo cual es requerido por One User Avatar. Agregue esta llamada a las "
|
223 |
"plantillas de su página."
|
224 |
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
226 |
msgid "Profile updated."
|
227 |
msgstr "Perfil actualizado."
|
228 |
|
@@ -469,7 +467,7 @@ msgid "Insert Avatar"
|
|
469 |
msgstr "Insertar avatar"
|
470 |
|
471 |
#. translators: placeholder for <a> and </a> tags.
|
472 |
-
#: one-user-avatar.php:
|
473 |
msgid ""
|
474 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
475 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
9 |
+
"PO-Revision-Date: 2021-05-23 07:00+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: es\n"
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "No tienes permisos para eliminar esta entrada."
|
51 |
|
52 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Error al eliminar."
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatares"
|
60 |
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Ajustes"
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
70 |
msgid "Library"
|
71 |
msgstr "Biblioteca"
|
72 |
|
73 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Hombre misterioso"
|
76 |
|
77 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
78 |
msgid "Blank"
|
79 |
msgstr "En blanco"
|
80 |
|
81 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Logo Gravatar"
|
84 |
|
85 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (generado)"
|
88 |
|
89 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (generado)"
|
92 |
|
93 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (generado)"
|
96 |
|
97 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (generado)"
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Elegir imagen"
|
105 |
|
106 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
107 |
msgid "Remove"
|
108 |
msgstr "Eliminar"
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Deshacer"
|
114 |
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
116 |
msgid "Support Forums"
|
117 |
msgstr "Foro de soporte"
|
118 |
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
122 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
123 |
msgid "Profile Picture"
|
124 |
msgstr "Imagen del perfil"
|
125 |
|
126 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
127 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
128 |
msgid "Default Avatar"
|
129 |
msgstr "Avatar por defecto"
|
130 |
|
131 |
#: includes/class-wp-user-avatar-functions.php:515
|
132 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
133 |
msgid "Avatar"
|
134 |
msgstr "Avatar"
|
135 |
|
136 |
#. translators: uploaded files
|
137 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
138 |
msgctxt "uploaded files"
|
139 |
msgid "All %s"
|
140 |
+
msgid_plural "All %s"
|
141 |
+
msgstr[0] "Todos los"
|
142 |
+
msgstr[1] "Todos los"
|
143 |
|
144 |
#: includes/class-wp-user-avatar-list-table.php:192
|
145 |
#: includes/class-wp-user-avatar-list-table.php:549
|
220 |
"%s, lo cual es requerido por One User Avatar. Agregue esta llamada a las "
|
221 |
"plantillas de su página."
|
222 |
|
223 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
224 |
msgid "Profile updated."
|
225 |
msgstr "Perfil actualizado."
|
226 |
|
467 |
msgstr "Insertar avatar"
|
468 |
|
469 |
#. translators: placeholder for <a> and </a> tags.
|
470 |
+
#: one-user-avatar.php:94
|
471 |
msgid ""
|
472 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
473 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
languages/fr_FR.mo
CHANGED
Binary file
|
languages/fr_FR.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
-
"PO-Revision-Date: 2021-
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: fr\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -45,103 +45,101 @@ msgstr "One Designs"
|
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Vous n'êtes pas autorisé à supprimer cet article."
|
51 |
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Error lors de la suppression."
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatars"
|
60 |
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Réglages"
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
msgid "Library"
|
71 |
msgstr "Librairie"
|
72 |
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Homme mystère"
|
76 |
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:
|
78 |
msgid "Blank"
|
79 |
msgstr "Vide"
|
80 |
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Logo Gravatar"
|
84 |
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (généré)"
|
88 |
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (généré)"
|
92 |
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (généré)"
|
96 |
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (généré)"
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Choisir une image"
|
105 |
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:
|
107 |
msgid "Remove"
|
108 |
msgstr "Retirer"
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Annuler"
|
114 |
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
msgid "Support Forums"
|
121 |
msgstr "Forums de support"
|
122 |
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
msgid "Profile Picture"
|
128 |
msgstr "Image de profil"
|
129 |
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:
|
131 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
msgid "Default Avatar"
|
133 |
msgstr "Avatar par défaut"
|
134 |
|
135 |
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:
|
137 |
msgid "Avatar"
|
138 |
msgstr "Avatar"
|
139 |
|
140 |
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
142 |
msgctxt "uploaded files"
|
143 |
msgid "All %s"
|
144 |
-
|
|
|
|
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -222,7 +220,7 @@ msgstr ""
|
|
222 |
"%s, ce qui est requis par One User Avatar. Veuillez ajouter cet appel à vos "
|
223 |
"modèles de page."
|
224 |
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
226 |
msgid "Profile updated."
|
227 |
msgstr "Profil mis à jour."
|
228 |
|
@@ -471,7 +469,7 @@ msgid "Insert Avatar"
|
|
471 |
msgstr "Insérer un avatar"
|
472 |
|
473 |
#. translators: placeholder for <a> and </a> tags.
|
474 |
-
#: one-user-avatar.php:
|
475 |
msgid ""
|
476 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
477 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
9 |
+
"PO-Revision-Date: 2021-05-23 07:00+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: fr\n"
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Vous n'êtes pas autorisé à supprimer cet article."
|
51 |
|
52 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Error lors de la suppression."
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatars"
|
60 |
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Réglages"
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
70 |
msgid "Library"
|
71 |
msgstr "Librairie"
|
72 |
|
73 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Homme mystère"
|
76 |
|
77 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
78 |
msgid "Blank"
|
79 |
msgstr "Vide"
|
80 |
|
81 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Logo Gravatar"
|
84 |
|
85 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (généré)"
|
88 |
|
89 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (généré)"
|
92 |
|
93 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (généré)"
|
96 |
|
97 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (généré)"
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Choisir une image"
|
105 |
|
106 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
107 |
msgid "Remove"
|
108 |
msgstr "Retirer"
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Annuler"
|
114 |
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
116 |
msgid "Support Forums"
|
117 |
msgstr "Forums de support"
|
118 |
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
122 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
123 |
msgid "Profile Picture"
|
124 |
msgstr "Image de profil"
|
125 |
|
126 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
127 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
128 |
msgid "Default Avatar"
|
129 |
msgstr "Avatar par défaut"
|
130 |
|
131 |
#: includes/class-wp-user-avatar-functions.php:515
|
132 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
133 |
msgid "Avatar"
|
134 |
msgstr "Avatar"
|
135 |
|
136 |
#. translators: uploaded files
|
137 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
138 |
msgctxt "uploaded files"
|
139 |
msgid "All %s"
|
140 |
+
msgid_plural "All %s"
|
141 |
+
msgstr[0] "Tous les %s"
|
142 |
+
msgstr[1] "Tous les %s"
|
143 |
|
144 |
#: includes/class-wp-user-avatar-list-table.php:192
|
145 |
#: includes/class-wp-user-avatar-list-table.php:549
|
220 |
"%s, ce qui est requis par One User Avatar. Veuillez ajouter cet appel à vos "
|
221 |
"modèles de page."
|
222 |
|
223 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
224 |
msgid "Profile updated."
|
225 |
msgstr "Profil mis à jour."
|
226 |
|
469 |
msgstr "Insérer un avatar"
|
470 |
|
471 |
#. translators: placeholder for <a> and </a> tags.
|
472 |
+
#: one-user-avatar.php:94
|
473 |
msgid ""
|
474 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
475 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
languages/it_IT.mo
CHANGED
Binary file
|
languages/it_IT.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
-
"PO-Revision-Date: 2021-
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: it\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -45,103 +45,101 @@ msgstr "One Designs"
|
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Non hai i permessi per cancellare questo post."
|
51 |
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Errore durante la cancellazione."
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatar"
|
60 |
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Impostazioni"
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
msgid "Library"
|
71 |
msgstr "Libreria"
|
72 |
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Utente Anonimo"
|
76 |
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:
|
78 |
msgid "Blank"
|
79 |
msgstr "Vuoto"
|
80 |
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar Logo"
|
84 |
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (Generato)"
|
88 |
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (Generato)"
|
92 |
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (Generato)"
|
96 |
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (Generato)"
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Scegli immagine"
|
105 |
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:
|
107 |
msgid "Remove"
|
108 |
msgstr "Rimuovi"
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Annulla"
|
114 |
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
msgid "Support Forums"
|
121 |
msgstr "Forum di supporto"
|
122 |
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
msgid "Profile Picture"
|
128 |
msgstr "Immagine del profilo"
|
129 |
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:
|
131 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
msgid "Default Avatar"
|
133 |
msgstr "Avatar Standard"
|
134 |
|
135 |
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:
|
137 |
msgid "Avatar"
|
138 |
msgstr "Avatar"
|
139 |
|
140 |
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
142 |
msgctxt "uploaded files"
|
143 |
msgid "All %s"
|
144 |
-
|
|
|
|
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -219,7 +217,7 @@ msgid ""
|
|
219 |
"is required by One User Avatar. Please add this call to your page templates."
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
223 |
msgid "Profile updated."
|
224 |
msgstr "Profilo aggiornato."
|
225 |
|
@@ -467,10 +465,15 @@ msgid "Insert Avatar"
|
|
467 |
msgstr "Inserisci avatar"
|
468 |
|
469 |
#. translators: placeholder for <a> and </a> tags.
|
470 |
-
#: one-user-avatar.php:
|
471 |
msgid ""
|
472 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
473 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
474 |
msgstr ""
|
475 |
"Il plugin One User Avatar è un sostituto del vecchio plugin WP User Avatar. "
|
476 |
"%1$sDisattiva WP User Avatar%2$s per iniziare a usarlo."
|
|
|
|
|
|
|
|
|
|
5 |
"Project-Id-Version: Plugins - WP User Avatar | User Profile Picture - Stable "
|
6 |
"(latest release)\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
8 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
9 |
+
"PO-Revision-Date: 2021-05-23 07:00+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
12 |
"Language: it\n"
|
17 |
"X-Generator: Poedit 2.4.3\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Non hai i permessi per cancellare questo post."
|
51 |
|
52 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Errore durante la cancellazione."
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatar"
|
60 |
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Impostazioni"
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
70 |
msgid "Library"
|
71 |
msgstr "Libreria"
|
72 |
|
73 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Utente Anonimo"
|
76 |
|
77 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
78 |
msgid "Blank"
|
79 |
msgstr "Vuoto"
|
80 |
|
81 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar Logo"
|
84 |
|
85 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (Generato)"
|
88 |
|
89 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (Generato)"
|
92 |
|
93 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (Generato)"
|
96 |
|
97 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (Generato)"
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Scegli immagine"
|
105 |
|
106 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
107 |
msgid "Remove"
|
108 |
msgstr "Rimuovi"
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Annulla"
|
114 |
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
116 |
msgid "Support Forums"
|
117 |
msgstr "Forum di supporto"
|
118 |
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
122 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
123 |
msgid "Profile Picture"
|
124 |
msgstr "Immagine del profilo"
|
125 |
|
126 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
127 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
128 |
msgid "Default Avatar"
|
129 |
msgstr "Avatar Standard"
|
130 |
|
131 |
#: includes/class-wp-user-avatar-functions.php:515
|
132 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
133 |
msgid "Avatar"
|
134 |
msgstr "Avatar"
|
135 |
|
136 |
#. translators: uploaded files
|
137 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
138 |
msgctxt "uploaded files"
|
139 |
msgid "All %s"
|
140 |
+
msgid_plural "All %s"
|
141 |
+
msgstr[0] "Tutti i %s"
|
142 |
+
msgstr[1] "Tutti i %s"
|
143 |
|
144 |
#: includes/class-wp-user-avatar-list-table.php:192
|
145 |
#: includes/class-wp-user-avatar-list-table.php:549
|
217 |
"is required by One User Avatar. Please add this call to your page templates."
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
221 |
msgid "Profile updated."
|
222 |
msgstr "Profilo aggiornato."
|
223 |
|
465 |
msgstr "Inserisci avatar"
|
466 |
|
467 |
#. translators: placeholder for <a> and </a> tags.
|
468 |
+
#: one-user-avatar.php:94
|
469 |
msgid ""
|
470 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
471 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
472 |
msgstr ""
|
473 |
"Il plugin One User Avatar è un sostituto del vecchio plugin WP User Avatar. "
|
474 |
"%1$sDisattiva WP User Avatar%2$s per iniziare a usarlo."
|
475 |
+
|
476 |
+
#~ msgid "Media attachment permanently deleted."
|
477 |
+
#~ msgid_plural "%d media attachments permanently deleted."
|
478 |
+
#~ msgstr[0] "Allegato cancellato permanentemente,"
|
479 |
+
#~ msgstr[1] "%d allegato cancellato permanentemente."
|
languages/nl_NL.mo
CHANGED
Binary file
|
languages/nl_NL.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the One User Avatar plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: One User Avatar 2.3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: nl_NL\n"
|
@@ -17,8 +17,8 @@ msgstr ""
|
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
@@ -45,103 +45,101 @@ msgstr "One Designs"
|
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Je hebt geen toestemming om dit bericht te verwijderen."
|
51 |
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Fout tijdens het verwijderen."
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatars"
|
60 |
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Instellingen"
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
msgid "Library"
|
71 |
msgstr "Bibliotheek"
|
72 |
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Mysterieuze Man"
|
76 |
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:
|
78 |
msgid "Blank"
|
79 |
msgstr "Leeg"
|
80 |
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar Logo"
|
84 |
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (Gegenereerd)"
|
88 |
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (Gegenereerd)"
|
92 |
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (Gegenereerd)"
|
96 |
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (Gegenereerd)"
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Kies foto"
|
105 |
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:
|
107 |
msgid "Remove"
|
108 |
msgstr "Verwijderen"
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Ongedaan maken"
|
114 |
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
msgid "Support Forums"
|
121 |
msgstr "Helpforums"
|
122 |
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
msgid "Profile Picture"
|
128 |
msgstr "Profielfoto"
|
129 |
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:
|
131 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
msgid "Default Avatar"
|
133 |
msgstr "Standaard Avatar"
|
134 |
|
135 |
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:
|
137 |
msgid "Avatar"
|
138 |
msgstr "Avatar"
|
139 |
|
140 |
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
142 |
msgctxt "uploaded files"
|
143 |
msgid "All %s"
|
144 |
-
|
|
|
|
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -222,7 +220,7 @@ msgstr ""
|
|
222 |
"naar %s, wat vereist is door One User Avatar. Voeg deze oproep toe aan je "
|
223 |
"pagina template."
|
224 |
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
226 |
msgid "Profile updated."
|
227 |
msgstr "Profiel bijgewerkt."
|
228 |
|
@@ -245,7 +243,7 @@ msgstr "Beschrijving:"
|
|
245 |
|
246 |
#: includes/class-wp-user-avatar-widget.php:113
|
247 |
msgid "Automatically add paragraphs"
|
248 |
-
msgstr "
|
249 |
|
250 |
#. translators: user display name
|
251 |
#: includes/class-wp-user-avatar.php:227
|
@@ -295,8 +293,7 @@ msgid ""
|
|
295 |
"Unable to create directory %s. Is its parent directory writable by the "
|
296 |
"server?"
|
297 |
msgstr ""
|
298 |
-
"Kan map %s niet aanmaken. Is de
|
299 |
-
"server?"
|
300 |
|
301 |
#: includes/wpua-functions.php:109 includes/wpua-functions.php:118
|
302 |
msgid "Image"
|
@@ -317,7 +314,7 @@ msgstr "Zoeken"
|
|
317 |
|
318 |
#: includes/wpua-options-page.php:108
|
319 |
msgid "Add avatar button to Visual Editor"
|
320 |
-
msgstr "Voeg avatar-knop toe aan
|
321 |
|
322 |
#: includes/wpua-options-page.php:119
|
323 |
msgid "Allow Contributors & Subscribers to upload avatars"
|
@@ -387,15 +384,15 @@ msgstr "R — Alleen voor boven de 17"
|
|
387 |
|
388 |
#: includes/wpua-options-page.php:281
|
389 |
msgid "X — Even more mature than above"
|
390 |
-
msgstr "X — Nog ouder
|
391 |
|
392 |
#: includes/wpua-options-page.php:310
|
393 |
msgid ""
|
394 |
"For users without a custom avatar of their own, you can either display a "
|
395 |
"generic logo or a generated one based on their e-mail address."
|
396 |
msgstr ""
|
397 |
-
"Voor gebruikers zonder
|
398 |
-
"
|
399 |
|
400 |
#: includes/wpua-tinymce-window.php:101
|
401 |
msgid "User Name"
|
@@ -455,7 +452,7 @@ msgstr "URL:"
|
|
455 |
|
456 |
#: includes/wpua-tinymce-window.php:170
|
457 |
msgid "Open link in a new window"
|
458 |
-
msgstr "Link in nieuw venster
|
459 |
|
460 |
#: includes/wpua-tinymce-window.php:174
|
461 |
msgid "Caption"
|
@@ -470,10 +467,24 @@ msgid "Insert Avatar"
|
|
470 |
msgstr "Avatar invoegen"
|
471 |
|
472 |
#. translators: placeholder for <a> and </a> tags.
|
473 |
-
#: one-user-avatar.php:
|
474 |
msgid ""
|
475 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
476 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
477 |
msgstr ""
|
478 |
"De plug-in One User Avatar is een vervanging voor de oude WP User Avatar-"
|
479 |
-
"plug-in. %1$sDeactiveer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
# This file is distributed under the same license as the One User Avatar plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: One User Avatar 2.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-05-23 07:00+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: nl_NL\n"
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
|
19 |
#. Plugin Name of the plugin
|
20 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
22 |
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
msgid "One User Avatar"
|
45 |
msgid "https://onedesigns.com/"
|
46 |
msgstr "https://onedesigns.com/"
|
47 |
|
48 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
49 |
msgid "You are not allowed to delete this post."
|
50 |
msgstr "Je hebt geen toestemming om dit bericht te verwijderen."
|
51 |
|
52 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
53 |
msgid "Error in deleting."
|
54 |
msgstr "Fout tijdens het verwijderen."
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
58 |
msgid "Avatars"
|
59 |
msgstr "Avatars"
|
60 |
|
61 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
64 |
#: includes/wpua-options-page.php:93
|
65 |
msgid "Settings"
|
66 |
msgstr "Instellingen"
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
70 |
msgid "Library"
|
71 |
msgstr "Bibliotheek"
|
72 |
|
73 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
74 |
msgid "Mystery Man"
|
75 |
msgstr "Mysterieuze Man"
|
76 |
|
77 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
78 |
msgid "Blank"
|
79 |
msgstr "Leeg"
|
80 |
|
81 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
82 |
msgid "Gravatar Logo"
|
83 |
msgstr "Gravatar Logo"
|
84 |
|
85 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
86 |
msgid "Identicon (Generated)"
|
87 |
msgstr "Identicon (Gegenereerd)"
|
88 |
|
89 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
90 |
msgid "Wavatar (Generated)"
|
91 |
msgstr "Wavatar (Gegenereerd)"
|
92 |
|
93 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
94 |
msgid "MonsterID (Generated)"
|
95 |
msgstr "MonsterID (Gegenereerd)"
|
96 |
|
97 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
98 |
msgid "Retro (Generated)"
|
99 |
msgstr "Retro (Gegenereerd)"
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
102 |
#: includes/class-wp-user-avatar.php:231
|
103 |
msgid "Choose Image"
|
104 |
msgstr "Kies foto"
|
105 |
|
106 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
107 |
msgid "Remove"
|
108 |
msgstr "Verwijderen"
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
111 |
#: includes/class-wp-user-avatar.php:292
|
112 |
msgid "Undo"
|
113 |
msgstr "Ongedaan maken"
|
114 |
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
116 |
msgid "Support Forums"
|
117 |
msgstr "Helpforums"
|
118 |
|
119 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
122 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
123 |
msgid "Profile Picture"
|
124 |
msgstr "Profielfoto"
|
125 |
|
126 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
127 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
128 |
msgid "Default Avatar"
|
129 |
msgstr "Standaard Avatar"
|
130 |
|
131 |
#: includes/class-wp-user-avatar-functions.php:515
|
132 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
133 |
msgid "Avatar"
|
134 |
msgstr "Avatar"
|
135 |
|
136 |
#. translators: uploaded files
|
137 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
138 |
msgctxt "uploaded files"
|
139 |
msgid "All %s"
|
140 |
+
msgid_plural "All %s"
|
141 |
+
msgstr[0] "Alle %s"
|
142 |
+
msgstr[1] "Alle %s"
|
143 |
|
144 |
#: includes/class-wp-user-avatar-list-table.php:192
|
145 |
#: includes/class-wp-user-avatar-list-table.php:549
|
220 |
"naar %s, wat vereist is door One User Avatar. Voeg deze oproep toe aan je "
|
221 |
"pagina template."
|
222 |
|
223 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
224 |
msgid "Profile updated."
|
225 |
msgstr "Profiel bijgewerkt."
|
226 |
|
243 |
|
244 |
#: includes/class-wp-user-avatar-widget.php:113
|
245 |
msgid "Automatically add paragraphs"
|
246 |
+
msgstr "Voeg automatisch paragrafen toe"
|
247 |
|
248 |
#. translators: user display name
|
249 |
#: includes/class-wp-user-avatar.php:227
|
293 |
"Unable to create directory %s. Is its parent directory writable by the "
|
294 |
"server?"
|
295 |
msgstr ""
|
296 |
+
"Kan map %s niet aanmaken. Is de hoofd folder beschrijfbaar door de server?"
|
|
|
297 |
|
298 |
#: includes/wpua-functions.php:109 includes/wpua-functions.php:118
|
299 |
msgid "Image"
|
314 |
|
315 |
#: includes/wpua-options-page.php:108
|
316 |
msgid "Add avatar button to Visual Editor"
|
317 |
+
msgstr "Voeg avatar-knop toe aan visuele editor"
|
318 |
|
319 |
#: includes/wpua-options-page.php:119
|
320 |
msgid "Allow Contributors & Subscribers to upload avatars"
|
384 |
|
385 |
#: includes/wpua-options-page.php:281
|
386 |
msgid "X — Even more mature than above"
|
387 |
+
msgstr "X — Nog ouder"
|
388 |
|
389 |
#: includes/wpua-options-page.php:310
|
390 |
msgid ""
|
391 |
"For users without a custom avatar of their own, you can either display a "
|
392 |
"generic logo or a generated one based on their e-mail address."
|
393 |
msgstr ""
|
394 |
+
"Voor gebruikers zonder eigen avatar kun je een logo weergeven dat gemaakt "
|
395 |
+
"word gebaseerd op hun e-mailadres."
|
396 |
|
397 |
#: includes/wpua-tinymce-window.php:101
|
398 |
msgid "User Name"
|
452 |
|
453 |
#: includes/wpua-tinymce-window.php:170
|
454 |
msgid "Open link in a new window"
|
455 |
+
msgstr "Link openen in nieuw venster"
|
456 |
|
457 |
#: includes/wpua-tinymce-window.php:174
|
458 |
msgid "Caption"
|
467 |
msgstr "Avatar invoegen"
|
468 |
|
469 |
#. translators: placeholder for <a> and </a> tags.
|
470 |
+
#: one-user-avatar.php:94
|
471 |
msgid ""
|
472 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
473 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
474 |
msgstr ""
|
475 |
"De plug-in One User Avatar is een vervanging voor de oude WP User Avatar-"
|
476 |
+
"plug-in. %1$sDeactiveer WP User Avatar%2$s om het te gebruiken."
|
477 |
+
|
478 |
+
#~ msgid "Edit Image"
|
479 |
+
#~ msgstr "Afbeelding bewerken"
|
480 |
+
|
481 |
+
#, php-format
|
482 |
+
#~ msgid "Edit %s"
|
483 |
+
#~ msgstr "%s bewerken"
|
484 |
+
|
485 |
+
#, php-format
|
486 |
+
#~ msgid "View %s"
|
487 |
+
#~ msgstr "%s bekijken"
|
488 |
+
|
489 |
+
#~ msgid "Media attachment permanently deleted."
|
490 |
+
#~ msgstr "Mediabijlage permanent verwijderd."
|
languages/one-user-avatar.pot
CHANGED
@@ -2,21 +2,21 @@
|
|
2 |
# This file is distributed under the GPLv2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: One User Avatar 2.3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: one-user-avatar\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
-
#: includes/class-wp-user-avatar-admin.php:
|
19 |
-
#: includes/class-wp-user-avatar-admin.php:
|
20 |
#: includes/class-wp-user-avatar-widget.php:32
|
21 |
#: includes/wpua-options-page.php:55
|
22 |
#: includes/wpua-tinymce-window.php:31
|
@@ -39,84 +39,80 @@ msgstr ""
|
|
39 |
msgid "https://onedesigns.com/"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: includes/class-wp-user-avatar-admin.php:
|
43 |
msgid "You are not allowed to delete this post."
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: includes/class-wp-user-avatar-admin.php:
|
47 |
msgid "Error in deleting."
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: includes/class-wp-user-avatar-admin.php:
|
51 |
-
#: includes/class-wp-user-avatar-admin.php:
|
52 |
#: includes/wpua-media-page.php:59
|
53 |
msgid "Avatars"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
-
#: includes/class-wp-user-avatar-admin.php:
|
59 |
#: includes/wpua-options-page.php:93
|
60 |
msgid "Settings"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
-
#: includes/class-wp-user-avatar-admin.php:
|
65 |
msgid "Library"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:
|
69 |
msgid "Mystery Man"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: includes/class-wp-user-avatar-admin.php:
|
73 |
msgid "Blank"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: includes/class-wp-user-avatar-admin.php:
|
77 |
msgid "Gravatar Logo"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: includes/class-wp-user-avatar-admin.php:
|
81 |
msgid "Identicon (Generated)"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: includes/class-wp-user-avatar-admin.php:
|
85 |
msgid "Wavatar (Generated)"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/class-wp-user-avatar-admin.php:
|
89 |
msgid "MonsterID (Generated)"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/class-wp-user-avatar-admin.php:
|
93 |
msgid "Retro (Generated)"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/class-wp-user-avatar-admin.php:
|
97 |
#: includes/class-wp-user-avatar.php:231
|
98 |
msgid "Choose Image"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:
|
102 |
msgid "Remove"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/class-wp-user-avatar-admin.php:
|
106 |
#: includes/class-wp-user-avatar.php:292
|
107 |
msgid "Undo"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:
|
111 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
115 |
msgid "Support Forums"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: includes/class-wp-user-avatar-admin.php:
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:
|
120 |
#: includes/wpua-functions.php:93
|
121 |
#: includes/wpua-functions.php:106
|
122 |
#: includes/wpua-functions.php:114
|
@@ -125,22 +121,24 @@ msgstr ""
|
|
125 |
msgid "Profile Picture"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/class-wp-user-avatar-admin.php:
|
129 |
#: includes/wpua-options-page.php:300
|
130 |
#: includes/wpua-options-page.php:306
|
131 |
msgid "Default Avatar"
|
132 |
msgstr ""
|
133 |
|
134 |
#: includes/class-wp-user-avatar-functions.php:515
|
135 |
-
#: includes/class-wp-user-avatar-functions.php:
|
136 |
msgid "Avatar"
|
137 |
msgstr ""
|
138 |
|
139 |
#. translators: uploaded files
|
140 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
141 |
msgctxt "uploaded files"
|
142 |
msgid "All %s"
|
143 |
-
|
|
|
|
|
144 |
|
145 |
#: includes/class-wp-user-avatar-list-table.php:192
|
146 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -216,7 +214,7 @@ msgstr ""
|
|
216 |
msgid "We're sorry, but your theme's page template didn't make a call to %s, which is required by One User Avatar. Please add this call to your page templates."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
220 |
msgid "Profile updated."
|
221 |
msgstr ""
|
222 |
|
@@ -468,6 +466,6 @@ msgid "Insert Avatar"
|
|
468 |
msgstr ""
|
469 |
|
470 |
#. translators: placeholder for <a> and </a> tags.
|
471 |
-
#: one-user-avatar.php:
|
472 |
msgid "The plugin One User Avatar is a replacement for the old WP User Avatar plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
473 |
msgstr ""
|
2 |
# This file is distributed under the GPLv2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: One User Avatar 2.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: one-user-avatar\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
18 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
19 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
20 |
#: includes/class-wp-user-avatar-widget.php:32
|
21 |
#: includes/wpua-options-page.php:55
|
22 |
#: includes/wpua-tinymce-window.php:31
|
39 |
msgid "https://onedesigns.com/"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
43 |
msgid "You are not allowed to delete this post."
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
47 |
msgid "Error in deleting."
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
51 |
+
#: includes/class-wp-user-avatar-admin.php:289
|
52 |
#: includes/wpua-media-page.php:59
|
53 |
msgid "Avatars"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
58 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
59 |
#: includes/wpua-options-page.php:93
|
60 |
msgid "Settings"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
64 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
65 |
msgid "Library"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
69 |
msgid "Mystery Man"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
73 |
msgid "Blank"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
77 |
msgid "Gravatar Logo"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
81 |
msgid "Identicon (Generated)"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
85 |
msgid "Wavatar (Generated)"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
89 |
msgid "MonsterID (Generated)"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
93 |
msgid "Retro (Generated)"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
97 |
#: includes/class-wp-user-avatar.php:231
|
98 |
msgid "Choose Image"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
102 |
msgid "Remove"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
106 |
#: includes/class-wp-user-avatar.php:292
|
107 |
msgid "Undo"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
111 |
msgid "Support Forums"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
115 |
+
#: includes/class-wp-user-avatar-admin.php:559
|
116 |
#: includes/wpua-functions.php:93
|
117 |
#: includes/wpua-functions.php:106
|
118 |
#: includes/wpua-functions.php:114
|
121 |
msgid "Profile Picture"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
125 |
#: includes/wpua-options-page.php:300
|
126 |
#: includes/wpua-options-page.php:306
|
127 |
msgid "Default Avatar"
|
128 |
msgstr ""
|
129 |
|
130 |
#: includes/class-wp-user-avatar-functions.php:515
|
131 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
132 |
msgid "Avatar"
|
133 |
msgstr ""
|
134 |
|
135 |
#. translators: uploaded files
|
136 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
137 |
msgctxt "uploaded files"
|
138 |
msgid "All %s"
|
139 |
+
msgid_plural "All %s"
|
140 |
+
msgstr[0] ""
|
141 |
+
msgstr[1] ""
|
142 |
|
143 |
#: includes/class-wp-user-avatar-list-table.php:192
|
144 |
#: includes/class-wp-user-avatar-list-table.php:549
|
214 |
msgid "We're sorry, but your theme's page template didn't make a call to %s, which is required by One User Avatar. Please add this call to your page templates."
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
218 |
msgid "Profile updated."
|
219 |
msgstr ""
|
220 |
|
466 |
msgstr ""
|
467 |
|
468 |
#. translators: placeholder for <a> and </a> tags.
|
469 |
+
#: one-user-avatar.php:94
|
470 |
msgid "The plugin One User Avatar is a replacement for the old WP User Avatar plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
471 |
msgstr ""
|
languages/pt_BR.mo
DELETED
Binary file
|
languages/pt_BR.po
DELETED
@@ -1,480 +0,0 @@
|
|
1 |
-
# Copyright (C) 2021 One Designs
|
2 |
-
# This file is distributed under the GPLv2.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: One User Avatar 2.3.2\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"POT-Creation-Date: 2021-06-01T19:12:54+00:00\n"
|
12 |
-
"PO-Revision-Date: 2021-06-01 20:46+0100\n"
|
13 |
-
"X-Generator: Poedit 2.4.3\n"
|
14 |
-
"X-Domain: one-user-avatar\n"
|
15 |
-
"Last-Translator: \n"
|
16 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
-
"Language: pt_BR\n"
|
18 |
-
|
19 |
-
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:227
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:426
|
22 |
-
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
-
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
-
msgid "One User Avatar"
|
25 |
-
msgstr "One User Avatar"
|
26 |
-
|
27 |
-
#. Plugin URI of the plugin
|
28 |
-
msgid "https://onedesigns.com/plugins/one-user-avatar/"
|
29 |
-
msgstr "https://onedesigns.com/plugins/one-user-avatar/"
|
30 |
-
|
31 |
-
#. Description of the plugin
|
32 |
-
msgid ""
|
33 |
-
"Use any image from your WordPress Media Library as a custom user avatar. Add "
|
34 |
-
"your own Default Avatar. Fork of WP User Avatar v2.2.16."
|
35 |
-
msgstr ""
|
36 |
-
"Use qualquer imagem da sua biblioteca de mídia do WordPress como um avatar "
|
37 |
-
"de usuário personalizado. Adicione seu próprio Avatar padrão. Fork do WP "
|
38 |
-
"User Avatar v2.2.16."
|
39 |
-
|
40 |
-
#. Author of the plugin
|
41 |
-
msgid "One Designs"
|
42 |
-
msgstr "One Designs"
|
43 |
-
|
44 |
-
#. Author URI of the plugin
|
45 |
-
msgid "https://onedesigns.com/"
|
46 |
-
msgstr "https://onedesigns.com/"
|
47 |
-
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:170
|
49 |
-
msgid "You are not allowed to delete this post."
|
50 |
-
msgstr "Não tem permissões para eliminar este conteúdo."
|
51 |
-
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:174
|
53 |
-
msgid "Error in deleting."
|
54 |
-
msgstr "Erro ao excluir."
|
55 |
-
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:228
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:286 includes/wpua-media-page.php:59
|
58 |
-
msgid "Avatars"
|
59 |
-
msgstr "Avatares"
|
60 |
-
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:237
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:238
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:462
|
64 |
-
#: includes/wpua-options-page.php:93
|
65 |
-
msgid "Settings"
|
66 |
-
msgstr "Opções"
|
67 |
-
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:246
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:247
|
70 |
-
msgid "Library"
|
71 |
-
msgstr "Biblioteca"
|
72 |
-
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:372
|
74 |
-
msgid "Mystery Man"
|
75 |
-
msgstr "Homem misterioso"
|
76 |
-
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:373
|
78 |
-
msgid "Blank"
|
79 |
-
msgstr "Em branco"
|
80 |
-
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:374
|
82 |
-
msgid "Gravatar Logo"
|
83 |
-
msgstr "Logotipo Gravatar"
|
84 |
-
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:375
|
86 |
-
msgid "Identicon (Generated)"
|
87 |
-
msgstr "Identicon (Gerado)"
|
88 |
-
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:376
|
90 |
-
msgid "Wavatar (Generated)"
|
91 |
-
msgstr "Wavatar (Gerado)"
|
92 |
-
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:377
|
94 |
-
msgid "MonsterID (Generated)"
|
95 |
-
msgstr "MonsterID (Gerado)"
|
96 |
-
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:378
|
98 |
-
msgid "Retro (Generated)"
|
99 |
-
msgstr "Retro (Gerado)"
|
100 |
-
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:427
|
102 |
-
#: includes/class-wp-user-avatar.php:231
|
103 |
-
msgid "Choose Image"
|
104 |
-
msgstr "Escolher imagem"
|
105 |
-
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:428
|
107 |
-
msgid "Remove"
|
108 |
-
msgstr "Remover"
|
109 |
-
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:428
|
111 |
-
#: includes/class-wp-user-avatar.php:292
|
112 |
-
msgid "Undo"
|
113 |
-
msgstr "Anular"
|
114 |
-
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:480
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
-
msgid "Support Forums"
|
121 |
-
msgstr "Fórum de suporte"
|
122 |
-
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:495
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:556 includes/wpua-functions.php:93
|
125 |
-
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
-
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
-
msgid "Profile Picture"
|
128 |
-
msgstr "Foto do perfil"
|
129 |
-
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:560
|
131 |
-
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
-
msgid "Default Avatar"
|
133 |
-
msgstr "Avatar padrão"
|
134 |
-
|
135 |
-
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:716
|
137 |
-
msgid "Avatar"
|
138 |
-
msgstr "Avatar"
|
139 |
-
|
140 |
-
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:176
|
142 |
-
msgctxt "uploaded files"
|
143 |
-
msgid "All %s"
|
144 |
-
msgstr "Tudo %s"
|
145 |
-
|
146 |
-
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
-
#: includes/class-wp-user-avatar-list-table.php:549
|
148 |
-
msgid "Delete Permanently"
|
149 |
-
msgstr "Eliminar permanentemente"
|
150 |
-
|
151 |
-
#: includes/class-wp-user-avatar-list-table.php:222
|
152 |
-
msgid "No media attachments found."
|
153 |
-
msgstr "Nenhum anexo de mídia encontrado."
|
154 |
-
|
155 |
-
#: includes/class-wp-user-avatar-list-table.php:235
|
156 |
-
msgctxt "column name"
|
157 |
-
msgid "File"
|
158 |
-
msgstr "Ficheiro"
|
159 |
-
|
160 |
-
#: includes/class-wp-user-avatar-list-table.php:236
|
161 |
-
msgid "Author"
|
162 |
-
msgstr "Autor"
|
163 |
-
|
164 |
-
#: includes/class-wp-user-avatar-list-table.php:237
|
165 |
-
msgctxt "column name"
|
166 |
-
msgid "Uploaded to"
|
167 |
-
msgstr "Carregado para"
|
168 |
-
|
169 |
-
#: includes/class-wp-user-avatar-list-table.php:238
|
170 |
-
msgctxt "column name"
|
171 |
-
msgid "Date"
|
172 |
-
msgstr "Data"
|
173 |
-
|
174 |
-
#. translators: post title
|
175 |
-
#: includes/class-wp-user-avatar-list-table.php:323
|
176 |
-
msgid "Select %s"
|
177 |
-
msgstr "Selecione %s"
|
178 |
-
|
179 |
-
#: includes/class-wp-user-avatar-list-table.php:414
|
180 |
-
msgid "Unpublished"
|
181 |
-
msgstr "Não publicado"
|
182 |
-
|
183 |
-
#. translators: time from now
|
184 |
-
#: includes/class-wp-user-avatar-list-table.php:422
|
185 |
-
msgctxt "time from now"
|
186 |
-
msgid "%s from now"
|
187 |
-
msgstr "%s a partir de agora"
|
188 |
-
|
189 |
-
#. translators: time ago
|
190 |
-
#: includes/class-wp-user-avatar-list-table.php:428
|
191 |
-
msgctxt "time ago"
|
192 |
-
msgid "%s ago"
|
193 |
-
msgstr "%s atrás"
|
194 |
-
|
195 |
-
#: includes/class-wp-user-avatar-list-table.php:433
|
196 |
-
msgid "Y/m/d"
|
197 |
-
msgstr "d/m/Y"
|
198 |
-
|
199 |
-
#: includes/class-wp-user-avatar-list-table.php:523
|
200 |
-
msgid "Edit"
|
201 |
-
msgstr "Editar"
|
202 |
-
|
203 |
-
#: includes/class-wp-user-avatar-list-table.php:532
|
204 |
-
msgid "Restore"
|
205 |
-
msgstr "Repor"
|
206 |
-
|
207 |
-
#: includes/class-wp-user-avatar-list-table.php:538
|
208 |
-
msgid "Trash"
|
209 |
-
msgstr "Lixo"
|
210 |
-
|
211 |
-
#: includes/class-wp-user-avatar-list-table.php:561
|
212 |
-
msgid "View"
|
213 |
-
msgstr "Ver"
|
214 |
-
|
215 |
-
#. translators: either wp_footer() or wp_print_footer_scripts() hook.
|
216 |
-
#: includes/class-wp-user-avatar-resource-manager.php:190
|
217 |
-
msgid ""
|
218 |
-
"We're sorry, but your theme's page template didn't make a call to %s, which "
|
219 |
-
"is required by One User Avatar. Please add this call to your page templates."
|
220 |
-
msgstr ""
|
221 |
-
"Lamentamos, mas o modelo de página do seu tema não fez uma chamada para %s, "
|
222 |
-
"que é exigido pelo One User Avatar. Por favor, adicione esta chamada aos "
|
223 |
-
"seus modelos de página."
|
224 |
-
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:243
|
226 |
-
msgid "Profile updated."
|
227 |
-
msgstr "Perfil atualizado."
|
228 |
-
|
229 |
-
#: includes/class-wp-user-avatar-shortcode.php:273
|
230 |
-
msgid "Update Profile"
|
231 |
-
msgstr "Atualizar perfil"
|
232 |
-
|
233 |
-
#. translators: [avatar_upload] shortcode
|
234 |
-
#: includes/class-wp-user-avatar-widget.php:27
|
235 |
-
msgid "Insert %s"
|
236 |
-
msgstr "Inserir %s"
|
237 |
-
|
238 |
-
#: includes/class-wp-user-avatar-widget.php:99
|
239 |
-
msgid "Title:"
|
240 |
-
msgstr "Título:"
|
241 |
-
|
242 |
-
#: includes/class-wp-user-avatar-widget.php:105
|
243 |
-
msgid "Description:"
|
244 |
-
msgstr "Descrição:"
|
245 |
-
|
246 |
-
#: includes/class-wp-user-avatar-widget.php:113
|
247 |
-
msgid "Automatically add paragraphs"
|
248 |
-
msgstr "Adicionar parágrafos automaticamente"
|
249 |
-
|
250 |
-
#. translators: user display name
|
251 |
-
#: includes/class-wp-user-avatar.php:227
|
252 |
-
msgid "Choose Image: %s"
|
253 |
-
msgstr "Escolher imagem: %s"
|
254 |
-
|
255 |
-
#: includes/class-wp-user-avatar.php:243 includes/class-wp-user-avatar.php:244
|
256 |
-
#: includes/wpua-tinymce-window.php:95 includes/wpua-tinymce-window.php:186
|
257 |
-
msgid "Upload"
|
258 |
-
msgstr "Carregar"
|
259 |
-
|
260 |
-
#. translators: file size in KB
|
261 |
-
#: includes/class-wp-user-avatar.php:253 includes/wpua-options-page.php:188
|
262 |
-
msgid "Maximum upload file size: %s."
|
263 |
-
msgstr "Tamanho máximo do ficheiro para carregamento: %s."
|
264 |
-
|
265 |
-
#. translators: allowed file extensions
|
266 |
-
#: includes/class-wp-user-avatar.php:263
|
267 |
-
msgid "Allowed Files: %s"
|
268 |
-
msgstr "Ficheiros permitidos: %s"
|
269 |
-
|
270 |
-
#: includes/class-wp-user-avatar.php:276 includes/class-wp-user-avatar.php:278
|
271 |
-
#: includes/wpua-tinymce-window.php:125
|
272 |
-
msgid "Original Size"
|
273 |
-
msgstr "Original"
|
274 |
-
|
275 |
-
#: includes/class-wp-user-avatar.php:282 includes/class-wp-user-avatar.php:284
|
276 |
-
#: includes/wpua-tinymce-window.php:128
|
277 |
-
msgid "Thumbnail"
|
278 |
-
msgstr "Miniatura"
|
279 |
-
|
280 |
-
#: includes/class-wp-user-avatar.php:288
|
281 |
-
msgid "Remove Image"
|
282 |
-
msgstr "Remover imagem"
|
283 |
-
|
284 |
-
#: includes/class-wp-user-avatar.php:377
|
285 |
-
msgid "This file is not an image. Please try another."
|
286 |
-
msgstr "Este ficheiro não é uma imagem. Por favor tente com outro."
|
287 |
-
|
288 |
-
#: includes/class-wp-user-avatar.php:382 includes/class-wp-user-avatar.php:414
|
289 |
-
msgid "Memory exceeded. Please try another smaller file."
|
290 |
-
msgstr "Memória esgotada. Por favor tente com um ficheiro mais pequeno."
|
291 |
-
|
292 |
-
#. translators: directory path
|
293 |
-
#: includes/class-wp-user-avatar.php:389
|
294 |
-
msgid ""
|
295 |
-
"Unable to create directory %s. Is its parent directory writable by the "
|
296 |
-
"server?"
|
297 |
-
msgstr ""
|
298 |
-
"Não foi possível criar o directório %s. O directório do nível acima tem "
|
299 |
-
"permissões de escrita?"
|
300 |
-
|
301 |
-
#: includes/wpua-functions.php:109 includes/wpua-functions.php:118
|
302 |
-
msgid "Image"
|
303 |
-
msgstr "Imagem"
|
304 |
-
|
305 |
-
#: includes/wpua-media-page.php:46
|
306 |
-
msgid "You do not have permission to upload files."
|
307 |
-
msgstr "Você não tem permissão para fazer upload de arquivos."
|
308 |
-
|
309 |
-
#. translators: search query
|
310 |
-
#: includes/wpua-media-page.php:66
|
311 |
-
msgid "Search results for %s"
|
312 |
-
msgstr "Resultados da pesquisa por %s"
|
313 |
-
|
314 |
-
#: includes/wpua-media-page.php:98
|
315 |
-
msgid "Search"
|
316 |
-
msgstr "Pesquisar"
|
317 |
-
|
318 |
-
#: includes/wpua-options-page.php:108
|
319 |
-
msgid "Add avatar button to Visual Editor"
|
320 |
-
msgstr "Adicionar botão de avatar ao Editor Visual"
|
321 |
-
|
322 |
-
#: includes/wpua-options-page.php:119
|
323 |
-
msgid "Allow Contributors & Subscribers to upload avatars"
|
324 |
-
msgstr "Permitir que contribuidores e subscritores carreguem avatares"
|
325 |
-
|
326 |
-
#: includes/wpua-options-page.php:130
|
327 |
-
msgid "Disable Gravatar and use only local avatars"
|
328 |
-
msgstr "Desative o Gravatar e use apenas avatares locais"
|
329 |
-
|
330 |
-
#: includes/wpua-options-page.php:158 includes/wpua-options-page.php:167
|
331 |
-
msgid "Upload Size Limit"
|
332 |
-
msgstr "Limite de tamanho de upload"
|
333 |
-
|
334 |
-
#: includes/wpua-options-page.php:159 includes/wpua-options-page.php:168
|
335 |
-
msgid "(only for Contributors & Subscribers)"
|
336 |
-
msgstr "(apenas para contribuidores e subscritores)"
|
337 |
-
|
338 |
-
#. translators: file name
|
339 |
-
#: includes/wpua-options-page.php:178
|
340 |
-
msgid "%s exceeds the maximum upload size for this site."
|
341 |
-
msgstr "%s excede o tamanho máximo de carregamentos para este site."
|
342 |
-
|
343 |
-
#: includes/wpua-options-page.php:199
|
344 |
-
msgid "Allow users to edit avatars"
|
345 |
-
msgstr "Permitir que os usuários editem avatares"
|
346 |
-
|
347 |
-
#: includes/wpua-options-page.php:207
|
348 |
-
msgid "Resize avatars on upload"
|
349 |
-
msgstr "Redimensionar avatares no upload"
|
350 |
-
|
351 |
-
#: includes/wpua-options-page.php:212
|
352 |
-
msgid "Width"
|
353 |
-
msgstr "Largura"
|
354 |
-
|
355 |
-
#: includes/wpua-options-page.php:216
|
356 |
-
msgid "Height"
|
357 |
-
msgstr "Altura"
|
358 |
-
|
359 |
-
#: includes/wpua-options-page.php:224
|
360 |
-
msgid "Crop avatars to exact dimensions"
|
361 |
-
msgstr "Recorte avatares nas dimensões exatas"
|
362 |
-
|
363 |
-
#: includes/wpua-options-page.php:246 includes/wpua-options-page.php:252
|
364 |
-
msgid "Avatar Display"
|
365 |
-
msgstr "Exibição de Avatar"
|
366 |
-
|
367 |
-
#: includes/wpua-options-page.php:259
|
368 |
-
msgid "Show Avatars"
|
369 |
-
msgstr "Mostrar Avatares"
|
370 |
-
|
371 |
-
#: includes/wpua-options-page.php:266 includes/wpua-options-page.php:272
|
372 |
-
msgid "Maximum Rating"
|
373 |
-
msgstr "Classificação Máxima"
|
374 |
-
|
375 |
-
#: includes/wpua-options-page.php:278
|
376 |
-
msgid "G — Suitable for all audiences"
|
377 |
-
msgstr "G — Adequado para todos os públicos"
|
378 |
-
|
379 |
-
#: includes/wpua-options-page.php:279
|
380 |
-
msgid "PG — Possibly offensive, usually for audiences 13 and above"
|
381 |
-
msgstr ""
|
382 |
-
"PG — Possivelmente ofensivo, geralmente para públicos a partir de 13 "
|
383 |
-
"anos"
|
384 |
-
|
385 |
-
#: includes/wpua-options-page.php:280
|
386 |
-
msgid "R — Intended for adult audiences above 17"
|
387 |
-
msgstr "R — Destinado ao público adulto acima de 17"
|
388 |
-
|
389 |
-
#: includes/wpua-options-page.php:281
|
390 |
-
msgid "X — Even more mature than above"
|
391 |
-
msgstr "X — Ainda mais maduro do que acima"
|
392 |
-
|
393 |
-
#: includes/wpua-options-page.php:310
|
394 |
-
msgid ""
|
395 |
-
"For users without a custom avatar of their own, you can either display a "
|
396 |
-
"generic logo or a generated one based on their e-mail address."
|
397 |
-
msgstr ""
|
398 |
-
"Para usuários sem avatar personalizado, você pode exibir um logotipo "
|
399 |
-
"genérico ou gerado com base em seus endereça de e-mail."
|
400 |
-
|
401 |
-
#: includes/wpua-tinymce-window.php:101
|
402 |
-
msgid "User Name"
|
403 |
-
msgstr "Nome do usuário"
|
404 |
-
|
405 |
-
#: includes/wpua-tinymce-window.php:121 includes/wpua-tinymce-window.php:134
|
406 |
-
msgid "Size:"
|
407 |
-
msgstr "Tamanho:"
|
408 |
-
|
409 |
-
#: includes/wpua-tinymce-window.php:126
|
410 |
-
msgid "Large"
|
411 |
-
msgstr "Grande"
|
412 |
-
|
413 |
-
#: includes/wpua-tinymce-window.php:127
|
414 |
-
msgid "Medium"
|
415 |
-
msgstr "Média"
|
416 |
-
|
417 |
-
#: includes/wpua-tinymce-window.php:129
|
418 |
-
msgid "Custom"
|
419 |
-
msgstr "Personalizado"
|
420 |
-
|
421 |
-
#: includes/wpua-tinymce-window.php:140
|
422 |
-
msgid "Alignment:"
|
423 |
-
msgstr "Alinhamento:"
|
424 |
-
|
425 |
-
#: includes/wpua-tinymce-window.php:144
|
426 |
-
msgid "Center"
|
427 |
-
msgstr "Centro"
|
428 |
-
|
429 |
-
#: includes/wpua-tinymce-window.php:145
|
430 |
-
msgid "Left"
|
431 |
-
msgstr "Esquerda"
|
432 |
-
|
433 |
-
#: includes/wpua-tinymce-window.php:146
|
434 |
-
msgid "Right"
|
435 |
-
msgstr "Direita"
|
436 |
-
|
437 |
-
#: includes/wpua-tinymce-window.php:151
|
438 |
-
msgid "Link To:"
|
439 |
-
msgstr "Ligar a:"
|
440 |
-
|
441 |
-
#: includes/wpua-tinymce-window.php:155
|
442 |
-
msgid "Image File"
|
443 |
-
msgstr "Ficheiro de imagem"
|
444 |
-
|
445 |
-
#: includes/wpua-tinymce-window.php:156
|
446 |
-
msgid "Attachment Page"
|
447 |
-
msgstr "Página do anexo"
|
448 |
-
|
449 |
-
#: includes/wpua-tinymce-window.php:157
|
450 |
-
msgid "Custom URL"
|
451 |
-
msgstr "URL personalizado"
|
452 |
-
|
453 |
-
#: includes/wpua-tinymce-window.php:162
|
454 |
-
msgid "URL:"
|
455 |
-
msgstr "URL:"
|
456 |
-
|
457 |
-
#: includes/wpua-tinymce-window.php:170
|
458 |
-
msgid "Open link in a new window"
|
459 |
-
msgstr "Abrir link em uma nova janela"
|
460 |
-
|
461 |
-
#: includes/wpua-tinymce-window.php:174
|
462 |
-
msgid "Caption"
|
463 |
-
msgstr "Legenda"
|
464 |
-
|
465 |
-
#: includes/wpua-tinymce-window.php:180 includes/wpua-tinymce-window.php:192
|
466 |
-
msgid "Insert into Post"
|
467 |
-
msgstr "Inserir no artigo"
|
468 |
-
|
469 |
-
#: includes/wpua-tinymce.php:70
|
470 |
-
msgid "Insert Avatar"
|
471 |
-
msgstr "Inserir avatar"
|
472 |
-
|
473 |
-
#. translators: placeholder for <a> and </a> tags.
|
474 |
-
#: one-user-avatar.php:127
|
475 |
-
msgid ""
|
476 |
-
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
477 |
-
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
478 |
-
msgstr ""
|
479 |
-
"O plugin One User Avatar é uma substituição do antigo plugin WP User Avatar. "
|
480 |
-
"%1$sDesative o WP User Avatar%2$s para começar a usá-lo."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/pt_PT.mo
DELETED
Binary file
|
languages/pt_PT.po
DELETED
@@ -1,480 +0,0 @@
|
|
1 |
-
# Copyright (C) 2021 One Designs
|
2 |
-
# This file is distributed under the GPLv2.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: One User Avatar 2.3.2\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"POT-Creation-Date: 2021-06-01T19:12:54+00:00\n"
|
12 |
-
"PO-Revision-Date: 2021-06-01 20:44+0100\n"
|
13 |
-
"X-Generator: Poedit 2.4.3\n"
|
14 |
-
"X-Domain: one-user-avatar\n"
|
15 |
-
"Last-Translator: \n"
|
16 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
-
"Language: pt_PT\n"
|
18 |
-
|
19 |
-
#. Plugin Name of the plugin
|
20 |
-
#: includes/class-wp-user-avatar-admin.php:227
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:426
|
22 |
-
#: includes/class-wp-user-avatar-widget.php:32
|
23 |
-
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
24 |
-
msgid "One User Avatar"
|
25 |
-
msgstr "One User Avatar"
|
26 |
-
|
27 |
-
#. Plugin URI of the plugin
|
28 |
-
msgid "https://onedesigns.com/plugins/one-user-avatar/"
|
29 |
-
msgstr "https://onedesigns.com/plugins/one-user-avatar/"
|
30 |
-
|
31 |
-
#. Description of the plugin
|
32 |
-
msgid ""
|
33 |
-
"Use any image from your WordPress Media Library as a custom user avatar. Add "
|
34 |
-
"your own Default Avatar. Fork of WP User Avatar v2.2.16."
|
35 |
-
msgstr ""
|
36 |
-
"Use qualquer imagem da sua biblioteca de mídia do WordPress como um avatar "
|
37 |
-
"de usuário personalizado. Adicione seu próprio Avatar padrão. Fork do WP "
|
38 |
-
"User Avatar v2.2.16."
|
39 |
-
|
40 |
-
#. Author of the plugin
|
41 |
-
msgid "One Designs"
|
42 |
-
msgstr "One Designs"
|
43 |
-
|
44 |
-
#. Author URI of the plugin
|
45 |
-
msgid "https://onedesigns.com/"
|
46 |
-
msgstr "https://onedesigns.com/"
|
47 |
-
|
48 |
-
#: includes/class-wp-user-avatar-admin.php:170
|
49 |
-
msgid "You are not allowed to delete this post."
|
50 |
-
msgstr "Não tem permissões para eliminar este conteúdo."
|
51 |
-
|
52 |
-
#: includes/class-wp-user-avatar-admin.php:174
|
53 |
-
msgid "Error in deleting."
|
54 |
-
msgstr "Erro ao excluir."
|
55 |
-
|
56 |
-
#: includes/class-wp-user-avatar-admin.php:228
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:286 includes/wpua-media-page.php:59
|
58 |
-
msgid "Avatars"
|
59 |
-
msgstr "Avatares"
|
60 |
-
|
61 |
-
#: includes/class-wp-user-avatar-admin.php:237
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:238
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:462
|
64 |
-
#: includes/wpua-options-page.php:93
|
65 |
-
msgid "Settings"
|
66 |
-
msgstr "Opções"
|
67 |
-
|
68 |
-
#: includes/class-wp-user-avatar-admin.php:246
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:247
|
70 |
-
msgid "Library"
|
71 |
-
msgstr "Biblioteca"
|
72 |
-
|
73 |
-
#: includes/class-wp-user-avatar-admin.php:372
|
74 |
-
msgid "Mystery Man"
|
75 |
-
msgstr "Homem misterioso"
|
76 |
-
|
77 |
-
#: includes/class-wp-user-avatar-admin.php:373
|
78 |
-
msgid "Blank"
|
79 |
-
msgstr "Em branco"
|
80 |
-
|
81 |
-
#: includes/class-wp-user-avatar-admin.php:374
|
82 |
-
msgid "Gravatar Logo"
|
83 |
-
msgstr "Logotipo Gravatar"
|
84 |
-
|
85 |
-
#: includes/class-wp-user-avatar-admin.php:375
|
86 |
-
msgid "Identicon (Generated)"
|
87 |
-
msgstr "Identicon (Gerado)"
|
88 |
-
|
89 |
-
#: includes/class-wp-user-avatar-admin.php:376
|
90 |
-
msgid "Wavatar (Generated)"
|
91 |
-
msgstr "Wavatar (Gerado)"
|
92 |
-
|
93 |
-
#: includes/class-wp-user-avatar-admin.php:377
|
94 |
-
msgid "MonsterID (Generated)"
|
95 |
-
msgstr "MonsterID (Gerado)"
|
96 |
-
|
97 |
-
#: includes/class-wp-user-avatar-admin.php:378
|
98 |
-
msgid "Retro (Generated)"
|
99 |
-
msgstr "Retro (Gerado)"
|
100 |
-
|
101 |
-
#: includes/class-wp-user-avatar-admin.php:427
|
102 |
-
#: includes/class-wp-user-avatar.php:231
|
103 |
-
msgid "Choose Image"
|
104 |
-
msgstr "Escolher imagem"
|
105 |
-
|
106 |
-
#: includes/class-wp-user-avatar-admin.php:428
|
107 |
-
msgid "Remove"
|
108 |
-
msgstr "Remover"
|
109 |
-
|
110 |
-
#: includes/class-wp-user-avatar-admin.php:428
|
111 |
-
#: includes/class-wp-user-avatar.php:292
|
112 |
-
msgid "Undo"
|
113 |
-
msgstr "Anular"
|
114 |
-
|
115 |
-
#: includes/class-wp-user-avatar-admin.php:480
|
116 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
117 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
|
119 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
120 |
-
msgid "Support Forums"
|
121 |
-
msgstr "Fórum de suporte"
|
122 |
-
|
123 |
-
#: includes/class-wp-user-avatar-admin.php:495
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:556 includes/wpua-functions.php:93
|
125 |
-
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
126 |
-
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
127 |
-
msgid "Profile Picture"
|
128 |
-
msgstr "Foto do perfil"
|
129 |
-
|
130 |
-
#: includes/class-wp-user-avatar-admin.php:560
|
131 |
-
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
132 |
-
msgid "Default Avatar"
|
133 |
-
msgstr "Avatar padrão"
|
134 |
-
|
135 |
-
#: includes/class-wp-user-avatar-functions.php:515
|
136 |
-
#: includes/class-wp-user-avatar-functions.php:716
|
137 |
-
msgid "Avatar"
|
138 |
-
msgstr "Avatar"
|
139 |
-
|
140 |
-
#. translators: uploaded files
|
141 |
-
#: includes/class-wp-user-avatar-list-table.php:176
|
142 |
-
msgctxt "uploaded files"
|
143 |
-
msgid "All %s"
|
144 |
-
msgstr "Tudo %s"
|
145 |
-
|
146 |
-
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
-
#: includes/class-wp-user-avatar-list-table.php:549
|
148 |
-
msgid "Delete Permanently"
|
149 |
-
msgstr "Eliminar permanentemente"
|
150 |
-
|
151 |
-
#: includes/class-wp-user-avatar-list-table.php:222
|
152 |
-
msgid "No media attachments found."
|
153 |
-
msgstr "Nenhum anexo de mídia encontrado."
|
154 |
-
|
155 |
-
#: includes/class-wp-user-avatar-list-table.php:235
|
156 |
-
msgctxt "column name"
|
157 |
-
msgid "File"
|
158 |
-
msgstr "Ficheiro"
|
159 |
-
|
160 |
-
#: includes/class-wp-user-avatar-list-table.php:236
|
161 |
-
msgid "Author"
|
162 |
-
msgstr "Autor"
|
163 |
-
|
164 |
-
#: includes/class-wp-user-avatar-list-table.php:237
|
165 |
-
msgctxt "column name"
|
166 |
-
msgid "Uploaded to"
|
167 |
-
msgstr "Carregado para"
|
168 |
-
|
169 |
-
#: includes/class-wp-user-avatar-list-table.php:238
|
170 |
-
msgctxt "column name"
|
171 |
-
msgid "Date"
|
172 |
-
msgstr "Data"
|
173 |
-
|
174 |
-
#. translators: post title
|
175 |
-
#: includes/class-wp-user-avatar-list-table.php:323
|
176 |
-
msgid "Select %s"
|
177 |
-
msgstr "Selecione %s"
|
178 |
-
|
179 |
-
#: includes/class-wp-user-avatar-list-table.php:414
|
180 |
-
msgid "Unpublished"
|
181 |
-
msgstr "Não publicado"
|
182 |
-
|
183 |
-
#. translators: time from now
|
184 |
-
#: includes/class-wp-user-avatar-list-table.php:422
|
185 |
-
msgctxt "time from now"
|
186 |
-
msgid "%s from now"
|
187 |
-
msgstr "%s a partir de agora"
|
188 |
-
|
189 |
-
#. translators: time ago
|
190 |
-
#: includes/class-wp-user-avatar-list-table.php:428
|
191 |
-
msgctxt "time ago"
|
192 |
-
msgid "%s ago"
|
193 |
-
msgstr "%s atrás"
|
194 |
-
|
195 |
-
#: includes/class-wp-user-avatar-list-table.php:433
|
196 |
-
msgid "Y/m/d"
|
197 |
-
msgstr "d/m/Y"
|
198 |
-
|
199 |
-
#: includes/class-wp-user-avatar-list-table.php:523
|
200 |
-
msgid "Edit"
|
201 |
-
msgstr "Editar"
|
202 |
-
|
203 |
-
#: includes/class-wp-user-avatar-list-table.php:532
|
204 |
-
msgid "Restore"
|
205 |
-
msgstr "Repor"
|
206 |
-
|
207 |
-
#: includes/class-wp-user-avatar-list-table.php:538
|
208 |
-
msgid "Trash"
|
209 |
-
msgstr "Lixo"
|
210 |
-
|
211 |
-
#: includes/class-wp-user-avatar-list-table.php:561
|
212 |
-
msgid "View"
|
213 |
-
msgstr "Ver"
|
214 |
-
|
215 |
-
#. translators: either wp_footer() or wp_print_footer_scripts() hook.
|
216 |
-
#: includes/class-wp-user-avatar-resource-manager.php:190
|
217 |
-
msgid ""
|
218 |
-
"We're sorry, but your theme's page template didn't make a call to %s, which "
|
219 |
-
"is required by One User Avatar. Please add this call to your page templates."
|
220 |
-
msgstr ""
|
221 |
-
"Lamentamos, mas o modelo de página do seu tema não fez uma chamada para %s, "
|
222 |
-
"que é exigido pelo One User Avatar. Por favor, adicione esta chamada aos "
|
223 |
-
"seus modelos de página."
|
224 |
-
|
225 |
-
#: includes/class-wp-user-avatar-shortcode.php:243
|
226 |
-
msgid "Profile updated."
|
227 |
-
msgstr "Perfil atualizado."
|
228 |
-
|
229 |
-
#: includes/class-wp-user-avatar-shortcode.php:273
|
230 |
-
msgid "Update Profile"
|
231 |
-
msgstr "Atualizar perfil"
|
232 |
-
|
233 |
-
#. translators: [avatar_upload] shortcode
|
234 |
-
#: includes/class-wp-user-avatar-widget.php:27
|
235 |
-
msgid "Insert %s"
|
236 |
-
msgstr "Inserir %s"
|
237 |
-
|
238 |
-
#: includes/class-wp-user-avatar-widget.php:99
|
239 |
-
msgid "Title:"
|
240 |
-
msgstr "Título:"
|
241 |
-
|
242 |
-
#: includes/class-wp-user-avatar-widget.php:105
|
243 |
-
msgid "Description:"
|
244 |
-
msgstr "Descrição:"
|
245 |
-
|
246 |
-
#: includes/class-wp-user-avatar-widget.php:113
|
247 |
-
msgid "Automatically add paragraphs"
|
248 |
-
msgstr "Adicionar parágrafos automaticamente"
|
249 |
-
|
250 |
-
#. translators: user display name
|
251 |
-
#: includes/class-wp-user-avatar.php:227
|
252 |
-
msgid "Choose Image: %s"
|
253 |
-
msgstr "Escolher imagem: %s"
|
254 |
-
|
255 |
-
#: includes/class-wp-user-avatar.php:243 includes/class-wp-user-avatar.php:244
|
256 |
-
#: includes/wpua-tinymce-window.php:95 includes/wpua-tinymce-window.php:186
|
257 |
-
msgid "Upload"
|
258 |
-
msgstr "Carregar"
|
259 |
-
|
260 |
-
#. translators: file size in KB
|
261 |
-
#: includes/class-wp-user-avatar.php:253 includes/wpua-options-page.php:188
|
262 |
-
msgid "Maximum upload file size: %s."
|
263 |
-
msgstr "Tamanho máximo do ficheiro para carregamento: %s."
|
264 |
-
|
265 |
-
#. translators: allowed file extensions
|
266 |
-
#: includes/class-wp-user-avatar.php:263
|
267 |
-
msgid "Allowed Files: %s"
|
268 |
-
msgstr "Ficheiros permitidos: %s"
|
269 |
-
|
270 |
-
#: includes/class-wp-user-avatar.php:276 includes/class-wp-user-avatar.php:278
|
271 |
-
#: includes/wpua-tinymce-window.php:125
|
272 |
-
msgid "Original Size"
|
273 |
-
msgstr "Original"
|
274 |
-
|
275 |
-
#: includes/class-wp-user-avatar.php:282 includes/class-wp-user-avatar.php:284
|
276 |
-
#: includes/wpua-tinymce-window.php:128
|
277 |
-
msgid "Thumbnail"
|
278 |
-
msgstr "Miniatura"
|
279 |
-
|
280 |
-
#: includes/class-wp-user-avatar.php:288
|
281 |
-
msgid "Remove Image"
|
282 |
-
msgstr "Remover imagem"
|
283 |
-
|
284 |
-
#: includes/class-wp-user-avatar.php:377
|
285 |
-
msgid "This file is not an image. Please try another."
|
286 |
-
msgstr "Este ficheiro não é uma imagem. Por favor tente com outro."
|
287 |
-
|
288 |
-
#: includes/class-wp-user-avatar.php:382 includes/class-wp-user-avatar.php:414
|
289 |
-
msgid "Memory exceeded. Please try another smaller file."
|
290 |
-
msgstr "Memória esgotada. Por favor tente com um ficheiro mais pequeno."
|
291 |
-
|
292 |
-
#. translators: directory path
|
293 |
-
#: includes/class-wp-user-avatar.php:389
|
294 |
-
msgid ""
|
295 |
-
"Unable to create directory %s. Is its parent directory writable by the "
|
296 |
-
"server?"
|
297 |
-
msgstr ""
|
298 |
-
"Não foi possível criar o directório %s. O directório do nível acima tem "
|
299 |
-
"permissões de escrita?"
|
300 |
-
|
301 |
-
#: includes/wpua-functions.php:109 includes/wpua-functions.php:118
|
302 |
-
msgid "Image"
|
303 |
-
msgstr "Imagem"
|
304 |
-
|
305 |
-
#: includes/wpua-media-page.php:46
|
306 |
-
msgid "You do not have permission to upload files."
|
307 |
-
msgstr "Você não tem permissão para fazer upload de arquivos."
|
308 |
-
|
309 |
-
#. translators: search query
|
310 |
-
#: includes/wpua-media-page.php:66
|
311 |
-
msgid "Search results for %s"
|
312 |
-
msgstr "Resultados da pesquisa por %s"
|
313 |
-
|
314 |
-
#: includes/wpua-media-page.php:98
|
315 |
-
msgid "Search"
|
316 |
-
msgstr "Pesquisar"
|
317 |
-
|
318 |
-
#: includes/wpua-options-page.php:108
|
319 |
-
msgid "Add avatar button to Visual Editor"
|
320 |
-
msgstr "Adicionar botão de avatar ao Editor Visual"
|
321 |
-
|
322 |
-
#: includes/wpua-options-page.php:119
|
323 |
-
msgid "Allow Contributors & Subscribers to upload avatars"
|
324 |
-
msgstr "Permitir que contribuidores e subscritores carreguem avatares"
|
325 |
-
|
326 |
-
#: includes/wpua-options-page.php:130
|
327 |
-
msgid "Disable Gravatar and use only local avatars"
|
328 |
-
msgstr "Desative o Gravatar e use apenas avatares locais"
|
329 |
-
|
330 |
-
#: includes/wpua-options-page.php:158 includes/wpua-options-page.php:167
|
331 |
-
msgid "Upload Size Limit"
|
332 |
-
msgstr "Limite de tamanho de upload"
|
333 |
-
|
334 |
-
#: includes/wpua-options-page.php:159 includes/wpua-options-page.php:168
|
335 |
-
msgid "(only for Contributors & Subscribers)"
|
336 |
-
msgstr "(apenas para contribuidores e subscritores)"
|
337 |
-
|
338 |
-
#. translators: file name
|
339 |
-
#: includes/wpua-options-page.php:178
|
340 |
-
msgid "%s exceeds the maximum upload size for this site."
|
341 |
-
msgstr "%s excede o tamanho máximo de carregamentos para este site."
|
342 |
-
|
343 |
-
#: includes/wpua-options-page.php:199
|
344 |
-
msgid "Allow users to edit avatars"
|
345 |
-
msgstr "Permitir que os usuários editem avatares"
|
346 |
-
|
347 |
-
#: includes/wpua-options-page.php:207
|
348 |
-
msgid "Resize avatars on upload"
|
349 |
-
msgstr "Redimensionar avatares no upload"
|
350 |
-
|
351 |
-
#: includes/wpua-options-page.php:212
|
352 |
-
msgid "Width"
|
353 |
-
msgstr "Largura"
|
354 |
-
|
355 |
-
#: includes/wpua-options-page.php:216
|
356 |
-
msgid "Height"
|
357 |
-
msgstr "Altura"
|
358 |
-
|
359 |
-
#: includes/wpua-options-page.php:224
|
360 |
-
msgid "Crop avatars to exact dimensions"
|
361 |
-
msgstr "Recorte avatares nas dimensões exatas"
|
362 |
-
|
363 |
-
#: includes/wpua-options-page.php:246 includes/wpua-options-page.php:252
|
364 |
-
msgid "Avatar Display"
|
365 |
-
msgstr "Exibição de Avatar"
|
366 |
-
|
367 |
-
#: includes/wpua-options-page.php:259
|
368 |
-
msgid "Show Avatars"
|
369 |
-
msgstr "Mostrar Avatares"
|
370 |
-
|
371 |
-
#: includes/wpua-options-page.php:266 includes/wpua-options-page.php:272
|
372 |
-
msgid "Maximum Rating"
|
373 |
-
msgstr "Classificação Máxima"
|
374 |
-
|
375 |
-
#: includes/wpua-options-page.php:278
|
376 |
-
msgid "G — Suitable for all audiences"
|
377 |
-
msgstr "G — Adequado para todos os públicos"
|
378 |
-
|
379 |
-
#: includes/wpua-options-page.php:279
|
380 |
-
msgid "PG — Possibly offensive, usually for audiences 13 and above"
|
381 |
-
msgstr ""
|
382 |
-
"PG — Possivelmente ofensivo, geralmente para públicos a partir de 13 "
|
383 |
-
"anos"
|
384 |
-
|
385 |
-
#: includes/wpua-options-page.php:280
|
386 |
-
msgid "R — Intended for adult audiences above 17"
|
387 |
-
msgstr "R — Destinado ao público adulto acima de 17"
|
388 |
-
|
389 |
-
#: includes/wpua-options-page.php:281
|
390 |
-
msgid "X — Even more mature than above"
|
391 |
-
msgstr "X — Ainda mais maduro do que acima"
|
392 |
-
|
393 |
-
#: includes/wpua-options-page.php:310
|
394 |
-
msgid ""
|
395 |
-
"For users without a custom avatar of their own, you can either display a "
|
396 |
-
"generic logo or a generated one based on their e-mail address."
|
397 |
-
msgstr ""
|
398 |
-
"Para usuários sem avatar personalizado, você pode exibir um logotipo "
|
399 |
-
"genérico ou gerado com base em seus endereça de e-mail."
|
400 |
-
|
401 |
-
#: includes/wpua-tinymce-window.php:101
|
402 |
-
msgid "User Name"
|
403 |
-
msgstr "Nome do usuário"
|
404 |
-
|
405 |
-
#: includes/wpua-tinymce-window.php:121 includes/wpua-tinymce-window.php:134
|
406 |
-
msgid "Size:"
|
407 |
-
msgstr "Tamanho:"
|
408 |
-
|
409 |
-
#: includes/wpua-tinymce-window.php:126
|
410 |
-
msgid "Large"
|
411 |
-
msgstr "Grande"
|
412 |
-
|
413 |
-
#: includes/wpua-tinymce-window.php:127
|
414 |
-
msgid "Medium"
|
415 |
-
msgstr "Média"
|
416 |
-
|
417 |
-
#: includes/wpua-tinymce-window.php:129
|
418 |
-
msgid "Custom"
|
419 |
-
msgstr "Personalizado"
|
420 |
-
|
421 |
-
#: includes/wpua-tinymce-window.php:140
|
422 |
-
msgid "Alignment:"
|
423 |
-
msgstr "Alinhamento:"
|
424 |
-
|
425 |
-
#: includes/wpua-tinymce-window.php:144
|
426 |
-
msgid "Center"
|
427 |
-
msgstr "Centro"
|
428 |
-
|
429 |
-
#: includes/wpua-tinymce-window.php:145
|
430 |
-
msgid "Left"
|
431 |
-
msgstr "Esquerda"
|
432 |
-
|
433 |
-
#: includes/wpua-tinymce-window.php:146
|
434 |
-
msgid "Right"
|
435 |
-
msgstr "Direita"
|
436 |
-
|
437 |
-
#: includes/wpua-tinymce-window.php:151
|
438 |
-
msgid "Link To:"
|
439 |
-
msgstr "Ligar a:"
|
440 |
-
|
441 |
-
#: includes/wpua-tinymce-window.php:155
|
442 |
-
msgid "Image File"
|
443 |
-
msgstr "Ficheiro de imagem"
|
444 |
-
|
445 |
-
#: includes/wpua-tinymce-window.php:156
|
446 |
-
msgid "Attachment Page"
|
447 |
-
msgstr "Página do anexo"
|
448 |
-
|
449 |
-
#: includes/wpua-tinymce-window.php:157
|
450 |
-
msgid "Custom URL"
|
451 |
-
msgstr "URL personalizado"
|
452 |
-
|
453 |
-
#: includes/wpua-tinymce-window.php:162
|
454 |
-
msgid "URL:"
|
455 |
-
msgstr "URL:"
|
456 |
-
|
457 |
-
#: includes/wpua-tinymce-window.php:170
|
458 |
-
msgid "Open link in a new window"
|
459 |
-
msgstr "Abrir link em uma nova janela"
|
460 |
-
|
461 |
-
#: includes/wpua-tinymce-window.php:174
|
462 |
-
msgid "Caption"
|
463 |
-
msgstr "Legenda"
|
464 |
-
|
465 |
-
#: includes/wpua-tinymce-window.php:180 includes/wpua-tinymce-window.php:192
|
466 |
-
msgid "Insert into Post"
|
467 |
-
msgstr "Inserir no artigo"
|
468 |
-
|
469 |
-
#: includes/wpua-tinymce.php:70
|
470 |
-
msgid "Insert Avatar"
|
471 |
-
msgstr "Inserir avatar"
|
472 |
-
|
473 |
-
#. translators: placeholder for <a> and </a> tags.
|
474 |
-
#: one-user-avatar.php:127
|
475 |
-
msgid ""
|
476 |
-
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
477 |
-
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
478 |
-
msgstr ""
|
479 |
-
"O plugin One User Avatar é uma substituição do antigo plugin WP User Avatar. "
|
480 |
-
"%1$sDesative o WP User Avatar%2$s para começar a usá-lo."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/ro_RO.mo
CHANGED
Binary file
|
languages/ro_RO.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the One User Avatar plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: One User Avatar 2.3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: ro_RO\n"
|
@@ -18,8 +18,8 @@ msgstr ""
|
|
18 |
"%100<=19) ? 1 : 2);\n"
|
19 |
|
20 |
#. Plugin Name of the plugin
|
21 |
-
#: includes/class-wp-user-avatar-admin.php:
|
22 |
-
#: includes/class-wp-user-avatar-admin.php:
|
23 |
#: includes/class-wp-user-avatar-widget.php:32
|
24 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
25 |
msgid "One User Avatar"
|
@@ -46,103 +46,102 @@ msgstr "One Designs"
|
|
46 |
msgid "https://onedesigns.com/"
|
47 |
msgstr "https://onedesigns.com/"
|
48 |
|
49 |
-
#: includes/class-wp-user-avatar-admin.php:
|
50 |
msgid "You are not allowed to delete this post."
|
51 |
msgstr "Nu ai voie să ștergi această postare."
|
52 |
|
53 |
-
#: includes/class-wp-user-avatar-admin.php:
|
54 |
msgid "Error in deleting."
|
55 |
msgstr "Eroare la ștergere."
|
56 |
|
57 |
-
#: includes/class-wp-user-avatar-admin.php:
|
58 |
-
#: includes/class-wp-user-avatar-admin.php:
|
59 |
msgid "Avatars"
|
60 |
msgstr "Avatare"
|
61 |
|
62 |
-
#: includes/class-wp-user-avatar-admin.php:
|
63 |
-
#: includes/class-wp-user-avatar-admin.php:
|
64 |
-
#: includes/class-wp-user-avatar-admin.php:
|
65 |
#: includes/wpua-options-page.php:93
|
66 |
msgid "Settings"
|
67 |
msgstr "Setări"
|
68 |
|
69 |
-
#: includes/class-wp-user-avatar-admin.php:
|
70 |
-
#: includes/class-wp-user-avatar-admin.php:
|
71 |
msgid "Library"
|
72 |
msgstr "Bibliotecă"
|
73 |
|
74 |
-
#: includes/class-wp-user-avatar-admin.php:
|
75 |
msgid "Mystery Man"
|
76 |
msgstr "Omul misterios"
|
77 |
|
78 |
-
#: includes/class-wp-user-avatar-admin.php:
|
79 |
msgid "Blank"
|
80 |
msgstr "Gol"
|
81 |
|
82 |
-
#: includes/class-wp-user-avatar-admin.php:
|
83 |
msgid "Gravatar Logo"
|
84 |
msgstr "Logo Gravatar"
|
85 |
|
86 |
-
#: includes/class-wp-user-avatar-admin.php:
|
87 |
msgid "Identicon (Generated)"
|
88 |
msgstr "Identicon (Generat)"
|
89 |
|
90 |
-
#: includes/class-wp-user-avatar-admin.php:
|
91 |
msgid "Wavatar (Generated)"
|
92 |
msgstr "Wavatar (Generat)"
|
93 |
|
94 |
-
#: includes/class-wp-user-avatar-admin.php:
|
95 |
msgid "MonsterID (Generated)"
|
96 |
msgstr "MonsterID (Generat)"
|
97 |
|
98 |
-
#: includes/class-wp-user-avatar-admin.php:
|
99 |
msgid "Retro (Generated)"
|
100 |
msgstr "Retro (Generat)"
|
101 |
|
102 |
-
#: includes/class-wp-user-avatar-admin.php:
|
103 |
#: includes/class-wp-user-avatar.php:231
|
104 |
msgid "Choose Image"
|
105 |
msgstr "Alege imagine"
|
106 |
|
107 |
-
#: includes/class-wp-user-avatar-admin.php:
|
108 |
msgid "Remove"
|
109 |
msgstr "Elimină"
|
110 |
|
111 |
-
#: includes/class-wp-user-avatar-admin.php:
|
112 |
#: includes/class-wp-user-avatar.php:292
|
113 |
msgid "Undo"
|
114 |
msgstr "Anulează"
|
115 |
|
116 |
-
#: includes/class-wp-user-avatar-admin.php:
|
117 |
-
msgid "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
118 |
-
msgstr "https://onedesigns.com/support/forum/plugins/one-user-avatar/"
|
119 |
-
|
120 |
-
#: includes/class-wp-user-avatar-admin.php:481
|
121 |
msgid "Support Forums"
|
122 |
msgstr "Forumuri de asistență"
|
123 |
|
124 |
-
#: includes/class-wp-user-avatar-admin.php:
|
125 |
-
#: includes/class-wp-user-avatar-admin.php:
|
126 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
127 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
128 |
msgid "Profile Picture"
|
129 |
msgstr "Poză de profil"
|
130 |
|
131 |
-
#: includes/class-wp-user-avatar-admin.php:
|
132 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
133 |
msgid "Default Avatar"
|
134 |
msgstr "Avatar implicit"
|
135 |
|
136 |
#: includes/class-wp-user-avatar-functions.php:515
|
137 |
-
#: includes/class-wp-user-avatar-functions.php:
|
138 |
msgid "Avatar"
|
139 |
msgstr "Avatar"
|
140 |
|
141 |
#. translators: uploaded files
|
142 |
-
#: includes/class-wp-user-avatar-list-table.php:
|
143 |
msgctxt "uploaded files"
|
144 |
msgid "All %s"
|
145 |
-
|
|
|
|
|
|
|
146 |
|
147 |
#: includes/class-wp-user-avatar-list-table.php:192
|
148 |
#: includes/class-wp-user-avatar-list-table.php:549
|
@@ -223,7 +222,7 @@ msgstr ""
|
|
223 |
"necesitat de către One User Avatar. Vă rugăm să adăugați acest apel la "
|
224 |
"șabloanele de pagină."
|
225 |
|
226 |
-
#: includes/class-wp-user-avatar-shortcode.php:
|
227 |
msgid "Profile updated."
|
228 |
msgstr "Profil actualizat."
|
229 |
|
@@ -471,7 +470,7 @@ msgid "Insert Avatar"
|
|
471 |
msgstr "Introdu avatar"
|
472 |
|
473 |
#. translators: placeholder for <a> and </a> tags.
|
474 |
-
#: one-user-avatar.php:
|
475 |
msgid ""
|
476 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
477 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
2 |
# This file is distributed under the same license as the One User Avatar plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: One User Avatar 2.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-user-avatar\n"
|
7 |
+
"POT-Creation-Date: 2021-05-22T04:16:42+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-05-23 07:01+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: ro_RO\n"
|
18 |
"%100<=19) ? 1 : 2);\n"
|
19 |
|
20 |
#. Plugin Name of the plugin
|
21 |
+
#: includes/class-wp-user-avatar-admin.php:230
|
22 |
+
#: includes/class-wp-user-avatar-admin.php:429
|
23 |
#: includes/class-wp-user-avatar-widget.php:32
|
24 |
#: includes/wpua-options-page.php:55 includes/wpua-tinymce-window.php:31
|
25 |
msgid "One User Avatar"
|
46 |
msgid "https://onedesigns.com/"
|
47 |
msgstr "https://onedesigns.com/"
|
48 |
|
49 |
+
#: includes/class-wp-user-avatar-admin.php:173
|
50 |
msgid "You are not allowed to delete this post."
|
51 |
msgstr "Nu ai voie să ștergi această postare."
|
52 |
|
53 |
+
#: includes/class-wp-user-avatar-admin.php:177
|
54 |
msgid "Error in deleting."
|
55 |
msgstr "Eroare la ștergere."
|
56 |
|
57 |
+
#: includes/class-wp-user-avatar-admin.php:231
|
58 |
+
#: includes/class-wp-user-avatar-admin.php:289 includes/wpua-media-page.php:59
|
59 |
msgid "Avatars"
|
60 |
msgstr "Avatare"
|
61 |
|
62 |
+
#: includes/class-wp-user-avatar-admin.php:240
|
63 |
+
#: includes/class-wp-user-avatar-admin.php:241
|
64 |
+
#: includes/class-wp-user-avatar-admin.php:465
|
65 |
#: includes/wpua-options-page.php:93
|
66 |
msgid "Settings"
|
67 |
msgstr "Setări"
|
68 |
|
69 |
+
#: includes/class-wp-user-avatar-admin.php:249
|
70 |
+
#: includes/class-wp-user-avatar-admin.php:250
|
71 |
msgid "Library"
|
72 |
msgstr "Bibliotecă"
|
73 |
|
74 |
+
#: includes/class-wp-user-avatar-admin.php:375
|
75 |
msgid "Mystery Man"
|
76 |
msgstr "Omul misterios"
|
77 |
|
78 |
+
#: includes/class-wp-user-avatar-admin.php:376
|
79 |
msgid "Blank"
|
80 |
msgstr "Gol"
|
81 |
|
82 |
+
#: includes/class-wp-user-avatar-admin.php:377
|
83 |
msgid "Gravatar Logo"
|
84 |
msgstr "Logo Gravatar"
|
85 |
|
86 |
+
#: includes/class-wp-user-avatar-admin.php:378
|
87 |
msgid "Identicon (Generated)"
|
88 |
msgstr "Identicon (Generat)"
|
89 |
|
90 |
+
#: includes/class-wp-user-avatar-admin.php:379
|
91 |
msgid "Wavatar (Generated)"
|
92 |
msgstr "Wavatar (Generat)"
|
93 |
|
94 |
+
#: includes/class-wp-user-avatar-admin.php:380
|
95 |
msgid "MonsterID (Generated)"
|
96 |
msgstr "MonsterID (Generat)"
|
97 |
|
98 |
+
#: includes/class-wp-user-avatar-admin.php:381
|
99 |
msgid "Retro (Generated)"
|
100 |
msgstr "Retro (Generat)"
|
101 |
|
102 |
+
#: includes/class-wp-user-avatar-admin.php:430
|
103 |
#: includes/class-wp-user-avatar.php:231
|
104 |
msgid "Choose Image"
|
105 |
msgstr "Alege imagine"
|
106 |
|
107 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
108 |
msgid "Remove"
|
109 |
msgstr "Elimină"
|
110 |
|
111 |
+
#: includes/class-wp-user-avatar-admin.php:431
|
112 |
#: includes/class-wp-user-avatar.php:292
|
113 |
msgid "Undo"
|
114 |
msgstr "Anulează"
|
115 |
|
116 |
+
#: includes/class-wp-user-avatar-admin.php:484
|
|
|
|
|
|
|
|
|
117 |
msgid "Support Forums"
|
118 |
msgstr "Forumuri de asistență"
|
119 |
|
120 |
+
#: includes/class-wp-user-avatar-admin.php:498
|
121 |
+
#: includes/class-wp-user-avatar-admin.php:559 includes/wpua-functions.php:93
|
122 |
#: includes/wpua-functions.php:106 includes/wpua-functions.php:114
|
123 |
#: includes/wpua-functions.php:186 includes/wpua-tinymce-window.php:94
|
124 |
msgid "Profile Picture"
|
125 |
msgstr "Poză de profil"
|
126 |
|
127 |
+
#: includes/class-wp-user-avatar-admin.php:563
|
128 |
#: includes/wpua-options-page.php:300 includes/wpua-options-page.php:306
|
129 |
msgid "Default Avatar"
|
130 |
msgstr "Avatar implicit"
|
131 |
|
132 |
#: includes/class-wp-user-avatar-functions.php:515
|
133 |
+
#: includes/class-wp-user-avatar-functions.php:719
|
134 |
msgid "Avatar"
|
135 |
msgstr "Avatar"
|
136 |
|
137 |
#. translators: uploaded files
|
138 |
+
#: includes/class-wp-user-avatar-list-table.php:172
|
139 |
msgctxt "uploaded files"
|
140 |
msgid "All %s"
|
141 |
+
msgid_plural "All %s"
|
142 |
+
msgstr[0] "Toate %s"
|
143 |
+
msgstr[1] "Toate %s"
|
144 |
+
msgstr[2] "Toate %s"
|
145 |
|
146 |
#: includes/class-wp-user-avatar-list-table.php:192
|
147 |
#: includes/class-wp-user-avatar-list-table.php:549
|
222 |
"necesitat de către One User Avatar. Vă rugăm să adăugați acest apel la "
|
223 |
"șabloanele de pagină."
|
224 |
|
225 |
+
#: includes/class-wp-user-avatar-shortcode.php:244
|
226 |
msgid "Profile updated."
|
227 |
msgstr "Profil actualizat."
|
228 |
|
470 |
msgstr "Introdu avatar"
|
471 |
|
472 |
#. translators: placeholder for <a> and </a> tags.
|
473 |
+
#: one-user-avatar.php:94
|
474 |
msgid ""
|
475 |
"The plugin One User Avatar is a replacement for the old WP User Avatar "
|
476 |
"plugin. Please %1$sdeactivate WP User Avatar%2$s to start using it."
|
one-user-avatar.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://onedesigns.com/plugins/one-user-avatar/
|
|
5 |
Description: Use any image from your WordPress Media Library as a custom user avatar. Add your own Default Avatar. Fork of WP User Avatar v2.2.16.
|
6 |
Author: One Designs
|
7 |
Author URI: https://onedesigns.com/
|
8 |
-
Version: 2.3.
|
9 |
Text Domain: one-user-avatar
|
10 |
Domain Path: /languages/
|
11 |
|
@@ -74,19 +74,10 @@ class One_User_Avatar {
|
|
74 |
return __FILE__;
|
75 |
}
|
76 |
|
77 |
-
/**
|
78 |
-
* Access plugin directory path globally
|
79 |
-
*
|
80 |
-
* @since 2.3.0
|
81 |
-
*/
|
82 |
-
public static function plugin_dir_path() {
|
83 |
-
return plugin_dir_path( __FILE__ );
|
84 |
-
}
|
85 |
-
|
86 |
/**
|
87 |
* Print admin notice error in case of plugin conflict
|
88 |
*
|
89 |
-
* @since 2.3.
|
90 |
*/
|
91 |
public function conflict_admin_notice() {
|
92 |
global $pagenow, $status, $pagenum, $s;
|
@@ -101,10 +92,12 @@ class One_User_Avatar {
|
|
101 |
return;
|
102 |
}
|
103 |
|
104 |
-
$url =
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
108 |
)
|
109 |
);
|
110 |
|
@@ -147,10 +140,10 @@ class One_User_Avatar {
|
|
147 |
function one_user_avatar() {
|
148 |
global $one_user_avatar;
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
|
154 |
-
|
155 |
}
|
156 |
add_action( 'plugins_loaded', 'one_user_avatar', 0 );
|
5 |
Description: Use any image from your WordPress Media Library as a custom user avatar. Add your own Default Avatar. Fork of WP User Avatar v2.2.16.
|
6 |
Author: One Designs
|
7 |
Author URI: https://onedesigns.com/
|
8 |
+
Version: 2.3.0
|
9 |
Text Domain: one-user-avatar
|
10 |
Domain Path: /languages/
|
11 |
|
74 |
return __FILE__;
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/**
|
78 |
* Print admin notice error in case of plugin conflict
|
79 |
*
|
80 |
+
* @since 2.3.0
|
81 |
*/
|
82 |
public function conflict_admin_notice() {
|
83 |
global $pagenow, $status, $pagenum, $s;
|
92 |
return;
|
93 |
}
|
94 |
|
95 |
+
$url = wp_nonce_url(
|
96 |
+
admin_url(
|
97 |
+
sprintf(
|
98 |
+
'plugins.php?action=deactivate&plugin=%s',
|
99 |
+
urlencode( $plugin_file )
|
100 |
+
)
|
101 |
)
|
102 |
);
|
103 |
|
140 |
function one_user_avatar() {
|
141 |
global $one_user_avatar;
|
142 |
|
143 |
+
if ( ! isset( $one_user_avatar ) ) {
|
144 |
+
$one_user_avatar = new One_User_Avatar();
|
145 |
+
}
|
146 |
|
147 |
+
return $one_user_avatar;
|
148 |
}
|
149 |
add_action( 'plugins_loaded', 'one_user_avatar', 0 );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: onedesigns, properfraction, collizo4sky
|
|
4 |
Tags: user profile, avatar, gravatar, author image, author photo, author avatar, bbPress, profile avatar, profile image, user avatar, user image, user photo, widget
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.7.2
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -398,19 +398,6 @@ This would output:
|
|
398 |
|
399 |
== Changelog ==
|
400 |
|
401 |
-
= 2.3.2 =
|
402 |
-
* Fix missing Portuguese translation
|
403 |
-
|
404 |
-
= 2.3.1 =
|
405 |
-
* Add Portuguese translation
|
406 |
-
* Add One_User_Avatar::plugin_dir_path() function
|
407 |
-
* Improve Dutch translation
|
408 |
-
* Remove redundant plural translation for 'All %s'
|
409 |
-
* Make URLs translatable
|
410 |
-
* Remove obsolete translation strings
|
411 |
-
* Fix indentation
|
412 |
-
* Fix nested call to wp_nonce_url()
|
413 |
-
|
414 |
= 2.3.0 =
|
415 |
* Rename to One User Avatar
|
416 |
* Rewrite to conform with WordPress Coding Standards
|
4 |
Tags: user profile, avatar, gravatar, author image, author photo, author avatar, bbPress, profile avatar, profile image, user avatar, user image, user photo, widget
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.7.2
|
7 |
+
Stable tag: 2.3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
398 |
|
399 |
== Changelog ==
|
400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
= 2.3.0 =
|
402 |
* Rename to One User Avatar
|
403 |
* Rewrite to conform with WordPress Coding Standards
|
uninstall.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
-
* @version 2.3.
|
15 |
*/
|
16 |
|
17 |
/**
|
@@ -64,10 +64,10 @@ if ( is_multisite() ) {
|
|
64 |
delete_option( 'wp_user_avatar_default_avatar_updated' );
|
65 |
delete_option( 'wp_user_avatar_media_updated' );
|
66 |
delete_option( 'wp_user_avatar_users_updated' );
|
67 |
-
|
68 |
}
|
69 |
|
70 |
-
|
71 |
} else {
|
72 |
foreach ( $users as $user ) {
|
73 |
delete_user_meta( $user->ID, $wpdb->get_blog_prefix( $blog_id ) . 'user_avatar' );
|
11 |
* @copyright 2014-2020 Flippercode
|
12 |
* @copyright 2020-2021 ProfilePress
|
13 |
* @copyright 2021 One Designs
|
14 |
+
* @version 2.3.0
|
15 |
*/
|
16 |
|
17 |
/**
|
64 |
delete_option( 'wp_user_avatar_default_avatar_updated' );
|
65 |
delete_option( 'wp_user_avatar_media_updated' );
|
66 |
delete_option( 'wp_user_avatar_users_updated' );
|
67 |
+
delete_option( 'wpua_has_gravatar' );
|
68 |
}
|
69 |
|
70 |
+
restore_current_blog();
|
71 |
} else {
|
72 |
foreach ( $users as $user ) {
|
73 |
delete_user_meta( $user->ID, $wpdb->get_blog_prefix( $blog_id ) . 'user_avatar' );
|