Skip to content

Commit 0f94c4c

Browse files
committed
Some design changes.
* Some design changes. * Custom Profile Avatar logo changed.
1 parent 6f26e28 commit 0f94c4c

24 files changed

+87
-236
lines changed

about.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
** about.php
5-
** @version 1.0.1
5+
** @version 1.0.2
66
** @since 1.0
77
** @author en0ndev
88
*/
@@ -24,8 +24,8 @@
2424
*/
2525
defined('ABSPATH') || exit; // Exit if accessed directly
2626

27-
$template = "<div class='about'><p class='big'>Custom Profile Avatar</p>";
28-
$template .= "<p>" . esc_html__('Version', 'custom-profile-avatar') . ": 1.0.1</p>";
27+
$template = "<div class='about'><img src='" . plugin_dir_url(__FILE__) . "/assets/img/icon-128x128.png' alt='Custom Profile Avatar' /><p class='big'>Custom Profile Avatar</p>";
28+
$template .= "<p>" . esc_html__('Version', 'custom-profile-avatar') . ": 1.0.2</p>";
2929
$template .= "<p>" . esc_html__('Developer', 'custom-profile-avatar') . ": en0ndev</p>";
3030
$template .= "<a class='link' target='_blank' href='https://www.youtube.com/channel/UC3CSOAThanO-LvYKFwJ24RQ'>" . esc_html__('My YouTube Channel', 'custom-profile-avatar') . "</a></div>";
3131

assets/css/style.css

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
** File: style.css
3-
** Version: 1.0.1
3+
** Version: 1.0.2
44
** Since: 1.0
55
** Author: en0ndev
66
@@ -20,21 +20,26 @@ You should have received a copy of the GNU General Public License
2020
along with Custom Profile Avatar. If not, see <https://www.gnu.org/licenses/>.
2121
*/
2222

23+
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,500;0,700;1,300&display=swap');
2324
body {
2425
background: #ddd;
2526
user-select: none;
26-
line-height: 30px;
27+
line-height: normal !important;
28+
}
29+
30+
#wpbody * {
31+
line-height: normal !important;
32+
font-family: 'Ubuntu', sans-serif;
2733
}
2834

2935
#author__by {
3036
background: #000;
3137
padding: 5px 20px;
3238
border-radius: 30px;
33-
box-shadow: 1px 1px 5px 1px #000;
39+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, .6);
3440
position: absolute;
35-
left: 15px;
36-
bottom: 15px;
37-
font-family: 'Ubuntu', sans-serif;
41+
left: 11px;
42+
bottom: 11px;
3843
}
3944

4045
#author__by a {
@@ -46,10 +51,10 @@ body {
4651
#author__by .bold {
4752
color: #fff;
4853
font-weight: 700;
54+
padding: 1px 0;
4955
}
5056

5157
#author__by .bold:hover {
52-
padding-bottom: 1px;
5358
border-bottom: 2px solid #fff;
5459
}
5560

@@ -92,10 +97,10 @@ input[type="button"],
9297
font-size: 22pt;
9398
background: #000;
9499
color: #fff;
95-
padding: 10px 30px;
100+
padding: 3px 30px;
96101
border-radius: 15px;
97-
margin-top: .7em;
98-
margin-bottom: .7em;
102+
margin-top: 22px;
103+
margin-bottom: 22px;
99104
}
100105

101106
.inner__area h2 {
@@ -127,9 +132,10 @@ input[type="button"],
127132
background: #000;
128133
transition: background-color .5s, color .5s;
129134
cursor: pointer;
130-
margin-top: .8em;
131-
margin-bottom: .8em;
135+
margin-top: 22px;
136+
margin-bottom: 22px;
132137
font-size: 15px;
138+
font-weight: 500;
133139
}
134140

135141
.main__area input[type="button"]:hover,
@@ -144,6 +150,10 @@ input[type="button"],
144150

145151
.user__avatar {
146152
position: relative;
153+
display: flex;
154+
justify-content: center;
155+
align-items: center;
156+
flex-direction: column;
147157
}
148158

149159
.remove {
@@ -152,7 +162,8 @@ input[type="button"],
152162
width: 35px;
153163
height: 35px;
154164
position: absolute;
155-
right: -5px;
165+
right: 5px;
166+
top: 0;
156167
cursor: pointer;
157168
justify-content: center;
158169
align-items: center;
@@ -176,18 +187,31 @@ input[type="button"],
176187

177188
.about>p,
178189
.about>a {
179-
font-size: 15px;
190+
font-size: 16px;
180191
font-weight: 500;
181192
color: #000;
193+
margin: 22px 0;
194+
}
195+
196+
.about img {
197+
border-radius: 0;
198+
box-shadow: none;
182199
}
183200

184201
.about>.big {
185-
font-size: 20px;
186-
font-weight: 600;
202+
font-size: 26px;
203+
font-weight: 700;
187204
}
188205

189206
.about>.link {
190207
color: #2271b1;
208+
text-decoration: none;
209+
padding: 2px 0;
210+
border-bottom: 2px solid #2271b1;
211+
}
212+
213+
.about>.link:hover {
214+
border-bottom: 4px solid #2271b1;
191215
}
192216

193217
#notf {
@@ -209,4 +233,25 @@ input[type="button"],
209233

210234
.err {
211235
border-left: 7px solid rgb(170, 14, 14);
236+
}
237+
238+
.rate__box {
239+
background: #f8f8f8;
240+
display: inline-block;
241+
padding: 10px 15px;
242+
border-radius: 20px;
243+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, .3);
244+
/*position: absolute;
245+
left: 11px;*/
246+
margin-top: 22px;
247+
}
248+
249+
.rate__box a {
250+
color: #000;
251+
text-decoration: none;
252+
}
253+
254+
#save {
255+
margin-bottom: 0;
256+
/* for .rate__box */
212257
}

assets/img/icon-128x128.png

8 KB
Loading

assets/img/icon.png

-5.13 KB
Loading

assets/js/modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
** File: modules.js
3-
** Version: 1.0.1
3+
** Version: 1.0.2
44
** Since: 1.0
55
** Author: en0ndev
66
This file is part of Custom Profile Avatar.

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Custom Profile Avatar
55
Plugin URI: https://wordpress.org/plugins/custom-profile-avatar
66
Description: Change profile avatar to your custom avatar.
7-
Version: 1.0.1
7+
Version: 1.0.2
88
Author: en0ndev
99
Author URI: https://github.com/en0ndev
1010
Text Domain: custom-profile-avatar
@@ -32,8 +32,8 @@
3232
require_once __DIR__ . '/modules/get_avatar.php';
3333
require_once __DIR__ . '/modules/get_styles.php';
3434

35-
function cpa_load_textdomain()
35+
/*function cpa_load_textdomain()
3636
{
3737
load_plugin_textdomain('custom-profile-avatar', false, basename(dirname(__FILE__)) . '/languages/');
3838
}
39-
add_action('plugins_loaded', 'cpa_load_textdomain');
39+
add_action('plugins_loaded', 'cpa_load_textdomain');*/
-736 Bytes
Binary file not shown.

languages/custom-profile-avatar-de_DE.po

Lines changed: 0 additions & 40 deletions
This file was deleted.
-744 Bytes
Binary file not shown.

languages/custom-profile-avatar-fr_FR.po

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)