Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated meta information

  • Loading branch information...
commit e455758c82638c5eeac2a7bd6ad4ed3584384b7a 0 parents
@alanhogan authored
Showing with 35,609 additions and 0 deletions.
  1. +41 −0 .svn/all-wcprops
  2. +247 −0 .svn/entries
  3. +5 −0 .svn/prop-base/screenshot-1.png.svn-base
  4. +92 −0 .svn/text-base/README.txt.svn-base
  5. +106 −0 .svn/text-base/contact-form-7.js.svn-base
  6. BIN  .svn/text-base/screenshot-1.png.svn-base
  7. +12 −0 .svn/text-base/stylesheet-rtl.css.svn-base
  8. +55 −0 .svn/text-base/stylesheet.css.svn-base
  9. +368 −0 .svn/text-base/wp-contact-form-8.php.svn-base
  10. +92 −0 README.txt
  11. +35 −0 admin/.svn/all-wcprops
  12. +198 −0 admin/.svn/entries
  13. +339 −0 admin/.svn/text-base/admin-panel.php.svn-base
  14. +22 −0 admin/.svn/text-base/admin-stylesheet-rtl.css.svn-base
  15. +170 −0 admin/.svn/text-base/admin-stylesheet.css.svn-base
  16. +383 −0 admin/.svn/text-base/admin.php.svn-base
  17. +796 −0 admin/.svn/text-base/wpcf7-admin.js.svn-base
  18. +339 −0 admin/admin-panel.php
  19. +22 −0 admin/admin-stylesheet-rtl.css
  20. +170 −0 admin/admin-stylesheet.css
  21. +383 −0 admin/admin.php
  22. +796 −0 admin/wpcf7-admin.js
  23. +106 −0 contact-form-7.js
  24. +17 −0 images/.svn/all-wcprops
  25. +96 −0 images/.svn/entries
  26. +5 −0 images/.svn/prop-base/ajax-loader.gif.svn-base
  27. +5 −0 images/.svn/prop-base/dropdown.gif.svn-base
  28. BIN  images/.svn/text-base/ajax-loader.gif.svn-base
  29. BIN  images/.svn/text-base/dropdown.gif.svn-base
  30. BIN  images/ajax-loader.gif
  31. BIN  images/dropdown.gif
  32. +35 −0 includes/.svn/all-wcprops
  33. +198 −0 includes/.svn/entries
  34. +545 −0 includes/.svn/text-base/classes.php.svn-base
  35. +81 −0 includes/.svn/text-base/formatting.php.svn-base
  36. +173 −0 includes/.svn/text-base/functions.php.svn-base
  37. +67 −0 includes/.svn/text-base/pipe.php.svn-base
  38. +146 −0 includes/.svn/text-base/shortcodes.php.svn-base
  39. +545 −0 includes/classes.php
  40. +81 −0 includes/formatting.php
  41. +173 −0 includes/functions.php
  42. +67 −0 includes/pipe.php
  43. +146 −0 includes/shortcodes.php
  44. +503 −0 languages/.svn/all-wcprops
  45. +2,850 −0 languages/.svn/entries
  46. +5 −0 languages/.svn/prop-base/wpcf7-ar.mo.svn-base
  47. +5 −0 languages/.svn/prop-base/wpcf7-bg_BG.mo.svn-base
  48. +5 −0 languages/.svn/prop-base/wpcf7-bn_BD.mo.svn-base
  49. +5 −0 languages/.svn/prop-base/wpcf7-bs.mo.svn-base
  50. +5 −0 languages/.svn/prop-base/wpcf7-ca_ES.mo.svn-base
  51. +5 −0 languages/.svn/prop-base/wpcf7-cs_CZ.mo.svn-base
  52. +5 −0 languages/.svn/prop-base/wpcf7-da_DK.mo.svn-base
  53. +5 −0 languages/.svn/prop-base/wpcf7-de_DE.mo.svn-base
  54. +5 −0 languages/.svn/prop-base/wpcf7-el.mo.svn-base
  55. +5 −0 languages/.svn/prop-base/wpcf7-es_ES.mo.svn-base
  56. +5 −0 languages/.svn/prop-base/wpcf7-et.mo.svn-base
  57. +5 −0 languages/.svn/prop-base/wpcf7-fa_IR.mo.svn-base
  58. +5 −0 languages/.svn/prop-base/wpcf7-fi.mo.svn-base
  59. +5 −0 languages/.svn/prop-base/wpcf7-fr_FR.mo.svn-base
  60. +5 −0 languages/.svn/prop-base/wpcf7-he_IL.mo.svn-base
  61. +5 −0 languages/.svn/prop-base/wpcf7-hi_IN.mo.svn-base
  62. +5 −0 languages/.svn/prop-base/wpcf7-hr.mo.svn-base
  63. +5 −0 languages/.svn/prop-base/wpcf7-hu_HU.mo.svn-base
  64. +5 −0 languages/.svn/prop-base/wpcf7-id_ID.mo.svn-base
  65. +5 −0 languages/.svn/prop-base/wpcf7-it_IT.mo.svn-base
  66. +5 −0 languages/.svn/prop-base/wpcf7-ja.mo.svn-base
  67. +5 −0 languages/.svn/prop-base/wpcf7-ka_GE.mo.svn-base
  68. +5 −0 languages/.svn/prop-base/wpcf7-ko_KR.mo.svn-base
  69. +5 −0 languages/.svn/prop-base/wpcf7-lv.mo.svn-base
  70. +5 −0 languages/.svn/prop-base/wpcf7-nb_NO.mo.svn-base
  71. +5 −0 languages/.svn/prop-base/wpcf7-nl_NL.mo.svn-base
  72. +5 −0 languages/.svn/prop-base/wpcf7-pl_PL.mo.svn-base
  73. +5 −0 languages/.svn/prop-base/wpcf7-pt_BR.mo.svn-base
  74. +5 −0 languages/.svn/prop-base/wpcf7-pt_PT.mo.svn-base
  75. +5 −0 languages/.svn/prop-base/wpcf7-ro_RO.mo.svn-base
  76. +5 −0 languages/.svn/prop-base/wpcf7-ru_RU.mo.svn-base
  77. +5 −0 languages/.svn/prop-base/wpcf7-sk.mo.svn-base
  78. +5 −0 languages/.svn/prop-base/wpcf7-sl_SI.mo.svn-base
  79. +5 −0 languages/.svn/prop-base/wpcf7-sq.mo.svn-base
  80. +5 −0 languages/.svn/prop-base/wpcf7-sr_RS.mo.svn-base
  81. +5 −0 languages/.svn/prop-base/wpcf7-sv_SE.mo.svn-base
  82. +5 −0 languages/.svn/prop-base/wpcf7-tr_TR.mo.svn-base
  83. +5 −0 languages/.svn/prop-base/wpcf7-uk_UA.mo.svn-base
  84. +5 −0 languages/.svn/prop-base/wpcf7-vi.mo.svn-base
  85. +5 −0 languages/.svn/prop-base/wpcf7-zh_CN.mo.svn-base
  86. +5 −0 languages/.svn/prop-base/wpcf7-zh_TW.mo.svn-base
  87. BIN  languages/.svn/text-base/wpcf7-ar.mo.svn-base
  88. +349 −0 languages/.svn/text-base/wpcf7-ar.po.svn-base
  89. BIN  languages/.svn/text-base/wpcf7-bg_BG.mo.svn-base
  90. +289 −0 languages/.svn/text-base/wpcf7-bg_BG.po.svn-base
  91. BIN  languages/.svn/text-base/wpcf7-bn_BD.mo.svn-base
  92. +437 −0 languages/.svn/text-base/wpcf7-bn_BD.po.svn-base
  93. BIN  languages/.svn/text-base/wpcf7-bs.mo.svn-base
  94. +427 −0 languages/.svn/text-base/wpcf7-bs.po.svn-base
  95. BIN  languages/.svn/text-base/wpcf7-ca_ES.mo.svn-base
  96. +165 −0 languages/.svn/text-base/wpcf7-ca_ES.po.svn-base
  97. BIN  languages/.svn/text-base/wpcf7-cs_CZ.mo.svn-base
  98. +272 −0 languages/.svn/text-base/wpcf7-cs_CZ.po.svn-base
  99. BIN  languages/.svn/text-base/wpcf7-da_DK.mo.svn-base
  100. +482 −0 languages/.svn/text-base/wpcf7-da_DK.po.svn-base
  101. BIN  languages/.svn/text-base/wpcf7-de_DE.mo.svn-base
  102. +478 −0 languages/.svn/text-base/wpcf7-de_DE.po.svn-base
  103. BIN  languages/.svn/text-base/wpcf7-el.mo.svn-base
  104. +468 −0 languages/.svn/text-base/wpcf7-el.po.svn-base
  105. BIN  languages/.svn/text-base/wpcf7-es_ES.mo.svn-base
  106. +437 −0 languages/.svn/text-base/wpcf7-es_ES.po.svn-base
  107. BIN  languages/.svn/text-base/wpcf7-et.mo.svn-base
  108. +318 −0 languages/.svn/text-base/wpcf7-et.po.svn-base
  109. BIN  languages/.svn/text-base/wpcf7-fa_IR.mo.svn-base
  110. +471 −0 languages/.svn/text-base/wpcf7-fa_IR.po.svn-base
  111. BIN  languages/.svn/text-base/wpcf7-fi.mo.svn-base
  112. +320 −0 languages/.svn/text-base/wpcf7-fi.po.svn-base
  113. BIN  languages/.svn/text-base/wpcf7-fr_FR.mo.svn-base
  114. +585 −0 languages/.svn/text-base/wpcf7-fr_FR.po.svn-base
  115. BIN  languages/.svn/text-base/wpcf7-he_IL.mo.svn-base
  116. +306 −0 languages/.svn/text-base/wpcf7-he_IL.po.svn-base
  117. BIN  languages/.svn/text-base/wpcf7-hi_IN.mo.svn-base
  118. +308 −0 languages/.svn/text-base/wpcf7-hi_IN.po.svn-base
  119. BIN  languages/.svn/text-base/wpcf7-hr.mo.svn-base
  120. +427 −0 languages/.svn/text-base/wpcf7-hr.po.svn-base
  121. BIN  languages/.svn/text-base/wpcf7-hu_HU.mo.svn-base
  122. +471 −0 languages/.svn/text-base/wpcf7-hu_HU.po.svn-base
  123. BIN  languages/.svn/text-base/wpcf7-id_ID.mo.svn-base
  124. +308 −0 languages/.svn/text-base/wpcf7-id_ID.po.svn-base
  125. BIN  languages/.svn/text-base/wpcf7-it_IT.mo.svn-base
  126. +499 −0 languages/.svn/text-base/wpcf7-it_IT.po.svn-base
  127. BIN  languages/.svn/text-base/wpcf7-ja.mo.svn-base
  128. +502 −0 languages/.svn/text-base/wpcf7-ja.po.svn-base
  129. BIN  languages/.svn/text-base/wpcf7-ka_GE.mo.svn-base
  130. +213 −0 languages/.svn/text-base/wpcf7-ka_GE.po.svn-base
  131. BIN  languages/.svn/text-base/wpcf7-ko_KR.mo.svn-base
  132. +446 −0 languages/.svn/text-base/wpcf7-ko_KR.po.svn-base
  133. BIN  languages/.svn/text-base/wpcf7-lv.mo.svn-base
  134. +432 −0 languages/.svn/text-base/wpcf7-lv.po.svn-base
  135. BIN  languages/.svn/text-base/wpcf7-nb_NO.mo.svn-base
  136. +266 −0 languages/.svn/text-base/wpcf7-nb_NO.po.svn-base
  137. BIN  languages/.svn/text-base/wpcf7-nl_NL.mo.svn-base
  138. +469 −0 languages/.svn/text-base/wpcf7-nl_NL.po.svn-base
  139. BIN  languages/.svn/text-base/wpcf7-pl_PL.mo.svn-base
  140. +281 −0 languages/.svn/text-base/wpcf7-pl_PL.po.svn-base
  141. BIN  languages/.svn/text-base/wpcf7-pt_BR.mo.svn-base
  142. +400 −0 languages/.svn/text-base/wpcf7-pt_BR.po.svn-base
  143. BIN  languages/.svn/text-base/wpcf7-pt_PT.mo.svn-base
  144. +305 −0 languages/.svn/text-base/wpcf7-pt_PT.po.svn-base
  145. BIN  languages/.svn/text-base/wpcf7-ro_RO.mo.svn-base
  146. +407 −0 languages/.svn/text-base/wpcf7-ro_RO.po.svn-base
  147. BIN  languages/.svn/text-base/wpcf7-ru_RU.mo.svn-base
  148. +213 −0 languages/.svn/text-base/wpcf7-ru_RU.po.svn-base
  149. BIN  languages/.svn/text-base/wpcf7-sk.mo.svn-base
  150. +468 −0 languages/.svn/text-base/wpcf7-sk.po.svn-base
  151. BIN  languages/.svn/text-base/wpcf7-sl_SI.mo.svn-base
  152. +213 −0 languages/.svn/text-base/wpcf7-sl_SI.po.svn-base
  153. BIN  languages/.svn/text-base/wpcf7-sq.mo.svn-base
  154. +305 −0 languages/.svn/text-base/wpcf7-sq.po.svn-base
  155. BIN  languages/.svn/text-base/wpcf7-sr_RS.mo.svn-base
  156. +427 −0 languages/.svn/text-base/wpcf7-sr_RS.po.svn-base
  157. BIN  languages/.svn/text-base/wpcf7-sv_SE.mo.svn-base
  158. +443 −0 languages/.svn/text-base/wpcf7-sv_SE.po.svn-base
  159. BIN  languages/.svn/text-base/wpcf7-tr_TR.mo.svn-base
  160. +305 −0 languages/.svn/text-base/wpcf7-tr_TR.po.svn-base
  161. BIN  languages/.svn/text-base/wpcf7-uk_UA.mo.svn-base
  162. +327 −0 languages/.svn/text-base/wpcf7-uk_UA.po.svn-base
  163. BIN  languages/.svn/text-base/wpcf7-vi.mo.svn-base
  164. +405 −0 languages/.svn/text-base/wpcf7-vi.po.svn-base
  165. BIN  languages/.svn/text-base/wpcf7-zh_CN.mo.svn-base
  166. +306 −0 languages/.svn/text-base/wpcf7-zh_CN.po.svn-base
  167. BIN  languages/.svn/text-base/wpcf7-zh_TW.mo.svn-base
  168. +473 −0 languages/.svn/text-base/wpcf7-zh_TW.po.svn-base
  169. +493 −0 languages/.svn/text-base/wpcf7.pot.svn-base
  170. BIN  languages/wpcf7-ar.mo
  171. +349 −0 languages/wpcf7-ar.po
  172. BIN  languages/wpcf7-bg_BG.mo
  173. +289 −0 languages/wpcf7-bg_BG.po
  174. BIN  languages/wpcf7-bn_BD.mo
  175. +437 −0 languages/wpcf7-bn_BD.po
  176. BIN  languages/wpcf7-bs.mo
  177. +427 −0 languages/wpcf7-bs.po
  178. BIN  languages/wpcf7-ca_ES.mo
  179. +165 −0 languages/wpcf7-ca_ES.po
  180. BIN  languages/wpcf7-cs_CZ.mo
  181. +272 −0 languages/wpcf7-cs_CZ.po
  182. BIN  languages/wpcf7-da_DK.mo
  183. +482 −0 languages/wpcf7-da_DK.po
  184. BIN  languages/wpcf7-de_DE.mo
  185. +478 −0 languages/wpcf7-de_DE.po
  186. BIN  languages/wpcf7-el.mo
  187. +468 −0 languages/wpcf7-el.po
  188. BIN  languages/wpcf7-es_ES.mo
  189. +437 −0 languages/wpcf7-es_ES.po
  190. BIN  languages/wpcf7-et.mo
  191. +318 −0 languages/wpcf7-et.po
  192. BIN  languages/wpcf7-fa_IR.mo
  193. +471 −0 languages/wpcf7-fa_IR.po
  194. BIN  languages/wpcf7-fi.mo
  195. +320 −0 languages/wpcf7-fi.po
  196. BIN  languages/wpcf7-fr_FR.mo
  197. +585 −0 languages/wpcf7-fr_FR.po
  198. BIN  languages/wpcf7-he_IL.mo
  199. +306 −0 languages/wpcf7-he_IL.po
  200. BIN  languages/wpcf7-hi_IN.mo
  201. +308 −0 languages/wpcf7-hi_IN.po
  202. BIN  languages/wpcf7-hr.mo
  203. +427 −0 languages/wpcf7-hr.po
  204. BIN  languages/wpcf7-hu_HU.mo
  205. +471 −0 languages/wpcf7-hu_HU.po
  206. BIN  languages/wpcf7-id_ID.mo
  207. +308 −0 languages/wpcf7-id_ID.po
  208. BIN  languages/wpcf7-it_IT.mo
  209. +499 −0 languages/wpcf7-it_IT.po
  210. BIN  languages/wpcf7-ja.mo
  211. +502 −0 languages/wpcf7-ja.po
  212. BIN  languages/wpcf7-ka_GE.mo
  213. +213 −0 languages/wpcf7-ka_GE.po
  214. BIN  languages/wpcf7-ko_KR.mo
  215. +446 −0 languages/wpcf7-ko_KR.po
  216. BIN  languages/wpcf7-lv.mo
Sorry, we could not display the entire diff because it was too big.
41 .svn/all-wcprops
@@ -0,0 +1,41 @@
+K 25
+svn:wc:ra_dav:version-url
+V 37
+/!svn/ver/151995/contact-form-8/trunk
+END
+stylesheet-rtl.css
+K 25
+svn:wc:ra_dav:version-url
+V 56
+/!svn/ver/152137/contact-form-8/trunk/stylesheet-rtl.css
+END
+stylesheet.css
+K 25
+svn:wc:ra_dav:version-url
+V 52
+/!svn/ver/152137/contact-form-8/trunk/stylesheet.css
+END
+README.txt
+K 25
+svn:wc:ra_dav:version-url
+V 48
+/!svn/ver/152179/contact-form-8/trunk/README.txt
+END
+contact-form-7.js
+K 25
+svn:wc:ra_dav:version-url
+V 55
+/!svn/ver/152137/contact-form-8/trunk/contact-form-7.js
+END
+wp-contact-form-8.php
+K 25
+svn:wc:ra_dav:version-url
+V 59
+/!svn/ver/152137/contact-form-8/trunk/wp-contact-form-8.php
+END
+screenshot-1.png
+K 25
+svn:wc:ra_dav:version-url
+V 54
+/!svn/ver/152137/contact-form-8/trunk/screenshot-1.png
+END
247 .svn/entries
@@ -0,0 +1,247 @@
+10
+
+dir
+152136
+http://svn.wp-plugins.org/contact-form-8/trunk
+http://svn.wp-plugins.org
+
+
+
+2009-09-04T15:09:24.379138Z
+151995
+plugin-master
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b8457f37-d9ea-0310-8a92-e5e31aec5664
+
+stylesheet-rtl.css
+file
+152137
+
+
+
+2009-09-03T03:25:00.000000Z
+c613c8832783ba45b10c20ca372a835e
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+190
+
+stylesheet.css
+file
+152137
+
+
+
+2009-09-03T03:25:00.000000Z
+3a25f17f3b5d39829155a6770c6c1143
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+758
+
+images
+dir
+
+includes
+dir
+
+languages
+dir
+
+admin
+dir
+
+modules
+dir
+
+README.txt
+file
+152179
+
+
+
+2009-09-05T06:03:22.000000Z
+b64a0716e4af0e9f6d335b834d43d282
+2009-09-05T06:03:30.151315Z
+152179
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5300
+
+contact-form-7.js
+file
+152137
+
+
+
+2009-08-21T01:17:00.000000Z
+1c83d8df6c0d4002d3661a5289017f98
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3844
+
+wp-contact-form-8.php
+file
+152137
+
+
+
+2009-09-03T03:39:12.000000Z
+6e9a30c16d4e3111e7f897d6746c7f1d
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10945
+
+screenshot-1.png
+file
+152137
+
+
+
+2009-08-21T01:17:00.000000Z
+4dd749026a5c24a69ac7b3de6f6ee79d
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+109408
+
5 .svn/prop-base/screenshot-1.png.svn-base
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
92 .svn/text-base/README.txt.svn-base
@@ -0,0 +1,92 @@
+=== Contact Form 8 ===
+Contributors: alanhogan
+Tags: contact, contact form, email, ajax, captcha, akismet
+Requires at least: 2.7
+Tested up to: 2.9-rare
+Stable tag: 2.0.1
+
+License: GPL?
+
+
+== Description ==
+
+A fork of Contact Form 7 (by takayukister), Contact Form 8 improves things like checkboxes (labels!).
+
+"Just another contact form plugin. Simple but flexible."
+
+Contact Form 7 and Contact Form 8 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.
+
+**Now multiple checkboxes are not on one line, and clicking the label always toggles the checkbox.**
+
+The CAPTCHA module has been separated as the [Really Simple CAPTCHA](http://wordpress.org/extend/plugins/really-simple-captcha/) plugin, which is required if you would like to use CAPTCHAs in your contact form.
+
+Since being published in August 2007, Contact Form 7 has been translated into a number of languages. Our thanks and appreciation must go to the following for their contributions:
+
+* Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
+* Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/) and Muhammed Lardi
+* Bangla (bn_BD) - [SM Mehdi Akram](http://www.shamokaldarpon.com/)
+* Bosnian (bs) - [Vedran](http://www.seorabbit.com/)
+* Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by [Henrique Vianna](http://henriquevianna.com/))
+* Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
+* Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
+* Chinese, Simplified (zh_CN) - [Soz](http://www.webtoolol.com/)
+* Chinese, Traditional (zh_TW) - [James Wu](http://jameswublog.com)
+* Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
+* Czech (cs_CZ) - Korry
+* Danish (da_DK) - [Jens Griebel](http://www.kompas-it.dk/) (updated by [Georg S. Adamsen](http://wordpress.blogos.dk/))
+* Dutch (nl_NL) - [Chris Devriese](http://www.100it.be/) (updated by [Martin Hein](http://www.split-a-pixel.nl/))
+* Estonian (et) - [Peeter Rahuvarm](http://www.kraabus.ee)
+* Finnish (fi) - [Miika Turunen](http://www.webwork.fi/)
+* French (fr_FR) - [Jillij](http://www.jillij.com/) (updated by [Maître Mô](http://maitremo.fr/))
+* Georgian (ka_GE) - [Nodar Davituri](http://omedia.ge/)
+* German (de_DE) - [Marcel Spitau](http://blog.spitau.de) (updated by [Ivan Graf](http://blog.bildergallery.com/))
+* Greek (el) - [Nick Mouratidis](http://www.kepik.gr/) (updated by [Pr. friedlich](http://friedlich.wordpress.com/))
+* Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/)
+* Hindi (hi_IN) - [Tarun Joshi](http://www.readers-cafe.net/)
+* Hungarian (hu_HU) - [Andras Hirschler](http://hia.itblog.hu/)
+* Indonesian (id_ID) - [Hendry Lee](http://blogbuildingu.com/)
+* Italian (it_IT) - [Bruno](http://www.brunosalzano.com) (updated by [Gianni Diurno](http://gidibao.net/))
+* Japanese (ja) - [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
+* Korean (ko_KR) - Seong Eun Lee (updated by [Jong-In Kim](http://incommunity.codex.kr/wordpress/))
+* Latvian (lv) - [Sandis Veinbergs](http://www.kleofass.lv/)
+* Norwegian (nb_NO) - Kjetil M. Bergem
+* Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/)
+* Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/)
+* Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
+* Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
+* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/)
+* Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/)
+* Slovak (sk) - [Patrik Bóna](http://www.mrhead.sk/)
+* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
+* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
+(updated by [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/) and [Matias Baldanza](http://matiasbaldanza.com/))
+* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/) (updated by [the Swedish community](http://wp-support.se/))
+* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com) (updated by [Hasan Yılmaz](http://hedefturkce.com/))
+* Ukrainian (uk_UA) - [Andrey Kovba](http://myserver.com.ua/)
+* Vietnamese (vi) - Thanh Hải, Hà
+
+== Installation ==
+
+1. Upload the entire `contact-form-8` folder to the `/wp-content/plugins/` directory.
+1. Activate the plugin through the 'Plugins' menu in WordPress.
+
+You will find 'Contact' menu in your WordPress admin panel.
+
+For basic usage, you can also have a look at the [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/) and [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
+
+== Frequently Asked Questions ==
+
+Please see [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
+
+If you have any further questions,
+please submit them [to the support forum](http://wordpress.org/tags/contact-form-7#postform).
+
+Attention: [Check your site before reporting trouble, please!](http://ideasilo.wordpress.com/2009/01/20/check-your-site-before-reporting-trouble-please/)
+
+== Screenshots ==
+
+1. screenshot-1.png
+
+== Changelog ==
+
+[See change logs in author's blog.](http://ideasilo.wordpress.com/tag/contact-form-7/)
106 .svn/text-base/contact-form-7.js.svn-base
@@ -0,0 +1,106 @@
+jQuery(document).ready(function() {
+ try {
+ jQuery('div.wpcf7 > form').ajaxForm({
+ beforeSubmit: wpcf7BeforeSubmit,
+ dataType: 'json',
+ success: wpcf7ProcessJson
+ });
+ } catch (e) {
+ }
+
+ try {
+ jQuery('div.wpcf7 > form').each(function(i, n) {
+ wpcf7ToggleSubmit(jQuery(n));
+ });
+ } catch (e) {
+ }
+});
+
+// Exclusive checkbox
+function wpcf7ExclusiveCheckbox(elem) {
+ jQuery(elem.form).find('input:checkbox[name="' + elem.name + '"]').not(elem).removeAttr('checked');
+}
+
+// Toggle submit button
+function wpcf7ToggleSubmit(form) {
+ var submit = jQuery(form).find('input:submit');
+ if (! submit.length) return;
+
+ var acceptances = jQuery(form).find('input:checkbox.wpcf7-acceptance');
+ if (! acceptances.length) return;
+
+ submit.removeAttr('disabled');
+ acceptances.each(function(i, n) {
+ n = jQuery(n);
+ if (n.hasClass('wpcf7-invert') && n.is(':checked') || ! n.hasClass('wpcf7-invert') && ! n.is(':checked'))
+ submit.attr('disabled', 'disabled');
+ });
+}
+
+function wpcf7BeforeSubmit(formData, jqForm, options) {
+ wpcf7ClearResponseOutput();
+ jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });
+
+ formData.push({name: '_wpcf7_is_ajax_call', value: 1});
+ jQuery(jqForm[0]).append('<input type="hidden" name="_wpcf7_is_ajax_call" value="1" />');
+
+ return true;
+}
+
+function wpcf7NotValidTip(into, message) {
+ jQuery(into).append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
+ jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
+ jQuery(this).fadeOut('fast');
+ });
+ jQuery(into).find(':input').mouseover(function() {
+ jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
+ });
+ jQuery(into).find(':input').focus(function() {
+ jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
+ });
+}
+
+function wpcf7ProcessJson(data) {
+ var wpcf7ResponseOutput = jQuery(data.into).find('div.wpcf7-response-output');
+ wpcf7ClearResponseOutput();
+ if (data.invalids) {
+ jQuery.each(data.invalids, function(i, n) {
+ wpcf7NotValidTip(jQuery(data.into).find(n.into), n.message);
+ });
+ wpcf7ResponseOutput.addClass('wpcf7-validation-errors');
+ }
+ if (data.captcha) {
+ jQuery.each(data.captcha, function(i, n) {
+ jQuery(data.into).find(':input[name="' + i + '"]').clearFields();
+ jQuery(data.into).find('img.wpcf7-captcha-' + i).attr('src', n);
+ var match = /([0-9]+)\.(png|gif|jpeg)$/.exec(n);
+ jQuery(data.into).find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[1]);
+ });
+ }
+ if (data.quiz) {
+ jQuery.each(data.quiz, function(i, n) {
+ jQuery(data.into).find(':input[name="' + i + '"]').clearFields();
+ jQuery(data.into).find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[0]);
+ jQuery(data.into).find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[1]);
+ });
+ }
+ if (1 == data.spam) {
+ wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');
+ }
+ if (1 == data.mailSent) {
+ jQuery(data.into).find('form').resetForm().clearForm();
+ wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
+
+ if (data.onSentOk)
+ jQuery.each(data.onSentOk, function(i, n) { eval(n) });
+ } else {
+ wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
+ }
+ wpcf7ResponseOutput.append(data.message).fadeIn('fast');
+}
+
+function wpcf7ClearResponseOutput() {
+ jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
+ jQuery('span.wpcf7-not-valid-tip').remove();
+ jQuery('img.ajax-loader').css({ visibility: 'hidden' });
+}
BIN  .svn/text-base/screenshot-1.png.svn-base
Binary file not shown
12 .svn/text-base/stylesheet-rtl.css.svn-base
@@ -0,0 +1,12 @@
+span.wpcf7-not-valid-tip {
+ left: auto;
+ right: 20%;
+ direction: rtl;
+}
+span.wpcf7-not-valid-tip-no-ajax {
+ direction: rtl;
+}
+span.wpcf7-list-item {
+ margin-left: 0;
+ margin-right: 0.5em;
+}
55 .svn/text-base/stylesheet.css.svn-base
@@ -0,0 +1,55 @@
+div.wpcf7 {
+ margin: 0;
+ padding: 0;
+}
+
+div.wpcf7-response-output {
+ margin: 2em 0.5em 1em;
+ padding: 0.2em 1em;
+}
+
+div.wpcf7-mail-sent-ok {
+ border: 2px solid #398f14;
+}
+
+div.wpcf7-mail-sent-ng {
+ border: 2px solid #ff0000;
+}
+
+div.wpcf7-spam-blocked {
+ border: 2px solid #ffa500;
+}
+
+div.wpcf7-validation-errors {
+ border: 2px solid #f7e700;
+}
+
+span.wpcf7-form-control-wrap {
+ position: relative;
+}
+
+span.wpcf7-not-valid-tip {
+ position: absolute;
+ top: 20%;
+ left: 20%;
+ z-index: 100;
+ background: #fff;
+ border: 1px solid #ff0000;
+ font-size: 10pt;
+ width: 280px;
+ padding: 2px;
+}
+
+span.wpcf7-not-valid-tip-no-ajax {
+ color: #f00;
+ font-size: 10pt;
+ display: block;
+}
+
+span.wpcf7-list-item {
+ margin-left: 0.5em;
+}
+
+.wpcf7-display-none {
+ display: none;
+}
368 .svn/text-base/wp-contact-form-8.php.svn-base
@@ -0,0 +1,368 @@
+<?php
+/*
+Plugin Name: Contact Form 8
+Plugin URI: http://alanhogan.com/projects/wordpress/contact-form-8
+Description: Based on Takayuki Miyoshi’s Contact Form 7 version 2.0.1. Has better support for checkboxes (clickable labels, actually separate onto different lines)
+Author: Alan Hogan
+Version: 1.0.0
+Author URI: http://alanhogan.com/
+*/
+
+/* Copyright 2007-2009 Takayuki Miyoshi (email: takayukister at gmail.com)
+ and Alan Hogan (2009)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+define( 'WPCF8_VERSION', '1.0.0' );
+
+if ( ! defined( 'WPCF8_PLUGIN_DIR' ) )
+ define( 'WPCF8_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . plugin_basename( dirname( __FILE__ ) ) );
+
+if ( ! defined( 'WPCF8_PLUGIN_URL' ) )
+ define( 'WPCF8_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname( __FILE__ ) ) );
+
+if ( ! defined( 'WPCF8_PLUGIN_MODULES_DIR' ) )
+ define( 'WPCF8_PLUGIN_MODULES_DIR', WPCF8_PLUGIN_DIR . '/modules' );
+
+if ( ! defined( 'WPCF8_PLUGIN_BASENAME' ) )
+ define( 'WPCF8_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
+
+if ( ! defined( 'WPCF8_PLUGIN_NAME' ) )
+ define( 'WPCF8_PLUGIN_NAME', trim( dirname( WPCF8_PLUGIN_BASENAME ), '/' ) );
+
+if ( ! defined( 'WPCF8_LOAD_JS' ) )
+ define( 'WPCF8_LOAD_JS', true );
+
+if ( ! defined( 'WPCF8_LOAD_CSS' ) )
+ define( 'WPCF8_LOAD_CSS', true );
+
+if ( ! defined( 'WPCF8_AUTOP' ) )
+ define( 'WPCF8_AUTOP', true );
+
+if ( ! defined( 'WPCF8_USE_PIPE' ) )
+ define( 'WPCF8_USE_PIPE', true );
+
+/* If you or your client hate to see about donation, set this value false. */
+if ( ! defined( 'WPCF8_SHOW_DONATION_LINK' ) )
+ define( 'WPCF8_SHOW_DONATION_LINK', true );
+
+if ( ! defined( 'WPCF8_ADMIN_READ_CAPABILITY' ) )
+ define( 'WPCF8_ADMIN_READ_CAPABILITY', 'edit_posts' );
+
+if ( ! defined( 'WPCF8_ADMIN_READ_WRITE_CAPABILITY' ) )
+ define( 'WPCF8_ADMIN_READ_WRITE_CAPABILITY', 'publish_pages' );
+
+function wpcf7_plugin_url( $path = '' ) {
+ global $wp_version;
+
+ if ( version_compare( $wp_version, '2.8', '<' ) ) { // Using WordPress 2.7
+ $folder = dirname( plugin_basename( __FILE__ ) );
+ if ( '.' != $folder )
+ $path = path_join( ltrim( $folder, '/' ), $path );
+
+ return plugins_url( $path );
+ }
+
+ return plugins_url( $path, __FILE__ );
+}
+
+function wpcf7_table_name() {
+ global $wpdb;
+
+ return $wpdb->prefix . "contact_form_7";
+}
+
+function wpcf7_table_exists() {
+ global $wpdb;
+
+ $table_name = wpcf7_table_name();
+
+ return $wpdb->get_var( "SHOW TABLES LIKE '$table_name'" ) == $table_name;
+}
+
+// Pre-2.8 compatibility
+if ( ! function_exists( 'esc_js' ) ) {
+ function esc_js( $text ) {
+ return js_escape( $text );
+ }
+}
+
+if ( ! function_exists( 'esc_html' ) ) {
+ function esc_html( $text ) {
+ return wp_specialchars( $text );
+ }
+}
+
+if ( ! function_exists( 'esc_attr' ) ) {
+ function esc_attr( $text ) {
+ return attribute_escape( $text );
+ }
+}
+
+if ( ! function_exists( 'esc_sql' ) ) {
+ function esc_sql( $text ) {
+ global $wpdb;
+ return $wpdb->escape( $text );
+ }
+}
+
+require_once WPCF8_PLUGIN_DIR . '/includes/functions.php';
+require_once WPCF8_PLUGIN_DIR . '/includes/formatting.php';
+require_once WPCF8_PLUGIN_DIR . '/includes/pipe.php';
+require_once WPCF8_PLUGIN_DIR . '/includes/shortcodes.php';
+require_once WPCF8_PLUGIN_DIR . '/includes/classes.php';
+
+if ( is_admin() )
+ require_once WPCF8_PLUGIN_DIR . '/admin/admin.php';
+
+function wpcf7_contact_forms() {
+ global $wpdb;
+
+ $table_name = wpcf7_table_name();
+
+ return $wpdb->get_results( "SELECT cf7_unit_id as id, title FROM $table_name" );
+}
+
+$wpcf7_contact_form = null;
+
+$wpcf7_processing_within = null;
+$wpcf7_unit_count = null;
+$wpcf7_widget_count = null;
+
+function wpcf7_ajax_json_echo() {
+ global $wpcf7_contact_form;
+
+ $echo = '';
+
+ if ( isset( $_POST['_wpcf7'] ) ) {
+ $id = (int) $_POST['_wpcf7'];
+ $unit_tag = $_POST['_wpcf7_unit_tag'];
+
+ if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) {
+ $validation = $wpcf7_contact_form->validate();
+
+ $items = array(
+ 'mailSent' => false,
+ 'into' => '#' . $unit_tag,
+ 'captcha' => $captcha );
+
+ $items = apply_filters( 'wpcf7_ajax_json_echo', $items );
+
+ if ( ! $validation['valid'] ) { // Validation error occured
+ $invalids = array();
+ foreach ( $validation['reason'] as $name => $reason ) {
+ $invalids[] = array(
+ 'into' => 'span.wpcf7-form-control-wrap.' . $name,
+ 'message' => $reason );
+ }
+
+ $items['message'] = $wpcf7_contact_form->message( 'validation_error' );
+ $items['invalids'] = $invalids;
+
+ } elseif ( ! $wpcf7_contact_form->accepted() ) { // Not accepted terms
+ $items['message'] = $wpcf7_contact_form->message( 'accept_terms' );
+
+ } elseif ( $wpcf7_contact_form->akismet() ) { // Spam!
+ $items['message'] = $wpcf7_contact_form->message( 'akismet_says_spam' );
+ $items['spam'] = true;
+
+ } elseif ( $wpcf7_contact_form->mail() ) {
+ $items['mailSent'] = true;
+ $items['message'] = $wpcf7_contact_form->message( 'mail_sent_ok' );
+
+ $on_sent_ok = $wpcf7_contact_form->additional_setting( 'on_sent_ok', false );
+ if ( ! empty( $on_sent_ok ) ) {
+ $on_sent_ok = array_map( 'wpcf7_strip_quote', $on_sent_ok );
+ } else {
+ $on_sent_ok = null;
+ }
+ $items['onSentOk'] = $on_sent_ok;
+
+ do_action_ref_array( 'wpcf7_mail_sent', array( &$wpcf7_contact_form ) );
+
+ } else {
+ $items['message'] = $wpcf7_contact_form->message( 'mail_sent_ng' );
+ }
+
+ // remove upload files
+ foreach ( (array) $wpcf7_contact_form->uploaded_files as $name => $path ) {
+ @unlink( $path );
+ }
+
+ $wpcf7_contact_form = null;
+ }
+ }
+
+ $echo = wpcf7_json( $items );
+
+ if ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) {
+ @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
+ echo $echo;
+ } else {
+ @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
+ echo '<textarea>' . $echo . '</textarea>';
+ }
+}
+
+function wpcf7_process_nonajax_submitting() {
+ global $wpcf7_contact_form;
+
+ if ( ! isset($_POST['_wpcf7'] ) )
+ return;
+
+ $id = (int) $_POST['_wpcf7'];
+
+ if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) {
+ $validation = $wpcf7_contact_form->validate();
+
+ if ( ! $validation['valid'] ) {
+ $_POST['_wpcf7_validation_errors'] = array( 'id' => $id, 'messages' => $validation['reason'] );
+ } elseif ( ! $wpcf7_contact_form->accepted() ) { // Not accepted terms
+ $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $wpcf7_contact_form->message( 'accept_terms' ) );
+ } elseif ( $wpcf7_contact_form->akismet() ) { // Spam!
+ $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $wpcf7_contact_form->message( 'akismet_says_spam' ), 'spam' => true );
+ } elseif ( $wpcf7_contact_form->mail() ) {
+ $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => true, 'message' => $wpcf7_contact_form->message( 'mail_sent_ok' ) );
+
+ do_action_ref_array( 'wpcf7_mail_sent', array( &$wpcf7_contact_form ) );
+ } else {
+ $_POST['_wpcf7_mail_sent'] = array( 'id' => $id, 'ok' => false, 'message' => $wpcf7_contact_form->message( 'mail_sent_ng' ) );
+ }
+
+ // remove upload files
+ foreach ( (array) $wpcf7_contact_form->uploaded_files as $name => $path ) {
+ @unlink( $path );
+ }
+
+ $wpcf7_contact_form = null;
+ }
+}
+
+function wpcf7_the_content_filter( $content ) {
+ global $wpcf7_processing_within, $wpcf7_unit_count;
+
+ $wpcf7_processing_within = 'p' . get_the_ID();
+ $wpcf7_unit_count = 0;
+
+ return $content;
+}
+
+add_filter( 'the_content', 'wpcf7_the_content_filter', 9 );
+
+function wpcf7_widget_text_filter( $content ) {
+ global $wpcf7_widget_count, $wpcf7_processing_within, $wpcf7_unit_count;
+
+ $wpcf7_widget_count += 1;
+ $wpcf7_processing_within = 'w' . $wpcf7_widget_count;
+ $wpcf7_unit_count = 0;
+
+ $regex = '/\[\s*contact-form\s+(\d+(?:\s+.*)?)\]/';
+ return preg_replace_callback( $regex, 'wpcf7_widget_text_filter_callback', $content );
+}
+
+add_filter( 'widget_text', 'wpcf7_widget_text_filter', 9 );
+
+function wpcf7_widget_text_filter_callback( $matches ) {
+ return do_shortcode( $matches[0] );
+}
+
+function wpcf7_contact_form_tag_func( $atts ) {
+ global $wpcf7_contact_form, $wpcf7_unit_count, $wpcf7_processing_within;
+
+ if ( is_string( $atts ) )
+ $atts = explode( ' ', $atts, 2 );
+
+ $atts = (array) $atts;
+
+ $id = (int) array_shift( $atts );
+
+ if ( ! ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) )
+ return '[contact-form 404 "Not Found"]';
+
+ $wpcf7_unit_count += 1;
+
+ $unit_tag = 'wpcf7-f' . $id . '-' . $wpcf7_processing_within . '-o' . $wpcf7_unit_count;
+ $wpcf7_contact_form->unit_tag = $unit_tag;
+
+ $form = $wpcf7_contact_form->form_html();
+
+ $wpcf7_contact_form = null;
+
+ return $form;
+}
+
+add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' );
+
+function wpcf7_wp_head() {
+ $stylesheet_url = wpcf7_plugin_url( 'stylesheet.css' );
+ echo '<link rel="stylesheet" href="' . $stylesheet_url . '" type="text/css" />';
+
+ if ( 'rtl' == get_bloginfo( 'text_direction' ) ) {
+ $stylesheet_rtl_url = wpcf7_plugin_url( 'stylesheet-rtl.css' );
+ echo '<link rel="stylesheet" href="' . $stylesheet_rtl_url . '" type="text/css" />';
+ }
+}
+
+if ( WPCF8_LOAD_CSS )
+ add_action( 'wp_head', 'wpcf7_wp_head' );
+
+/* Loading modules */
+
+function wpcf7_load_modules() {
+ $dir = WPCF8_PLUGIN_MODULES_DIR;
+
+ if ( ! ( is_dir( $dir ) && $dh = opendir( $dir ) ) )
+ return false;
+
+ while ( ( $module = readdir( $dh ) ) !== false ) {
+ if ( substr( $module, -4 ) == '.php' )
+ include_once $dir . '/' . $module;
+ }
+}
+
+add_action( 'init', 'wpcf7_load_modules' );
+
+function wpcf7_enqueue_scripts() {
+ $in_footer = true;
+ if ( 'header' === WPCF8_LOAD_JS )
+ $in_footer = false;
+
+ wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'contact-form-7.js' ),
+ array('jquery', 'jquery-form'), WPCF8_VERSION, $in_footer );
+}
+
+if ( ! is_admin() && WPCF8_LOAD_JS )
+ add_action( 'init', 'wpcf7_enqueue_scripts' );
+
+function wpcf7_load_plugin_textdomain() { // l10n
+ load_plugin_textdomain( 'wpcf7',
+ 'wp-content/plugins/contact-form-7/languages', 'contact-form-7/languages' );
+}
+
+add_action( 'init', 'wpcf7_load_plugin_textdomain' );
+
+function wpcf7_init_switch() {
+ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && 1 == (int) $_POST['_wpcf7_is_ajax_call'] ) {
+ wpcf7_ajax_json_echo();
+ exit();
+ } elseif ( ! is_admin() ) {
+ wpcf7_process_nonajax_submitting();
+ }
+}
+
+add_action( 'init', 'wpcf7_init_switch', 11 );
+
+?>
92 README.txt
@@ -0,0 +1,92 @@
+=== Contact Form 8 ===
+Contributors: alanhogan
+Tags: contact, contact form, email, ajax, captcha, akismet
+Requires at least: 2.7
+Tested up to: 2.9-rare
+Stable tag: 2.0.1
+
+License: GPL?
+
+
+== Description ==
+
+A fork of Contact Form 7 (by takayukister), Contact Form 8 improves things like checkboxes (labels!).
+
+"Just another contact form plugin. Simple but flexible."
+
+Contact Form 7 and Contact Form 8 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup. The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.
+
+**Now multiple checkboxes are not on one line, and clicking the label always toggles the checkbox.**
+
+The CAPTCHA module has been separated as the [Really Simple CAPTCHA](http://wordpress.org/extend/plugins/really-simple-captcha/) plugin, which is required if you would like to use CAPTCHAs in your contact form.
+
+Since being published in August 2007, Contact Form 7 has been translated into a number of languages. Our thanks and appreciation must go to the following for their contributions:
+
+* Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
+* Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/) and Muhammed Lardi
+* Bangla (bn_BD) - [SM Mehdi Akram](http://www.shamokaldarpon.com/)
+* Bosnian (bs) - [Vedran](http://www.seorabbit.com/)
+* Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/) (updated by [Henrique Vianna](http://henriquevianna.com/))
+* Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
+* Catalan (ca_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
+* Chinese, Simplified (zh_CN) - [Soz](http://www.webtoolol.com/)
+* Chinese, Traditional (zh_TW) - [James Wu](http://jameswublog.com)
+* Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
+* Czech (cs_CZ) - Korry
+* Danish (da_DK) - [Jens Griebel](http://www.kompas-it.dk/) (updated by [Georg S. Adamsen](http://wordpress.blogos.dk/))
+* Dutch (nl_NL) - [Chris Devriese](http://www.100it.be/) (updated by [Martin Hein](http://www.split-a-pixel.nl/))
+* Estonian (et) - [Peeter Rahuvarm](http://www.kraabus.ee)
+* Finnish (fi) - [Miika Turunen](http://www.webwork.fi/)
+* French (fr_FR) - [Jillij](http://www.jillij.com/) (updated by [Maître Mô](http://maitremo.fr/))
+* Georgian (ka_GE) - [Nodar Davituri](http://omedia.ge/)
+* German (de_DE) - [Marcel Spitau](http://blog.spitau.de) (updated by [Ivan Graf](http://blog.bildergallery.com/))
+* Greek (el) - [Nick Mouratidis](http://www.kepik.gr/) (updated by [Pr. friedlich](http://friedlich.wordpress.com/))
+* Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/)
+* Hindi (hi_IN) - [Tarun Joshi](http://www.readers-cafe.net/)
+* Hungarian (hu_HU) - [Andras Hirschler](http://hia.itblog.hu/)
+* Indonesian (id_ID) - [Hendry Lee](http://blogbuildingu.com/)
+* Italian (it_IT) - [Bruno](http://www.brunosalzano.com) (updated by [Gianni Diurno](http://gidibao.net/))
+* Japanese (ja) - [Takayuki Miyoshi](http://ideasilo.wordpress.com) (plugin author)
+* Korean (ko_KR) - Seong Eun Lee (updated by [Jong-In Kim](http://incommunity.codex.kr/wordpress/))
+* Latvian (lv) - [Sandis Veinbergs](http://www.kleofass.lv/)
+* Norwegian (nb_NO) - Kjetil M. Bergem
+* Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/)
+* Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/)
+* Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
+* Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
+* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/)
+* Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/)
+* Slovak (sk) - [Patrik Bóna](http://www.mrhead.sk/)
+* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
+* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog)
+(updated by [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/) and [Matias Baldanza](http://matiasbaldanza.com/))
+* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/) (updated by [the Swedish community](http://wp-support.se/))
+* Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com) (updated by [Hasan Yılmaz](http://hedefturkce.com/))
+* Ukrainian (uk_UA) - [Andrey Kovba](http://myserver.com.ua/)
+* Vietnamese (vi) - Thanh Hải, Hà
+
+== Installation ==
+
+1. Upload the entire `contact-form-8` folder to the `/wp-content/plugins/` directory.
+1. Activate the plugin through the 'Plugins' menu in WordPress.
+
+You will find 'Contact' menu in your WordPress admin panel.
+
+For basic usage, you can also have a look at the [plugin homepage](http://ideasilo.wordpress.com/2007/04/30/contact-form-7/) and [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
+
+== Frequently Asked Questions ==
+
+Please see [FAQ](http://ideasilo.wordpress.com/2008/03/29/contact-form-7-faq/).
+
+If you have any further questions,
+please submit them [to the support forum](http://wordpress.org/tags/contact-form-7#postform).
+
+Attention: [Check your site before reporting trouble, please!](http://ideasilo.wordpress.com/2009/01/20/check-your-site-before-reporting-trouble-please/)
+
+== Screenshots ==
+
+1. screenshot-1.png
+
+== Changelog ==
+
+[See change logs in author's blog.](http://ideasilo.wordpress.com/tag/contact-form-7/)
35 admin/.svn/all-wcprops
@@ -0,0 +1,35 @@
+K 25
+svn:wc:ra_dav:version-url
+V 43
+/!svn/ver/152137/contact-form-8/trunk/admin
+END
+admin-stylesheet-rtl.css
+K 25
+svn:wc:ra_dav:version-url
+V 68
+/!svn/ver/152137/contact-form-8/trunk/admin/admin-stylesheet-rtl.css
+END
+admin-stylesheet.css
+K 25
+svn:wc:ra_dav:version-url
+V 64
+/!svn/ver/152137/contact-form-8/trunk/admin/admin-stylesheet.css
+END
+wpcf7-admin.js
+K 25
+svn:wc:ra_dav:version-url
+V 58
+/!svn/ver/152137/contact-form-8/trunk/admin/wpcf7-admin.js
+END
+admin-panel.php
+K 25
+svn:wc:ra_dav:version-url
+V 59
+/!svn/ver/152137/contact-form-8/trunk/admin/admin-panel.php
+END
+admin.php
+K 25
+svn:wc:ra_dav:version-url
+V 53
+/!svn/ver/152137/contact-form-8/trunk/admin/admin.php
+END
198 admin/.svn/entries
@@ -0,0 +1,198 @@
+10
+
+dir
+152137
+http://svn.wp-plugins.org/contact-form-8/trunk/admin
+http://svn.wp-plugins.org
+
+
+
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b8457f37-d9ea-0310-8a92-e5e31aec5664
+
+admin-stylesheet-rtl.css
+file
+
+
+
+
+2009-09-03T03:24:00.000000Z
+2d35f70d54d0b11f5541b1fc4aa0ea93
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+322
+
+admin-stylesheet.css
+file
+
+
+
+
+2009-09-03T03:24:00.000000Z
+72723b24d1d6ed5c83458e89977dbfa9
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2963
+
+wpcf7-admin.js
+file
+
+
+
+
+2009-08-21T01:17:00.000000Z
+b7023d6075c11967ce0fe0fcadffd31d
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+33384
+
+admin-panel.php
+file
+
+
+
+
+2009-09-03T03:24:00.000000Z
+350d5da99376d19b2408d62d4d06d2c5
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+15395
+
+admin.php
+file
+
+
+
+
+2009-09-03T03:37:34.000000Z
+e82c9a99411b3f33e75d6f7c43624be5
+2009-09-05T02:48:13.007450Z
+152137
+alanhogan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+13386
+
339 admin/.svn/text-base/admin-panel.php.svn-base
@@ -0,0 +1,339 @@
+<?php
+
+/* No table warning */
+if ( ! wpcf7_table_exists() ) {
+ if ( current_user_can( 'activate_plugins' ) ) {
+ $create_table_link_url = wpcf7_admin_url( 'admin.php', array( 'wpcf7-create-table' => 1 ) );
+ $create_table_link_url = wp_nonce_url( $create_table_link_url, 'wpcf7-create-table' );
+ $message = sprintf(
+ __( '<strong>The database table for Contact Form 7 does not exist.</strong> You must <a href="%s">create the table</a> for it to work.', 'wpcf7' ),
+ $create_table_link_url );
+ } else {
+ $message = __( "<strong>The database table for Contact Form 7 does not exist.</strong>", 'wpcf7' );
+ }
+?>
+ <div class="wrap">
+ <?php screen_icon( 'edit-pages' ); ?>
+ <h2><?php echo esc_html( __( 'Contact Form 7', 'wpcf7' ) ); ?></h2>
+ <div id="message" class="updated fade">
+ <p><?php echo $message; ?></p>
+ </div>
+ </div>
+<?php
+ return;
+}
+
+?><div class="wrap wpcf7">
+
+ <?php screen_icon( 'edit-pages' ); ?>
+
+ <h2><?php echo esc_html( __( 'Contact Form 7', 'wpcf7' ) ); ?></h2>
+
+ <?php wpcf7_donation_link(); ?>
+
+ <?php if ( isset( $updated_message ) ) : ?>
+ <div id="message" class="updated fade"><p><?php echo $updated_message; ?></p></div>
+ <?php endif; ?>
+
+ <ul class="subsubsub">
+ <?php foreach ( $contact_forms as $v ) : ?>
+ <li><a href="<?php echo wpcf7_admin_url( 'admin.php', array( 'contactform' => $v->id ) ); ?>"<?php if ( $v->id == $current ) echo ' class="current"'; ?>>
+ <?php echo esc_html( $v->title ); ?></a> |</li>
+ <?php endforeach; ?>
+
+ <?php if ( wpcf7_admin_has_edit_cap() ) : ?>
+ <li class="addnew"><a href="<?php echo wpcf7_admin_url( 'admin.php', array( 'contactform' => 'new' ) ); ?>"<?php if ( $unsaved ) echo ' class="current"'; ?>><?php echo esc_html( __( 'Add new', 'wpcf7' ) ); ?></a></li>
+ <?php endif; ?>
+ </ul>
+
+ <br class="clear" />
+
+<?php if ( $cf ) : ?>
+<?php $disabled = ( wpcf7_admin_has_edit_cap() ) ? '' : ' disabled="disabled"'; ?>
+
+<form method="post" action="<?php echo wpcf7_admin_url( 'admin.php', array( 'contactform' => $current ) ); ?>" id="wpcf7-admin-form-element">
+ <?php if ( wpcf7_admin_has_edit_cap() ) wp_nonce_field( 'wpcf7-save_' . $current ); ?>
+ <input type="hidden" id="wpcf7-id" name="wpcf7-id" value="<?php echo $current; ?>" />
+
+ <table class="widefat">
+ <tbody>
+ <tr>
+ <td scope="col">
+ <div style="position: relative;">
+ <input type="text" id="wpcf7-title" name="wpcf7-title" size="40" value="<?php echo esc_attr( $cf->title ); ?>"<?php echo $disabled; ?> />
+
+ <?php if ( ! $unsaved ) : ?>
+ <p class="tagcode">
+ <?php echo esc_html( __( "Copy this code and paste it into your post, page or text widget content.", 'wpcf7' ) ); ?><br />
+
+ <input type="text" id="contact-form-anchor-text" onfocus="this.select();" readonly="readonly" />
+ </p>
+ <?php endif; ?>
+
+ <?php if ( wpcf7_admin_has_edit_cap() ) : ?>
+ <div class="save-contact-form">
+ <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'wpcf7' ) ); ?>" />
+ </div>
+ <?php endif; ?>
+
+ <?php if ( wpcf7_admin_has_edit_cap() && ! $unsaved ) : ?>
+ <div class="actions-link">
+ <?php $copy_nonce = wp_create_nonce( 'wpcf7-copy_' . $current ); ?>
+ <input type="submit" name="wpcf7-copy" class="copy" value="<?php echo esc_attr( __( 'Copy', 'wpcf7' ) ); ?>"
+ <?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; return true;\""; ?> />
+ |
+
+ <?php $delete_nonce = wp_create_nonce( 'wpcf7-delete_' . $current ); ?>
+ <input type="submit" name="wpcf7-delete" class="delete" value="<?php echo esc_attr( __( 'Delete', 'wpcf7' ) ); ?>"
+ <?php echo "onclick=\"if (confirm('" .
+ esc_js( __( "You are about to delete this contact form.\n 'Cancel' to stop, 'OK' to delete.", 'wpcf7' ) ) .
+ "')) {this.form._wpnonce.value = '$delete_nonce'; return true;} return false;\""; ?> />
+ </div>
+ <?php endif; ?>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <?php if ( wpcf7_admin_has_edit_cap() ) : ?>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Form', 'wpcf7' ) ); ?></th></tr></thead>
+
+ <tbody>
+ <tr>
+
+ <td scope="col" style="width: 50%;">
+ <div><textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="20"><?php echo esc_html( $cf->form ); ?></textarea></div>
+ </td>
+
+ <td scope="col" style="width: 50%;">
+ <div id="tag-generator-div"></div>
+ </td>
+
+ </tr>
+ </tbody>
+ </table>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Mail', 'wpcf7' ) ); ?></th></tr></thead>
+
+ <tbody>
+ <tr>
+ <td scope="col" style="width: 50%;">
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-recipient"><?php echo esc_html( __( 'To:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-recipient" name="wpcf7-mail-recipient" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['recipient'] ); ?>" />
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-sender"><?php echo esc_html( __( 'From:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-sender" name="wpcf7-mail-sender" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['sender'] ); ?>" />
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-subject"><?php echo esc_html( __( 'Subject:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-subject" name="wpcf7-mail-subject" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['subject'] ); ?>" />
+ </div>
+
+ <div class="pseudo-hr"></div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'wpcf7' ) ); ?></label><br />
+ <textarea id="wpcf7-mail-additional-headers" name="wpcf7-mail-additional-headers" cols="100" rows="2"><?php echo esc_html( $cf->mail['additional_headers'] ); ?></textarea>
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-attachments"><?php echo esc_html( __( 'File attachments:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-attachments" name="wpcf7-mail-attachments" class="wide" size="70" value="<?php echo esc_attr( $cf->mail['attachments'] ); ?>" />
+ </div>
+
+ <div class="pseudo-hr"></div>
+
+ <div class="mail-field">
+ <input type="checkbox" id="wpcf7-mail-use-html" name="wpcf7-mail-use-html" value="1"<?php echo ( $cf->mail['use_html'] ) ? ' checked="checked"' : ''; ?> />
+ <label for="wpcf7-mail-use-html"><?php echo esc_html( __( 'Use HTML content type', 'wpcf7' ) ); ?></label>
+ </div>
+
+ </td>
+ <td scope="col" style="width: 50%;">
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-body"><?php echo esc_html( __( 'Message body:', 'wpcf7' ) ); ?></label><br />
+ <textarea id="wpcf7-mail-body" name="wpcf7-mail-body" cols="100" rows="16"><?php echo esc_html( $cf->mail['body'] ); ?></textarea>
+ </div>
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <thead><tr><th scope="col" colspan="2"><?php echo esc_html( __( 'Mail (2)', 'wpcf7' ) ); ?></th></tr></thead>
+
+ <tbody>
+ <tr>
+ <td scope="col" colspan="2">
+ <input type="checkbox" id="wpcf7-mail-2-active" name="wpcf7-mail-2-active" value="1"<?php echo ( $cf->mail_2['active'] ) ? ' checked="checked"' : ''; ?> />
+ <label for="wpcf7-mail-2-active"><?php echo esc_html( __( 'Use mail (2)', 'wpcf7' ) ); ?></label>
+ </td>
+ </tr>
+
+ <tr id="mail-2-fields">
+ <td scope="col" style="width: 50%;">
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-recipient"><?php echo esc_html( __( 'To:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-2-recipient" name="wpcf7-mail-2-recipient" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['recipient'] ); ?>" />
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-sender"><?php echo esc_html( __( 'From:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-2-sender" name="wpcf7-mail-2-sender" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['sender'] ); ?>" />
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-subject"><?php echo esc_html( __( 'Subject:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-2-subject" name="wpcf7-mail-2-subject" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['subject'] ); ?>" />
+ </div>
+
+ <div class="pseudo-hr"></div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'wpcf7' ) ); ?></label><br />
+ <textarea id="wpcf7-mail-2-additional-headers" name="wpcf7-mail-2-additional-headers" cols="100" rows="2"><?php echo esc_html( $cf->mail_2['additional_headers'] ); ?></textarea>
+ </div>
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-attachments"><?php echo esc_html( __( 'File attachments:', 'wpcf7' ) ); ?></label><br />
+ <input type="text" id="wpcf7-mail-2-attachments" name="wpcf7-mail-2-attachments" class="wide" size="70" value="<?php echo esc_attr( $cf->mail_2['attachments'] ); ?>" />
+ </div>
+
+ <div class="pseudo-hr"></div>
+
+ <div class="mail-field">
+ <input type="checkbox" id="wpcf7-mail-2-use-html" name="wpcf7-mail-2-use-html" value="1"<?php echo ( $cf->mail_2['use_html'] ) ? ' checked="checked"' : ''; ?> />
+ <label for="wpcf7-mail-2-use-html"><?php echo esc_html( __( 'Use HTML content type', 'wpcf7' ) ); ?></label>
+ </div>
+
+ </td>
+ <td scope="col" style="width: 50%;">
+
+ <div class="mail-field">
+ <label for="wpcf7-mail-2-body"><?php echo esc_html( __( 'Message body:', 'wpcf7' ) ); ?></label><br />
+ <textarea id="wpcf7-mail-2-body" name="wpcf7-mail-2-body" cols="100" rows="16"><?php echo esc_html( $cf->mail_2['body'] ); ?></textarea>
+ </div>
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <thead><tr><th scope="col"><?php echo esc_html( __( 'Messages', 'wpcf7' ) ); ?> <span id="message-fields-toggle-switch"></span></th></tr></thead>
+
+ <tbody>
+ <tr>
+ <td scope="col">
+ <div id="message-fields">
+
+ <div class="message-field">
+ <label for="wpcf7-message-mail-sent-ok"><em># <?php echo esc_html( __( "Sender's message was sent successfully", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-mail-sent-ok" name="wpcf7-message-mail-sent-ok" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['mail_sent_ok'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-mail-sent-ng"><em># <?php echo esc_html( __( "Sender's message was failed to send", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-mail-sent-ng" name="wpcf7-message-mail-sent-ng" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['mail_sent_ng'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-akismet-says-spam"><em># <?php echo esc_html( __( "Akismet judged the sending activity as spamming", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-akismet-says-spam" name="wpcf7-message-akismet-says-spam" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['akismet_says_spam'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-validation-error"><em># <?php echo esc_html( __( "Validation errors occurred", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-validation-error" name="wpcf7-message-validation-error" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['validation_error'] ); ?>" />
+ </div>
+
+ <div class="message-field" style="margin-top: 1em;">
+ <label for="wpcf7-message-invalid-required"><em># <?php echo esc_html( __( "There is a field that sender is needed to fill in", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-invalid-required" name="wpcf7-message-invalid-required" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['invalid_required'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-invalid-email"><em># <?php echo esc_html( __( "Email address that sender entered is invalid", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-invalid-email" name="wpcf7-message-invalid-email" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['invalid_email'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-accept-terms"><em># <?php echo esc_html( __( "There is a field of term that sender is needed to accept", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-accept-terms" name="wpcf7-message-accept-terms" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['accept_terms'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-quiz-answer-not-correct"><em># <?php echo esc_html( __( "Sender doesn't enter the correct answer to the quiz", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-quiz-answer-not-correct" name="wpcf7-message-quiz-answer-not-correct" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['quiz_answer_not_correct'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-captcha-not-match"><em># <?php echo esc_html( __( "The code that sender entered does not match the CAPTCHA", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-captcha-not-match" name="wpcf7-message-captcha-not-match" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['captcha_not_match'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-upload-failed"><em># <?php echo esc_html( __( "Uploading a file fails for any reason", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-upload-failed" name="wpcf7-message-upload-failed" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['upload_failed'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-upload-file-type-invalid"><em># <?php echo esc_html( __( "Uploaded file is not allowed file type", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-upload-file-type-invalid" name="wpcf7-message-upload-file-type-invalid" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['upload_file_type_invalid'] ); ?>" />
+ </div>
+
+ <div class="message-field">
+ <label for="wpcf7-message-upload-file-too-large"><em># <?php echo esc_html( __( "Uploaded file is too large", 'wpcf7' ) ); ?></em></label><br />
+ <input type="text" id="wpcf7-message-upload-file-too-large" name="wpcf7-message-upload-file-too-large" class="wide" size="70" value="<?php echo esc_attr( $cf->messages['upload_file_too_large'] ); ?>" />
+ </div>
+
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <thead><tr><th scope="col"><?php echo esc_html( __( 'Additional Settings', 'wpcf7' ) ); ?> <span id="additional-settings-fields-toggle-switch"></span></th></tr></thead>
+
+ <tbody>
+ <tr>
+ <td scope="col">
+ <div id="additional-settings-fields">
+ <textarea id="wpcf7-additional-settings" name="wpcf7-additional-settings" cols="100" rows="8"><?php echo esc_html( $cf->additional_settings ); ?></textarea>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table class="widefat" style="margin-top: 1em;">
+ <tbody>
+ <tr>
+ <td scope="col">
+ <div class="save-contact-form">
+ <input type="submit" class="button button-highlighted" name="wpcf7-save" value="<?php echo esc_attr( __( 'Save', 'wpcf7' ) ); ?>" />
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <?php endif; ?>
+
+</form>
+
+<?php endif; ?>
+</div>
22 admin/.svn/text-base/admin-stylesheet-rtl.css.svn-base
@@ -0,0 +1,22 @@
+ul.subsubsub li.addnew {
+ margin-left: 0;
+ margin-right: 0.5em;
+}
+div.save-contact-form {
+ direction: rtl;
+}
+div.actions-link {
+ right: auto;
+ left: 0;
+}
+span#message-fields-toggle-switch {
+ margin-left: 0;
+ margin-right: 1em;
+}
+div.tg-pane table caption {
+ text-align: right;
+}
+div.tg-dropdown {
+ left: auto;
+ right: 0;
+}
170 admin/.svn/text-base/admin-stylesheet.css.svn-base
@@ -0,0 +1,170 @@
+div.wpcf7 div.donation {
+ border-width: 1px;
+ border-style: solid;
+ padding: 0 0.6em;
+ margin: 5px 0 15px;
+ -moz-border-radius: 3px;
+ -khtml-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ background-color: #ffffe0;
+ border-color: #e6db55;
+ text-align: center;
+}
+
+div.wpcf7 div.donation p {
+ margin: 0.5em 0;
+ line-height: 1;
+ padding: 2px;
+}
+
+div.wpcf7 div.donation p img {
+ vertical-align: text-bottom;
+}
+
+div.wpcf7 div.donation p em {
+ padding-left: 1em;
+ color: #555;
+ font-weight: bold;
+}
+
+div.wpcf7 ul.subsubsub {
+ white-space: normal;
+}
+ul.subsubsub li.addnew {
+ margin-left: 0.5em;
+}
+ul.subsubsub li.addnew a {
+ color: #e6255b;
+}
+ul.subsubsub li.addnew a:hover,
+ul.subsubsub li.addnew a:active {
+ color: #999;
+}
+div.save-contact-form {
+ padding: 1.4em 0 0 0;
+ text-align: right;
+}
+div.actions-link {
+ position: absolute;
+ top: 0;
+ right: 0;
+ margin: 0;
+ padding: 0;
+}
+div.actions-link input {
+ padding: 0;
+ margin: 0;
+ border: none;
+ background-color: #fff;
+ font-size: 11px;
+ cursor: pointer;
+}
+div.actions-link input.copy {
+ color: #006505;
+}
+div.actions-link input.delete {
+ color: #bc0b0b;
+}
+input#wpcf7-title {
+ color: #555;
+ background-color: #fff;
+ border: none;
+ font: bold 20px serif;
+}
+p.tagcode {
+ color: #333;
+ margin: 2ex 0 1ex 1em;
+}
+input#contact-form-anchor-text {
+ color: #fff;
+ background: #8a796d;
+ border: none;
+ width: 96%;
+ -moz-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+}
+span#message-fields-toggle-switch, span#additional-settings-fields-toggle-switch {
+ margin-left: 1em;
+ font-weight: normal;
+ font-size: smaller;
+ color: #2583ad;
+ cursor: pointer;
+}
+div.pseudo-hr {
+ border-bottom: 1px solid #fff;
+ margin: 0.7em 0;
+}
+input, textarea {
+ border: 1px solid #dfdfdf;
+}
+input.wide {
+ width: 100%;
+}
+textarea {
+ width: 100%;
+}
+label.disabled {
+ color: #777;
+}
+div.tag-generator {
+ position: relative;
+ background: #fff;
+ padding: 5px 0 5px 1px;
+}
+div.tg-pane {
+ border: 1px dashed #999;
+ background: #f1f1f1;
+ margin: 1ex 0 0 0;
+ padding: 10px;
+ -moz-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+}
+div.tg-pane table {
+ width: 100%;
+ margin: 0 0 0.7em 0;
+}
+div.tg-pane table caption {
+ text-align: left;
+ padding: 0 0 0.2em 0;
+ font-weight: bolder;
+ color: #777;
+}
+div.tg-pane table code {
+ background-color: inherit;
+}
+div.tg-pane table td {
+ vertical-align: top;
+ width: 50%;
+}
+div.tg-pane input.tag {
+ border: none;
+ color: #fff;
+ background-color: #8a796d;
+ -moz-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+}
+div.tg-dropdown {
+ position: absolute;
+ top: 26px;
+ left: 0;
+ z-index: 10;
+ border: 1px solid #ddd;
+}
+span.tg-closebutton {
+ color: #777;
+ font: bold 18px monospace;
+ padding: 1px 4px;
+ cursor: pointer;
+}
+div.tg-panetitle {
+ font: bold 132% sans-serif;
+ margin: 0 0 10px;
+ color: #777;
+}
383 admin/.svn/text-base/admin.php.svn-base
@@ -0,0 +1,383 @@
+<?php
+
+function wpcf7_admin_has_edit_cap() {
+ return current_user_can( WPCF8_ADMIN_READ_WRITE_CAPABILITY );
+}
+
+function wpcf7_admin_add_pages() {
+
+ if ( isset( $_POST['wpcf7-save'] ) && wpcf7_admin_has_edit_cap() ) {
+ $id = $_POST['wpcf7-id'];
+ check_admin_referer( 'wpcf7-save_' . $id );
+
+ if ( ! $contact_form = wpcf7_contact_form( $id ) ) {
+ $contact_form = new WPCF8_ContactForm();
+ $contact_form->initial = true;
+ }
+
+ $title = trim( $_POST['wpcf7-title'] );
+ $form = trim( $_POST['wpcf7-form'] );
+ $mail = array(
+ 'subject' => trim( $_POST['wpcf7-mail-subject'] ),
+ 'sender' => trim( $_POST['wpcf7-mail-sender'] ),
+ 'body' => trim( $_POST['wpcf7-mail-body'] ),
+ 'recipient' => trim( $_POST['wpcf7-mail-recipient'] ),
+ 'additional_headers' => trim( $_POST['wpcf7-mail-additional-headers'] ),
+ 'attachments' => trim( $_POST['wpcf7-mail-attachments'] ),
+ 'use_html' => ( 1 == $_POST['wpcf7-mail-use-html'] ) ? true : false
+ );
+ $mail_2 = array(
+ 'active' => ( 1 == $_POST['wpcf7-mail-2-active'] ) ? true : false,
+ 'subject' => trim( $_POST['wpcf7-mail-2-subject'] ),
+ 'sender' => trim( $_POST['wpcf7-mail-2-sender'] ),
+ 'body' => trim( $_POST['wpcf7-mail-2-body'] ),
+ 'recipient' => trim( $_POST['wpcf7-mail-2-recipient'] ),
+ 'additional_headers' => trim( $_POST['wpcf7-mail-2-additional-headers'] ),
+ 'attachments' => trim( $_POST['wpcf7-mail-2-attachments'] ),
+ 'use_html' => ( 1 == $_POST['wpcf7-mail-2-use-html'] ) ? true : false
+ );
+ $messages = array(
+ 'mail_sent_ok' => trim( $_POST['wpcf7-message-mail-sent-ok'] ),
+ 'mail_sent_ng' => trim( $_POST['wpcf7-message-mail-sent-ng'] ),
+ 'akismet_says_spam' => trim( $_POST['wpcf7-message-akismet-says-spam'] ),
+ 'validation_error' => trim( $_POST['wpcf7-message-validation-error'] ),
+ 'accept_terms' => trim( $_POST['wpcf7-message-accept-terms'] ),
+ 'invalid_email' => trim( $_POST['wpcf7-message-invalid-email'] ),
+ 'invalid_required' => trim( $_POST['wpcf7-message-invalid-required'] ),
+ 'quiz_answer_not_correct' => trim( $_POST['wpcf7-message-quiz-answer-not-correct'] ),
+ 'captcha_not_match' => trim( $_POST['wpcf7-message-captcha-not-match'] ),
+ 'upload_failed' => trim( $_POST['wpcf7-message-upload-failed'] ),
+ 'upload_file_type_invalid' => trim( $_POST['wpcf7-message-upload-file-type-invalid'] ),
+ 'upload_file_too_large' => trim( $_POST['wpcf7-message-upload-file-too-large'] )
+ );
+ $additional_settings = trim( $_POST['wpcf7-additional-settings'] );
+
+ $query = array();
+ $query['message'] = ( $contact_form->initial ) ? 'created' : 'saved';
+
+ $contact_form->title = $title;
+ $contact_form->form = $form;
+ $contact_form->mail = $mail;
+ $contact_form->mail_2 = $mail_2;
+ $contact_form->messages = $messages;
+ $contact_form->additional_settings = $additional_settings;
+
+ $contact_form->save();
+
+ $query['contactform'] = $contact_form->id;
+ $redirect_to = wpcf7_admin_url( 'admin.php', $query );
+ wp_redirect( $redirect_to );
+ exit();
+ } elseif ( isset( $_POST['wpcf7-copy'] ) && wpcf7_admin_has_edit_cap() ) {
+ $id = $_POST['wpcf7-id'];
+ check_admin_referer( 'wpcf7-copy_' . $id );
+
+ $query = array();
+
+ if ( $contact_form = wpcf7_contact_form( $id ) ) {
+ $new_contact_form = $contact_form->copy();
+ $new_contact_form->save();
+
+ $query['contactform'] = $new_contact_form->id;
+ $query['message'] = 'created';
+ } else {
+ $query['contactform'] = $contact_form->id;
+ }
+
+ $redirect_to = wpcf7_admin_url( 'admin.php', $query );
+ wp_redirect( $redirect_to );
+ exit();
+ } elseif ( isset( $_POST['wpcf7-delete'] ) && wpcf7_admin_has_edit_cap() ) {
+ $id = $_POST['wpcf7-id'];
+ check_admin_referer( 'wpcf7-delete_' . $id );
+
+ if ( $contact_form = wpcf7_contact_form( $id ) )
+ $contact_form->delete();
+
+ $redirect_to = wpcf7_admin_url( 'admin.php', array( 'message' => 'deleted' ) );
+ wp_redirect( $redirect_to );
+ exit();
+ } elseif ( isset( $_GET['wpcf7-create-table'] ) ) {
+ check_admin_referer( 'wpcf7-create-table' );
+
+ $query = array();
+
+ if ( ! wpcf7_table_exists() && current_user_can( 'activate_plugins' ) ) {
+ wpcf7_install();
+ if ( wpcf7_table_exists() ) {
+ $query['message'] = 'table_created';
+ } else {
+ $query['message'] = 'table_not_created';
+ }
+ }
+
+ wp_redirect( wpcf7_admin_url( 'admin.php', $query ) );
+ exit();
+ }
+
+ add_menu_page( __( 'Contact Form 7', 'wpcf7' ), __( 'Contact', 'wpcf7' ),
+ WPCF8_ADMIN_READ_CAPABILITY, __FILE__, 'wpcf7_admin_management_page' );
+
+ add_submenu_page( __FILE__, __( 'Edit Contact Forms', 'wpcf7' ), __( 'Edit', 'wpcf7' ),
+ WPCF8_ADMIN_READ_CAPABILITY, __FILE__, 'wpcf7_admin_management_page' );
+}
+
+add_action( 'admin_menu', 'wpcf7_admin_add_pages' );
+
+function wpcf7_admin_head() {
+ global $plugin_page;
+
+ if ( isset( $plugin_page ) && $plugin_page == plugin_basename( __FILE__ ) ) {
+
+ $admin_stylesheet_url = wpcf7_plugin_url( 'admin/admin-stylesheet.css' );
+ echo '<link rel="stylesheet" href="' . $admin_stylesheet_url . '" type="text/css" />';
+
+ if ( 'rtl' == get_bloginfo( 'text_direction' ) ) {
+ $admin_stylesheet_rtl_url = wpcf7_plugin_url( 'admin/admin-stylesheet-rtl.css' );
+ echo '<link rel="stylesheet" href="' . $admin_stylesheet_rtl_url . '" type="text/css" />';
+ }
+
+?>
+<script type="text/javascript">
+//<![CDATA[
+var _wpcf7 = {
+ captchaMod: <?php echo ( class_exists( 'ReallySimpleCaptcha' ) ) ? 'true' : 'false' ?>
+};
+//]]>
+</script>
+<?php
+ }
+}
+
+add_action( 'admin_head', 'wpcf7_admin_head' );
+
+function wpcf7_admin_load_js() {
+ global $pagenow;
+
+ if ( ! is_admin() )
+ return;
+
+ if ( 'admin.php' != $pagenow )
+ return;
+
+ if ( false === strpos( $_GET['page'], 'contact-form-7' ) )
+ return;
+
+ wp_enqueue_script( 'wpcf7-admin', wpcf7_plugin_url( 'admin/wpcf7-admin.js' ), array('jquery'), WPCF8_VERSION, true );
+ wp_localize_script( 'wpcf7-admin', '_wpcf7L10n', array(
+ 'optional' => __( 'optional', 'wpcf7' ),
+ 'generateTag' => __( 'Generate Tag', 'wpcf7' ),
+ 'textField' => __( 'Text field', 'wpcf7' ),
+ 'emailField' => __( 'Email field', 'wpcf7' ),
+ 'textArea' => __( 'Text area', 'wpcf7' ),
+ 'menu' => __( 'Drop-down menu', 'wpcf7' ),
+ 'checkboxes' => __( 'Checkboxes', 'wpcf7' ),
+ 'radioButtons' => __( 'Radio buttons', 'wpcf7' ),
+ 'acceptance' => __( 'Acceptance', 'wpcf7' ),
+ 'isAcceptanceDefaultOn' => __( "Make this checkbox checked by default?", 'wpcf7' ),
+ 'isAcceptanceInvert' => __( "Make this checkbox work inversely?", 'wpcf7' ),
+ 'isAcceptanceInvertMeans' => __( "* That means visitor who accepts the term unchecks it.", 'wpcf7' ),
+ 'captcha' => __( 'CAPTCHA', 'wpcf7' ),
+ 'quiz' => __( 'Quiz', 'wpcf7' ),
+ 'quizzes' => __( 'Quizzes', 'wpcf7' ),
+ 'quizFormatDesc' => __( "* quiz|answer (e.g. 1+1=?|2)", 'wpcf7' ),
+ 'fileUpload' => __( 'File upload', 'wpcf7' ),
+ 'bytes' => __( 'bytes', 'wpcf7' ),
+ 'submit' => __( 'Submit button', 'wpcf7' ),
+ 'tagName' => __( 'Name', 'wpcf7' ),
+ 'isRequiredField' => __( 'Required field?', 'wpcf7' ),
+ 'allowsMultipleSelections' => __( 'Allow multiple selections?', 'wpcf7' ),
+ 'insertFirstBlankOption' => __( 'Insert a blank item as the first option?', 'wpcf7' ),
+ 'makeCheckboxesExclusive' => __( 'Make checkboxes exclusive?', 'wpcf7' ),
+ 'menuChoices' => __( 'Choices', 'wpcf7' ),
+ 'label' => __( 'Label', 'wpcf7' ),
+ 'defaultValue' => __( 'Default value', 'wpcf7' ),
+ 'akismet' => __( 'Akismet', 'wpcf7' ),
+ 'akismetAuthor' => __( "This field requires author's name", 'wpcf7' ),
+ 'akismetAuthorUrl' => __( "This field requires author's URL", 'wpcf7' ),
+ 'akismetAuthorEmail' => __( "This field requires author's email address", 'wpcf7' ),
+ 'generatedTag' => __( "Copy this code and paste it into the form left.", 'wpcf7' ),
+ 'fgColor' => __( "Foreground color", 'wpcf7' ),
+ 'bgColor' => __( "Background color", 'wpcf7' ),
+ 'imageSize' => __( "Image size", 'wpcf7' ),
+ 'imageSizeSmall' => __( "Small", 'wpcf7' ),
+ 'imageSizeMedium' => __( "Medium", 'wpcf7' ),
+ 'imageSizeLarge' => __( "Large", 'wpcf7' ),
+ 'imageSettings' => __( "Image settings", 'wpcf7' ),
+ 'inputFieldSettings' => __( "Input field settings", 'wpcf7' ),
+ 'tagForImage' => __( "For image", 'wpcf7' ),
+ 'tagForInputField' => __( "For input field", 'wpcf7' ),
+ 'oneChoicePerLine' => __( "* One choice per line.", 'wpcf7' ),
+ 'show' => __( "Show", 'wpcf7' ),
+ 'hide' => __( "Hide", 'wpcf7' ),
+ 'fileSizeLimit' => __( "File size limit", 'wpcf7' ),
+ 'acceptableFileTypes' => __( "Acceptable file types", 'wpcf7' ),
+ 'needReallySimpleCaptcha' => __( "Note: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.", 'wpcf7' )
+ ) );
+}
+
+add_action( 'wp_print_scripts', 'wpcf7_admin_load_js' );
+
+function wpcf7_admin_management_page() {
+ global $wp_version;
+
+ switch ( $_GET['message'] ) {
+ case 'created':
+ $updated_message = __( "Contact form created.", 'wpcf7' );
+ break;
+ case 'saved':
+ $updated_message = __( "Contact form saved.", 'wpcf7' );
+ break;
+ case 'deleted':
+ $updated_message = __( "Contact form deleted.", 'wpcf7' );
+ break;
+ case 'table_created':
+ $updated_message = __( "Database table created.", 'wpcf7' );
+ break;
+ case 'table_not_created':
+ $updated_message = __( "Failed to create database table.", 'wpcf7' );
+ break;
+ }
+
+ $contact_forms = wpcf7_contact_forms();
+
+ $id = $_POST['wpcf7-id'];
+
+ if ( 'new' == $_GET['contactform'] ) {
+ $unsaved = true;
+ $current = -1;
+ $cf = wpcf7_contact_form_default_pack();
+ } elseif ( $cf = wpcf7_contact_form( $_GET['contactform'] ) ) {
+ $current = (int) $_GET['contactform'];
+ } else {
+ $first = reset( $contact_forms ); // Returns first item
+ $current = $first->id;
+ $cf = wpcf7_contact_form( $current );
+ }
+
+ require_once WPCF8_PLUGIN_DIR . '/admin/admin-panel.php';
+}
+
+/* Install and default settings */
+
+function wpcf7_install() {
+ global $wpdb;
+
+ if ( wpcf7_table_exists() )
+ return; // Exists already
+
+ $table_name = wpcf7_table_name();
+
+ $charset_collate = '';
+ if ( $wpdb->has_cap( 'collation' ) ) {
+ if ( ! empty( $wpdb->charset ) )
+ $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
+ if ( ! empty( $wpdb->collate ) )
+ $charset_collate .= " COLLATE $wpdb->collate";
+ }
+
+ $wpdb->query( "CREATE TABLE IF NOT EXISTS $table_name (
+ cf7_unit_id bigint(20) unsigned NOT NULL auto_increment,
+ title varchar(200) NOT NULL default '',
+ form text NOT NULL,
+ mail text NOT NULL,
+ mail_2 text NOT NULL,
+ messages text NOT NULL,
+ additional_settings text NOT NULL,
+ PRIMARY KEY (cf7_unit_id)) $charset_collate;" );
+
+ if ( ! wpcf7_table_exists() )
+ return false; // Failed to create
+
+ $legacy_data = get_option( 'wpcf7' );
+ if ( is_array( $legacy_data ) ) {
+ foreach ( $legacy_data['contact_forms'] as $key => $value ) {
+ $wpdb->insert( $table_name, array(
+ 'cf7_unit_id' => $key,
+ 'title' => $value['title'],
+ 'form' => maybe_serialize( $value['form'] ),
+ 'mail' => maybe_serialize( $value['mail'] ),
+ 'mail_2' => maybe_serialize( $value['mail_2'] ),
+ 'messages' => maybe_serialize( $value['messages'] ),
+ 'additional_settings' => maybe_serialize( $value['additional_settings'] )
+ ), array( '%d', '%s', '%s', '%s', '%s', '%s', '%s' ) );
+ }
+
+ // delete_option( 'wpcf7' ); // Comment out for downgrading case for a while
+ } else {
+ wpcf7_load_plugin_textdomain();
+
+ $wpdb->insert( $table_name, array(
+ 'title' => __( 'Contact form', 'wpcf7' ) . ' 1',
+ 'form' => maybe_serialize( wpcf7_default_form_template() ),
+ 'mail' => maybe_serialize( wpcf7_default_mail_template() ),
+ 'mail_2' => maybe_serialize ( wpcf7_default_mail_2_template() ),
+ 'messages' => maybe_serialize( wpcf7_default_messages_template() ) ) );
+ }
+}
+
+add_action( 'activate_' . WPCF8_PLUGIN_BASENAME, 'wpcf7_install' );
+
+/* Misc */
+
+function wpcf7_admin_url( $file, $query = array() ) {
+ $file = trim( $file, ' /' );
+ if ( 'admin/' != substr( $file, 0, 6 ) )
+ $file = 'admin/' . $file;
+
+ $path = 'admin.php';
+ $path .= '?page=' . WPCF8_PLUGIN_NAME . '/' . $file;
+
+ if ( $query = build_query( $query ) )
+ $path .= '&' . $query;
+
+ $url = admin_url( $path );
+
+ return $url;
+}
+
+function wpcf7_plugin_action_links( $links, $file ) {
+ if ( $file != WPCF8_PLUGIN_BASENAME )
+ return $links;
+
+ $url = wpcf7_admin_url( 'admin.php' );
+
+ $settings_link = '<a href="' . $url . '">' . esc_html( __( 'Settings', 'wpcf7' ) ) . '</a>';
+
+ array_unshift( $links, $settings_link );
+
+ return $links;
+}
+
+add_filter( 'plugin_action_links', 'wpcf7_plugin_action_links', 10, 2 );
+
+function wpcf7_donation_link() {
+ if ( ! WPCF8_SHOW_DONATION_LINK )
+ return;
+
+ if ( 'new' == $_GET['contactform'] || ! empty($_GET['message']) )
+ return;
+
+ $num = mt_rand(0, 99);
+ if ($num >= 10) // 90%
+ return;
+
+ $texts = array(
+ __( "Contact Form 7 needs your support. Please donate today.", 'wpcf7' ),
+ __( "Is this plugin useful for you? If you like it, please help the developer.", 'wpcf7' ),
+ __( "Your contribution is needed for making this plugin better.", 'wpcf7' ),
+ __( "Developing a plugin and providing user support is really hard work. Please help.", 'wpcf7' ) );
+
+ $text = $texts[array_rand( $texts )];
+
+?>
+<div class="donation">
+<p><a href="http://www.pledgie.com/campaigns/3117">
+<img alt="Click here to lend your support to: Support Contact Form 7 and make a donation at www.pledgie.com !" src="http://www.pledgie.com/campaigns/3117.png?skin_name=chrome" border="0" width="149" height="37" /></a>
+<em><?php echo esc_html( $text ); ?></em>
+</p>
+</div>
+<?php
+}
+
+?>
796 admin/.svn/text-base/wpcf7-admin.js.svn-base
@@ -0,0 +1,796 @@
+jQuery(document).ready(function() {
+ try {
+ jQuery('#tag-generator-div').append(tagGenerator());
+
+ jQuery('input#wpcf7-title:enabled').css({
+ cursor: 'pointer'
+ });
+
+ jQuery('input#wpcf7-title').mouseover(function() {
+ jQuery(this).not('.focus').css({
+ 'background-color': '#ffffdd'
+ });
+ });
+
+ jQuery('input#wpcf7-title').mouseout(function() {
+ jQuery(this).css({
+ 'background-color': '#fff'
+ });
+ });
+
+ jQuery('input#wpcf7-title').focus(function() {
+ jQuery(this).addClass('focus');
+ jQuery(this).css({
+ cursor: 'text',
+ color: '#333',
+ border: '1px solid #777',
+ font: 'normal 13px Verdana, Arial, Helvetica, sans-serif',
+ 'background-color': '#fff'
+ });
+ });
+
+ jQuery('input#wpcf7-title').blur(function() {
+ jQuery(this).removeClass('focus');
+ jQuery(this).css({
+ cursor: 'pointer',
+ color: '#555',
+ border: 'none',
+ font: 'bold 20px serif',
+ 'background-color': '#fff'
+ });
+ });
+
+ jQuery('input#wpcf7-title').change(function() {
+ updateTag();
+ });
+
+ updateTag();
+
+ if (! jQuery('#wpcf7-mail-2-active').is(':checked'))
+ jQuery('#mail-2-fields').hide();
+
+ jQuery('#wpcf7-mail-2-active').click(function() {
+ if (jQuery('#wpcf7-mail-2-active').is(':checked')) {
+ if (jQuery('#mail-2-fields').is(':hidden'))
+ jQuery('#mail-2-fields').slideDown('fast');
+ } else {
+ if (jQuery('#mail-2-fields').is(':visible'))
+ jQuery('#mail-2-fields').hide('fast');
+ }
+ });
+
+ jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.show);
+ jQuery('#message-fields').hide();
+
+ jQuery('#message-fields-toggle-switch').click(function() {
+ if (jQuery('#message-fields').is(':hidden')) {
+ jQuery('#message-fields').slideDown('fast');
+ jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.hide);
+ } else {
+ jQuery('#message-fields').hide('fast');
+ jQuery('#message-fields-toggle-switch').text(_wpcf7L10n.show);
+ }
+ });
+
+ if ('' == jQuery.trim(jQuery('#wpcf7-additional-settings').text())) {
+ jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show);
+ jQuery('#additional-settings-fields').hide();
+ } else {
+ jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide);
+ jQuery('#additional-settings-fields').show();
+ }
+
+ jQuery('#additional-settings-fields-toggle-switch').click(function() {
+ if (jQuery('#additional-settings-fields').is(':hidden')) {
+ jQuery('#additional-settings-fields').slideDown('fast');
+ jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.hide);
+ } else {
+ jQuery('#additional-settings-fields').hide('fast');
+ jQuery('#additional-settings-fields-toggle-switch').text(_wpcf7L10n.show);
+ }
+ });
+
+ } catch (e) {
+ }
+});
+
+function updateTag() {
+ var title = jQuery('input#wpcf7-title').val();
+ if (title)
+ title = title.replace(/["'\[\]]/g, '');
+ jQuery('input#wpcf7-title').val(title);
+ var current = jQuery('input#wpcf7-id').val();
+ var tag = '[contact-form ' + current + ' "' + title + '"]';
+ jQuery('input#contact-form-anchor-text').val(tag);
+}
+
+function tagGenerator() {
+ var menu = jQuery('<div class="tag-generator"></div>');
+
+ var dropdown_icon = jQuery('<img src="../wp-content/plugins/contact-form-7/images/dropdown.gif" />');
+ dropdown_icon.css({ 'vertical-align': 'bottom' });
+
+ var selector = jQuery('<span>' + _wpcf7L10n.generateTag + '</span>');
+ selector.append(dropdown_icon);
+ selector.css({
+ border: '1px solid #ddd',
+ padding: '2px 4px',
+ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0',
+ '-moz-border-radius': '3px',
+ '-khtml-border-radius': '3px',
+ '-webkit-border-radius': '3px',
+ 'border-radius': '3px'
+ });
+ selector.mouseover(function() {
+ jQuery(this).css({ 'border-color': '#bbb' });
+ });
+ selector.mouseout(function() {
+ jQuery(this).css({ 'border-color': '#ddd' });
+ });
+ selector.mousedown(function() {
+ jQuery(this).css({ background: '#ddd' });
+ });
+ selector.mouseup(function() {
+ jQuery(this).css({ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0' });
+ });
+ selector.click(function() {
+ dropdown.slideDown('fast');
+ return false;
+ });
+ jQuery('body').click(function() {
+ dropdown.hide();
+ });
+ menu.append(selector);
+
+ var pane = jQuery('<div class="tg-pane"></div>');
+ pane.hide();
+ menu.append(pane);
+
+ var dropdown = jQuery('<div class="tg-dropdown"></div>');
+ dropdown.hide();
+
+ var tag_types = [
+ 'textField', 'emailField', 'textArea', 'menu', 'checkboxes', 'radioButtons',
+ 'acceptance', 'quiz', 'captcha', 'fileUpload', 'submit'];
+
+ jQuery.each(tag_types, function(i, n) {
+ var submenu = jQuery('<div>' + _wpcf7L10n[n] + '</div>');
+ submenu.css({
+ margin: 0,
+ padding: '0 4px',
+ 'line-height': '180%',
+ background: '#fff'
+ });
+ submenu.mouseover(function() {