WordPress Landing Pages - Version 1.8.1

Version Description

  • WYSIWYG buttons overlapping fixed
  • Fixes issue with Homepage extensions and variation switching
  • Template preview links
  • Removing 'get short url' from landing pages.
  • View full list of changes here
Download this release

Release Info

Developer adbox
Plugin Icon 128x128 WordPress Landing Pages
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.7.4 to 1.8.1

Files changed (307) hide show
  1. Gruntfile.js +19 -0
  2. README.md +242 -56
  3. classes/class.activation.php +3 -4
  4. classes/class.activation.upgrade-routines.php +13 -0
  5. classes/class.branching.php +44 -0
  6. css/admin-post-edit.css +3 -0
  7. css/admin-post-new.css +3 -0
  8. css/admin-style.css +7 -10
  9. js/admin/admin.landing-page-list.js +52 -52
  10. js/admin/admin.post-edit.js +7 -178
  11. js/customizer.save.js +0 -143
  12. js/page_view_track.js +0 -9
  13. landing-pages.php +24 -15
  14. lang/landing-pages-ach.mo +0 -0
  15. lang/landing-pages-af.mo +0 -0
  16. lang/landing-pages-an.mo +0 -0
  17. lang/landing-pages-ar.mo +0 -0
  18. lang/landing-pages-as.mo +0 -0
  19. lang/landing-pages-az.mo +0 -0
  20. lang/landing-pages-be.mo +0 -0
  21. lang/landing-pages-be_BY.mo +0 -0
  22. lang/landing-pages-bg.mo +0 -0
  23. lang/landing-pages-bg_BG.mo +0 -0
  24. lang/landing-pages-bn_BD.mo +0 -0
  25. lang/landing-pages-br.mo +0 -0
  26. lang/landing-pages-bs.mo +0 -0
  27. lang/landing-pages-bs_BA.mo +0 -0
  28. lang/landing-pages-ca.mo +0 -0
  29. lang/landing-pages-co.mo +0 -0
  30. lang/landing-pages-cs_CZ.mo +0 -0
  31. lang/landing-pages-cy.mo +0 -0
  32. lang/landing-pages-da_DK.mo +0 -0
  33. lang/landing-pages-de_AT.mo +0 -0
  34. lang/landing-pages-de_CH.mo +0 -0
  35. lang/landing-pages-de_DE.mo +0 -0
  36. lang/landing-pages-dv.mo +0 -0
  37. lang/landing-pages-el.mo +0 -0
  38. lang/landing-pages-en@pirate.mo +0 -0
  39. lang/landing-pages-en_AU.mo +0 -0
  40. lang/landing-pages-en_CA.mo +0 -0
  41. lang/landing-pages-en_GB.mo +0 -0
  42. lang/landing-pages-eo.mo +0 -0
  43. lang/landing-pages-es_AR.mo +0 -0
  44. lang/landing-pages-es_CL.mo +0 -0
  45. lang/landing-pages-es_ES.mo +0 -0
  46. lang/landing-pages-es_MX.mo +0 -0
  47. lang/landing-pages-es_PE.mo +0 -0
  48. lang/landing-pages-es_VE.mo +0 -0
  49. lang/landing-pages-et.mo +0 -0
  50. lang/landing-pages-eu.mo +0 -0
  51. lang/landing-pages-fa.mo +0 -0
  52. lang/landing-pages-fa_IR.mo +0 -0
  53. lang/landing-pages-fi.mo +0 -0
  54. lang/landing-pages-fo.mo +0 -0
  55. lang/landing-pages-fr_FR.mo +0 -0
  56. lang/landing-pages-fy.mo +0 -0
  57. lang/landing-pages-ga.mo +0 -0
  58. lang/landing-pages-gd.mo +0 -0
  59. lang/landing-pages-gl_ES.mo +0 -0
  60. lang/landing-pages-gu_IN.mo +0 -0
  61. lang/landing-pages-he_IL.mo +0 -0
  62. lang/landing-pages-hi_IN.mo +0 -0
  63. lang/landing-pages-hr.mo +0 -0
  64. lang/landing-pages-hu_HU.mo +0 -0
  65. lang/landing-pages-hy.mo +0 -0
  66. lang/landing-pages-id.mo +0 -0
  67. lang/landing-pages-id_ID.mo +0 -0
  68. lang/landing-pages-is_IS.mo +0 -0
  69. lang/landing-pages-it_IT.mo +0 -0
  70. lang/landing-pages-ja.mo +0 -0
  71. lang/landing-pages-jv.mo +0 -0
  72. lang/landing-pages-ka.mo +0 -0
  73. lang/landing-pages-ka_GE.mo +0 -0
  74. lang/landing-pages-kk.mo +0 -0
  75. lang/landing-pages-km.mo +0 -0
  76. lang/landing-pages-kn.mo +0 -0
  77. lang/landing-pages-ko_KR.mo +0 -0
  78. lang/landing-pages-ku.mo +0 -0
  79. lang/landing-pages-ky.mo +0 -0
  80. lang/landing-pages-lo.mo +0 -0
  81. lang/landing-pages-lt_LT.mo +0 -0
  82. lang/landing-pages-lv.mo +0 -0
  83. lang/landing-pages-mg.mo +0 -0
  84. lang/landing-pages-mk_MK.mo +0 -0
  85. lang/landing-pages-mn.mo +0 -0
  86. lang/landing-pages-mr.mo +0 -0
  87. lang/landing-pages-ms_MY.mo +0 -0
  88. lang/landing-pages-my_MM.mo +0 -0
  89. lang/landing-pages-nb_NO.mo +0 -0
  90. lang/landing-pages-ne_NP.mo +0 -0
  91. lang/landing-pages-nl_NL.mo +0 -0
  92. lang/landing-pages-nn_NO.mo +0 -0
  93. lang/landing-pages-oc.mo +0 -0
  94. lang/landing-pages-os.mo +0 -0
  95. lang/landing-pages-pap.mo +0 -0
  96. lang/landing-pages-pl_PL.mo +0 -0
  97. lang/landing-pages-ps.mo +0 -0
  98. lang/landing-pages-pt_BR.mo +0 -0
  99. lang/landing-pages-pt_PT.mo +0 -0
  100. lang/landing-pages-ro_RO.mo +0 -0
  101. lang/landing-pages-ru_RU.mo +0 -0
  102. lang/landing-pages-sah.mo +0 -0
  103. lang/landing-pages-si_LK.mo +0 -0
  104. lang/landing-pages-sk_SK.mo +0 -0
  105. lang/landing-pages-sl_SI.mo +0 -0
  106. lang/landing-pages-so.mo +0 -0
  107. lang/landing-pages-sq.mo +0 -0
  108. lang/landing-pages-sr_RS.mo +0 -0
  109. lang/landing-pages-su.mo +0 -0
  110. lang/landing-pages-sv_SE.mo +0 -0
  111. lang/landing-pages-sw.mo +0 -0
  112. lang/landing-pages-ta_IN.mo +0 -0
  113. lang/landing-pages-ta_LK.mo +0 -0
  114. lang/landing-pages-te.mo +0 -0
  115. lang/landing-pages-tg.mo +0 -0
  116. lang/landing-pages-th.mo +0 -0
  117. lang/landing-pages-tk_TM.mo +0 -0
  118. lang/landing-pages-tl.mo +0 -0
  119. lang/landing-pages-tr_TR.mo +0 -0
  120. lang/landing-pages-tzm.mo +0 -0
  121. lang/landing-pages-ug.mo +0 -0
  122. lang/landing-pages-uk.mo +0 -0
  123. lang/landing-pages-ur.mo +0 -0
  124. lang/landing-pages-ur_PK.mo +0 -0
  125. lang/landing-pages-uz.mo +0 -0
  126. lang/landing-pages-vi.mo +0 -0
  127. lang/landing-pages-zh_CN.GB2312.mo +0 -0
  128. lang/landing-pages-zh_CN.mo +0 -0
  129. lang/landing-pages-zh_HK.mo +0 -0
  130. lang/landing-pages-zh_TW.mo +0 -0
  131. modules/module.ajax-setup.php +1 -1
  132. modules/module.alert.php +18 -2
  133. modules/module.click-tracking.php +14 -13
  134. modules/module.customizer.php +1 -1
  135. modules/module.global-settings.php +0 -24
  136. modules/module.install.php +96 -106
  137. modules/module.javascript-admin.php +1 -1
  138. modules/module.javascript-frontend.php +11 -74
  139. modules/module.landing-page.php +590 -597
  140. modules/module.metaboxes.php +0 -4
  141. modules/module.post-type.php +1 -1
  142. modules/module.redirect-ab-testing.php +9 -0
  143. modules/module.store.php +1 -1
  144. modules/module.track.php +1 -1
  145. package.json +45 -0
  146. readme.txt +26 -3
  147. screenshot-1.jpg +0 -0
  148. screenshot-2.jpg +0 -0
  149. screenshot-3.jpg +0 -0
  150. screenshot-4.jpg +0 -0
  151. shared/.SyncIgnore +0 -13
  152. shared/assets/assets.loader.class.php +158 -168
  153. shared/assets/{admin/css → css/admin}/global-inbound-admin.css +11 -5
  154. shared/assets/{admin/css → css/admin}/image-picker.css +0 -0
  155. shared/assets/{admin/css → css/admin}/inbound-metaboxes.css +0 -0
  156. shared/{css → assets/css/admin}/select2.css +3 -3
  157. shared/{css/images → assets/css/admin}/select2x2.png +0 -0
  158. shared/assets/css/admin/wpadminbar.css +154 -0
  159. shared/assets/{global/fonts → fonts}/fontawesome/FontAwesome.otf +0 -0
  160. shared/assets/{global/fonts → fonts}/fontawesome/README.md +0 -0
  161. shared/assets/{global/fonts → fonts}/fontawesome/fontawesome-webfont.eot +0 -0
  162. shared/assets/{global/fonts → fonts}/fontawesome/fontawesome-webfont.svg +0 -0
  163. shared/assets/{global/fonts → fonts}/fontawesome/fontawesome-webfont.ttf +0 -0
  164. shared/assets/{global/fonts → fonts}/fontawesome/fontawesome-webfont.woff +0 -0
  165. shared/assets/frontend/js/analytics-src/analytics.js +0 -40
  166. shared/assets/frontend/js/analytics-src/analytics.lead-tracking.js +0 -384
  167. shared/assets/frontend/js/analytics-src/analytics.load.js +0 -41
  168. shared/assets/frontend/js/analytics-src/analytics.page-tracking.js +0 -173
  169. shared/assets/frontend/js/analytics-src/form-mapping.js +0 -288
  170. shared/assets/frontend/js/analytics/analytics.events.js +0 -117
  171. shared/assets/frontend/js/analytics/analytics.init.js +0 -40
  172. shared/assets/frontend/js/analytics/analytics.js +0 -39
  173. shared/assets/frontend/js/analytics/analytics.lead-tracking.js +0 -426
  174. shared/assets/frontend/js/analytics/analytics.page-tracking.js +0 -173
  175. shared/assets/frontend/js/analytics/analytics.storage.js +0 -136
  176. shared/assets/frontend/js/analytics/analytics.utils.js +0 -340
  177. shared/assets/frontend/js/analytics/inboundAnalytics.min.js +0 -3
  178. shared/assets/frontend/js/form-population.js +0 -1
  179. shared/assets/frontend/js/inbound.js +0 -839
  180. shared/assets/frontend/js/inprogress-tracking.js +0 -137
  181. shared/assets/frontend/js/page-tracking-new.js +0 -1324
  182. shared/assets/frontend/js/page-tracking.js +0 -693
  183. shared/assets/frontend/js/store.lead.ajax-new.js +0 -699
  184. shared/assets/frontend/js/store.lead.ajax.js +0 -711
  185. shared/assets/global/fonts/fontawesome/fontawesome-webfont.eot~HEAD +0 -0
  186. shared/assets/global/fonts/fontawesome/fontawesome-webfont.svg~HEAD +0 -414
  187. shared/assets/global/fonts/fontawesome/fontawesome-webfont.ttf~HEAD +0 -0
  188. shared/assets/global/fonts/fontawesome/fontawesome-webfont.woff~HEAD +0 -0
  189. shared/assets/{admin/images → images/admin}/inbound-now-logo.png +0 -0
  190. shared/assets/{global/images → images/global}/leads.png +0 -0
  191. shared/assets/{global/images → images/global}/shortcodes-blue.png +0 -0
  192. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/Config/INBOUND_ConfigFileReaderTrait.php +0 -0
  193. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/Config/INBOUND_ConfigReaderInterface.php +0 -0
  194. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/Config/INBOUND_JsonConfigReader.php +0 -0
  195. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/Exception/INBOUND_InvalidArgumentException.php +0 -0
  196. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/INBOUND_Medium.php +0 -0
  197. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/INBOUND_Parser.php +1 -1
  198. shared/{tracking/sources → assets/includes}/Snowplow/RefererParser/INBOUND_Referer.php +0 -0
  199. shared/{tracking/sources → assets/includes}/referers.json +0 -0
  200. shared/{metaboxes/inbound-metaboxes.js → assets/index.php} +0 -0
  201. shared/assets/{admin/js → js/admin}/image-picker.js +0 -0
  202. shared/assets/{admin/js → js/admin}/select2.js +0 -0
  203. shared/assets/{admin/js → js/admin}/select2.min.js +0 -0
  204. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.events.js +9 -9
  205. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.examples.js +0 -0
  206. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.forms.js +49 -36
  207. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.hooks.js +0 -0
  208. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.init.js +0 -1
  209. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.lead.js +2 -2
  210. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.page.js +8 -4
  211. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.start.js +0 -0
  212. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.storage.js +0 -0
  213. shared/assets/{frontend/js → js/frontend}/analytics-src/analytics.utils.js +264 -165
  214. shared/assets/{frontend/js → js/frontend}/analytics/inboundAnalytics.js +343 -227
  215. shared/assets/js/frontend/analytics/inboundAnalytics.min.js +3 -0
  216. shared/{classes/js → assets/js/global}/debug.js +0 -0
  217. shared/{classes/js → assets/js/global}/inbound-dequeue-scripts.js +0 -0
  218. shared/assets/{global/js → js/global}/jquery.cookie.js +0 -0
  219. shared/assets/{global/js → js/global}/jquery.total-storage.min.js +0 -0
  220. shared/assets/readme.txt +0 -7
  221. shared/classes/class.ajax.php +40 -0
  222. shared/classes/class.branching.php +296 -0
  223. shared/classes/class.charting.php +1 -1
  224. shared/classes/class.debug.php +400 -400
  225. shared/classes/class.feedback.php +15 -18
  226. shared/classes/class.form.php +452 -356
  227. shared/classes/class.lead-fields.php +41 -41
  228. shared/{tracking/new.store.lead.php → classes/class.lead-storage.php} +27 -22
  229. shared/{extend/inboundnow.extend.php → classes/class.licensing.php} +0 -0
  230. shared/classes/class.load-shared.php +30 -24
  231. shared/classes/class.magic.php +68 -0
  232. shared/{extend/inboundnow.global-settings.php → classes/class.master-license.php} +0 -0
  233. shared/classes/class.menu.php +203 -102
  234. shared/classes/class.menus.adminbar.php +710 -0
  235. shared/classes/class.notifications.php +81 -0
  236. shared/classes/class.options-api.php +40 -0
  237. shared/classes/class.post-type.email-template.php +25 -25
  238. shared/classes/class.post-type.wp-lead.php +25 -18
  239. shared/classes/class.shortcodes.cookie-values.php +51 -0
  240. shared/classes/js/wpl.required-fallback.js +0 -13
  241. shared/css/images/Navigation.png +0 -0
  242. shared/css/images/blank-page.png +0 -0
  243. shared/css/images/clone-create.png +0 -0
  244. shared/css/images/dropdownback.png +0 -0
  245. shared/css/images/headerback.png +0 -0
  246. shared/css/images/hover.png +0 -0
  247. shared/css/images/landing-page-icon-10.png +0 -0
  248. shared/css/images/linkback.png +0 -0
  249. shared/css/images/question-light.png +0 -0
  250. shared/css/images/select-pages.png +0 -0
  251. shared/css/images/tooltip.png +0 -0
  252. shared/css/select2-spinner.gif +0 -0
  253. shared/css/select2.png +0 -0
  254. shared/css/select2x2.png +0 -0
  255. shared/docs/analytics.events.md +352 -352
  256. shared/docs/main.md +20 -20
  257. shared/extend/inboundnow.extension-licensing.php +0 -293
  258. shared/extend/inboundnow.extension-updating.php +0 -177
  259. shared/fonts/fontawesome/FontAwesome.otf +0 -0
  260. shared/fonts/fontawesome/README.md +0 -17
  261. shared/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  262. shared/fonts/fontawesome/fontawesome-webfont.svg +0 -414
  263. shared/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  264. shared/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  265. shared/functions.templates.php +0 -111
  266. shared/functions/global.leads.cpt.php +0 -222
  267. shared/images/inbound-now-logo.png +0 -0
  268. shared/inboundnow/inboundnow.extend.php +0 -348
  269. shared/inboundnow/inboundnow.extension-licensing.php +0 -293
  270. shared/inboundnow/inboundnow.extension-updating.php +0 -177
  271. shared/inboundnow/inboundnow.global-settings.php +0 -46
  272. shared/js/jquery.cookie.js +0 -1
  273. shared/js/jquery.total-storage.min.js +0 -22
  274. shared/js/select2.js +0 -3137
  275. shared/js/select2.min.js +0 -22
  276. shared/js/selectron.js +0 -190
  277. shared/{functions/global.shared.functions.php → legacy/functions.php} +126 -12
  278. shared/metaboxes/inbound-metaboxes.css +0 -70
  279. shared/metaboxes/template.metaboxes.php +0 -172
  280. shared/shortcodes/css/frontend-render.css +29 -11
  281. shared/shortcodes/css/shortcodes.css +1 -0
  282. shared/shortcodes/inbound-shortcodes.php +13 -12
  283. shared/shortcodes/js/shortcodes.js +30 -8
  284. shared/shortcodes/preview.php +16 -9
  285. shared/shortcodes/shortcodes-fields.php +12 -1
  286. shared/shortcodes/shortcodes/forms.php +23 -13
  287. shared/shortcodes/shortcodes/list-icon.php +1 -1
  288. shared/shortcodes/shortcodes/pricing.php +1 -1
  289. shared/shortcodes/shortcodes/quick-forms.php +2 -0
  290. shared/shortcodes/shortcodes/social.php +1 -1
  291. shared/shortcodes/shortcodes/tabs.php +1 -1
  292. shared/shortcodes/shortcodes/teaser.php +1 -1
  293. shared/shortcodes/shortcodes/testimonial.php +1 -1
  294. shared/templates/email-templates/inbound-new-lead-notification/preview.html +4 -4
  295. shared/templates/email-templates/token-test/token-test.php +48 -48
  296. shared/templates/email-templates/wp-notify-moderator/wp-notify-moderator.php +7 -7
  297. shared/tracking/form-population.js +0 -1
  298. shared/tracking/js/inprogress.store.lead.ajax.js +0 -631
  299. shared/tracking/js/store.lead.ajax.js +0 -1
  300. shared/tracking/js/store.lead.ajax.js.orig +0 -512
  301. shared/tracking/page-tracking.js +0 -1
  302. shared/tracking/store.lead.php +0 -592
  303. shared/tracking/store.lead.php.orig +0 -297
  304. templates/simple-solid-lite/config.php +1 -1
  305. templates/svtle/index.php +1 -1
  306. templates/three-column-lander/config.php +3 -3
  307. templates/three-column-lander/index.php +1 -1
Gruntfile.js ADDED
@@ -0,0 +1,19 @@
1
+ /* for main build processes we use gulp see gulpfile.js */
2
+ module.exports = function(grunt) {
3
+
4
+ grunt.initConfig({
5
+ pkg: grunt.file.readJSON('package.json'),
6
+ wp_readme_to_markdown: {
7
+ cta: {
8
+ files: {
9
+ 'readme.md': 'readme.txt'
10
+ },
11
+ },
12
+ },
13
+ });
14
+
15
+ grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
16
+
17
+ grunt.registerTask('default', ['wp_readme_to_markdown']);
18
+
19
+ };
README.md CHANGED
@@ -1,24 +1,19 @@
1
- [![Build Status](https://travis-ci.org/inboundnow/landing-pages.png?branch=master)](https://travis-ci.org/inboundnow/landing-pages)
2
3
- landing-pages
4
- =============
5
-
6
- WordPress Landing Pages - Plugin
7
-
8
- === WordPress Landing Pages ===
9
-
10
- Contributors: David Wells, adbox
11
- Donate link: mailto:Hudson.Atwell@gmail.com
12
- License: GPLv2 or later
13
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
- Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics
15
- Requires at least: 3.3
16
- Tested up to: 3.5
17
- Stable Tag: 1.1.0.1
18
19
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
20
21
- == Description ==
22
23
This plugin creates landing pages (a.k.a. conversion or splash pages) for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on landing pages, and most importantly increase lead flow!
24
@@ -26,7 +21,7 @@ The landing page plugin was specifically designed with inbound marketing best pr
26
27
Landing pages are an ideal way to convert more of your passive website visitors into active leads or email list subscribers.
28
29
- = Highlights =
30
31
* Create beautiful Landing Pages on your WordPress site.
32
* Visual Editor to view changes being made on the fly!
@@ -42,130 +37,321 @@ This plugin is form agnostic meaning it will work with any form system you use.
42
43
Recommended form plugins (Gravity forms, Ninja Forms or Contact form 7)
44
45
- = About the Plugin =
46
47
- http://www.youtube.com/watch?v=BzcD6PgvLP4
48
49
- = Developers & Designers =
50
51
We built the landing page plugin as a framework! Need A/B testing out of the box implemented for your existing designs? Use WordPress Landing Pages to quickly spin up new landing pages that have all the functionality your clients will need.
52
53
- You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/landing-pages/dev">templating framework</a>.
54
55
The plugin is also fully extendable and has a number of actions, filters, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
56
57
- == Installation ==
58
59
1. Upload `landing-pages` folder to the `/wp-content/plugins/` directory
60
1. Activate the plugin through the 'Plugins' menu in WordPress
61
62
- == Frequently Asked Questions ==
63
*Can I create my own landing page designs?,
64
- *Yes! You can learn how to <a href="http://docs.inboundnow.com/landing-pages/dev/creating-templates">create your own landing page template here</a>.
65
66
- == Screenshots ==
67
68
- 1. Landing Page Custom Post Type
69
- 2. Track conversion rates and continuously improve your landing pages
70
- 3. Manage Split Testing Page
71
- 4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
72
73
- == Changelog ==
74
75
- = 1.1.0.1 =
76
77
* Fixed: Variation saves for custom css and custom js.
78
* Fixed: jQuery error related to wysiwyg content formatting.
79
80
- = 1.0.9.9 =
81
* Improved extension metabox loading for quicker load times and optimized meta data storage.
82
* Phased out more 'old method' split testing components.
83
* Improved .htaccess parsing.
84
* Addressed issue with line breaks being removed from WYSIWYG editors.
85
86
- = 1.0.9.4 =
87
* Added in tours for the edit screen and the list of landing page screen for new users to learn how to use the tool quickly and easily
88
* Updated conversion tracking for wp-leads addon plugin
89
* Added in option for default templates to toggle on/off navigation
90
91
- = 1.0.9.3 =
92
93
* Removed old A/B split testing and the new system is fully in place!
94
95
- = 1.0.9.0 =
96
97
* Added in A/B stats to the main landing page list view
98
99
- = 1.0.8.6 =
100
101
* Release new and improved version of A/B testing!
102
* Ajax saving on landing page options for faster page edits
103
* Frontend Visual Editor to see what you are editing/changing
104
* Enabled frontend editor for use on normal pages and posts
105
106
- = 1.0.8.5 =
107
108
Providing better conversion and impression tracking for landing pages that are set as homepage.
109
110
- = 1.0.8.4 =
111
112
Fixing activation bug
113
114
- = 1.0.8.1 =
115
116
Fixing issue with jquery submission errors.
117
118
- = 1.0.7.9 =
119
120
Added capability to activate and update license keys for premium extensions. Added ability to define white listed HTML elements for Form Standardization process.
121
122
- = 1.0.7.3 =
123
124
Fixed issue with WP_List_table causing posts to to save or edit propperly Attempt 001
125
126
- = 1.0.7.1 =
127
128
Added cookie based auto-field population & lead data collection to core.
129
130
- = 1.0.5.6 =
131
132
Fixed issue with global setting's radio buttons not holding new set values.
133
134
- = 1.0.5.3 =
135
136
Solutions for custom post type wp rewrite issue on activation.
137
138
- = 1.0.5.1 =
139
140
Introducing version control system for extensions.
141
142
- = 1.0.4.4 =
143
144
Migrating store to new location. Updating version control systems
145
146
- = 1.0.4.2 =
147
148
Added new defitions to form standardization parser. Limited .htaccess rewrites to plugin activation to try and mitigate .htaccess corruptions.
149
150
- = 1.0.4.1 =
151
152
Fixed issue with conversions not recording on some servers by forcing form submittal to wait until ajax has completely finnished loading before continuing to process form.
153
154
- = 1.0.3.9 =
155
156
Fixed issue with plugins and wp core refusing to update on some installations when landing page plugin is activated.
157
158
- = 1.0.3.8 =
159
160
Debugging cross browser impressions and conversion tracking. Implemented soltion for url-to-postid conversions that's compatible with the /slug/ removal extension for landing pages plugin.
161
Added email validation check to prevent false positives when form standardization is turned on.
162
163
- = 1.0.3.7 =
164
165
- Bug Fix: 'Clear Stats' button.
166
167
- = 1.1 =
168
169
Released
170
-
171
-
1
+ # WordPress Landing Pages #
2
3
+ **Contributors:** David Wells, Hudson Atwell
4
+ **Donate link:** mailto:marketplace@inboundnow.com
5
+ **License:** GPLv2 or later
6
+ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
7
+ **Tags:** landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
+ **Requires at least:** 3.8
9
+ **Tested up to:** 4.1
10
+ **Stable Tag:** 1.8.0
11
12
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
14
+ ## Description ##
15
+
16
+ > WordPress Landing Pages works as a standalone plugin or hand in hand with [WordPress Calls to Action](http://wordpress.org/plugins/cta/ "Learn more about Calls to Action") & [WordPress Leads](http://wordpress.org/plugins/leads/ "Learn more about WordPress Leads") to create a powerful & free lead generation system for your business.
17
18
This plugin creates landing pages (a.k.a. conversion or splash pages) for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on landing pages, and most importantly increase lead flow!
19
21
22
Landing pages are an ideal way to convert more of your passive website visitors into active leads or email list subscribers.
23
24
+ ### Highlights ###
25
26
* Create beautiful Landing Pages on your WordPress site.
27
* Visual Editor to view changes being made on the fly!
37
38
Recommended form plugins (Gravity forms, Ninja Forms or Contact form 7)
39
40
+ ### About the Plugin ###
41
42
+ http://www.youtube.com/watch?v=flEd0sRTFUo
43
44
+ ### Developers & Designers ###
45
46
We built the landing page plugin as a framework! Need A/B testing out of the box implemented for your existing designs? Use WordPress Landing Pages to quickly spin up new landing pages that have all the functionality your clients will need.
47
48
+ You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/section/developer/">templating framework</a>.
49
50
The plugin is also fully extendable and has a number of actions, filters, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
51
52
+
53
+ [Follow Development on GitHub ](https://github.com/inboundnow/landing-pages "Follow & Contribute to core development on GitHub")
54
+ |
55
+ [Follow Development on Twitter ](https://twitter.com/gitlandingpages "See our latest development commits on Twitter")
56
+
57
+
58
+ ## Installation ##
59
60
1. Upload `landing-pages` folder to the `/wp-content/plugins/` directory
61
1. Activate the plugin through the 'Plugins' menu in WordPress
62
63
+ ## Frequently Asked Questions ##
64
*Can I create my own landing page designs?,
65
+ *Yes! You can learn how to <a href="http://docs.inboundnow.com/guide/creating-landing-page-templates/">create your own landing page template here</a>.
66
+
67
+ ## Screenshots ##
68
+
69
+ ### 1. Landing Page Custom Post Type ###
70
+ ![Landing Page Custom Post Type](screenshot-1.jpg)
71
+
72
+ ### 2. Track conversion rates and continuously improve your landing pages ###
73
+ ![Track conversion rates and continuously improve your landing pages](screenshot-2.jpg)
74
+
75
+ ### 3. Manage Split Testing Page ###
76
+ ![Manage Split Testing Page](screenshot-3.jpg)
77
+
78
+ ### 4. Choose from a ton of pre-made templates, use your existing design, or design your own theme! ###
79
+ ![Choose from a ton of pre-made templates, use your existing design, or design your own theme!](screenshot-4.jpg)
80
+
81
+
82
+ ## Changelog ##
83
+ ### 1.8.0 ###
84
+ * Fixing addon store
85
+
86
+ ### 1.7.9 ###
87
+ * Even more security updates! Security for the win!
88
+
89
+ ### 1.7.8 ###
90
+ * Security Patch
91
+
92
+ ### 1.7.7 ###
93
+ * Fix double lead notification email
94
+
95
+ ### 1.7.6 ###
96
+ * Fixed double email submission on contact form 7
97
+
98
+ ### 1.7.5 ###
99
+ * Added form field exclusions to ignore sensitive data
100
+
101
+ ### 1.7.3 ###
102
+ * See changelog here: https://github.com/inboundnow/landing-pages/issues?q=is%3Aissue+is%3Aclosed+label%3Av1.7.3
103
+
104
+ ### 1.7.2 ###
105
+ * Improved form email typo detection
106
+ * Improved Template Styles
107
+ * Fixed content wysiwyg scroll freezing bug
108
+
109
+ ### 1.7.1 ###
110
+ * removed iframe of inbound now addon store. For addons please visit: http://inboundnow.com/market
111
112
+ ### 1.7.0 ###
113
+ * Removed anonymous PHP functions for PHP 5.2 support
114
+ * Updated template creation standards
115
+ * Converted varition modules to CLASS based system & documented
116
+ * Move /lang/ file outside of shared
117
+
118
+ ### 1.6.2 ###
119
+ * Bug Fix: Fix with lead email notifications
120
+
121
+ ### 1.5.9 ###
122
+ * Various bug fixes.
123
+ * Refactored main plugin file to class loader.
124
+ * Improved localization systems.
125
+
126
+ ### 1.5.8 ###
127
+ * Bug Fix: Check all required fields
128
+
129
+ ### 1.5.7 ###
130
+ * Improvement: All core template now use new consolidated settings system.
131
+ * Improvement: Leads Dashboard styling & stats
132
+ * Improvement: Screenshots on local installation replaced with template thumbnails.
133
+
134
+
135
+ ### 1.5.6 ###
136
+ * Fix to insert marketing shortcode popup
137
+
138
+ ### 1.5.5 ###
139
+ * Added events to lead tracking
140
+ * Bug Fix: Marketing Button
141
+ * Optimized CTA Tracking JS.
142
+ * Expanded impression/conversion analytics to all post types.
143
144
+ ### 1.5.4 ###
145
+ * Impression tracking bug fix.
146
+ * Bringing Inbound Tracking to All Posts/Pages
147
148
+ ### 1.5.3 ###
149
+ * Temporary fix for shortcodes disappearing from wordpress 3.8 to 3.9
150
+ * Performance improvements on analytics and lead tracking
151
152
+ ### 1.5.1 ###
153
+ * Misc bug fixes
154
+
155
+ ### 1.5.0 ###
156
+ * fixed field mapping bug
157
+ * Added better compability for js conflicts
158
+ * Prepping for marketing automation
159
+
160
+ ### 1.4.9 ###
161
+ * Fixed and improved default landing page templates
162
+ * Updates to work with V2 of the CTA plugins
163
+ * Improved form compatibilty with contact form 7, gravity forms, and ninja forms
164
+ * Numerous bug files and code improvements
165
+
166
+ ### 1.4.8 ###
167
+ * Added Google Analytics Custom Event Tracking for form submissions
168
+ * Added Ability: automatically sort leads into lists on form completions
169
+ * Added Ability: Send lead notification emails to multiple people. Use comma separated values
170
+ * Improved Social Media Buttons called with lp_social_media() function
171
+ * Fixed qTranslate plugin bug
172
+ * Fixed Genesis Title tag conflict
173
+ * Added improved asset loader
174
+ * Updated main docs.inboundnow.com site. Check it out!
175
+
176
+ ### 1.4.7 ###
177
+ * GPL fix with js library
178
+
179
+ ### 1.4.6 ###
180
+ * New Feature: Bulk Lead management with leads plugin wordpress.org/plugins/leads/
181
+ * Added tags to lead profiles for improved management/categorization
182
+ * Added new compatibility options to fix third party plugin conflicts!
183
+ * Added new debugging javascript debugging tools for users
184
+ * Fixed Email Sending Error on forms
185
+ * Improved support for master license keys
186
+
187
+ ### 1.4.5 ###
188
+ * Added New HTML Lead Email Template with clickable links for faster lead management
189
+ * Added Button Shortcodes!
190
+ * Added HTML field option to form tool
191
+ * Added Divider Option to Form tool
192
+ * Added multi column support to icon list shortcode
193
+ * Added Font Awesome Icons option to Inbound Form Submit buttons
194
+ * Added Social Sharing Shortcode
195
+ * Bug fix - emails not sending after form conversion fixed
196
+
197
+ ### 1.4.1 ###
198
+ * Bug fix - missing trackingObj
199
+
200
+ ### 1.4.0 ###
201
+ * Added feature request form to all plugin admin pages. Submit your feature requests today! =)
202
+
203
+ ### 1.3.9 ###
204
+ * Bug fixes for form creation issues
205
+ * Bug fixes for safari page tracking not firing
206
+ * Added quick menu to WP admin bar for quicker marketing!
207
+
208
+ ### 1.3.8 ###
209
+ * Updated styles to 3.8 wordpress
210
+ * Streamlined form creation
211
+ * fixed rogue PHP errors
212
+
213
+ ### 1.3.7 ###
214
+ * Added: Shortcode now automatically render in landing page option echos in templates
215
+ * Updated: Visual Editor tool
216
+ * Updated: Template selection interface
217
+ * Updated: Major updates to core templates, CSS tweaks and fixes
218
+ * Fixed: Shortcode insert into correct editor box
219
+ * Fixed: editor always on HTML view
220
+
221
+ ### 1.3.6 ###
222
+
223
+ * Added: New Shortcodes! Fancy List and Column shortcodes
224
+ * Added: Added email confirmation support to Inbound Forms tool
225
+ * Added: Added New Welcome Page with Tutorial Video on Getting Started
226
+ * Added: New Debug Tab for faster support requests/debugging
227
+ * Fixed: CSS conflicts with button classes
228
+
229
+ ### 1.3.1 ###
230
+
231
+ * Added: Added InboundNow form creation and management system (beta)
232
+ * Added: Support for InboundNow cross plugin extensions
233
+ * Added: 'Sticky Variations' to global settings.
234
+ * Added: Easier way for extension developers to license their extensions.
235
+ * Added: 'header' setting component to global settings.
236
+ * Fixed: Security issues
237
+ * Improvement: Improved data management for global settings, metaboxes, and extensions.
238
+
239
+ ### 1.2.3 ###
240
+
241
+ * Fixed: Security issue with vulnerability to sql injection.
242
+
243
+ ### 1.2.1 ###
244
+
245
+ * Fixed: Issues with shortcodes rendering in wp-admin for variations.
246
+
247
+ ### 1.1.9 ###
248
+
249
+ * Fixed: Issues with navigation menu items breaking on landing pages with the default template selected.
250
+
251
+ ### 1.1.8 ###
252
+
253
+ * Fixed: Issue with post_content not saving for variations.
254
+ * Added: [lp_conversion_area] Shortcode. It renders form conversion area anywhere on landing page
255
+ * Fixed: Restored the ability to delete custom templates from 'Templates' section.
256
+
257
+ ### 1.1.7 ###
258
+
259
+ * Fixed: Issue with extension license keys not validating
260
+ * Fixed: Issue with shortcodes not firing on select core templates
261
+ * Improvement: Converted global settings data array to new easier to read format for development, added in legacy support.
262
+
263
+ ### 1.1.0.1 ###
264
265
* Fixed: Variation saves for custom css and custom js.
266
* Fixed: jQuery error related to wysiwyg content formatting.
267
268
+ ### 1.0.9.9 ###
269
* Improved extension metabox loading for quicker load times and optimized meta data storage.
270
* Phased out more 'old method' split testing components.
271
* Improved .htaccess parsing.
272
* Addressed issue with line breaks being removed from WYSIWYG editors.
273
274
+ ### 1.0.9.4 ###
275
* Added in tours for the edit screen and the list of landing page screen for new users to learn how to use the tool quickly and easily
276
* Updated conversion tracking for wp-leads addon plugin
277
* Added in option for default templates to toggle on/off navigation
278
279
+ ### 1.0.9.3 ###
280
281
* Removed old A/B split testing and the new system is fully in place!
282
283
+ ### 1.0.9.0 ###
284
285
* Added in A/B stats to the main landing page list view
286
287
+ ### 1.0.8.6 ###
288
289
* Release new and improved version of A/B testing!
290
* Ajax saving on landing page options for faster page edits
291
* Frontend Visual Editor to see what you are editing/changing
292
* Enabled frontend editor for use on normal pages and posts
293
294
+ ### 1.0.8.5 ###
295
296
Providing better conversion and impression tracking for landing pages that are set as homepage.
297
298
+ ### 1.0.8.4 ###
299
300
Fixing activation bug
301
302
+ ### 1.0.8.1 ###
303
304
Fixing issue with jquery submission errors.
305
306
+ ### 1.0.7.9 ###
307
308
Added capability to activate and update license keys for premium extensions. Added ability to define white listed HTML elements for Form Standardization process.
309
310
+ ### 1.0.7.3 ###
311
312
Fixed issue with WP_List_table causing posts to to save or edit propperly Attempt 001
313
314
+ ### 1.0.7.1 ###
315
316
Added cookie based auto-field population & lead data collection to core.
317
318
+ ### 1.0.5.6 ###
319
320
Fixed issue with global setting's radio buttons not holding new set values.
321
322
+ ### 1.0.5.3 ###
323
324
Solutions for custom post type wp rewrite issue on activation.
325
326
+ ### 1.0.5.1 ###
327
328
Introducing version control system for extensions.
329
330
+ ### 1.0.4.4 ###
331
332
Migrating store to new location. Updating version control systems
333
334
+ ### 1.0.4.2 ###
335
336
Added new defitions to form standardization parser. Limited .htaccess rewrites to plugin activation to try and mitigate .htaccess corruptions.
337
338
+ ### 1.0.4.1 ###
339
340
Fixed issue with conversions not recording on some servers by forcing form submittal to wait until ajax has completely finnished loading before continuing to process form.
341
342
+ ### 1.0.3.9 ###
343
344
Fixed issue with plugins and wp core refusing to update on some installations when landing page plugin is activated.
345
346
+ ### 1.0.3.8 ###
347
348
Debugging cross browser impressions and conversion tracking. Implemented soltion for url-to-postid conversions that's compatible with the /slug/ removal extension for landing pages plugin.
349
Added email validation check to prevent false positives when form standardization is turned on.
350
351
+ ### 1.0.3.7 ###
352
353
+ **Bug Fix:** 'Clear Stats' button.
354
355
+ ### 1.1 ###
356
357
Released
classes/class.activation.php CHANGED
@@ -41,6 +41,9 @@ class Landing_Pages_Activation {
41
42
/* Activate shared components */
43
self::activate_shared();
44
45
}
46
@@ -125,10 +128,6 @@ class Landing_Pages_Activation {
125
126
/* Set's welcome page redirect transient */
127
set_transient( '_landing_page_activation_redirect', true, 30 );
128
- /* We've had issues with this not working.
129
- global $wp_rewrite;
130
- $wp_rewrite->flush_rules();
131
- */
132
}
133
134
/**
41
42
/* Activate shared components */
43
self::activate_shared();
44
+
45
+ /* Run additional actions */
46
+ do_action( 'activate_landing_pages' );
47
48
}
49
128
129
/* Set's welcome page redirect transient */
130
set_transient( '_landing_page_activation_redirect', true, 30 );
131
}
132
133
/**
classes/class.activation.upgrade-routines.php CHANGED
@@ -52,6 +52,19 @@ if ( !class_exists('Landing_Pages_Activation_Update_Routines') ) {
52
53
}
54
}
55
/*
56
* @introduced: 1.5.7
57
* @migration-type: Meta pair migragtion
52
53
}
54
}
55
+
56
+ /*
57
+ * @introduced: 1.7.5
58
+ * @migration-type: Meta key rename
59
+ * @migration: renames all instances of inbound_conversion_data to _inbound_conversion_data
60
+
61
+ */
62
+ public static function meta_key_change_conversion_object() {
63
+ global $wpdb;
64
+
65
+ $wpdb->query("UPDATE $wpdb->postmeta SET `meta_key` = REPLACE (`meta_key` , 'inbound_conversion_data', '_inbound_conversion_data')");
66
+ }
67
+
68
/*
69
* @introduced: 1.5.7
70
* @migration-type: Meta pair migragtion
classes/class.branching.php ADDED
@@ -0,0 +1,44 @@
1
+ <?php
2
+
3
+ if ( !class_exists('Landing_Pages_Branching') ) {
4
+
5
+ class Landing_Pages_Branching {
6
+
7
+
8
+ /**
9
+ * Load class instance
10
+ */
11
+ public function __construct() {
12
+ self::load_hooks();
13
+ }
14
+
15
+ /**
16
+ * Load hooks and filters
17
+ */
18
+ public static function load_hooks() {
19
+
20
+ /* adds branching capabilities to branching API for landing pages */
21
+ add_filter( 'inbound_plugin_branches' , array( __CLASS__ , 'add_branches' ) , 10 , 1 );
22
+
23
+ /* reset active branch during svn update */
24
+ //add_action( 'activate_landing_pages' , array( __CLASS__ , 'reset_branch_status' ) , 10 , 1 );
25
+ }
26
+
27
+ /**
28
+ * Add branches to branching api for landing pages plugin
29
+ *
30
+ */
31
+ public static function add_branches( $branches ) {
32
+ $branches['landing-pages'] = array(
33
+ 'git' => 'https://codeload.github.com/inboundnow/landing-pages/zip/master',
34
+ 'svn' => 'https://downloads.wordpress.org/plugin/landing-pages.'.LANDINGPAGES_CURRENT_VERSION.'.zip'
35
+ );
36
+
37
+ return $branches;
38
+ }
39
+
40
+
41
+ }
42
+
43
+ $GLOBALS['Landing_Pages_Branching'] = new Landing_Pages_Branching;
44
+ }
css/admin-post-edit.css CHANGED
@@ -13,6 +13,9 @@ h2#convert-header {
13
.quicktags-toolbar, .wp_themeSkin tr.mceFirst td.mceToolbar {
14
height: 38px;
15
}
16
.mceIframeContainer.mceFirst.mceLast iframe{
17
height: 335px !important;
18
}
13
.quicktags-toolbar, .wp_themeSkin tr.mceFirst td.mceToolbar {
14
height: 38px;
15
}
16
+ .quicktags-toolbar {
17
+ height: auto;
18
+ }
19
.mceIframeContainer.mceFirst.mceLast iframe{
20
height: 335px !important;
21
}
css/admin-post-new.css CHANGED
@@ -18,6 +18,9 @@
18
.quicktags-toolbar, .wp_themeSkin tr.mceFirst td.mceToolbar {
19
height: 38px;
20
}
21
.mceIframeContainer.mceFirst.mceLast iframe{
22
height: 335px !important;
23
}
18
.quicktags-toolbar, .wp_themeSkin tr.mceFirst td.mceToolbar {
19
height: 38px;
20
}
21
+ .quicktags-toolbar {
22
+ height: auto;
23
+ }
24
.mceIframeContainer.mceFirst.mceLast iframe{
25
height: 335px !important;
26
}
css/admin-style.css CHANGED
@@ -14,7 +14,9 @@
14
z-index:999999;
15
}
16
17
-
18
#setting-error-tgmpa p:nth-child(2) strong em {
19
margin-top: 5px;
20
}
@@ -35,10 +37,10 @@ z-index: 99999;
35
}
36
@font-face {
37
font-family: 'FontAwesome';
38
- src: url('../shared/assets/global/fonts/fontawesome/fontawesome-webfont.eot?v=3.0.2');
39
- src: url('../shared/assets/global/fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
40
- url('../shared/assets/global/fonts/fontawesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
41
- url('../shared/assets/global/fonts/fontawesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
42
font-weight: normal;
43
font-style: normal;
44
}
@@ -327,11 +329,6 @@ div#lp-store-iframe-container > iframe {
327
color:#388DBC;
328
}
329
330
- .wp-list-table td
331
- {
332
- color:#388DBC;
333
- }
334
-
335
#wp-leads-splash-header
336
{
337
background: #f2f2f2;
14
z-index:999999;
15
}
16
17
+ tr#leads {
18
+ display: table-row !important;
19
+ }
20
#setting-error-tgmpa p:nth-child(2) strong em {
21
margin-top: 5px;
22
}
37
}
38
@font-face {
39
font-family: 'FontAwesome';
40
+ src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?v=3.0.2');
41
+ src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
42
+ url('../shared/assets/fonts/fontawesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
43
+ url('../shared/assets/fonts/fontawesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
44
font-weight: normal;
45
font-style: normal;
46
}
329
color:#388DBC;
330
}
331
332
#wp-leads-splash-header
333
{
334
background: #f2f2f2;
js/admin/admin.landing-page-list.js CHANGED
@@ -1,86 +1,86 @@
1
- jQuery(document).ready(function($) {
2
// Code for landing page list view
3
- var cats = jQuery("#landing_page_category option").length;
4
if ( cats === 0 ){
5
- jQuery("#landing_page_category").hide();
6
}
7
8
- jQuery('.lp-letter').each(function(){
9
- var draft = jQuery(this).text();
10
if ( draft === "" ){
11
- jQuery(this).parent().parent().hide();
12
}
13
});
14
15
- jQuery(".lp-impress-num").each(function(){
16
- var empty = jQuery(this).text();
17
if ( empty === "" || empty === "0" ){
18
- jQuery(this).parent().parent().find(".lp-letter").css("color", "#ccc");
19
- jQuery(this).parent().html("<span class='lp-no-stats'>no stats yet</span>");
20
}
21
});
22
/* List tour */
23
var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
24
- jQuery(tourbutton).appendTo("h2:eq(0)");
25
- jQuery("body").on('click', '#lp-tour', function () {
26
- var tour = jQuery("#lp-tour-style").length;
27
if ( tour === 0 ) {
28
- jQuery('head').append("<link rel='stylesheet' id='lp-tour-style' href='/wp-content/plugins/landing-pages/css/admin-tour.css' type='text/css' /><script type='text/javascript' src='/wp-content/plugins/landing-pages/js/admin/tour/tour.post-list.js'></script><script type='text/javascript' src='/wp-content/plugins/landing-pages/js/admin/intro.js'></script>");
29
}
30
setTimeout(function() {
31
introJs().start(); // start tour
32
}, 300);
33
34
});
35
- /*jQuery(".lp-varation-stat-ul").each(function(){
36
- var length = jQuery(this).find("li").length;
37
if ( length < 3 ){
38
- jQuery(this).find("li").first().css("padding-top", "18px");
39
}
40
});
41
*/
42
- jQuery("body").on('mouseenter', 'tr.type-landing-page', function () {
43
- jQuery(this).find(".no-stats-yet").show();
44
});
45
- jQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
46
- jQuery(this).find(".no-stats-yet").hide();
47
});
48
- jQuery(".variation-winner-is").each(function(){
49
- var target = jQuery(this).text();
50
- jQuery("." + target).addClass("winner-lp").attr("data-lp", "Current Winner");
51
});
52
53
var hidestats = "<span id='hide-stats'>(Hide Stats)</span><span class='show-stats show-stats-top'>Show Stats</span>";
54
- jQuery("#stats").append(hidestats);
55
56
- jQuery("body").on('click', '#hide-stats', function () {
57
- jQuery(".lp-varation-stat-ul").each(function(){
58
- jQuery(this).hide();
59
});
60
- jQuery(".show-stats").show();
61
- jQuery("#hide-stats").hide();
62
});
63
64
- jQuery("body").on('click', '.show-stats-top', function () {
65
- jQuery(".lp-varation-stat-ul").each(function(){
66
- jQuery(this).show();
67
});
68
- jQuery(".show-stats").hide();
69
- jQuery("#hide-stats").show();
70
});
71
72
- jQuery("body").on('click', '.show-stats', function () {
73
- jQuery(this).hide();
74
- jQuery(this).parent().find(".lp-varation-stat-ul").show();
75
});
76
77
- jQuery('.lp-letter, .cr-number, .qtip').on('mouseenter', function(event) {
78
// Bind the qTip within the event handler
79
- var text_in_tip = jQuery(this).attr("data-notes");
80
- var letter = jQuery(this).attr("data-letter");
81
- var status = "<span class='lp-paused'>" + jQuery(this).parent().attr("rel") + "</span>";
82
- var winner = "<span class='lp-win'>" + jQuery(this).parent().attr("data-lp") + "</span>";
83
- jQuery(this).qtip({
84
overwrite: false, // Make sure the tooltip won't be overridden once created
85
content: {
86
text: text_in_tip,
@@ -91,7 +91,7 @@ jQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
91
position: {
92
my: 'bottom center', // Use the corner...
93
at: 'top center', // ...and opposite corner
94
- viewport: jQuery(window)
95
},
96
style: {
97
classes: 'qtip-shadow qtip-jtools',
@@ -106,21 +106,21 @@ jQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
106
}, event); // Pass through our original event to qTip
107
})
108
109
- jQuery('.lp-letter').on('mouseleave', function(event) {
110
111
112
});
113
114
- jQuery("body").on("click", ".lp-pop-close", function(event) {
115
- jQuery(this).parent().parent().parent().hide();
116
});
117
118
- jQuery("body").on("click", ".lp-pop-preview a", function(event) {
119
- jQuery(this).parent().parent().parent().parent().hide();
120
});
121
122
// Fix Thickbox width/hieght
123
- jQuery(function($) {
124
tb_position = function() {
125
var tbWindow = $('#TB_window');
126
var width = $(window).width();
@@ -146,7 +146,7 @@ jQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
146
147
};
148
149
- jQuery('a.thickbox').click(function(){
150
if ( typeof tinyMCE != 'undefined' && tinyMCE.activeEditor ) {
151
tinyMCE.get('content').focus();
152
tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark('simple');
1
+ InboundQuery(document).ready(function($) {
2
// Code for landing page list view
3
+ var cats = InboundQuery("#landing_page_category option").length;
4
if ( cats === 0 ){
5
+ InboundQuery("#landing_page_category").hide();
6
}
7
8
+ InboundQuery('.lp-letter').each(function(){
9
+ var draft = InboundQuery(this).text();
10
if ( draft === "" ){
11
+ InboundQuery(this).parent().parent().hide();
12
}
13
});
14
15
+ InboundQuery(".lp-impress-num").each(function(){
16
+ var empty = InboundQuery(this).text();
17
if ( empty === "" || empty === "0" ){
18
+ InboundQuery(this).parent().parent().find(".lp-letter").css("color", "#ccc");
19
+ InboundQuery(this).parent().html("<span class='lp-no-stats'>no stats yet</span>");
20
}
21
});
22
/* List tour */
23
var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
24
+ InboundQuery(tourbutton).appendTo("h2:eq(0)");
25
+ InboundQuery("body").on('click', '#lp-tour', function () {
26
+ var tour = InboundQuery("#lp-tour-style").length;
27
if ( tour === 0 ) {
28
+ InboundQuery('head').append("<link rel='stylesheet' id='lp-tour-style' href='/wp-content/plugins/landing-pages/css/admin-tour.css' type='text/css' /><script type='text/javascript' src='/wp-content/plugins/landing-pages/js/admin/tour/tour.post-list.js'></script><script type='text/javascript' src='/wp-content/plugins/landing-pages/js/admin/intro.js'></script>");
29
}
30
setTimeout(function() {
31
introJs().start(); // start tour
32
}, 300);
33
34
});
35
+ /*InboundQuery(".lp-varation-stat-ul").each(function(){
36
+ var length = InboundQuery(this).find("li").length;
37
if ( length < 3 ){
38
+ InboundQuery(this).find("li").first().css("padding-top", "18px");
39
}
40
});
41
*/
42
+ InboundQuery("body").on('mouseenter', 'tr.type-landing-page', function () {
43
+ InboundQuery(this).find(".no-stats-yet").show();
44
});
45
+ InboundQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
46
+ InboundQuery(this).find(".no-stats-yet").hide();
47
});
48
+ InboundQuery(".variation-winner-is").each(function(){
49
+ var target = InboundQuery(this).text();
50
+ InboundQuery("." + target).addClass("winner-lp").attr("data-lp", "Current Winner");
51
});
52
53
var hidestats = "<span id='hide-stats'>(Hide Stats)</span><span class='show-stats show-stats-top'>Show Stats</span>";
54
+ InboundQuery("#stats").append(hidestats);
55
56
+ InboundQuery("body").on('click', '#hide-stats', function () {
57
+ InboundQuery(".lp-varation-stat-ul").each(function(){
58
+ InboundQuery(this).hide();
59
});
60
+ InboundQuery(".show-stats").show();
61
+ InboundQuery("#hide-stats").hide();
62
});
63
64
+ InboundQuery("body").on('click', '.show-stats-top', function () {
65
+ InboundQuery(".lp-varation-stat-ul").each(function(){
66
+ InboundQuery(this).show();
67
});
68
+ InboundQuery(".show-stats").hide();
69
+ InboundQuery("#hide-stats").show();
70
});
71
72
+ InboundQuery("body").on('click', '.show-stats', function () {
73
+ InboundQuery(this).hide();
74
+ InboundQuery(this).parent().find(".lp-varation-stat-ul").show();
75
});
76
77
+ InboundQuery('.lp-letter, .cr-number, .qtip').on('mouseenter', function(event) {
78
// Bind the qTip within the event handler
79
+ var text_in_tip = InboundQuery(this).attr("data-notes");
80
+ var letter = InboundQuery(this).attr("data-letter");
81
+ var status = "<span class='lp-paused'>" + InboundQuery(this).parent().attr("rel") + "</span>";
82
+ var winner = "<span class='lp-win'>" + InboundQuery(this).parent().attr("data-lp") + "</span>";
83
+ InboundQuery(this).qtip({
84
overwrite: false, // Make sure the tooltip won't be overridden once created
85
content: {
86
text: text_in_tip,
91
position: {
92
my: 'bottom center', // Use the corner...
93
at: 'top center', // ...and opposite corner
94
+ viewport: InboundQuery(window)
95
},
96
style: {
97
classes: 'qtip-shadow qtip-jtools',
106
}, event); // Pass through our original event to qTip
107
})
108
109
+ InboundQuery('.lp-letter').on('mouseleave', function(event) {
110
111
112
});
113
114
+ InboundQuery("body").on("click", ".lp-pop-close", function(event) {
115
+ InboundQuery(this).parent().parent().parent().hide();
116
});
117
118
+ InboundQuery("body").on("click", ".lp-pop-preview a", function(event) {
119
+ InboundQuery(this).parent().parent().parent().parent().hide();
120
});
121
122
// Fix Thickbox width/hieght
123
+ InboundQuery(function($) {
124
tb_position = function() {
125
var tbWindow = $('#TB_window');
126
var width = $(window).width();
146
147
};
148
149
+ InboundQuery('a.thickbox').click(function(){
150
if ( typeof tinyMCE != 'undefined' && tinyMCE.activeEditor ) {
151
tinyMCE.get('content').focus();
152
tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark('simple');
js/admin/admin.post-edit.js CHANGED
@@ -5,6 +5,13 @@ jQuery(document).ready(function($) {
5
alert('Oh no! jQuery Cookie not loaded. Your Server Might be Blocking this. Some functionality may be impaired');
6
}
7
8
9
// Filter Styling
10
jQuery('#template-filter li').first().addClass('button-primary');
@@ -431,184 +438,6 @@ jQuery(document).ready(function($) {
431
jQuery("#publish").val("Update All");
432
}
433
434
- // Ajax Saving for metadata
435
- jQuery('#lp_metabox_select_template input, #lp_metabox_select_template select, #lp_metabox_select_template textarea').on("change keyup", function (e) {
436
- // iframe content change needs its own change function $("#iFrame").contents().find("#someDiv")
437
- // media uploader needs its own change function
438
- var this_id = jQuery(this).attr("id");
439
- var parent_el = jQuery(this).parent();
440
- jQuery(parent_el).find(".lp-success-message").remove();
441
- jQuery(parent_el).find(".new-save-lp").remove();
442
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp" id="' + this_id + '" style="margin-left:10px">Update</span>');
443
- //console.log(parent_el);
444
- jQuery(ajax_save_button).appendTo(parent_el);
445
- });
446
-
447
- jQuery('#lp-notes-area input').on("change keyup", function (e) {
448
- var this_id = jQuery(this).attr("id");
449
- var parent_el = jQuery(this).parent();
450
- jQuery(parent_el).find(".lp-success-message").remove();
451
- jQuery(parent_el).find(".new-save-lp").remove();
452
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp" id="' + this_id + '" style="margin-left:10px">Update</span>');
453
- //console.log(parent_el);
454
- jQuery(ajax_save_button).appendTo(parent_el);
455
- });
456
-
457
- jQuery('#main-title-area input').on("change keyup", function (e) {
458
- // iframe content change needs its own change function $("#iFrame").contents().find("#someDiv")
459
- // media uploader needs its own change function
460
- var this_id = jQuery(this).attr("id");
461
- var current_view = jQuery("#lp-current-view").text();
462
- if (current_view !== "0") {
463
- this_id = this_id + '-' + current_view;
464
- }
465
- var parent_el = jQuery(this).parent();
466
- jQuery(parent_el).find(".lp-success-message").remove();
467
- jQuery(parent_el).find(".new-save-lp").remove();
468
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp" id="' + this_id + '" style="margin-left:10px">Update</span>');
469
- //console.log(parent_el);
470
- jQuery(ajax_save_button).appendTo(parent_el);
471
- });
472
-
473
- // wysiwyg on keyup save action
474
- /*
475
- setTimeout(function() {
476
- jQuery('.mceIframeContainer iframe, .landing-page-option-row iframe').contents().find('body').on("keyup", function (e) {
477
- var thisclass = jQuery(this).attr("class");
478
- var this_class_dirty = thisclass.replace("mceContentBody ", "");
479
- var this_class_cleaner = this_class_dirty.replace("wp-editor", "");
480
- var clean_1 = this_class_cleaner.replace("post-type-landing-page", "");
481
- var clean_2 = clean_1.replace("post-status-publish", "");
482
- var clean_3 = clean_2.replace(/[.\s]+#x2F;g, ""); // remove trailing whitespace
483
- var clean_spaces = clean_3.replace(/\s{2,}/g, ' '); // remove more than one space
484
- var this_id = clean_spaces.replace(/[.\s]+#x2F;g, ""); // remove trailing whitespace
485
- console.log(this_id);
486
- var parent_el = jQuery( "." + this_id + " .landing-page-table-header");
487
- jQuery(parent_el).find(".lp-success-message").remove();
488
- jQuery(parent_el).find(".new-save-lp").remove();
489
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp" id="' + this_id + '" style="margin-left:10px;">Update</span>');
490
- //console.log(parent_el);
491
- jQuery(ajax_save_button).appendTo(parent_el);
492
- });
493
- }, 4000);
494
- */
495
-
496
-
497
- // SAVE META
498
- var nonce_val = lp_post_edit_ui.wp_landing_page_meta_nonce; // NEED CORRECT NONCE
499
- jQuery(document).on('mousedown', '.new-save-lp', function () {
500
- var type_input = jQuery(this).parent().find("input").attr("type");
501
- var type_select = jQuery(this).parent().find("select");
502
- // var the_conversion_area_editor = jQuery(this).parent().parent().find('#lp-conversion-area_ifr').length;
503
- jQuery(this).parent().find(".lp-success-message").hide();
504
- // var the_content_editor = jQuery(this).parent().parent().find('#wp_content_ifr').length;
505
- var type_wysiwyg = jQuery(this).parent().parent().find('iframe').length;
506
-
507
- var type_textarea = jQuery(this).parent().find("textarea");
508
- if (typeof (type_input) != "undefined" && type_input !== null) {
509
- var type_of_field = type_input;
510
- } else if (typeof (type_wysiwyg) != "undefined" && type_wysiwyg !== null && type_wysiwyg === 1) {
511
- var type_of_field = 'wysiwyg';
512
- } else if (typeof (type_textarea) != "undefined" && type_textarea !== null) {
513
- var type_of_field = 'textarea';
514
- } else {
515
- (typeof (type_select) != "undefined" && type_select)
516
- var type_of_field = 'select';
517
- }
518
- // console.log(type_of_field); // type of input
519
- var new_value_meta_input = jQuery(this).parent().find("input").val();
520
- //console.log(new_value_meta_input);
521
- var new_value_meta_select = jQuery(this).parent().find("select").val();
522
- var new_value_meta_textarea = jQuery(this).parent().find("textarea").val();
523
- // console.log(new_value_meta_select);
524
- var new_value_meta_radio = jQuery(this).parent().find("input:checked").val();
525
- var new_value_meta_checkbox = jQuery(this).parent().find('input[type="checkbox"]:checked').val();
526
- var new_wysiwyg_meta = jQuery(this).parent().parent().find("iframe").contents().find("body").html();
527
- // prep data
528
- if (typeof (new_value_meta_input) != "undefined" && new_value_meta_input !== null && type_of_field == "text") {
529
- var meta_to_save = new_value_meta_input;
530
- } else if (typeof (new_value_meta_textarea) != "undefined" && new_value_meta_textarea !== null && type_of_field == "textarea") {
531
- var meta_to_save = new_value_meta_textarea;
532
- } else if (typeof (new_value_meta_select) != "undefined" && new_value_meta_select !== null) {
533
- var meta_to_save = new_value_meta_select;
534
- } else if (typeof (new_value_meta_radio) != "undefined" && new_value_meta_radio !== null && type_of_field == "radio") {
535
- var meta_to_save = new_value_meta_radio;
536
- } else if (typeof (new_value_meta_checkbox) != "undefined" && new_value_meta_checkbox !== null && type_of_field == "checkbox") {
537
- var meta_to_save = new_value_meta_checkbox;
538
- } else if (typeof (new_wysiwyg_meta) != "undefined" && new_wysiwyg_meta !== null && type_of_field == "wysiwyg") {
539
- var meta_to_save = new_wysiwyg_meta;
540
- //alert('here');
541
- } else {
542
- var meta_to_save = "";
543
- }
544
-
545
- // if data exists save it
546
- // console.log(meta_to_save);
547
-
548
- var this_meta_id = jQuery(this).attr("id"); // From save button
549
- console.log(this_meta_id);
550
- var post_id = jQuery("#post_ID").val();
551
- console.log(post_id);
552
- console.log(meta_to_save);
553
- var frontend_status = jQuery("#frontend-on").val();
554
-
555
- function do_reload_preview() {
556
- var cache_bust = generate_random_cache_bust(35);
557
- var reload_url = parent.window.location.href;
558
- reload_url = reload_url.replace('template-customize=on','');
559
- //alert(reload_url);
560
- var current_variation_id = jQuery("#lp-current-view").text();
561
-
562
- // var reload = jQuery(parent.document).find("#lp-live-preview").attr("src");
563
- var new_reload = reload_url + "&live-preview-area=" + cache_bust + "&lp-variation-id=" + current_variation_id;
564
- //alert(new_reload);
565
- jQuery(parent.document).find("#lp-live-preview").attr("src", new_reload);
566
- // console.log(new_reload);
567
- }
568
- // Run Ajax
569
- jQuery.ajax({
570
- type: 'POST',
571
- url: lp_post_edit_ui.ajaxurl,
572
- context: this,
573
- data: {
574
- action: 'wp_landing_page_meta_save',
575
- meta_id: this_meta_id,
576
- new_meta_val: meta_to_save,
577
- page_id: post_id,
578
- nonce: nonce_val
579
- },
580
-
581
- success: function (data) {
582
- var self = this;
583
-
584
- //alert(data);
585
- // jQuery('.lp-form').unbind('submit').submit();
586
- //var worked = '<span class="success-message-map">Success! ' + this_meta_id + ' set to ' + meta_to_save + '</span>';
587
- var worked = '<span class="lp-success-message">Updated!</span>';
588
- var s_message = jQuery(self).parent();
589
- jQuery(worked).appendTo(s_message);
590
- jQuery(self).parent().find("lp-success-message").remove();
591
- jQuery(self).hide();
592
- // RUN RELOAD
593
- if (typeof (frontend_status) != "undefined" && frontend_status !== null) {
594
-
595
- console.log('reload frame');
596
- do_reload_preview();
597
- } else {
598
- console.log('No reload frame');
599
- }
600
- //alert("Changes Saved!");
601
- },
602
-
603
- error: function (MLHttpRequest, textStatus, errorThrown) {
604
- alert("Ajax not enabled");
605
- }
606
- });
607
-
608
- //reload_preview();
609
- return false;
610
-
611
- });
612
613
614
});
5
alert('Oh no! jQuery Cookie not loaded. Your Server Might be Blocking this. Some functionality may be impaired');
6
}
7
8
+ jQuery('.button.button-small').each(function(){
9
+ var $this = jQuery(this);
10
+ var text = $this.text();
11
+ if(text === "Get Shortlink") {
12
+ $this.hide();
13
+ }
14
+ });
15
16
// Filter Styling
17
jQuery('#template-filter li').first().addClass('button-primary');
438
jQuery("#publish").val("Update All");
439
}
440
441
442
443
});
js/customizer.save.js CHANGED
@@ -15,149 +15,6 @@ jQuery(document).ready(function($) {
15
jQuery(this).css("max-width", editor_size);
16
});
17
}, 1000);
18
-
19
- //jQuery("body").width(iframe_size);
20
- //jQuery("#wpcontent").width(iframe_size);
21
-
22
- // On keystroke have save button show
23
- /* Disable single settng save while not working
24
- jQuery('#lp-frontend-options-container input, #lp-frontend-options-container textarea').on("keyup", function (e) {
25
- var this_id = jQuery(this).attr("id");
26
- var parent_el = jQuery(this).parent();
27
- jQuery(parent_el).find(".lp-success-message").remove();
28
- jQuery(parent_el).find(".new-save-lp-frontend").remove();
29
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp-frontend" id="' + this_id + '" style="margin-left:10px">Update</span>');
30
- //console.log(parent_el);
31
- jQuery(ajax_save_button).appendTo(parent_el);
32
- });
33
-
34
- // On change have save button show
35
- jQuery('#lp-frontend-options-container input, #lp-frontend-options-container select, #lp-frontend-options-container textarea').on("change", function (e) {
36
- var this_id = jQuery(this).attr("id");
37
- var parent_el = jQuery(this).parent();
38
- jQuery(parent_el).find(".lp-success-message").remove();
39
- jQuery(parent_el).find(".new-save-lp-frontend").remove();
40
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp-frontend" id="' + this_id + '" style="margin-left:10px">Update</span>');
41
- //console.log(parent_el);
42
- jQuery(ajax_save_button).appendTo(parent_el);
43
- });
44
-
45
- // wysiwyg on keyup save action
46
- setTimeout(function() {
47
- jQuery('.landing-page-option-row iframe').contents().find('body').on("keyup", function (e) {
48
- var thisclass = jQuery(this).attr("class");
49
- var this_class_dirty = thisclass.replace("mceContentBody ", "");
50
- var this_class_cleaner = this_class_dirty.replace("wp-editor", "");
51
- var clean_1 = this_class_cleaner.replace("post-type-landing-page", "");
52
- var clean_2 = clean_1.replace(/[.\s]+#x2F;g, ""); // remove trailing whitespace
53
- var clean_spaces = clean_2.replace(/\s{2,}/g, ' '); // remove more than one space
54
- var this_id = clean_spaces.replace(/[.\s]+#x2F;g, ""); // remove trailing whitespace
55
- console.log(this_id);
56
- var parent_el = jQuery( "." + this_id + " .landing-page-table-header");
57
- jQuery(parent_el).find(".lp-success-message").remove();
58
- jQuery(parent_el).find(".new-save-lp-frontend").remove();
59
- var ajax_save_button = jQuery('<span class="button-primary new-save-lp-frontend" id="' + this_id + '" style="margin-left:10px;">Update</span>');
60
- //console.log(parent_el);
61
- jQuery(ajax_save_button).appendTo(parent_el);
62
- });
63
- }, 4000);
64
-
65
- // Prep Data and Save
66
- var nonce_val = lp_post_edit_ui.wp_landing_page_meta_nonce; // NEED CORRECT NONCE
67
- jQuery(document).on('mousedown', '.new-save-lp-frontend', function () {
68
- var type_input = jQuery(this).parent().find("input").attr("type");
69
- var type_select = jQuery(this).parent().find("select");
70
- // var the_conversion_area_editor = jQuery(this).parent().parent().find('#lp-conversion-area_ifr').length;
71
- jQuery(this).parent().find(".lp-success-message").hide();
72
- // var the_content_editor = jQuery(this).parent().parent().find('#wp_content_ifr').length;
73
- var type_wysiwyg = jQuery(this).parent().parent().find('iframe').length;
74
-
75
- var type_textarea = jQuery(this).parent().find("textarea");
76
- if (typeof (type_input) != "undefined" && type_input !== null) {
77
- var type_of_field = type_input;
78
- } else if (typeof (type_wysiwyg) != "undefined" && type_wysiwyg !== null && type_wysiwyg === 1) {
79
- var type_of_field = 'wysiwyg';
80
- } else if (typeof (type_textarea) != "undefined" && type_textarea !== null) {
81
- var type_of_field = 'textarea';
82
- } else {
83
- (typeof (type_select) != "undefined" && type_select)
84
- var type_of_field = 'select';
85
- }
86
- // console.log(type_of_field); // type of input
87
- var new_value_meta_input = jQuery(this).parent().find("input").val();
88
- //console.log(new_value_meta_input);
89
- var new_value_meta_select = jQuery(this).parent().find("select").val();
90
- var new_value_meta_textarea = jQuery(this).parent().find("textarea").val();
91
- // console.log(new_value_meta_select);
92
- var new_value_meta_radio = jQuery(this).parent().find("input:checked").val();
93
- var new_value_meta_checkbox = jQuery(this).parent().find('input[type="checkbox"]:checked').val();
94
- var new_wysiwyg_meta = jQuery(this).parent().parent().find("iframe").contents().find("body").html();
95
- // prep data
96
- if (typeof (new_value_meta_input) != "undefined" && new_value_meta_input !== null && type_of_field == "text") {
97
- var meta_to_save = new_value_meta_input;
98
- } else if (typeof (new_value_meta_textarea) != "undefined" && new_value_meta_textarea !== null && type_of_field == "textarea") {
99
- var meta_to_save = new_value_meta_textarea;
100
- } else if (typeof (new_value_meta_select) != "undefined" && new_value_meta_select !== null) {
101
- var meta_to_save = new_value_meta_select;
102
- } else if (typeof (new_value_meta_radio) != "undefined" && new_value_meta_radio !== null && type_of_field == "radio") {
103
- var meta_to_save = new_value_meta_radio;
104
- } else if (typeof (new_value_meta_checkbox) != "undefined" && new_value_meta_checkbox !== null && type_of_field == "checkbox") {
105
- var meta_to_save = new_value_meta_checkbox;
106
- } else if (typeof (new_wysiwyg_meta) != "undefined" && new_wysiwyg_meta !== null && type_of_field == "wysiwyg") {
107
- var meta_to_save = new_wysiwyg_meta;
108
- //alert('here');
109
- } else {
110
- var meta_to_save = "";
111
- }
112
-
113
- // if data exists save it
114
- // console.log(meta_to_save);
115
-
116
- var this_meta_id = jQuery(this).attr("id"); // From save button
117
- console.log(this_meta_id);
118
- var post_id = jQuery("#post_ID").text();
119
- console.log(post_id);
120
- console.log(meta_to_save);
121
-
122
- // Run Ajax
123
- jQuery.ajax({
124
- type: 'POST',
125
- url: lp_post_edit_ui.ajaxurl,
126
- context: this,
127
- data: {
128
- action: 'wp_landing_page_meta_save',
129
- meta_id: this_meta_id,
130
- new_meta_val: meta_to_save,
131
- page_id: post_id,
132
- nonce: nonce_val
133
- },
134
-
135
- success: function (data) {
136
- var self = this;
137
-
138
- //alert(data);
139
- // jQuery('.lp-form').unbind('submit').submit();
140
- //var worked = '<span class="success-message-map">Success! ' + this_meta_id + ' set to ' + meta_to_save + '</span>';
141
- var worked = '<span class="lp-success-message">Updated!</span>';
142
- var s_message = jQuery(self).parent();
143
- jQuery(worked).appendTo(s_message);
144
- jQuery(self).parent().find("lp-success-message").remove();
145
- jQuery(self).hide();
146
- jQuery('.reload').click();
147
- //alert("Changes Saved!");
148
- },
149
-
150
- error: function (MLHttpRequest, textStatus, errorThrown) {
151
- alert("Ajax not enabled");
152
- }
153
- });
154
-
155
- //reload_preview();
156
- return false;
157
-
158
- });
159
-
160
- */
161
162
function MyFunction(id, this_event)
163
{
15
jQuery(this).css("max-width", editor_size);
16
});
17
}, 1000);
18
19
function MyFunction(id, this_event)
20
{
js/page_view_track.js CHANGED
@@ -1,14 +1,5 @@
1
jQuery(document).ready(function($) {
2
3
- setTimeout(function() {
4
- jQuery('form').each(function(){
5
- //jQuery(this).addClass('inbound-track');
6
- });
7
- }, 700);
8
-
9
-
10
- // Saves variation page views
11
-
12
// Save page view count
13
jQuery.ajax({
14
type: 'POST',
1
jQuery(document).ready(function($) {
2
3
// Save page view count
4
jQuery.ajax({
5
type: 'POST',
landing-pages.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Landing Pages
4
Plugin URI: http://www.inboundnow.com/landing-pages/
5
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
- Version: 1.7.4
7
Author: Inbound Now
8
Author URI: http://www.inboundnow.com/
9
Text Domain: landing-pages
@@ -78,6 +78,8 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
78
}
79
}
80
/* END PHP VERSION CHECKS */
81
/**
82
* Main Inbound_Landing_Pages_Plugin Instance
83
*
@@ -94,6 +96,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
94
self::load_files();
95
self::load_shared_files();
96
self::load_text_domain_init();
97
}
98
99
/**
@@ -102,7 +105,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
102
*/
103
private static function load_constants() {
104
105
- define('LANDINGPAGES_CURRENT_VERSION', '1.7.4' );
106
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
107
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
108
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
@@ -152,6 +155,8 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
152
include_once('modules/module.templates.php');
153
include_once('modules/module.store.php');
154
include_once('modules/module.customizer.php');
155
156
BREAK;
157
@@ -170,6 +175,8 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
170
include_once('modules/module.landing-page.php');
171
include_once('classes/class.load-extensions.php');
172
include_once('modules/module.customizer.php');
173
174
BREAK;
175
endswitch;
@@ -206,25 +213,27 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
206
Inbound_Landing_Pages_Plugin::fail_php_version();
207
}
208
209
210
- }
211
212
213
214
215
- /* lagacy - Conditional check LP active */
216
- function lp_check_active() {
217
- return 1;
218
- }
219
220
- /* Function to check This has been loaded for the tests */
221
- function landingpages_is_active() {
222
- return true;
223
}
224
225
- /* Function to check plugin code is running in travis */
226
- function inbound_travis_check() {
227
- echo '*** Landing Pages Plugin is Running on Travis ***';
228
- return true;
229
- }
230
3
Plugin Name: Landing Pages
4
Plugin URI: http://www.inboundnow.com/landing-pages/
5
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
+ Version: 1.8.1
7
Author: Inbound Now
8
Author URI: http://www.inboundnow.com/
9
Text Domain: landing-pages
78
}
79
}
80
/* END PHP VERSION CHECKS */
81
+
82
+
83
/**
84
* Main Inbound_Landing_Pages_Plugin Instance
85
*
96
self::load_files();
97
self::load_shared_files();
98
self::load_text_domain_init();
99
+
100
}
101
102
/**
105
*/
106
private static function load_constants() {
107
108
+ define('LANDINGPAGES_CURRENT_VERSION', '1.8.1' );
109
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
110
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
111
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
155
include_once('modules/module.templates.php');
156
include_once('modules/module.store.php');
157
include_once('modules/module.customizer.php');
158
+ //include_once('classes/class.branching.php');
159
+
160
161
BREAK;
162
175
include_once('modules/module.landing-page.php');
176
include_once('classes/class.load-extensions.php');
177
include_once('modules/module.customizer.php');
178
+ include_once('shared/classes/class.magic.php');
179
+
180
181
BREAK;
182
endswitch;
213
Inbound_Landing_Pages_Plugin::fail_php_version();
214
}
215
216
+
217
+
218
219
+ /* lagacy - Conditional check LP active */
220
+ function lp_check_active() {
221
+ return 1;
222
+ }
223
224
+ /* Function to check This has been loaded for the tests */
225
+ function landingpages_is_active() {
226
+ return true;
227
+ }
228
229
+ /* Function to check plugin code is running in travis */
230
+ function inbound_travis_check() {
231
+ echo '*** Landing Pages Plugin is Running on Travis ***';
232
+ return true;
233
+ }
234
235
236
237
}
238
239
lang/landing-pages-ach.mo CHANGED
Binary file
lang/landing-pages-af.mo CHANGED
Binary file
lang/landing-pages-an.mo ADDED
Binary file
lang/landing-pages-ar.mo CHANGED
Binary file
lang/landing-pages-as.mo ADDED
Binary file
lang/landing-pages-az.mo CHANGED
Binary file
lang/landing-pages-be.mo ADDED
Binary file
lang/landing-pages-be_BY.mo CHANGED
Binary file
lang/landing-pages-bg.mo ADDED
Binary file
lang/landing-pages-bg_BG.mo CHANGED
Binary file
lang/landing-pages-bn_BD.mo CHANGED
Binary file
lang/landing-pages-br.mo CHANGED
Binary file
lang/landing-pages-bs.mo ADDED
Binary file
lang/landing-pages-bs_BA.mo CHANGED
Binary file
lang/landing-pages-ca.mo CHANGED
Binary file
lang/landing-pages-co.mo CHANGED
Binary file
lang/landing-pages-cs_CZ.mo CHANGED
Binary file
lang/landing-pages-cy.mo CHANGED
Binary file
lang/landing-pages-da_DK.mo CHANGED
Binary file
lang/landing-pages-de_AT.mo CHANGED
Binary file
lang/landing-pages-de_CH.mo ADDED
Binary file
lang/landing-pages-de_DE.mo CHANGED
Binary file
lang/landing-pages-dv.mo ADDED
Binary file
lang/landing-pages-el.mo CHANGED
Binary file
lang/landing-pages-en@pirate.mo CHANGED
Binary file
lang/landing-pages-en_AU.mo ADDED
Binary file
lang/landing-pages-en_CA.mo ADDED
Binary file
lang/landing-pages-en_GB.mo CHANGED
Binary file
lang/landing-pages-eo.mo CHANGED
Binary file
lang/landing-pages-es_AR.mo ADDED
Binary file
lang/landing-pages-es_CL.mo CHANGED
Binary file
lang/landing-pages-es_ES.mo CHANGED
Binary file
lang/landing-pages-es_MX.mo CHANGED
Binary file
lang/landing-pages-es_PE.mo CHANGED
Binary file
lang/landing-pages-es_VE.mo CHANGED
Binary file
lang/landing-pages-et.mo CHANGED
Binary file
lang/landing-pages-eu.mo CHANGED
Binary file
lang/landing-pages-fa.mo CHANGED
Binary file
lang/landing-pages-fa_IR.mo CHANGED
Binary file
lang/landing-pages-fi.mo CHANGED
Binary file
lang/landing-pages-fo.mo CHANGED
Binary file
lang/landing-pages-fr_FR.mo CHANGED
Binary file
lang/landing-pages-fy.mo ADDED
Binary file
lang/landing-pages-ga.mo CHANGED
Binary file
lang/landing-pages-gd.mo ADDED
Binary file
lang/landing-pages-gl_ES.mo CHANGED
Binary file
lang/landing-pages-gu_IN.mo CHANGED
Binary file
lang/landing-pages-he_IL.mo CHANGED
Binary file
lang/landing-pages-hi_IN.mo CHANGED
Binary file
lang/landing-pages-hr.mo CHANGED
Binary file
lang/landing-pages-hu_HU.mo CHANGED
Binary file
lang/landing-pages-hy.mo CHANGED
Binary file
lang/landing-pages-id.mo CHANGED
Binary file
lang/landing-pages-id_ID.mo CHANGED
Binary file
lang/landing-pages-is_IS.mo CHANGED
Binary file
lang/landing-pages-it_IT.mo CHANGED
Binary file
lang/landing-pages-ja.mo CHANGED
Binary file
lang/landing-pages-jv.mo CHANGED
Binary file
lang/landing-pages-ka.mo CHANGED
Binary file
lang/landing-pages-ka_GE.mo ADDED
Binary file
lang/landing-pages-kk.mo CHANGED
Binary file
lang/landing-pages-km.mo CHANGED
Binary file
lang/landing-pages-kn.mo ADDED
Binary file
lang/landing-pages-ko_KR.mo CHANGED
Binary file
lang/landing-pages-ku.mo CHANGED
Binary file
lang/landing-pages-ky.mo CHANGED
Binary file
lang/landing-pages-lo.mo ADDED
Binary file
lang/landing-pages-lt_LT.mo CHANGED
Binary file
lang/landing-pages-lv.mo CHANGED
Binary file
lang/landing-pages-mg.mo CHANGED
Binary file
lang/landing-pages-mk_MK.mo CHANGED
Binary file
lang/landing-pages-mn.mo CHANGED
Binary file
lang/landing-pages-mr.mo ADDED
Binary file
lang/landing-pages-ms_MY.mo ADDED
Binary file
lang/landing-pages-my_MM.mo CHANGED
Binary file
lang/landing-pages-nb_NO.mo CHANGED
Binary file
lang/landing-pages-ne_NP.mo CHANGED
Binary file
lang/landing-pages-nl_NL.mo CHANGED
Binary file
lang/landing-pages-nn_NO.mo CHANGED
Binary file
lang/landing-pages-oc.mo CHANGED
Binary file
lang/landing-pages-os.mo ADDED
Binary file
lang/landing-pages-pap.mo CHANGED
Binary file
lang/landing-pages-pl_PL.mo CHANGED
Binary file
lang/landing-pages-ps.mo ADDED
Binary file
lang/landing-pages-pt_BR.mo CHANGED
Binary file
lang/landing-pages-pt_PT.mo CHANGED
Binary file
lang/landing-pages-ro_RO.mo CHANGED
Binary file
lang/landing-pages-ru_RU.mo CHANGED
Binary file
lang/landing-pages-sah.mo CHANGED
Binary file
lang/landing-pages-si_LK.mo CHANGED
Binary file
lang/landing-pages-sk_SK.mo CHANGED
Binary file
lang/landing-pages-sl_SI.mo CHANGED
Binary file
lang/landing-pages-so.mo ADDED
Binary file
lang/landing-pages-sq.mo CHANGED
Binary file
lang/landing-pages-sr_RS.mo CHANGED
Binary file
lang/landing-pages-su.mo CHANGED
Binary file
lang/landing-pages-sv_SE.mo CHANGED
Binary file
lang/landing-pages-sw.mo CHANGED
Binary file
lang/landing-pages-ta_IN.mo ADDED
Binary file
lang/landing-pages-ta_LK.mo CHANGED
Binary file
lang/landing-pages-te.mo CHANGED
Binary file
lang/landing-pages-tg.mo ADDED
Binary file
lang/landing-pages-th.mo CHANGED
Binary file
lang/landing-pages-tk_TM.mo CHANGED
Binary file
lang/landing-pages-tl.mo ADDED
Binary file
lang/landing-pages-tr_TR.mo CHANGED
Binary file
lang/landing-pages-tzm.mo ADDED
Binary file
lang/landing-pages-ug.mo CHANGED
Binary file
lang/landing-pages-uk.mo CHANGED
Binary file
lang/landing-pages-ur.mo ADDED
Binary file
lang/landing-pages-ur_PK.mo CHANGED
Binary file
lang/landing-pages-uz.mo CHANGED
Binary file
lang/landing-pages-vi.mo CHANGED
Binary file
lang/landing-pages-zh_CN.GB2312.mo CHANGED
Binary file
lang/landing-pages-zh_CN.mo CHANGED
Binary file
lang/landing-pages-zh_HK.mo ADDED
Binary file
lang/landing-pages-zh_TW.mo CHANGED
Binary file
modules/module.ajax-setup.php CHANGED
@@ -1 +1 @@
1
- <?php
2
* Adds Ajax for Clear Stats button
3
* clear stats for all variations
4
*/
5
* Adds Ajax for Clear Stats button
6
* clear stats for single variations
7
*/
8
* Adds Ajax for Clear Stats button
9
* clear stats for non lp post