# awsm-team/1.3.4/templates/partials/social.php

AWSM Team – Team Showcase Plugin, version 1.3.4. 29 lines.

- Page: https://pluginprobe.com/plugins/awsm-team/1.3.4/code/templates/partials/social.php
- Raw: https://pluginprobe.com/plugins/awsm-team/1.3.4/raw/templates/partials/social.php
- Modified: 2026-08-05T05:32:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/awsm-team/1.3.4/code/templates/partials/social.php#L10-L20`.

```php
<?php
/**
 * Social Info Template Part.
 *
 * @package awsm-team
 */

if ( ! empty( $teamdata['awsm_social'] ) ) {
	echo '<div class="awsm-social-icons">';
	foreach ( $teamdata['awsm_social'] as $social ) {

		$social_link = '';
		$links       = isset( $social['link'] ) ? $social['link'] : '';
		$icon        = isset( $social['icon'] ) ? $social['icon'] : '';
		if ( filter_var( $links, FILTER_VALIDATE_EMAIL ) ) {
			$social_link = sprintf( 'href="mailto:%1$s"', esc_attr( $links ) );
		} elseif ( $this->validate_phone_number( $links ) === true ) {
			$social_link = sprintf( 'href="tel:%1$s"', esc_attr( $links ) );
		} else {

			$social_link = sprintf( 'href="%1$s" target="_blank"', esc_url( $links ) );
		}

		echo '<span><a ' . $social_link . '><i class="awsm-icon-' . esc_attr( $icon ) . '" aria-hidden="true"></i></a></span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	}
	echo '</div>';
}


```
