Advertisement
Guest User

Untitled

a guest
Jan 18th, 2015
189
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function coupg_shortcode_handler($atts, $content=null)
  2. {
  3. $form="
  4. <div class=\"coupg_link_container\"><a href=\"#\">".$content."</a></div>
  5. <div class=\"coupg_upgrade_box\">
  6. <div class=\"coupg_box_content\">
  7. <div class=\"coupg_subscribe_form\">
  8. <div class=\"coupg_header\" id=\"coupg_header\">".nl2br($header, false)."</div>
  9. <div class=\"coupg_description\" id=\"coupg_description\">".nl2br($description, false)."</div>
  10. <div class=\"coupg_subscribe_form_body\">
  11. <span class=\"coupg_hidden\">".$default."</span>
  12. <input class=\"coupg_email\" type=\"email\" value=\"".get_post_meta($default, 'coupg_default_email_text', true)."\" name=\"EMAIL\" id=\"coupg_email\" onfocus=\"if(this.value=='".get_post_meta($default, 'coupg_default_email_text', true)."') this.value='';\" onblur=\"if(!this.value) this.value='".get_post_meta($default, 'coupg_default_email_text', true)."';\">
  13. <button class=\"coupg_submit_button\" type=\"button\" name=\"coupg_subscribe_button_preview\">".get_post_meta($default, 'coupg_button_text', true)."</button>
  14. </div>
  15. <div class=\"coupg_subscribe_form_notice\">".get_post_meta($default, 'coupg_privacy_statement', true)."</div>
  16. </div>
  17. <span class=\"coupg_close_popup_button\"></span>
  18. </div>
  19. </div>";
  20. return $form;
  21.  
  22. }
Advertisement
RAW Paste Data Copied
Advertisement