Created
May 2, 2014 00:20
-
-
Save jodyheavener/1c08d854f0d605f12f42 to your computer and use it in GitHub Desktop.
This file contains 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
<div class="contact"> | |
<?php $social_icons = array( | |
'bandcamp', | |
'behance', | |
'delicious', | |
'deviantart', | |
'digg', | |
'dribbble', | |
'etsy', | |
'facebook', | |
'flickr', | |
'foursquare', | |
'github', | |
'google-plus', | |
'instagram', | |
'lastfm', | |
'linkedin', | |
'myspace', | |
'pinboard', | |
'pinterest', | |
'rdio', | |
'soundcloud', | |
'spotify', | |
'steam', | |
'stumbleupon', | |
'svpply', | |
'twitter', | |
'vimeo', | |
'youtube', | |
); ?> | |
<div class="social-icons clearfix"> | |
<?php if ( get_theme_mod( 'skype' ) ) : ?> | |
<a class="skype" href="<?php echo esc_url( '"skype:" . get_theme_mod("skype")' ); ?>?userinfo" target="_blank"><?php _e( 'Skype', 'studio' ); ?></a> | |
<?php endif; ?> | |
<?php foreach ( $social_icons as $icon ) { | |
if ( get_theme_mod( $icon ) ) : ?> | |
<a class="<?php echo esc_html( $icon ); ?>" href="<?php echo esc_url( get_theme_mod( $icon ) ); ?>" target="_blank"><?php echo esc_html( $icon ); ?></a> | |
<?php endif; | |
} ?> | |
</div> | |
<?php if ( get_theme_mod( 'email' ) != '' ) : ?> | |
<div class="contact-field email"> | |
<span class="contact-field-label"><?php _e( 'Email:', 'studio' ); ?></span> <a class="email-link <?php if( ! empty( $header_image ) ) { echo 'inverted'; } ?>" href="mailto:<?php echo sanitize_email( get_theme_mod('email') ); ?>"><?php echo esc_html( get_theme_mod('email') ); ?></a> | |
</div> | |
<?php endif; ?> | |
<?php if ( get_theme_mod( 'phone' ) != '' ) : ?> | |
<div class="contact-field phone"> | |
<span class="contact-field-label"><?php _e( 'Phone:', 'studio' ); ?></span> <?php echo esc_html( get_theme_mod('phone') ); ?> | |
</div> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment