Skip to content

Commit

Permalink
change icon socical of author to icon lp
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanta88 committed Nov 4, 2024
1 parent bd635ac commit 91b5691
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 30 deletions.
4 changes: 4 additions & 0 deletions assets/src/css/vendor/fonts/lp-icon/lp-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/src/css/vendor/fonts/lp-icon/lp-icon.ttf
Binary file not shown.
Binary file modified assets/src/css/vendor/fonts/lp-icon/lp-icon.woff
Binary file not shown.
Binary file modified assets/src/css/vendor/fonts/lp-icon/lp-icon.woff2
Binary file not shown.
24 changes: 19 additions & 5 deletions assets/src/scss/_lp-icon-font.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: 'lp-icon';
src: url('../src/css/vendor/fonts/lp-icon/lp-icon.ttf?v=wskwmq') format('truetype'),
url('../src/css/vendor/fonts/lp-icon/lp-icon.woff2?v=wskwmq') format('woff2'),
url('../src/css/vendor/fonts/lp-icon/lp-icon.svg?v=wskwmq#lp-icon') format('svg');
src: url('../src/css/vendor/fonts/lp-icon/lp-icon.ttf?v=bz7zxt') format('truetype'),
url('../src/css/vendor/fonts/lp-icon/lp-icon.woff2?v=bz7zxt') format('woff2'),
url('../src/css/vendor/fonts/lp-icon/lp-icon.svg?v=bz7zxt#lp-icon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
Expand All @@ -17,8 +17,7 @@
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down Expand Up @@ -264,6 +263,12 @@
.lp-icon-pinterest-square:before {
content: "\f0d3";
}
.lp-icon-google-plus-square:before {
content: "\f0d4";
}
.lp-icon-google-plus:before {
content: "\f0d5";
}
.lp-icon-money-bill-alt:before {
content: "\f0d6";
}
Expand Down Expand Up @@ -363,6 +368,9 @@
.lp-icon-mortar-board:before {
content: "\f19d";
}
.lp-icon-google:before {
content: "\f1a0";
}
.lp-icon-language:before {
content: "\f1ab";
}
Expand Down Expand Up @@ -435,6 +443,12 @@
.lp-icon-question-circle-o:before {
content: "\f29c";
}
.lp-icon-google-plus-circle:before {
content: "\f2b3";
}
.lp-icon-google-plus-official:before {
content: "\f2b3";
}
.lp-icon-user-circle:before {
content: "\f2bd";
}
Expand Down
37 changes: 12 additions & 25 deletions inc/user/abstract-lp-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,19 +1082,22 @@ public function get_profile_socials( int $user_id = 0 ): array {

switch ( $k ) {
case 'facebook':
$i = '<i class="fab fa-facebook-f"></i>';
$i = '<i class="lp-icon-facebook-f"></i>';
break;
case 'twitter':
$i = '<i class="fab fa-twitter"></i>';
$i = '<i class="lp-icon-twitter"></i>';
break;
case 'googleplus':
$i = '<i class="fab fa-google-plus-g"></i>';
$i = '<i class="lp-icon-google-plus"></i>';
break;
case 'youtube':
$i = '<i class="fab fa-youtube"></i>';
$i = '<i class="lp-icon-youtube"></i>';
break;
case 'linkedin':
$i = '<i class="lp-icon-linkedin"></i>';
break;
default:
$i = sprintf( '<i class="fab fa-%s"></i>', $k );
$i = sprintf( '<i class="lp-icon-%s"></i>', $k );
}

$icon = apply_filters(
Expand Down Expand Up @@ -1132,32 +1135,16 @@ public function get_profile_social( int $user_id = 0 ): array {

switch ( $k ) {
case 'facebook':
// $i = sprintf(
// '<i class="lp-user-ico">%s</i>',
// wp_remote_fopen( LP_PLUGIN_URL . 'assets/images/icons/ico-facebook.svg' )
// );
$i = '<i class="lp-user-ico lp-icon-facebook"></i>';
$i = '<i class="lp-user-ico lp-icon-facebook"></i>';
break;
case 'twitter':
// $i = sprintf(
// '<i class="lp-user-ico">%s</i>',
// wp_remote_fopen( LP_PLUGIN_URL . 'assets/images/icons/ico-twitter.svg' )
// );
$i = '<i class="lp-user-ico lp-icon-twitter"></i>';
$i = '<i class="lp-user-ico lp-icon-twitter"></i>';
break;
case 'linkedin':
// $i = sprintf(
// '<i class="lp-user-ico">%s</i>',
// wp_remote_fopen( LP_PLUGIN_URL . 'assets/images/icons/ico-linkedin.svg' )
// );
$i = '<i class="lp-user-ico lp-icon-linkedin"></i>';
$i = '<i class="lp-user-ico lp-icon-linkedin"></i>';
break;
case 'youtube':
// $i = sprintf(
// '<i class="lp-user-ico">%s</i>',
// wp_remote_fopen( LP_PLUGIN_URL . 'assets/images/icons/ico-youtube.svg' )
// );
$i = '<i class="lp-user-ico lp-icon-youtube-play"></i>';
$i = '<i class="lp-user-ico lp-icon-youtube-play"></i>';
break;
default:
$i = sprintf( '<i class="lp-user-ico lp-icon-%s"></i>', $k );
Expand Down

0 comments on commit 91b5691

Please sign in to comment.