$val ) { // Get URL from the theme mods $url = isset( $profiles[$key] ) ? $profiles[$key] : ''; $esc_url = esc_url( $url ); // Get correct label $label = ! empty( $val['label'] ) ? esc_attr( $val['label'] ) : ''; if ( $link_target == 'blank' ) { $aria_label = 'aria-label="' . $label . ' '. esc_attr__( '(opens in a new tab)', 'oceanwp' ).'"'; } else { $aria_label = 'aria-label="' . $label . '"'; } // Display if there is a value defined if ( $url ) { // Display link echo '
  • '; if ( in_array( $key, array( 'skype' ) ) ) { echo ''; } else if ( in_array( $key, array( 'email' ) ) ) { echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo $val['icon_class']; echo ''; echo '
  • '; } // End url check } // End loop ?>