wpcf7_tag_generator_infusionsoft_old

The Contact Form 7 - Infusionsoft Add-on wpcf7 tag generator infusionsoft old function.

Description

wpcf7_tag_generator_infusionsoft_old(); 

Usage

  1. if ( !function_exists( 'wpcf7_tag_generator_infusionsoft_old' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/cf7-infusionsoft-modules.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7_tag_generator_infusionsoft_old(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/cf7-infusionsoft-modules.php  
  1. function wpcf7_tag_generator_infusionsoft_old() {  
  2. global $infusionsoft_fields; 
  3. ?> 
  4. <div id="wpcf7-tg-pane-infusionsoft" class="hidden"> 
  5. <form action=""> 
  6. <table> 
  7. <tbody> 
  8. <tr> 
  9. <td style="display:none;"> 
  10. <input type="checkbox" name="required" checked disabled> Required field (for InfusionSoft) 
  11. </td> 
  12. </tr> 
  13. <tr> 
  14. <td> 
  15. Type<br> 
  16. <select id="infusionsoft-tag" name="name"> 
  17. <option value="0">--</option> 
  18. <?php  
  19. foreach ($infusionsoft_fields as $value => $name) { 
  20. echo '<option value="infusionsoft-' . $value . '">' . $name . '</option>'; 
  21. ?> 
  22. </select> 
  23. </td> 
  24. <td></td> 
  25. </tr> 
  26. </tbody> 
  27. </table> 
  28. <table> 
  29. <tbody> 
  30. <tr> 
  31. <td> 
  32. <code>id</code> (optional)<br> 
  33. <input type="text" name="id" class="idvalue oneline option"> 
  34. </td> 
  35. <td> 
  36. <code>class</code> (optional)<br> 
  37. <input type="text" name="class" class="classvalue oneline option"> 
  38. </td> 
  39. </tr> 
  40. <tr> 
  41. <td> 
  42. <code>size</code> (optional)<br> 
  43. <input type="number" name="size" class="numeric oneline option" min="1"> 
  44. </td> 
  45. <td> 
  46. <code>maxlength</code> (optional)<br> 
  47. <input type="number" name="maxlength" class="numeric oneline option" min="1"> 
  48. </td> 
  49. </tr> 
  50. <tr> 
  51. <td> 
  52. Placeholder text (optional)<br><input type="text" name="values" class="oneline"> 
  53. </td> 
  54. <td> 
  55. <br><input type="checkbox" name="placeholder" class="option"> Use placeholder text?</td> 
  56. </tr> 
  57. </tbody></table> 
  58.  
  59. <div class="tg-tag"> 
  60. Copy this code and paste it into the form to the left.<br> 
  61. <input id="infusionsoft-tag-type" type="text" name="text" class="tag" readonly="readonly" onfocus="this.select()"> 
  62. </div> 
  63. <div class="tg-mail-tag"> 
  64. And, put this code into the Mail fields below.<br> 
  65. <input type="text" class="mail-tag" readonly="readonly" onfocus="this.select()"> 
  66. </div> 
  67.  
  68. <table> 
  69. <tr> 
  70. <td> 
  71. Note:<br> 
  72. <span style="font-size:1em; color: #666; font-style: italic; display: block;"> 
  73. To ensure that the form can successfully send data to InfusionSoft, you must add fields for <code>Email Address</code> and at least one of the following: <code>First Name</code> or <code>Last Name</code>. 
  74. InfusionSoft requires an email address and first OR last name (at a minimum) in order to add a contact to the database. 
  75. </span> 
  76. <ul> 
  77. <li> 
  78. This plugin also supports email and phone HTML5 input types. If you wish to use HTML5, these can be used immediately, by copying and pasting any of the following into the form to the left: 
  79. </li> 
  80. <li> 
  81. Email: <code>[email* infusionsoft-email]</code> 
  82. </li> 
  83. <li> 
  84. Phone: <code>[tel infusionsoft-phone]</code> 
  85. </li> 
  86. </ul> 
  87. </td> 
  88. </tr> 
  89. </table> 
  90. </form> 
  91. </div> 
  92. <?php }