$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 ( 'blank' === $link_target ) { $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' ), true ) ) { echo ''; } elseif ( in_array( $key, array( 'email' ), true ) ) { 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 ?>