Replace user icon
This commit is contained in:
parent
f64eb135a6
commit
7df10bfa4d
@ -42,7 +42,5 @@
|
||||
|
||||
<symbol id="icon-fa-xmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z" fill="currentColor" /></symbol>
|
||||
|
||||
<symbol id="icon-user" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><!--! Material Design Icons: https://github.com/Templarian/MaterialDesign --><path fill="currentColor" d="M12 19.2c-2.5 0-4.71-1.28-6-3.2c.03-2 4-3.1 6-3.1s5.97 1.1 6 3.1a7.232 7.232 0 0 1-6 3.2M12 5a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-3A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-5.53-4.5-10-10-10Z"/></symbol>
|
||||
|
||||
<svg id="icon-sticky-pin" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path fill="currentColor" d="M32 32C32 14.3 46.3 0 64 0H320c17.7 0 32 14.3 32 32s-14.3 32-32 32H290.5l11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3H32c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64H64C46.3 64 32 49.7 32 32zM160 384h64v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V384z"/></svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1179,7 +1179,7 @@ if ( ! function_exists( 'fictioneer_get_post_meta_items' ) ) {
|
||||
ob_start();
|
||||
// Start HTML ---> ?>
|
||||
<div class="post__author">
|
||||
<?php fictioneer_icon( 'user' ); ?>
|
||||
<i class="fa-solid fa-circle-user"></i>
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ) ); ?>
|
||||
</div>
|
||||
<?php // <--- End HTML
|
||||
|
@ -372,7 +372,7 @@ if ( ! function_exists( 'fictioneer_mobile_user_menu' ) ) {
|
||||
ob_start();
|
||||
// Start HTML ---> ?>
|
||||
<a href="<?php echo esc_url( $profile_link ); ?>" class="hide-if-logged-out">
|
||||
<?php fictioneer_icon( 'user', 'mobile-menu__item-icon', '', 'style="transform: translate(0px,-14%) scale(1.725);"' ); ?>
|
||||
<i class="fa-solid fa-circle-user mobile-menu__item-icon"></i>
|
||||
<?php echo fcntr( 'account' ); ?>
|
||||
</a>
|
||||
<?php // <--- End HTML
|
||||
|
2
js/tts.min.js
vendored
2
js/tts.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/user.min.js
vendored
2
js/user.min.js
vendored
@ -1 +1 @@
|
||||
function fcn_replaceProfileImage(e,n){const t=e.querySelector(".icon._user");if(t){const r=document.createElement("img");r.classList.add("user-profile-image"),r.src=n,t.remove(),e.appendChild(r)}}function fcn_setProfileImage(e,n=!0){e&&fcn_isValidUrl(e)&&(n&&localStorage.setItem("fcnProfileAvatar",e),_$$("a.subscriber-profile")?.forEach((n=>{fcn_replaceProfileImage(n,e)})))}function fcn_getProfileImage(){let e=localStorage.getItem("fcnProfileAvatar");fcn_isLoggedIn?(fcn_isValidUrl(e)||(e=!1),e?fcn_setProfileImage(e):fcn_getUserAvatar()):localStorage.removeItem("fcnProfileAvatar")}function fcn_getUserAvatar(){fcn_ajaxGet({action:"fictioneer_ajax_get_avatar"}).then((e=>{e.success&&fcn_setProfileImage(e.data.url)})).catch((()=>{fcn_theRoot.dataset.defaultAvatar&&fcn_setProfileImage(fcn_theRoot.dataset.defaultAvatar,!1)}))}var fcn_fingerprint;function fcn_initializeFingerprint(){fcn_fingerprint=fcn_getFingerprint(),fcn_fetchFingerprint()}function fcn_getFingerprint(){const e=localStorage.getItem("fcnFingerprint");return e&&fcn_isValidJSONString(e)?JSON.parse(e):{lastLoaded:0,fingerprint:!1}}function fcn_fetchFingerprint(){fcn_ajaxLimitThreshold<fcn_fingerprint.lastLoaded||fcn_ajaxGet({action:"fictioneer_ajax_get_fingerprint"}).then((e=>{if(e.success){const n=e.data.fingerprint;(fcn_fingerprint={fingerprint:n}).lastLoaded=Date.now(),localStorage.setItem("fcnFingerprint",JSON.stringify(fcn_fingerprint)),"function"==typeof fcn_revealEditButton&&fcn_revealEditButton(),"function"==typeof fcn_revealDeleteButton&&fcn_revealDeleteButton()}else localStorage.removeItem("fcnFingerprint"),fcn_fingerprint=!1})).catch((()=>{localStorage.removeItem("fcnFingerprint"),fcn_fingerprint=!1}))}fcn_getProfileImage(),fcn_isLoggedIn&&fcn_initializeFingerprint();
|
||||
function fcn_replaceProfileImage(e,n){const t=e.querySelector(".user-icon");if(t){const r=document.createElement("img");r.classList.add("user-profile-image"),r.src=n,t.remove(),e.appendChild(r)}}function fcn_setProfileImage(e,n=!0){e&&fcn_isValidUrl(e)&&(n&&localStorage.setItem("fcnProfileAvatar",e),_$$("a.subscriber-profile")?.forEach((n=>{fcn_replaceProfileImage(n,e)})))}function fcn_getProfileImage(){let e=localStorage.getItem("fcnProfileAvatar");fcn_isLoggedIn?(fcn_isValidUrl(e)||(e=!1),e?fcn_setProfileImage(e):fcn_getUserAvatar()):localStorage.removeItem("fcnProfileAvatar")}function fcn_getUserAvatar(){fcn_ajaxGet({action:"fictioneer_ajax_get_avatar"}).then((e=>{e.success&&fcn_setProfileImage(e.data.url)})).catch((()=>{fcn_theRoot.dataset.defaultAvatar&&fcn_setProfileImage(fcn_theRoot.dataset.defaultAvatar,!1)}))}var fcn_fingerprint;function fcn_initializeFingerprint(){fcn_fingerprint=fcn_getFingerprint(),fcn_fetchFingerprint()}function fcn_getFingerprint(){const e=localStorage.getItem("fcnFingerprint");return e&&fcn_isValidJSONString(e)?JSON.parse(e):{lastLoaded:0,fingerprint:!1}}function fcn_fetchFingerprint(){fcn_ajaxLimitThreshold<fcn_fingerprint.lastLoaded||fcn_ajaxGet({action:"fictioneer_ajax_get_fingerprint"}).then((e=>{if(e.success){const n=e.data.fingerprint;(fcn_fingerprint={fingerprint:n}).lastLoaded=Date.now(),localStorage.setItem("fcnFingerprint",JSON.stringify(fcn_fingerprint)),"function"==typeof fcn_revealEditButton&&fcn_revealEditButton(),"function"==typeof fcn_revealDeleteButton&&fcn_revealDeleteButton()}else localStorage.removeItem("fcnFingerprint"),fcn_fingerprint=!1})).catch((()=>{localStorage.removeItem("fcnFingerprint"),fcn_fingerprint=!1}))}fcn_getProfileImage(),fcn_isLoggedIn&&fcn_initializeFingerprint();
|
@ -194,7 +194,7 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) && ! $hide_author ) : ?>
|
||||
<?php fictioneer_icon( 'user', 'hide-below-desktop' ); ?>
|
||||
<i class="fa-solid fa-circle-user hide-below-desktop"></i>
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ), 'hide-below-desktop' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -48,7 +48,7 @@ $comments_number = get_comments_number();
|
||||
<div class="card__footer">
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) ) : ?>
|
||||
<?php fictioneer_icon( 'user' ); ?>
|
||||
<i class="fa-solid fa-circle-user"></i>
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ) ); ?>
|
||||
<?php endif; ?>
|
||||
<i class="fa-solid fa-clock" title="<?php esc_attr_e( 'Published', 'fictioneer' ) ?>"></i>
|
||||
|
@ -72,7 +72,7 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<div class="card__footer">
|
||||
<div class="card__left text-overflow-ellipsis">
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) ) : ?>
|
||||
<?php fictioneer_icon( 'user' ); ?>
|
||||
<i class="fa-solid fa-circle-user"></i>
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ) ); ?>
|
||||
<?php endif; ?>
|
||||
<i class="fa-solid fa-clock" title="<?php esc_attr_e( 'Published', 'fictioneer' ) ?>"></i>
|
||||
|
@ -174,7 +174,7 @@ $show_type = isset( $args['show_type'] ) && $args['show_type'];
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( get_option( 'fictioneer_show_authors' ) && ! $hide_author ) : ?>
|
||||
<?php fictioneer_icon( 'user', 'hide-below-desktop' ); ?>
|
||||
<i class="fa-solid fa-circle-user hide-below-desktop"></i>
|
||||
<?php fictioneer_the_author_node( get_the_author_meta( 'ID' ), 'hide-below-desktop' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -46,7 +46,7 @@ if ( $profile_page && $profile_page > 0 ) {
|
||||
class="subscriber-profile icon-menu__item _with-submenu"
|
||||
rel="noopener noreferrer nofollow"
|
||||
aria-label="<?php esc_attr_e( 'Link to user profile', 'fictioneer' ) ?>"
|
||||
><?php fictioneer_icon( 'user' ); ?></a>
|
||||
><i class="fa-solid fa-circle-user user-icon"></i></a>
|
||||
<ul class="sub-menu"><?php echo fictioneer_user_menu_items(); ?></ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -57,9 +57,6 @@
|
||||
width: .625em;
|
||||
}
|
||||
|
||||
&._user {
|
||||
height: .7em;
|
||||
transform: translate(-1px, -16%) scale(1.725);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user