Last active
August 29, 2015 14:10
-
-
Save mrpsiho/3b85c4cfeaa0ff3cb130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: Contact Form | |
*/ | |
get_header(); ?> | |
<h1>Контактна форма</h1> | |
<?php if ( 'success' == get_query_var( 'form' ) ): ?> | |
<div class="message"> | |
Ваше повідомлення надіслано! | |
</div> | |
<?php elseif( 'error' == get_query_var( 'form' )): ?> | |
<div class="message"> | |
Упс! Сталась помилка... | |
</div> | |
<?php endif ?> | |
<form method='post' action=''> | |
<label> Your name: </label> <input type="text" name="uni_contact_name" value=""/> | |
<label&> Your message: </label> <textarea name="uni_contact_msg" rows="20" cols="30"></textarea> | |
<?php wp_nonce_field('uni_contact_form','uni_contact_nonce'); ?> | |
<input type='submit' name='uni_contact_submit' value='Відправити' /> | |
</form> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment