Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Displays Contact Details on header top
- *
- * @package Clean_Blocks
- */
- $email = get_theme_mod( 'foodie_world_header_top_email' );
- $address = get_theme_mod( 'foodie_world_header_top_address' );
- $phone = get_theme_mod( 'foodie_world_header_top_contact' );
- if ( $email || $address || $phone ): ?>
- <div class="header-top-left">
- <ul class="contact-details">
- <?php if ( $email ) : ?>
- <li class="contact-email"><a href="mailto:<?php echo esc_attr( antispambot( $email ) ); ?>"><?php echo esc_html( antispambot( $email ) ) ?></a></li>
- <?php endif; ?>
- <?php if ( $phone ) : ?>
- <li class="contact-phone"><a href="<?php echo esc_attr( preg_replace( '/\s+/', '', $phone ) ); ?>"><?php echo esc_html( "Whatsapp" ); ?></a></li>
- <?php endif; ?>
- <?php if ( $address ) : ?>
- <li class="contact-address"><?php echo wp_kses_post( $address ); ?></li>
- <?php endif; ?>
- </ul><!-- .contact-details -->
- </div><!-- .header-top-left -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement