Created
January 30, 2014 12:28
-
-
Save woogist/8707451 to your computer and use it in GitHub Desktop.
change contact details on superstore theme
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
function superstore_contact() { | |
global $woo_options; | |
?> | |
<ul class="contact"> | |
<?php if ( isset($woo_options['woo_contact_number']) && $woo_options['woo_contact_number'] != '' ) { ?><li class="phone"><a href="tel:<?php echo esc_html( $woo_options['woo_contact_number'] ); ?>"><?php echo esc_html( $woo_options['woo_contact_number'] ); ?></a></li><?php } ?> | |
<?php if ( isset($woo_options['woo_contact_fax']) && $woo_options['woo_contact_fax'] != '' ) { ?><li class="fax"><?php echo esc_html( $woo_options['woo_contact_fax'] ); ?></li><?php } ?> | |
<?php if ( isset( $woo_options['woo_contact_twitter'] ) && $woo_options['woo_contact_twitter'] != '' ) { ?><li class="twitter"><a href="http://twitter.com/<?php echo esc_attr( $woo_options['woo_contact_twitter'] ); ?>">@<?php echo esc_html( $woo_options['woo_contact_twitter'] ); ?></a></li><?php } ?> | |
<?php if ( isset( $woo_options['woo_connect_facebook'] ) && $woo_options['woo_connect_facebook'] != '' ) { ?><li class="facebook"><a href="<?php echo $woo_options['woo_connect_facebook']; ?>"><?php _e( 'Facebook', 'woothemes' ); ?></a></li><?php } ?> | |
</ul> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment