Created
April 8, 2015 14:23
-
-
Save thecodepoetry/474aa09abbb820d24096 to your computer and use it in GitHub Desktop.
skype call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function presscore_top_bar_contact_element( $element ){ | |
| $white_list = array( | |
| 'address', | |
| 'phone', | |
| 'email', | |
| 'skype', | |
| 'clock' | |
| ); | |
| if ( in_array($element, $white_list) ) { | |
| $contact_content = of_get_option( 'header-contact_' . $element ); | |
| if ( $contact_content ) { | |
| $class = $element; | |
| if ( !of_get_option( 'header-contact_' . $element . '_icon', true ) ) { | |
| $class .= ' icon-off'; | |
| } | |
| if( $element == 'skype') { | |
| echo '<span class="mini-contacts ' . esc_attr( $class ) . '"><a href="skype:'.$contact_content.'?call">'.$contact_content.'</a></span>'; | |
| } | |
| else { | |
| echo '<span class="mini-contacts ' . esc_attr( $class ) . '">' . $contact_content . '</span>'; | |
| } | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code in your child theme fcunctions.php and use your user name in skype filed.