'fab fa-behance', 'codepen.io' => 'fab fa-codepen', 'deviantart.com' => 'fab fa-deviantart', 'digg.com' => 'fab fa-digg', 'docker.com' => 'fab fa-docker', 'dribbble.com' => 'fab fa-dribbble', 'dropbox.com' => 'fab fa-dropbox', 'facebook.com' => 'fab fa-facebook', 'flickr.com' => 'fab fa-flickr', 'foursquare.com' => 'fab fa-foursquare', 'plus.google.com' => 'fab fa-google-plus-square', 'github.com' => 'fab fa-github', 'instagram.com' => 'fab fa-instagram', 'linkedin.com' => 'fab fa-linkedin', 'mailto:' => 'fas fa-envelope', 'medium.com' => 'fab fa-medium', 'pinterest.com' => 'fab fa-pinterest-p', 'pscp.tv' => 'fab fa-periscope', 'getpocket.com' => 'fab fa-get-pocket', 'reddit.com' => 'fab fa-reddit-alien', 'skype.com' => 'fab fa-skype', 'skype:' => 'fab fa-skype', 'slideshare.net' => 'fab fa-slideshare', 'snapchat.com' => 'fab fa-snapchat-ghost', 'soundcloud.com' => 'fab fa-soundcloud', 'spotify.com' => 'fab fa-spotify', 'stumbleupon.com' => 'fab fa-stumbleupon', 'tumblr.com' => 'fab fa-tumblr', 'twitch.tv' => 'fab fa-twitch', 'twitter.com' => 'fab fa-twitter', 'vimeo.com' => 'fab fa-vimeo', 'vine.co' => 'fab fa-vine', 'vk.com' => 'fab fa-vk', 'wordpress.org' => 'fab fa-wordpress', 'wordpress.com' => 'fab fa-wordpress', 'yelp.com' => 'fab fa-yelp', 'youtube.com' => 'fab fa-youtube', '- Another link -' => 'fas fa-link', ); return $social_links_icons; } /** * Undocumented function * * @return array List of Icons. */ function uebns_getIconStyle() { // Load settings $uebns_settings_social = get_option( 'uebns_settings_social' ); if ( isset( $uebns_settings_social ) && ! empty( $uebns_settings_social ) && is_array( $uebns_settings_social ) ) { $socialmediaiconstyle = $uebns_settings_social; } else { $socialmediaiconstyle = uebns_getIconArrayList(); } return $socialmediaiconstyle; } /** * RowStyle and math variable function * * @param [type] $style_class_line_members * @return void */ function uebns_getRowStyleCount( $settings_line_member ) { $retunrData = array(); switch ( $settings_line_member ) { case 1: $retunrData['style'] = '1'; $retunrData['mt'] = '1'; break; case 2: $retunrData['style'] = '50'; $retunrData['mt'] = '2'; break; case 3: $retunrData['style'] = '33'; $retunrData['mt'] = '3'; break; case 4: $retunrData['style'] = '25'; $retunrData['mt'] = '4'; break; case 5: $retunrData['style'] = '20'; $retunrData['mt'] = '5'; break; default: $retunrData['style'] = '1'; $retunrData['mt'] = '1'; } return $retunrData; } /** * Imagefilter function * * @param [type] $setting_image_filter * @return void */ function uebns_getImageFilterStyle( $setting_image_filter ) { switch ( $setting_image_filter ) { case 'grayscale': $style_image_filter = '-webkit-filter: grayscale(1);filter: grayscale(1);'; break; case 'sepia': $style_image_filter = '-webkit-filter: sepia(1);filter: sepia(1);'; break; default: $style_image_filter = ''; } return $style_image_filter; } /** * GetIcons from the url function * * @param [type] $social_icons * @param [type] $url * @return void */ function uebns_get_icon_social( $social_icons, $url ) { // default $icon_array = uebns_getIconStyle(); $icon_class = $icon_array['- Another link -']; foreach ( $social_icons as $attr => $value ) { if ( false !== strpos( $url, $attr ) ) { $icon_class = $value; } } return $icon_class; } /** * HTML image function * * @param [type] $member * @param [type] $setting_images_clickable * @param [type] $style_image_filter * @param [type] $settings_photo_setting * @return void */ function uebns_get_image_html( $member, $setting_images_clickable, $style_image_filter, $settings_photo_setting ) { if ( ! isset( $member['_uebns_photo'] ) || empty( $member['_uebns_photo'] ) ) { $htmlout = ''; } else { $htmlout = '