Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Forms

EyesX Jun 15th, 2013 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         // Get question and type Q1
  3.         if (get_post_meta($post->ID, '_cmeta_contest_q1_type', true) !== 'field') {
  4.                 $cq1 = "type='radio' options='". get_post_meta($post->ID, '_cmeta_contest_q1_radio', true) ."'";
  5.         } else {
  6.                 $cq1 = "type='text'";
  7.         }
  8.  
  9.         $question1 = get_post_meta($post->ID, '_cmeta_contest_q1', true);
  10.  
  11.         // Get question and type Q2
  12.         if (get_post_meta($post->ID, '_cmeta_contest_q2_type', true) !== 'field') {
  13.                 $cq2 = "type='radio' options='". get_post_meta($post->ID, '_cmeta_contest_q2_radio', true) ."'";
  14.         } else {
  15.                 $cq2 = "type='text'";
  16.         }
  17.  
  18.         $question2 = get_post_meta($post->ID, '_cmeta_contest_q2', true);
  19.  
  20.         // Get question and type Q3
  21.         if (get_post_meta($post->ID, '_cmeta_contest_q3_type', true) !== 'field') {
  22.                 $cq3 = "type='radio' options='". get_post_meta($post->ID, '_cmeta_contest_q3_radio', true) ."'";
  23.         } else {
  24.                 $cq3 = "type='text'";
  25.         }
  26.  
  27.         $question3 = get_post_meta($post->ID, '_cmeta_contest_q3', true);
  28.  
  29.         // Get contest form title
  30.         $contest_title = the_title_attribute( 'echo=0' );
  31.  
  32.     echo do_shortcode("
  33.      [contact-form to='s@ve.me' subject='". $contest_title ."']
  34.      [contact-field label='". $question1 ."' ". $cq1 ." required='1'/]
  35.      [contact-field label='". $question2 ."' ". $cq2 ." required='1'/]
  36.      [contact-field label='". $question3 ."' ". $cq3 ." required='1'/]
  37.      [contact-field label='Namn och adress' type='textarea' required='1'/]
  38.      [contact-field label='E-postadress' type='email' required='1'/]
  39.      [/contact-form]
  40.    ")
  41. ?>
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