+ if ( $dnxcf_mailed ) {
+ ?>
+ <p id="dnxcf_success"><?php _e( 'your email was sent successfully. Here\'s the data you submitted via our form.', 'dnxcf' ); ?></p>
+ <p>
+ <dl>
+ <dt><?php _e( 'Your Name:', 'dnxcf' ); ?></dt>
+ <dd><?php echo $dnxcf_posted['dnxcf_name']; ?></dd>
+ <dt><?php _e( 'Your e-mail:', 'dnxcf' ); ?></dt>
+ <dd><?php echo $dnxcf_posted['dnxcf_email']; ?></dd>
+ <dt><?php _e( 'Subject of your message:', 'dnxcf' ); ?></dt>
+ <dd><?php echo $dnxcf_posted['dnxcf_subject']; ?></dd>
+ <dt><?php _e( 'Text of your Message:', 'dnxcf' ); ?></dt>
+ <dd><blockquote><?php echo wptexturize( wpautop( $dnxcf_posted['dnxcf_message'] ) ); ?></blockquote></dd>
+ </dl>
+ </p>
+ <p><?php _e( 'we also collected some data for tecnical reasons.', 'dnxcf' ); ?></p>
+ <p>
+ <dl>
+ <dt><?php _e( 'Your IP address:', 'dnxcf' ); ?></dt>
+ <dd><?php echo $dnxcf_hst; ?></dd>
+ <dt><?php _e( 'Your Browser:', 'dnxcf' ); ?></dt>
+ <dd><?php echo $dnxcf_ua; ?></dd>
+ </dl>
+ </p>
+ <?php } else { ?>
+ <p id="dnxcf_result_failure"><?php printf( __( 'there was a problem processing your email. Please contact the <a href="mailto:%s">administrator</a>.', 'dnxcf' ), get_bloginfo( 'admin_email' ) ); ?></p>
+ <?php }
+ } else {
+ // dnxcf_pagelikes was not empty. This is a problem. ?>
+ <p id="dnxcf_spammer"><?php _e( 'looks like you don\'t belong here. We don\'t like spammers. Go away now!', 'dnxcf' ); ?></p>
+ <?php }
+ } else { // Houston we have a problem, spammer detected
+ // we might want to use the data we have and send a mail to the admin just in case...
+ ?>
+ <p id="dnxcf_spammer"><?php _e( 'looks like you don\'t belong here. We don\'t like spammers. Go away now!', 'dnxcf' ); ?></p>
+ <?php
+ } // end check for wp_nonce
+ } else { // the post hasn't been submitted. Let's show the form
+ global $dnxcf_options;
+ $dnxcf_options = get_option( 'dnxcf_options' );
+ ?>
+ <!-- begin #dnxcf_form -->
+ <form id="dnxcf_form" method="post" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ); ?>">
+ <?php wp_nonce_field( 'dnxcf_submit_' . $dnxcf_form_id, 'dnxcf_form_' . $dnxcf_pid, true, true ); ?>
+ <p class="comment-notes"><?php _e( 'Required fields are marked ', 'dnxcf' ); ?><span class="required">*</span></p>
+ <section id="dnxcf_formwrap">
+ <?php if ( $dnxcf_options['dnxcf_privacy'] ) : ?>
+ <section id="dnxcf_privacy">
+ <h4><?php _e( 'Privacy:', 'dnxcf' ); ?></h4>
+ <div class="policy"><?php echo wpautop( wptexturize( $dnxcf_options['dnxcf_privacy'] ) ); ?></div>
+ </section>
+ <?php endif; ?>
+ <section id="dnxcf_personal">
+ <h4><?php _e( 'Personal Informations:', 'dnxcf' ); ?></h4>
+ <p class="dnxcf-form-name">
+ <label class="dnxcf-user" for="name"><span class="screen-reader-text"><?php _e( 'Full Name', 'dnxcf' ); ?></span><span class="required">*</span></label>
+ <input name="dnxcf_name" id="name" size="35" maxlength="40" type="text" placeholder="<?php _e( 'name', 'dnxcf' ); ?>" required autocomplete="name">
+ </p>
+ <p class="dnxcf-form-email">
+ <label class="dnxcf-mail" for="email"><span class="screen-reader-text"><?php _e( 'email address', 'dnxcf' ); ?></span><span class="required">*</span></label>
+ <input name="dnxcf_email" id="email" size="35" maxlength="50" type="email" placeholder="<?php _e( 'e-mail', 'dnxcf' ); ?>" required autocomplete="email">
+ </p>
+ <p class="dnxcf-form-website">
+ <label for="website" class="dnxcf-website"><span class="screen-reader-text"><?php _e( 'website', 'dnxcf' ); ?></span></label>
+ <input name="dnxcf_website" id="website" size="35" maxlength="50" type="url" placeholder="<?php _e( 'website', 'dnxcf' ); ?>" autocomplete="url">
+ </p>
+ <p class="dnxcf-form-pagelikes">
+ <label for="pagelikes" class="dnxcf-like"><span class="screen-reader-text"><?php _e( 'pages you liked', 'dnxcf' ); ?></span></label>
+ <input name="dnxcf_pagelikes" id="pagelikes" size="35" maxlength="50" type="text" placeholder="<?php _e( 'what pages you liked?', 'dnxcf' ); ?>" autocomplete="off">
+ </p>
+ </section>
+ <section id="dnxcf_message">
+ <h4><?php _e( 'your message:', 'dnxcf' ); ?></h4>
+ <p class="dnxcf-form-subject">
+ <label class="dnxcf-tag" for="subject"><span class="screen-reader-text"><?php _e( 'subject', 'dnxcf' ); ?></span><span class="required">*</span></label>
+ <select name="dnxcf_subject" id="subject" required>
+ <?php
+ global $dnxcf_options;
+ $dnxcf_options = get_option( 'dnxcf_options' );
+ $subject_options = $dnxcf_options['dnxcf_subject'];
+ foreach ( $subject_options as $option ) {
+ echo '<option value="' . $option . '">' . $option . '</option>';
+ }
+ ?>
+ </select>
+ </p>
+ <p class="dnxcf-form-message">
+ <label class="dnxcf-message" for="message"><span class="screen-reader-text"><?php _e( 'message', 'dnxcf' ); ?></span><span class="required">*</span></label>
+ <textarea name="dnxcf_message" id="message" cols="60" rows="12" placeholder="<?php _e( 'Comment Here', 'dnxcf' ); ?>" required></textarea>
+ </p>
+ </section>
+ <section id="dnxcf_send">
+ <input type="submit" name="<?php echo $dnxcf_send_value; ?>" id="<?php echo $dnxcf_send_value; ?>" value="<?php _e( 'send message', 'dnxcf' ); ?>">
+ </section>
+ </section><!-- #formwrap -->
+ </form>
+ <!-- end #dnxcf_form -->
+ <?php
+
+ } // end check for post submission