|
Server : LiteSpeed System : Linux premium152.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : idesfsze ( 1473) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/idesfsze/pandaexpressketo.com/wp-content/themes/jnews/fragment/post/ |
<?php
$social_array = jnews_get_author_social();
$socials = '';
if ( is_single() ) {
$author_id = get_post_field( 'post_author', get_the_ID() );
} else {
$author_id = get_queried_object()->ID;
}
foreach ( $social_array as $key => $value ) {
if ( get_the_author_meta( $key, $author_id ) ) {
if ( $value === 'fa-twitter' ) {
$icon = '<i class="fa ' . esc_attr( $value ) . ' jeg-icon icon-twitter">' . jnews_get_svg( $key ) . '</i>';
} else {
$icon = strpos( $value, 'jeg-icon' ) !== false ? '<i class="' . $value . '">' . jnews_get_svg( $key ) . '</i>' : '<i class="fa ' . esc_attr( $value ) . '"></i>';
}
$socials = $socials . "<a target='_blank' href='" . get_the_author_meta( $key, $author_id ) . "' class='" . $key . "'>" . $icon . '</a>';
}
}
echo jnews_sanitize_by_pass( $socials );