Esempio n. 1
0
<br/>
        <?php 
echo agency_get_theme_option('address_text2');
?>
      </section>
      <section class="_1-4">
        <h4>Get In Touch</h4>
        <em>phone</em> <?php 
echo agency_get_theme_option('phone_text');
?>
<br/>
        <em>email</em> <a href="mailto:<?php 
echo agency_get_theme_option('email_text');
?>
">
                        <?php 
echo agency_get_theme_option('email_text');
?>
                       </a><br/>
        <?php 
agency_get_social_footer();
?>
      </section>
    </div><!--/.wrap-->
  </footer>

  <?php 
wp_footer();
?>
</body>
</html>
            $hasError = true;
        } else {
            $email = trim($_POST['contact-email-address']);
        }
    }
    if (trim($_POST['contact-message']) === '') {
        $error_log["messageError"] = 'Please enter a message.';
        $hasError = true;
    } else {
        if (function_exists('stripslashes')) {
            $message = stripslashes(trim($_POST['contact-message']));
        } else {
            $message = trim($_POST['contact-message']);
        }
    }
    if (!isset($hasError)) {
        $emailTo = agency_get_theme_option('agency_email');
        $domain = parse_url(site_url());
        $domain = $domain[host];
        if (!isset($emailTo) || $emailTo == '') {
            $emailTo = get_option('admin_email');
        }
        $subject = '[Contact Form Entry] From ' . $name;
        $body = "Name: {$name} \n\nEmail: {$email} \n\nComments: {$message}";
        $headers = 'From: ' . get_option('blogname') . ' <mail@' . $domain . '>' . "\r\n" . 'Reply-To: ' . $email;
        wp_mail($emailTo, $subject, $body, $headers);
        $emailSent = true;
    } else {
    }
} else {
}