PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
user-pro
/
functions
<?php /* Get icon for field */ function userpro_get_field_icon($key) { global $userpro; return $userpro->field_icon($key); } /* Show profile links */ function userpro_profile_icons_noargs( $user_id, $wrapper=null ) { global $userpro; $res = null; foreach( userpro_fields_group_by_template( 'social', 'default' ) as $key => $array ) { $icon = $userpro->field_icon($key); if ( userpro_profile_data($key, $user_id) && userpro_field_is_viewable_noargs($key, $user_id) && $icon ) { $res .= '<a href="'.userpro_link_filter( userpro_profile_data($key, $user_id), $key ).'" class="userpro-profile-icon userpro-tip" title="'.$array['label'].'" target="_blank" ><i class="userpro-icon-'.$icon.'"></i></a>'; } } if ($res){ if ($wrapper){ echo '<div class="'.$wrapper.'">'; } echo $res; if ($wrapper){ echo '</div>'; } } } /* Show profile links */ function userpro_profile_icons( $args, $user_id, $wrapper=null ) { global $userpro; $res = null; foreach( userpro_fields_group_by_template( 'social', $args["social_group"] ) as $key => $array ) { $icon = $userpro->field_icon($key); if ( userpro_profile_data($key, $user_id) && userpro_field_is_viewable($key, $user_id, $args) && $icon ) { $res .= '<a href="'.userpro_link_filter( userpro_profile_data($key, $user_id), $key ).'" class="userpro-profile-icon userpro-tip" title="'.$array['label'].'" target="'.$args['social_target'].'" ><i class="userpro-icon-'.$icon.'"></i></a>'; } } if ($res){ if ($wrapper){ echo '<div class="'.$wrapper.'">'; } echo $res; if ($wrapper){ echo '</div>'; } } }
[+]
..
[-] shortcode-functions.php
[edit]
[-] hooks-actions.php
[edit]
[-] social-connect.php
[edit]
[-] _trial.php
[edit]
[-] fields-hooks.php
[edit]
[-] msg-functions.php
[edit]
[-] terms-agreement.php
[edit]
[-] badge-functions.php
[edit]
[-] fields-setup.php
[edit]
[-] ajax.php
[edit]
[-] shortcode-main.php
[edit]
[-] member-search-filters.php
[edit]
[-] shortcode-social-connect.php
[edit]
[-] global-actions.php
[edit]
[-] security.php
[edit]
[-] api.php
[edit]
[-] mail-functions.php
[edit]
[-] memberlist-functions.php
[edit]
[-] invite_users_widgets.php
[edit]
[-] common-functions.php
[edit]
[-] shortcode-extras.php
[edit]
[-] icons-functions.php
[edit]
[-] hooks-filters.php
[edit]
[-] frontend-publisher-functions.php
[edit]
[-] instagramPanel.php
[edit]
[-] defaults.php
[edit]
[-] fields-filters.php
[edit]
[-] linkedinPanel.php
[edit]
[-] fields-functions.php
[edit]
[-] user-functions.php
[edit]
[-] initial-setup.php
[edit]
[-] buddypress.php
[edit]
[-] shortcode-private-content.php
[edit]
[-] template-redirects.php
[edit]
[-] custom-alerts.php
[edit]