Advertisement
Guest User

Sydney contact

a guest
Jul 29th, 2015
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php  
  2. $toggle_contact = get_theme_mod('toggle_contact');
  3.     $phone          = get_theme_mod('contact_phone', '99.123.456');
  4.     $email          = get_theme_mod('contact_email', 'office@site.com');
  5.     $address        = get_theme_mod('contact_address', '12 Street, New York City');
  6.     if ($toggle_contact) {
  7.         echo '<div class="header-contact"><div class="container">';
  8.             if ($phone) {
  9.             echo '<span class="header-phone">';
  10.                 echo '<i class="fa fa-phone"></i>' . $phone;
  11.             echo '</span>';
  12.             }
  13.             if ($email) {
  14.             echo '<span class="header-email">';
  15.                 echo '<a href="mailto:' . $email . '"><i class="fa fa-envelope"></i>' . $email . '</a>';
  16.             echo '</span>';
  17.             }
  18.             if ($address) {
  19.             echo '<span class="header-address">';
  20.                 echo '<i class="fa fa-home"></i>' . $address;
  21.             echo '</span>';
  22.             }
  23.         echo '</div></div>';                   
  24.     }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement