HubSpot – Free Marketing Plugin for WordPress - Version 7.3.2

Version Description

(2019.04.24) = - Move assets to /assets folder - New settings page - Improve forms page loading time

Download this release

Release Info

Developer leadin
Plugin Icon 128x128 HubSpot – Free Marketing Plugin for WordPress
Version 7.3.2
Comparing to
See all releases

Code changes from version 7.2.2 to 7.3.2

admin/leadin-admin.php CHANGED
@@ -173,7 +173,19 @@ class WPLeadInAdmin {
173
  */
174
  function leadin_add_iframe() {
175
  global $wp_version;
176
- echo '<div id="leadin" class="' . ( $wp_version < 3.8 && ! is_plugin_active( 'mp6/mp6.php' ) ? 'pre-mp6' : '' ) . '"></div>';
 
 
 
 
 
 
 
 
 
 
 
 
177
  }
178
 
179
  // =============================================
@@ -227,7 +239,7 @@ class WPLeadInAdmin {
227
 
228
  wp_register_script( 'leadin-bridge-app', leadin_get_resource_url( '/bundle/app.js' ), array( 'backbone' ), false, true );
229
  wp_register_style( 'leadin-bridge-css', leadin_get_resource_url( '/bundle/app.css' ) );
230
- wp_register_script( 'leadin-js', LEADIN_PATH.'/assets/leadin.js', false, false, true );
231
 
232
  wp_enqueue_script( 'leadin-bridge-app' );
233
  wp_enqueue_script( 'leadin-js' );
173
  */
174
  function leadin_add_iframe() {
175
  global $wp_version;
176
+ $error_message = "";
177
+
178
+ if ( version_compare( phpversion(), LEADIN_REQUIRED_PHP_VERSION, '<' ) ) {
179
+ $error_message = "HubSpot All-In-One Marketing ".LEADIN_PLUGIN_VERSION." requires PHP ".LEADIN_REQUIRED_PHP_VERSION." or higher. Please upgrade WordPress first.";
180
+ } else if ( version_compare( $wp_version, LEADIN_REQUIRED_WP_VERSION, '<' ) ) {
181
+ $error_message = "HubSpot All-In-One Marketing ".LEADIN_PLUGIN_VERSION." requires PHP ".LEADIN_REQUIRED_WP_VERSION." or higher. Please upgrade WordPress first.";
182
+ }
183
+
184
+ if ($error_message) {
185
+ echo "<div class='notice notice-warning'><p>$error_message</p></div>";
186
+ } else {
187
+ echo '<div id="leadin"></div>';
188
+ }
189
  }
190
 
191
  // =============================================
239
 
240
  wp_register_script( 'leadin-bridge-app', leadin_get_resource_url( '/bundle/app.js' ), array( 'backbone' ), false, true );
241
  wp_register_style( 'leadin-bridge-css', leadin_get_resource_url( '/bundle/app.css' ) );
242
+ wp_register_script( 'leadin-js', LEADIN_PATH.'/scripts/leadin.js', false, false, true );
243
 
244
  wp_enqueue_script( 'leadin-bridge-app' );
245
  wp_enqueue_script( 'leadin-js' );
assets/banner-1544x500.png DELETED
Binary file
assets/banner-772x250.png DELETED
Binary file
assets/icon-128x128.png DELETED
Binary file
assets/icon-256x256.png DELETED
Binary file
assets/leadin.css DELETED
@@ -1,36 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- @font-face {
4
- font-family: "hs-font";
5
- src:url("hs-font.eot");
6
- src:url("hs-font.eot?#iefix") format("embedded-opentype"),
7
- url("hs-font.woff") format("woff"),
8
- url("hs-font.ttf") format("truetype"),
9
- url("hs-font.svg#hs-font") format("svg");
10
- font-weight: normal;
11
- font-style: normal;
12
-
13
- }
14
-
15
- #wpadminbar #wp-admin-bar-leadin-admin-menu .ab-icon:before,
16
- .dashicons-sprocket:before {
17
- font-family: "hs-font" !important;
18
- content: attr(data-icon);
19
- font-style: normal !important;
20
- font-weight: normal !important;
21
- font-variant: normal !important;
22
- text-transform: none !important;
23
- speak: none;
24
- line-height: 1;
25
- -webkit-font-smoothing: antialiased;
26
- -moz-osx-font-smoothing: grayscale;
27
- }
28
-
29
- #wpadminbar #wp-admin-bar-leadin-admin-menu .ab-icon:before,
30
- .dashicons-sprocket:before {
31
- content: "\61";
32
- }
33
-
34
- #leadin-bridge-container {
35
- display: none !important;
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,3 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = 6.1.12 (2018.09.14) =
2
  - Internal update
3
 
1
+ = 7.3.2 (2019.04.24) =
2
+ - Move assets to /assets folder
3
+ - New settings page
4
+ - Improve forms page loading time
5
+
6
+ = 7.3.1 (2019.04.17) =
7
+ - Fix missing assets
8
+
9
+ = 7.3.0 (2019.04.17) =
10
+ - Drop support for PHP<5.6
11
+ - Drop support for WP<4
12
+ - Removed hubspot from admin top bar
13
+
14
+ = 7.2.2 (2019.04.09) =
15
+ - Fix for whitespace bug
16
+
17
+ = 7.2.1 (2019.04.08) =
18
+ - Added link to Chatflows
19
+
20
+ = 7.2.0 (2019.04.03) =
21
+ - Add background iframe
22
+
23
+ = 7.1.1 (2019.04.03) =
24
+ - Remove OAuth step from signup
25
+ - Fix assets in listing
26
+
27
+ = 7.1.0 (2019.04.01) =
28
+ - Remove slumber/oauth mode
29
+ - Fix icon in top menu
30
+ - Add help widget
31
+ - Update message on connection error
32
+ - April fool prank
33
+
34
+ = 7.0.7 (2019.03.25) =
35
+ - Add helpers for acceptance tests
36
+ - Remove dialog on settings page
37
+ - Load forms script from right environment
38
+ - Test on PHP 5.6
39
+ - Design fixes on the intro page
40
+
41
+ = 7.0.6 (2019.03.08) =
42
+ - Add debug helpers
43
+
44
+ = 7.0.5 (2019.03.05) =
45
+ - Update description to explain how plugin provides WordPress CRM
46
+ - Fix connection to wrong portal id
47
+ - Add pop-up on login page
48
+ - Add intro screen for un-logged users
49
+ - Update HubSpot forms script
50
+ - Disable "Create form" when user has no permissions
51
+ - Skip authorization token verification
52
+ - Test with most popular plugins
53
+
54
+ = 7.0.4 (2019.02.19) =
55
+ - Show welcome dialog after connection
56
+ - Remove extra navigation in connection flow
57
+ - Add pre-fill to signup form
58
+ - Add plugin version to HTML comment
59
+ - Fix enqueue style error
60
+
61
+ = 7.0.3 (2019.02.12) =
62
+ - Update HubSpot logos
63
+
64
+ = 7.0.2 (2019.01.22) =
65
+ - Plugin readme update
66
+ - Fix wrong settings link
67
+
68
+ = 7.0.1 (2018.10.12) =
69
+ - Send page analytics data into HubSpot
70
+
71
+ = 7.0.0 (2018.10.03) =
72
+ - Add deeper integration with HubSpot. Starts a new release of a new forms integration within WordPress. Released progressively for some users.
73
+
74
  = 6.1.12 (2018.09.14) =
75
  - Internal update
76
 
inc/class-leadin.php CHANGED
@@ -11,10 +11,6 @@ class WPLeadIn {
11
  function __construct() {
12
  global $pagenow;
13
 
14
- if ( is_user_logged_in() ) {
15
- add_action( 'admin_bar_menu', array( $this, 'add_leadin_link_to_admin_bar' ), 999 );
16
- }
17
-
18
  add_action( 'wp_enqueue_scripts', array($this, 'add_common_frontend_scripts' ) );
19
  add_action( 'admin_enqueue_scripts', array($this, 'add_common_frontend_scripts' ) );
20
 
@@ -82,7 +78,7 @@ class WPLeadIn {
82
 
83
  function add_common_frontend_scripts() {
84
  if ( is_user_logged_in() ) {
85
- wp_register_style( 'leadin-css', LEADIN_PATH.'/assets/leadin.css' );
86
  wp_enqueue_style( 'leadin-css' );
87
  }
88
  }
@@ -114,29 +110,6 @@ class WPLeadIn {
114
  }
115
  }
116
 
117
- /**
118
- * Adds Leadin link to top-level admin bar
119
- */
120
- function add_leadin_link_to_admin_bar( $wp_admin_bar ) {
121
- global $wp_version;
122
-
123
- if ( ! current_user_can( 'activate_plugins' ) ) {
124
- if ( ! array_key_exists( 'li_grant_access_to_' . leadin_get_user_role(), get_option( 'leadin_options' ) ) ) {
125
- return false;
126
- }
127
- }
128
-
129
- $args = array(
130
- 'id' => 'leadin-admin-menu',
131
- 'title' => "<span class='ab-icon'></span><span class='ab-label'>HubSpot</span>", // alter the title of existing node
132
- 'parent' => false, // set parent to false to make it a top level (parent) node
133
- 'href' => get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=leadin',
134
- 'meta' => array( 'title' => 'HubSpot' ),
135
- );
136
-
137
- $wp_admin_bar->add_node( $args );
138
- }
139
-
140
  public static function leadin_is_login_or_register_page() {
141
  return in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) );
142
  }
11
  function __construct() {
12
  global $pagenow;
13
 
 
 
 
 
14
  add_action( 'wp_enqueue_scripts', array($this, 'add_common_frontend_scripts' ) );
15
  add_action( 'admin_enqueue_scripts', array($this, 'add_common_frontend_scripts' ) );
16
 
78
 
79
  function add_common_frontend_scripts() {
80
  if ( is_user_logged_in() ) {
81
+ wp_register_style( 'leadin-css', LEADIN_PATH.'/style/leadin.css' );
82
  wp_enqueue_style( 'leadin-css' );
83
  }
84
  }
110
  }
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  public static function leadin_is_login_or_register_page() {
114
  return in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) );
115
  }
leadin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: HubSpot All-In-One Marketing - Forms, Popups, Live Chat
4
  Plugin URI: http://www.hubspot.com/integrations/wordpress
5
  Description: HubSpot’s official WordPress plugin allows you to add forms, popups, and live chat to your website and integrate with the best WordPress CRM.
6
- Version: 7.2.2
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
@@ -28,12 +28,20 @@ if ( file_exists( LEADIN_PLUGIN_DIR . '/inc/leadin-overrides.php' ) ) {
28
  require_once LEADIN_PLUGIN_DIR . '/inc/leadin-overrides.php';
29
  }
30
 
 
 
 
 
 
 
 
 
31
  if ( ! defined( 'LEADIN_DB_VERSION' ) ) {
32
  define( 'LEADIN_DB_VERSION', '2.2.5' );
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
- define( 'LEADIN_PLUGIN_VERSION', '7.2.2' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
3
  Plugin Name: HubSpot All-In-One Marketing - Forms, Popups, Live Chat
4
  Plugin URI: http://www.hubspot.com/integrations/wordpress
5
  Description: HubSpot’s official WordPress plugin allows you to add forms, popups, and live chat to your website and integrate with the best WordPress CRM.
6
+ Version: 7.3.2
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
28
  require_once LEADIN_PLUGIN_DIR . '/inc/leadin-overrides.php';
29
  }
30
 
31
+ if ( ! defined( 'LEADIN_REQUIRED_WP_VERSION' ) ) {
32
+ define( 'LEADIN_REQUIRED_WP_VERSION', '4.0' );
33
+ }
34
+
35
+ if ( ! defined( 'LEADIN_REQUIRED_PHP_VERSION' ) ) {
36
+ define( 'LEADIN_REQUIRED_PHP_VERSION', '5.6' );
37
+ }
38
+
39
  if ( ! defined( 'LEADIN_DB_VERSION' ) ) {
40
  define( 'LEADIN_DB_VERSION', '2.2.5' );
41
  }
42
 
43
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
44
+ define( 'LEADIN_PLUGIN_VERSION', '7.3.2' );
45
  }
46
 
47
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === HubSpot All-In-One Marketing - Forms, Popups, Live Chat ===
2
  Contributors: HubSpotDev, leadin
3
  Tags: forms, popup, live chat, contact form, crm, newsletter, marketing, lead generation, hubspot, mailchimp, constant contact
4
- Requires at least: 3.7
5
  Tested up to: 5.1
6
- Stable tag: 7.2.2
 
7
 
8
  HubSpot All-In-One Marketing, is a free all-in-one marketing plugin that allows you to easily use HubSpot forms, popups, and live chat on your WordPress site. If you’re already a HubSpot user, the plugin lets you connect your HubSpot account to your website without any code.
9
 
@@ -161,65 +162,18 @@ Please <a href="https://community.hubspot.com?utm_source=wordpress-plugin-listin
161
 
162
  == Changelog ==
163
 
164
- - Current version: 7.2.2
165
- - Current version release: 2019-04-08
166
-
167
- = 7.2.2 (2019.04.09)
168
- - Fix for whitespace bug
169
-
170
- = 7.2.1 (2019.04.08)
171
- - Added link to Chatflows
172
-
173
- = 7.2.0 (2019.04.03) =
174
- - Add background iframe
175
-
176
- = 7.1.1 (2019.04.03) =
177
- - Remove OAuth step from signup
178
- - Fix assets in listing
179
-
180
- = 7.1.0 (2019.04.01) =
181
- - Remove slumber/oauth mode
182
- - Fix icon in top menu
183
- - Add help widget
184
- - Update message on connection error
185
- - April fool prank
186
-
187
- = 7.0.7 (2019.03.25) =
188
- - Add helpers for acceptance tests
189
- - Remove dialog on settings page
190
- - Load forms script from right environment
191
- - Test on PHP 5.6
192
- - Design fixes on the intro page
193
-
194
- = 7.0.6 (2019.03.08) =
195
- - Add debug helpers
196
-
197
- = 7.0.5 (2019.03.05) =
198
- - Update description to explain how plugin provides WordPress CRM
199
- - Fix connection to wrong portal id
200
- - Add pop-up on login page
201
- - Add intro screen for un-logged users
202
- - Update HubSpot forms script
203
- - Disable "Create form" when user has no permissions
204
- - Skip authorization token verification
205
- - Test with most popular plugins
206
-
207
- = 7.0.4 (2019.02.19) =
208
- - Show welcome dialog after connection
209
- - Remove extra navigation in connection flow
210
- - Add pre-fill to signup form
211
- - Add plugin version to HTML comment
212
- - Fix enqueue style error
213
-
214
- = 7.0.3 (2019.02.12) =
215
- - Update HubSpot logos
216
-
217
- = 7.0.2 (2019.01.22) =
218
- - Plugin readme update
219
- - Fix wrong settings link
220
-
221
- = 7.0.1 (2018.10.12) =
222
- - Send page analytics data into HubSpot
223
 
224
  = 7.0.0 (2018.10.03) =
225
  - Add deeper integration with HubSpot. Starts a new release of a new forms integration within WordPress. Released progressively for some users.
1
  === HubSpot All-In-One Marketing - Forms, Popups, Live Chat ===
2
  Contributors: HubSpotDev, leadin
3
  Tags: forms, popup, live chat, contact form, crm, newsletter, marketing, lead generation, hubspot, mailchimp, constant contact
4
+ Requires at least: 4.0
5
  Tested up to: 5.1
6
+ Requires PHP: 5.6
7
+ Stable tag: 7.3.2
8
 
9
  HubSpot All-In-One Marketing, is a free all-in-one marketing plugin that allows you to easily use HubSpot forms, popups, and live chat on your WordPress site. If you’re already a HubSpot user, the plugin lets you connect your HubSpot account to your website without any code.
10
 
162
 
163
  == Changelog ==
164
 
165
+ - Current version: 7.3.2
166
+ - Current version release: 2019-04-24
167
+
168
+ = 7.3.2 (2019.04.24) =
169
+ - Move assets to /assets folder
170
+ - New settings page
171
+ - Improve forms page loading time
172
+
173
+ = 7.3.0 (2019.04.17) =
174
+ - Drop support for PHP<5.6
175
+ - Drop support for WP<4
176
+ - Removed hubspot from admin top bar
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
  = 7.0.0 (2018.10.03) =
179
  - Add deeper integration with HubSpot. Starts a new release of a new forms integration within WordPress. Released progressively for some users.
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.png DELETED
Binary file
screenshot-6.png DELETED
Binary file
{assets → scripts}/leadin.js RENAMED
File without changes
{assets → style}/hs-font.eot RENAMED
File without changes
{assets → style}/hs-font.svg RENAMED
File without changes
{assets → style}/hs-font.ttf RENAMED
File without changes
{assets → style}/hs-font.woff RENAMED
File without changes
style/leadin.css ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+
3
+ @font-face {
4
+ font-family: "hs-font";
5
+ src:url("hs-font.eot");
6
+ src:url("hs-font.eot?#iefix") format("embedded-opentype"),
7
+ url("hs-font.woff") format("woff"),
8
+ url("hs-font.ttf") format("truetype"),
9
+ url("hs-font.svg#hs-font") format("svg");
10
+ font-weight: normal;
11
+ font-style: normal;
12
+
13
+ }
14
+
15
+ #wp-admin-bar-leadin-admin-menu .ab-icon:before,
16
+ .dashicons-sprocket:before {
17
+ font-family: "hs-font" !important;
18
+ content: attr(data-icon);
19
+ font-style: normal !important;
20
+ font-weight: normal !important;
21
+ font-variant: normal !important;
22
+ text-transform: none !important;
23
+ speak: none;
24
+ line-height: 1;
25
+ -webkit-font-smoothing: antialiased;
26
+ -moz-osx-font-smoothing: grayscale;
27
+ }
28
+
29
+ #wp-admin-bar-leadin-admin-menu .ab-icon:before,
30
+ .dashicons-sprocket:before {
31
+ content: "\61";
32
+ }
33
+
34
+ #leadin-bridge-container {
35
+ display: none !important;
36
+ }