SHARE
TWEET

contact.php

a guest May 22nd, 2015 229 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Template Name: Contact
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <!-- begin colLeft -->
  10.         <div id="colLeft">
  11.     <!-- Begin .postBox -->
  12.                 <div class="postBox">
  13.                         <div class="postBoxTop"></div>
  14.                         <div class="postBoxMid">
  15.                                 <div class="postBoxMidInner first clearfix">
  16. <div class="contact_post_box_edge"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/latest_post_box_edge.png" alt="latest_post_box_edge" /></div>
  17.                         <h1>Send a Message</h1>
  18.                         <?php the_content(); ?>
  19.                        
  20.                         <p id="success" class="successmsg" style="display:none;">Your email has been sent! Thank you!</p>
  21.  
  22.                         <p id="bademail" class="errormsg" style="display:none;">Please enter your name, a message and a valid email address.</p>
  23.                         <p id="badserver" class="errormsg" style="display:none;">Your email failed. Try again later.</p>
  24.  
  25.                         <form id="contact" action="<?php bloginfo('template_url'); ?>/sendmail.php" method="post">
  26.                                 <input type="text" id="nameinput" title="Your real name or any nick- or username" name="name" value="" /> <div class="contact_name"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/contact_name.png" alt="contact_name" /></div>
  27.                                 <input type="text" id="emailinput" title="Only valid e-mail addresses, please!" name="email" value="" /> <div class="contact_mail"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/contact_mail.png" alt="contact_mail" /></div>
  28.                         <label for="comment"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/contact_message.png" alt="contact_message" title="I'm happy to revceive your message! :)" /></label>
  29.                                 <textarea cols="20" rows="7" id="commentinput" name="comment"></textarea><br />
  30.                         <input type="submit" id="submitinput" name="submit" class="submit" title="Don't forget to check one more time before you hit the send button!" value=""/>
  31.                         <input type="hidden" id="receiver" name="receiver" value="<?php echo strhex(get_option('alltuts_contact_email'))?>"/>
  32.                         </form>
  33.                        
  34.                         </div>
  35.                 </div>
  36.                 <div class="postBoxBottom"></div>
  37.         </div>
  38.          <!-- End .postBox -->
  39.         </div>
  40.         <!-- end colleft -->
  41.  
  42.  
  43.  
  44.                         <?php get_sidebar(); ?>
  45.  
  46. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top