'; } if ( is_numeric( $image_hover ) ) { $img_hover = wp_get_attachment_image_url( intval( $image_hover ), $img_size ); if ( $img_hover !== FALSE ) { $img_html .= '
'; } } elseif ( ! empty( $image_hover ) ) { // Direct link to image is set in the shortcode attribute $img_html .= ''; } if ( ! empty( $email ) ) { $links_html .= ''; } if ( ! empty( $facebook ) ) { $links_html .= ''; } if ( ! empty( $twitter ) ) { $links_html .= ''; } if ( ! empty( $google_plus ) ) { $links_html .= ''; } if ( ! empty( $linkedin ) ) { $links_html .= ''; } if ( ! empty( $skype ) ) { // Skype link may be some http(s): or skype: link. If protocol is not set, adding "skype:" $skype_url = $skype; if ( strpos( $skype_url, ':' ) === FALSE ) { $skype_url = 'skype:' . esc_attr( $skype_url ); } $links_html .= ''; } if ( ! empty( $custom_icon ) AND ! empty( $custom_link ) ) { $links_html .= '' . us_prepare_icon_tag( $custom_icon ) . ''; } if ( ! empty( $links_html ) ) { $classes .= ' with_socials'; $links_html = '