Advertisement
Guest User

Untitled

a guest
Oct 25th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. if ( ! function_exists( 'jas_gecko_social' ) ) {
  2. function jas_gecko_social() {
  3. $output = '';
  4.  
  5. $socials = cs_get_option( 'social-network' );
  6. if ( empty( $socials ) ) return;
  7.  
  8. $output .= '<div class="jas-socials">';
  9. foreach ( $socials as $social) {
  10. $output .= '<a class="dib br__50 tc ' . esc_attr( str_replace( 'fa fa-', '', $social['icon'] ) ) . '" href="' . esc_url( $social['link'] ) . '" target="_blank"><i class="' . esc_attr( $social['icon'] ) . '"></i></a>';
  11. }
  12. $output .= '</div>';
  13.  
  14. return apply_filters( 'jas_gecko_social', $output );
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement