Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $toggle_contact = get_theme_mod('toggle_contact');
- $phone = get_theme_mod('contact_phone', '99.123.456');
- $email = get_theme_mod('contact_email', 'office@site.com');
- $address = get_theme_mod('contact_address', '12 Street, New York City');
- if ($toggle_contact) {
- echo '<div class="header-contact"><div class="container">';
- if ($phone) {
- echo '<span class="header-phone">';
- echo '<i class="fa fa-phone"></i>' . $phone;
- echo '</span>';
- }
- if ($email) {
- echo '<span class="header-email">';
- echo '<a href="mailto:' . $email . '"><i class="fa fa-envelope"></i>' . $email . '</a>';
- echo '</span>';
- }
- if ($address) {
- echo '<span class="header-address">';
- echo '<i class="fa fa-home"></i>' . $address;
- echo '</span>';
- }
- echo '</div></div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement